FD.io VPP  v17.01.1-3-gc6833f8
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 PROFILE_ID_MASK   0xF
 
#define foreach_ip6_hop_by_hop_ioam_pot_stats
 

Enumerations

enum  ip6_ioam_pot_stats_t { IP6_IOAM_POT_N_STATS }
 

Functions

typedef CLIB_PACKED (struct{ip6_hop_by_hop_option_t hdr;u8 pot_type;#define PROFILE_ID_MASK u8 reserved_profile_id;u64 random;u64 cumulative;})
 
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

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")
#define PROFILE_ID_MASK   0xF

Enumeration Type Documentation

Enumerator
IP6_IOAM_POT_N_STATS 

Definition at line 51 of file ip6_ioam_pot.c.

Function Documentation

typedef CLIB_PACKED ( struct{ip6_hop_by_hop_option_t hdr;u8 pot_type;#define PROFILE_ID_MASK u8 reserved_profile_id;u64 random;u64 cumulative;}  )

Definition at line 30 of file ip6_ioam_pot.c.

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

Definition at line 78 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 106 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 174 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 95 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 246 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 202 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 70 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 218 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 67 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:218

(constructor) VLIB_CLI_COMMAND (ip6_show_ioam_pot_cmd)

Definition at line 238 of file ip6_ioam_pot.c.