Go to the source code of this file.
|
static u8 | fetch_trace_data_size (u8 trace_type) |
|
static u8 * | format_ioam_data_list_element (u8 *s, va_list *args) |
|
u8 * | ip6_hbh_ioam_trace_data_list_trace_handler (u8 *s, ip6_hop_by_hop_option_t *opt) |
|
int | ip6_hbh_ioam_trace_data_list_handler (vlib_buffer_t *b, ip6_header_t *ip, ip6_hop_by_hop_option_t *opt) |
|
int | ip6_hbh_add_register_option (u8 option, u8 size, int rewrite_options(u8 *rewrite_string, u8 rewrite_size)) |
|
int | ip6_hbh_add_unregister_option (u8 option) |
|
static u8 * | format_ip6_add_hop_by_hop_trace (u8 *s, va_list *args) |
|
static uword | ip6_add_hop_by_hop_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
static u8 * | format_ip6_pop_hop_by_hop_trace (u8 *s, va_list *args) |
|
int | ip6_hbh_pop_register_option (u8 option, int options(ip6_header_t *ip, ip6_hop_by_hop_option_t *opt)) |
|
int | ip6_hbh_pop_unregister_option (u8 option) |
|
static void | ioam_pop_hop_by_hop_processing (vlib_main_t *vm, ip6_header_t *ip0, ip6_hop_by_hop_header_t *hbh0) |
|
static uword | ip6_pop_hop_by_hop_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
| VLIB_NODE_FUNCTION_MULTIARCH (ip6_pop_hop_by_hop_node, ip6_pop_hop_by_hop_node_fn) |
|
int | ip6_ioam_set_rewrite (u8 **rwp, u32 trace_type, u32 trace_option_elts, int has_pot_option, int has_ppc_option) |
|
clib_error_t * | clear_ioam_rewrite_fn (void) |
|
clib_error_t * | clear_ioam_rewrite_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
clib_error_t * | ip6_ioam_trace_profile_set (u32 trace_option_elts, u32 trace_type, u32 node_id, u32 app_data, int has_pot_option, u32 trace_tsp, int has_ppc_option) |
|
static clib_error_t * | ip6_set_ioam_rewrite_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | ip6_show_ioam_summary_cmd_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
int | ip6_ioam_set_destination (ip6_address_t *addr, u32 mask_width, u32 vrf_id, int is_add, int is_pop, int is_none) |
|
static clib_error_t * | ip6_set_ioam_destination_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
void | vnet_register_ioam_end_of_path_callback (void *cb) |
|
#define foreach_ip6_add_hop_by_hop_error _(PROCESSED, "Pkts w/ added ip6 hop-by-hop options") |
#define foreach_ip6_hbyh_ioam_input_next |
Value:_(IP6_REWRITE, "ip6-rewrite") \
_(IP6_LOOKUP, "ip6-lookup") \
Definition at line 37 of file ip6_hop_by_hop.c.
#define foreach_ip6_pop_hop_by_hop_error |
Value:_(PROCESSED, "Pkts w/ removed ip6 hop-by-hop options") \
_(NO_HOHO, "Pkts w/ no ip6 hop-by-hop options") \
_(OPTION_FAILED, "ip6 pop hop-by-hop failed to process")
Definition at line 504 of file ip6_hop_by_hop.c.
static u8 fetch_trace_data_size |
( |
u8 |
trace_type | ) |
|
|
inlinestatic |
static u8* format_ioam_data_list_element |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
static u8* format_ip6_add_hop_by_hop_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
static u8* format_ip6_pop_hop_by_hop_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
int ip6_hbh_add_register_option |
( |
u8 |
option, |
|
|
u8 |
size, |
|
|
int |
rewrite_optionsu8 *rewrite_string, u8 rewrite_size |
|
) |
| |
int ip6_hbh_add_unregister_option |
( |
u8 |
option | ) |
|
int ip6_hbh_pop_register_option |
( |
u8 |
option, |
|
|
int |
optionsip6_header_t *ip, ip6_hop_by_hop_option_t *opt |
|
) |
| |
int ip6_hbh_pop_unregister_option |
( |
u8 |
option | ) |
|
int ip6_ioam_set_destination |
( |
ip6_address_t * |
addr, |
|
|
u32 |
mask_width, |
|
|
u32 |
vrf_id, |
|
|
int |
is_add, |
|
|
int |
is_pop, |
|
|
int |
is_none |
|
) |
| |
int ip6_ioam_set_rewrite |
( |
u8 ** |
rwp, |
|
|
u32 |
trace_type, |
|
|
u32 |
trace_option_elts, |
|
|
int |
has_pot_option, |
|
|
int |
has_ppc_option |
|
) |
| |
clib_error_t* ip6_ioam_trace_profile_set |
( |
u32 |
trace_option_elts, |
|
|
u32 |
trace_type, |
|
|
u32 |
node_id, |
|
|
u32 |
app_data, |
|
|
int |
has_pot_option, |
|
|
u32 |
trace_tsp, |
|
|
int |
has_ppc_option |
|
) |
| |
void vnet_register_ioam_end_of_path_callback |
( |
void * |
cb | ) |
|
char* ip6_add_hop_by_hop_error_strings[] |
|
static |
Initial value:= {
#define _(sym,string)
}
#define foreach_ip6_add_hop_by_hop_error
Definition at line 260 of file ip6_hop_by_hop.c.
Initial value:= {
.name = "ip6-add-hop-by-hop",
.vector_size =
sizeof (
u32),
.next_nodes = {
#define _(s,n)
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static u8 * format_ip6_add_hop_by_hop_trace(u8 *s, va_list *args)
static uword ip6_add_hop_by_hop_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static char * ip6_add_hop_by_hop_error_strings[]
#define foreach_ip6_hbyh_ioam_input_next
(constructor) VLIB_REGISTER_NODE (ip6_add_hop_by_hop_node)
Definition at line 248 of file ip6_hop_by_hop.c.
Initial value:= {
.path = "clear ioam rewrite",
.short_help = "clear ioam rewrite",
}
clib_error_t * clear_ioam_rewrite_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (ip6_clear_ioam_trace_cmd)
Definition at line 873 of file ip6_hop_by_hop.c.
char* ip6_pop_hop_by_hop_error_strings[] |
|
static |
Initial value:= {
#define _(sym,string)
}
#define foreach_ip6_pop_hop_by_hop_error
Definition at line 516 of file ip6_hop_by_hop.c.
Initial value:= {
.name = "ip6-pop-hop-by-hop",
.vector_size =
sizeof (
u32),
.sibling_of = "ip6-lookup",
.n_next_nodes = 0,
}
static uword ip6_pop_hop_by_hop_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static u8 * format_ip6_pop_hop_by_hop_trace(u8 *s, va_list *args)
static char * ip6_pop_hop_by_hop_error_strings[]
(constructor) VLIB_REGISTER_NODE (ip6_pop_hop_by_hop_node)
Definition at line 502 of file ip6_hop_by_hop.c.
Initial value:= {
.path = "set ioam destination",
.short_help = "set ioam destination <ip6-address>/<width> add | pop | none",
}
static clib_error_t * ip6_set_ioam_destination_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (ip6_set_ioam_destination_cmd)
Definition at line 1142 of file ip6_hop_by_hop.c.
Initial value:= {
.path = "set ioam rewrite",
.short_help = "set ioam rewrite trace-type <0x1f|0x3|0x9|0x11|0x19> trace-elts <nn> trace-tsp <0|1|2|3> node-id <node id in hex> app-data <app_data in hex> [pot] [ppc <encap|decap>]",
}
static clib_error_t * ip6_set_ioam_rewrite_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (ip6_set_ioam_rewrite_cmd)
Definition at line 948 of file ip6_hop_by_hop.c.
Initial value:= {
.path = "show ioam summary",
.short_help = "Summary of IOAM configuration",
}
static clib_error_t * ip6_show_ioam_summary_cmd_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (ip6_show_ioam_run_cmd)
Definition at line 1013 of file ip6_hop_by_hop.c.
char* ppc_state[] = {"None", "Encap", "Decap"} |
f64 trace_tsp_mul[4] = {1, 1e3, 1e6, 1e9} |
|
static |