FD.io VPP  v21.06-3-gbb25fbf28
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

◆ foreach_ip6_hop_by_hop_ioam_pot_stats

#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 27 of file ip6_ioam_pot.c.

Enumeration Type Documentation

◆ ip6_ioam_pot_stats_t

Enumerator
IP6_IOAM_POT_N_STATS 

Definition at line 39 of file ip6_ioam_pot.c.

Function Documentation

◆ format_ioam_pot()

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

Definition at line 66 of file ip6_ioam_pot.c.

+ Here is the caller graph for this function:

◆ ip6_hbh_ioam_proof_of_transit_handler()

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 94 of file ip6_ioam_pot.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ip6_hbh_ioam_proof_of_transit_pop_handler()

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 162 of file ip6_ioam_pot.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ip6_hbh_ioam_proof_of_transit_trace_handler()

u8* ip6_hbh_ioam_proof_of_transit_trace_handler ( u8 s,
ip6_hop_by_hop_option_t opt 
)

Definition at line 83 of file ip6_ioam_pot.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ip6_hop_by_hop_ioam_pot_init()

static clib_error_t* ip6_hop_by_hop_ioam_pot_init ( vlib_main_t vm)
static

Definition at line 234 of file ip6_ioam_pot.c.

+ Here is the call graph for this function:

◆ ip6_hop_by_hop_ioam_pot_rewrite_handler()

int ip6_hop_by_hop_ioam_pot_rewrite_handler ( u8 rewrite_string,
u8 rewrite_size 
)

Definition at line 190 of file ip6_ioam_pot.c.

+ Here is the caller graph for this function:

◆ ip6_ioam_stats_increment_counter()

static void ip6_ioam_stats_increment_counter ( u32  counter_index,
u64  increment 
)
inlinestatic

Definition at line 58 of file ip6_ioam_pot.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ip6_show_ioam_pot_cmd_fn()

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 206 of file ip6_ioam_pot.c.

+ Here is the call graph for this function:

Variable Documentation

◆ ip6_hop_by_hop_ioam_pot_main

ip6_hop_by_hop_ioam_pot_main_t ip6_hop_by_hop_ioam_pot_main

Definition at line 55 of file ip6_ioam_pot.c.

◆ ip6_hop_by_hop_ioam_pot_stats_strings

char* ip6_hop_by_hop_ioam_pot_stats_strings[]
static
Initial value:
= {
#define _(sym,string)
}

Definition at line 33 of file ip6_ioam_pot.c.

◆ ip6_show_ioam_pot_cmd

vlib_cli_command_t ip6_show_ioam_pot_cmd
static
Initial value:
= {
.path = "show ioam pot",
.short_help = "iOAM pot statistics",
}

(constructor) VLIB_CLI_COMMAND (ip6_show_ioam_pot_cmd)

Definition at line 226 of file ip6_ioam_pot.c.

ip6_show_ioam_pot_cmd_fn
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:206
foreach_ip6_hop_by_hop_ioam_pot_stats
#define foreach_ip6_hop_by_hop_ioam_pot_stats
Definition: ip6_ioam_pot.c:27