FD.io VPP  v17.04.2-2-ga8f93f8
Vector Packet Processing
ip6_ioam_pot.c File Reference
+ Include dependency graph for ip6_ioam_pot.c:

Go to the source code of this file.

Data Structures

struct  ip6_hop_by_hop_ioam_pot_main_t
 

Macros

#define foreach_ip6_hop_by_hop_ioam_pot_stats
 

Enumerations

enum  ip6_ioam_pot_stats_t { IP6_IOAM_POT_N_STATS }
 

Functions

static void ip6_ioam_stats_increment_counter (u32 counter_index, u64 increment)
 
static u8format_ioam_pot (u8 *s, va_list *args)
 
u8ip6_hbh_ioam_proof_of_transit_trace_handler (u8 *s, ip6_hop_by_hop_option_t *opt)
 
int ip6_hbh_ioam_proof_of_transit_handler (vlib_buffer_t *b, ip6_header_t *ip, ip6_hop_by_hop_option_t *opt0)
 
int ip6_hbh_ioam_proof_of_transit_pop_handler (vlib_buffer_t *b, ip6_header_t *ip, ip6_hop_by_hop_option_t *opt0)
 
int ip6_hop_by_hop_ioam_pot_rewrite_handler (u8 *rewrite_string, u8 *rewrite_size)
 
static clib_error_tip6_show_ioam_pot_cmd_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tip6_hop_by_hop_ioam_pot_init (vlib_main_t *vm)
 

Variables

static char * ip6_hop_by_hop_ioam_pot_stats_strings []
 
ip6_hop_by_hop_ioam_pot_main_t ip6_hop_by_hop_ioam_pot_main
 
static vlib_cli_command_t ip6_show_ioam_pot_cmd
 (constructor) VLIB_CLI_COMMAND (ip6_show_ioam_pot_cmd) More...
 

Macro Definition Documentation

#define foreach_ip6_hop_by_hop_ioam_pot_stats
Value:
_(PROCESSED, "Pkts with ip6 hop-by-hop pot options") \
_(PROFILE_MISS, "Pkts with ip6 hop-by-hop pot options but no profile set") \
_(PASSED, "Pkts with POT in Policy") \
_(FAILED, "Pkts with POT out of Policy")

Definition at line 28 of file ip6_ioam_pot.c.

Enumeration Type Documentation

Enumerator
IP6_IOAM_POT_N_STATS 

Definition at line 40 of file ip6_ioam_pot.c.

Function Documentation

static u8* format_ioam_pot ( u8 s,
va_list *  args 
)
static

Definition at line 67 of file ip6_ioam_pot.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ip6_hbh_ioam_proof_of_transit_handler ( vlib_buffer_t b,
ip6_header_t ip,
ip6_hop_by_hop_option_t opt0 
)

Definition at line 95 of file ip6_ioam_pot.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ip6_hbh_ioam_proof_of_transit_pop_handler ( vlib_buffer_t b,
ip6_header_t ip,
ip6_hop_by_hop_option_t opt0 
)

Definition at line 163 of file ip6_ioam_pot.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* ip6_hbh_ioam_proof_of_transit_trace_handler ( u8 s,
ip6_hop_by_hop_option_t opt 
)

Definition at line 84 of file ip6_ioam_pot.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* ip6_hop_by_hop_ioam_pot_init ( vlib_main_t vm)
static

Definition at line 235 of file ip6_ioam_pot.c.

+ Here is the call graph for this function:

int ip6_hop_by_hop_ioam_pot_rewrite_handler ( u8 rewrite_string,
u8 rewrite_size 
)

Definition at line 191 of file ip6_ioam_pot.c.

+ Here is the caller graph for this function:

static void ip6_ioam_stats_increment_counter ( u32  counter_index,
u64  increment 
)
inlinestatic

Definition at line 59 of file ip6_ioam_pot.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* ip6_show_ioam_pot_cmd_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 207 of file ip6_ioam_pot.c.

+ Here is the call graph for this function:

Variable Documentation

ip6_hop_by_hop_ioam_pot_main_t ip6_hop_by_hop_ioam_pot_main

Definition at line 56 of file ip6_ioam_pot.c.

char* ip6_hop_by_hop_ioam_pot_stats_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_ip6_hop_by_hop_ioam_pot_stats
Definition: ip6_ioam_pot.c:28

Definition at line 34 of file ip6_ioam_pot.c.

vlib_cli_command_t ip6_show_ioam_pot_cmd
static
Initial value:
= {
.path = "show ioam pot",
.short_help = "iOAM pot statistics",
}
static clib_error_t * ip6_show_ioam_pot_cmd_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ip6_ioam_pot.c:207

(constructor) VLIB_CLI_COMMAND (ip6_show_ioam_pot_cmd)

Definition at line 227 of file ip6_ioam_pot.c.