FD.io VPP  v16.06
Vector Packet Processing
sr.c File Reference
+ Include dependency graph for sr.c:

Go to the source code of this file.

Data Structures

struct  sr_rewrite_trace_t
 
struct  sr_fix_addr_trace_t
 
struct  sr_local_trace_t
 

Macros

#define foreach_sr_rewrite_next
 
#define sr_error(n, s)   s,
 
#define sr_error(n, s)   SR_REWRITE_ERROR_##n,
 
#define foreach_sr_fix_dst_addr_next   _(DROP, "error-drop")
 
#define sr_fix_dst_error(n, s)   s,
 
#define sr_fix_dst_error(n, s)   SR_FIX_DST_ERROR_##n,
 
#define foreach_sr_local_next
 
#define sr_error(n, s)   s,
 
#define sr_error(n, s)   SR_LOCAL_ERROR_##n,
 

Enumerations

enum  sr_rewrite_next_t { SR_REWRITE_N_NEXT }
 
enum  sr_rewrite_error_t { sr_error, sr_error }
 
enum  sr_fix_dst_addr_next_t { SR_FIX_DST_ADDR_N_NEXT }
 
enum  sr_fix_dst_error_t { sr_fix_dst_error, sr_fix_dst_error }
 
enum  sr_local_next_t { SR_LOCAL_N_NEXT }
 
enum  sr_local_error_t { sr_error, sr_error }
 

Functions

void sr_fix_hmac (ip6_sr_main_t *sm, ip6_header_t *ip, ip6_sr_header_t *sr)
 
u8format_ip6_sr_header_flags (u8 *s, va_list *args)
 
u8format_ip6_sr_header (u8 *s, va_list *args)
 
u8format_ip6_sr_header_with_length (u8 *s, va_list *args)
 
u8format_sr_rewrite_trace (u8 *s, va_list *args)
 
static uword sr_rewrite (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static int ip6_delete_route_no_next_hop (ip6_address_t *dst_address_arg, u32 dst_address_length, u32 rx_table_id)
 
static ip6_sr_hmac_key_tfind_or_add_shared_secret (ip6_sr_main_t *sm, u8 *secret, u32 *indexp)
 
int ip6_sr_add_del_tunnel (ip6_sr_add_del_tunnel_args_t *a)
 
static clib_error_tsr_add_del_tunnel_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
void ip6_sr_tunnel_display (vlib_main_t *vm, ip6_sr_tunnel_t *t)
 
static clib_error_tshow_sr_tunnel_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
int ip6_sr_add_del_policy (ip6_sr_add_del_policy_args_t *a)
 
static clib_error_tsr_add_del_policy_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_sr_policy_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
int ip6_sr_add_del_multicastmap (ip6_sr_add_del_multicastmap_args_t *a)
 
static clib_error_tsr_add_del_multicast_map_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_sr_multicast_map_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
u8format_sr_fix_addr_trace (u8 *s, va_list *args)
 
static uword sr_fix_dst_addr (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static clib_error_tsr_init (vlib_main_t *vm)
 
u8format_sr_local_trace (u8 *s, va_list *args)
 
static int sr_validate_hmac (ip6_sr_main_t *sm, ip6_header_t *ip, ip6_sr_header_t *sr)
 
static uword sr_local (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
ip6_sr_main_tsr_get_main (vlib_main_t *vm)
 
static clib_error_tset_ip6_sr_rewrite_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
void vnet_register_sr_app_callback (void *cb)
 
static clib_error_ttest_sr_hmac_validate_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
i32 sr_hmac_add_del_key (ip6_sr_main_t *sm, u32 key_id, u8 *shared_secret, u8 is_del)
 
static clib_error_tsr_hmac_add_del_key_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_sr_hmac_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_ttest_sr_debug_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

ip6_sr_main_t sr_main
 
static vlib_node_registration_t sr_local_node
 (constructor) VLIB_REGISTER_NODE (sr_local_node) More...
 
static char * sr_rewrite_error_strings []
 
vlib_node_registration_t sr_rewrite_node
 (constructor) VLIB_REGISTER_NODE (sr_rewrite_node) More...
 
vlib_cli_command_t sr_tunnel_command
 (constructor) VLIB_CLI_COMMAND (sr_tunnel_command) More...
 
vlib_cli_command_t show_sr_tunnel_command
 (constructor) VLIB_CLI_COMMAND (show_sr_tunnel_command) More...
 
vlib_cli_command_t sr_policy_command
 (constructor) VLIB_CLI_COMMAND (sr_policy_command) More...
 
vlib_cli_command_t show_sr_policy_command
 (constructor) VLIB_CLI_COMMAND (show_sr_policy_command) More...
 
vlib_cli_command_t sr_multicast_map_command
 (constructor) VLIB_CLI_COMMAND (sr_multicast_map_command) More...
 
vlib_cli_command_t show_sr_multicast_map_command
 (constructor) VLIB_CLI_COMMAND (show_sr_multicast_map_command) More...
 
static char * sr_fix_dst_error_strings []
 
vlib_node_registration_t sr_fix_dst_addr_node
 (constructor) VLIB_REGISTER_NODE (sr_fix_dst_addr_node) More...
 
static char * sr_local_error_strings []
 
vlib_cli_command_t set_ip6_sr_rewrite
 (constructor) VLIB_CLI_COMMAND (set_ip6_sr_rewrite) More...
 
vlib_cli_command_t test_sr_hmac_validate
 (constructor) VLIB_CLI_COMMAND (test_sr_hmac_validate) More...
 
vlib_cli_command_t sr_hmac
 (constructor) VLIB_CLI_COMMAND (sr_hmac) More...
 
vlib_cli_command_t show_sr_hmac
 (constructor) VLIB_CLI_COMMAND (show_sr_hmac) More...
 
vlib_cli_command_t test_sr_debug
 (constructor) VLIB_CLI_COMMAND (test_sr_debug) More...
 

Macro Definition Documentation

#define foreach_sr_fix_dst_addr_next   _(DROP, "error-drop")

Definition at line 1715 of file sr.c.

#define foreach_sr_local_next
Value:
_ (ERROR, "error-drop") \
_ (IP6_LOOKUP, "ip6-lookup")

Definition at line 2027 of file sr.c.

#define foreach_sr_rewrite_next
Value:
_(ERROR, "error-drop") \
_(IP6_LOOKUP, "ip6-lookup") \
_(SR_LOCAL, "sr-local")

Definition at line 211 of file sr.c.

#define sr_error (   n,
 
)    s,

Definition at line 2053 of file sr.c.

#define sr_error (   n,
 
)    SR_REWRITE_ERROR_##n,

Definition at line 2053 of file sr.c.

#define sr_error (   n,
 
)    s,

Definition at line 2053 of file sr.c.

#define sr_error (   n,
 
)    SR_LOCAL_ERROR_##n,

Definition at line 2053 of file sr.c.

#define sr_fix_dst_error (   n,
 
)    s,

Definition at line 1732 of file sr.c.

#define sr_fix_dst_error (   n,
 
)    SR_FIX_DST_ERROR_##n,

Definition at line 1732 of file sr.c.

Enumeration Type Documentation

Enumerator
SR_FIX_DST_ADDR_N_NEXT 

Definition at line 1718 of file sr.c.

Enumerator
sr_fix_dst_error 
sr_fix_dst_error 

Definition at line 1731 of file sr.c.

Enumerator
sr_error 
sr_error 

Definition at line 2052 of file sr.c.

Enumerator
SR_LOCAL_N_NEXT 

Definition at line 2031 of file sr.c.

Enumerator
sr_error 
sr_error 

Definition at line 238 of file sr.c.

Enumerator
SR_REWRITE_N_NEXT 

Definition at line 217 of file sr.c.

Function Documentation

static ip6_sr_hmac_key_t* find_or_add_shared_secret ( ip6_sr_main_t sm,
u8 secret,
u32 indexp 
)
static

Definition at line 693 of file sr.c.

+ Here is the caller graph for this function:

u8* format_ip6_sr_header ( u8 s,
va_list *  args 
)

Definition at line 137 of file sr.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_ip6_sr_header_flags ( u8 s,
va_list *  args 
)

Definition at line 95 of file sr.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_ip6_sr_header_with_length ( u8 s,
va_list *  args 
)

Definition at line 188 of file sr.c.

+ Here is the call graph for this function:

u8* format_sr_fix_addr_trace ( u8 s,
va_list *  args 
)

Definition at line 1745 of file sr.c.

u8* format_sr_local_trace ( u8 s,
va_list *  args 
)

Definition at line 2059 of file sr.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_sr_rewrite_trace ( u8 s,
va_list *  args 
)

Definition at line 246 of file sr.c.

static int ip6_delete_route_no_next_hop ( ip6_address_t dst_address_arg,
u32  dst_address_length,
u32  rx_table_id 
)
static

Definition at line 651 of file sr.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ip6_sr_add_del_multicastmap ( ip6_sr_add_del_multicastmap_args_t a)

Definition at line 1503 of file sr.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ip6_sr_add_del_policy ( ip6_sr_add_del_policy_args_t a)

Definition at line 1287 of file sr.c.

+ Here is the caller graph for this function:

int ip6_sr_add_del_tunnel ( ip6_sr_add_del_tunnel_args_t a)

Definition at line 740 of file sr.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ip6_sr_tunnel_display ( vlib_main_t vm,
ip6_sr_tunnel_t t 
)

Definition at line 1197 of file sr.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 2605 of file sr.c.

+ Here is the call graph for this function:

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

Definition at line 2798 of file sr.c.

+ Here is the call graph for this function:

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

Definition at line 1670 of file sr.c.

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

Definition at line 1438 of file sr.c.

+ Here is the call graph for this function:

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

Definition at line 1234 of file sr.c.

+ Here is the call graph for this function:

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

Definition at line 1596 of file sr.c.

+ Here is the call graph for this function:

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

Definition at line 1360 of file sr.c.

+ Here is the call graph for this function:

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

Definition at line 1029 of file sr.c.

+ Here is the call graph for this function:

static uword sr_fix_dst_addr ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 1777 of file sr.c.

+ Here is the call graph for this function:

void sr_fix_hmac ( ip6_sr_main_t sm,
ip6_header_t ip,
ip6_sr_header_t sr 
)

Definition at line 26 of file sr.c.

+ Here is the caller graph for this function:

ip6_sr_main_t* sr_get_main ( vlib_main_t vm)

Definition at line 2596 of file sr.c.

+ Here is the call graph for this function:

i32 sr_hmac_add_del_key ( ip6_sr_main_t sm,
u32  key_id,
u8 shared_secret,
u8  is_del 
)

Definition at line 2699 of file sr.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 2741 of file sr.c.

+ Here is the call graph for this function:

static clib_error_t* sr_init ( vlib_main_t vm)
static

Definition at line 1947 of file sr.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword sr_local ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 2171 of file sr.c.

+ Here is the call graph for this function:

static uword sr_rewrite ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 275 of file sr.c.

+ Here is the call graph for this function:

static int sr_validate_hmac ( ip6_sr_main_t sm,
ip6_header_t ip,
ip6_sr_header_t sr 
)
static

Definition at line 2079 of file sr.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 2821 of file sr.c.

+ Here is the call graph for this function:

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

Definition at line 2673 of file sr.c.

+ Here is the call graph for this function:

void vnet_register_sr_app_callback ( void cb)

Definition at line 2665 of file sr.c.

Variable Documentation

vlib_cli_command_t set_ip6_sr_rewrite
Initial value:
= {
.path = "set ip6 sr rewrite",
.short_help = "set ip6 sr rewrite <ip6-address> [fib-id <id>]",
.function = set_ip6_sr_rewrite_fn,
}
static clib_error_t * set_ip6_sr_rewrite_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: sr.c:2605

(constructor) VLIB_CLI_COMMAND (set_ip6_sr_rewrite)

Definition at line 2659 of file sr.c.

vlib_cli_command_t show_sr_hmac
Initial value:
= {
.path = "show sr hmac",
.short_help = "show sr hmac",
.function = show_sr_hmac_fn,
}
static clib_error_t * show_sr_hmac_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: sr.c:2798

(constructor) VLIB_CLI_COMMAND (show_sr_hmac)

Definition at line 2814 of file sr.c.

vlib_cli_command_t show_sr_multicast_map_command
Initial value:
= {
.path = "show sr multicast-map",
.short_help = "show sr multicast-map",
}
static clib_error_t * show_sr_multicast_map_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: sr.c:1670

(constructor) VLIB_CLI_COMMAND (show_sr_multicast_map_command)

Definition at line 1708 of file sr.c.

vlib_cli_command_t show_sr_policy_command
Initial value:
= {
.path = "show sr policy",
.short_help = "show sr policy [name <sr-policy-name>]",
.function = show_sr_policy_fn,
}
static clib_error_t * show_sr_policy_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: sr.c:1438

(constructor) VLIB_CLI_COMMAND (show_sr_policy_command)

Definition at line 1497 of file sr.c.

vlib_cli_command_t show_sr_tunnel_command
Initial value:
= {
.path = "show sr tunnel",
.short_help = "show sr tunnel [name <sr-tunnel-name>]",
.function = show_sr_tunnel_fn,
}
static clib_error_t * show_sr_tunnel_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: sr.c:1234

(constructor) VLIB_CLI_COMMAND (show_sr_tunnel_command)

Definition at line 1281 of file sr.c.

vlib_node_registration_t sr_fix_dst_addr_node
Initial value:
= {
.function = sr_fix_dst_addr,
.name = "sr-fix-dst-addr",
.vector_size = sizeof (u32),
.format_trace = format_sr_fix_addr_trace,
.runtime_data_bytes = 0,
.n_errors = SR_FIX_DST_N_ERROR,
.error_strings = sr_fix_dst_error_strings,
.n_next_nodes = SR_FIX_DST_ADDR_N_NEXT,
.next_nodes = {
#define _(s,n)
},
}
static char * sr_fix_dst_error_strings[]
Definition: sr.c:1725
u8 * format_sr_fix_addr_trace(u8 *s, va_list *args)
Definition: sr.c:1745
u8 * format_ip6_sr_header_with_length(u8 *s, va_list *args)
Definition: sr.c:188
unsigned int u32
Definition: types.h:88
static uword sr_fix_dst_addr(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: sr.c:1777
#define foreach_sr_fix_dst_addr_next
Definition: sr.c:1715

(constructor) VLIB_REGISTER_NODE (sr_fix_dst_addr_node)

Definition at line 1926 of file sr.c.

char* sr_fix_dst_error_strings[]
static
Initial value:
= {
#define sr_fix_dst_error(n,s)
sr_fix_dst_error (NONE, "no error")
sr_fix_dst_error (NO_SR_HEADER, "no SR header present")
sr_fix_dst_error (NO_MORE_SEGMENTS, "no more SR segments")
}
#define sr_fix_dst_error(n, s)
Definition: sr.c:1732

Definition at line 1725 of file sr.c.

Initial value:
= {
.path = "sr hmac",
.short_help = "sr hmac [del] id <nn> key <str>",
}
static clib_error_t * sr_hmac_add_del_key_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: sr.c:2741

(constructor) VLIB_CLI_COMMAND (sr_hmac)

Definition at line 2790 of file sr.c.

char* sr_local_error_strings[]
static
Initial value:
= {
#define sr_error(n,s)
sr_error (NONE, "no error")
sr_error (BAD_ROUTING_HEADER_TYPE, "bad routing header type (not 4)")
sr_error (NO_MORE_SEGMENTS, "out of SR segment drops")
sr_error (PKTS_PROCESSED, "SR packets processed")
sr_error (APP_CALLBACK, "SR application callback errors")
sr_error (HMAC_INVALID, "SR packets with invalid HMAC signatures")
}
#define sr_error(n, s)
Definition: sr.c:2053
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS

Definition at line 2046 of file sr.c.

vlib_node_registration_t sr_local_node
static
Initial value:
= {
.function = sr_local,
.name = "sr-local",
.vector_size = sizeof (u32),
.format_trace = format_sr_local_trace,
.runtime_data_bytes = 0,
.n_errors = SR_LOCAL_N_ERROR,
.error_strings = sr_local_error_strings,
.n_next_nodes = SR_LOCAL_N_NEXT,
.next_nodes = {
#define _(s,n)
},
}
static uword sr_local(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: sr.c:2171
static char * sr_local_error_strings[]
Definition: sr.c:2046
unsigned int u32
Definition: types.h:88
#define foreach_sr_local_next
Definition: sr.c:2027
u8 * format_sr_local_trace(u8 *s, va_list *args)
Definition: sr.c:2059

(constructor) VLIB_REGISTER_NODE (sr_local_node)

Definition at line 24 of file sr.c.

ip6_sr_main_t sr_main

Definition at line 23 of file sr.c.

vlib_cli_command_t sr_multicast_map_command
Initial value:
= {
.path = "sr multicast-map",
.short_help =
"sr multicast-map address <multicast-ip6-address> sr-policy <sr-policy-name> [del]",
}
static clib_error_t * sr_add_del_multicast_map_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: sr.c:1596

(constructor) VLIB_CLI_COMMAND (sr_multicast_map_command)

Definition at line 1662 of file sr.c.

vlib_cli_command_t sr_policy_command
Initial value:
= {
.path = "sr policy",
.short_help =
"sr policy [del] name <policy-name> tunnel <sr-tunnel-name> [tunnel <sr-tunnel-name>]*",
}
static clib_error_t * sr_add_del_policy_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: sr.c:1360

(constructor) VLIB_CLI_COMMAND (sr_policy_command)

Definition at line 1430 of file sr.c.

char* sr_rewrite_error_strings[]
static
Initial value:
= {
#define sr_error(n,s)
sr_error (NONE, "no error")
sr_error (BAD_ROUTING_HEADER_TYPE, "bad routing header type (not 4)")
sr_error (NO_MORE_SEGMENTS, "out of SR segment drops")
sr_error (PKTS_PROCESSED, "SR packets processed")
sr_error (APP_CALLBACK, "SR application callback errors")
sr_error (HMAC_INVALID, "SR packets with invalid HMAC signatures")
}
#define sr_error(n, s)
Definition: sr.c:2053
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS

Definition at line 232 of file sr.c.

vlib_node_registration_t sr_rewrite_node
Initial value:
= {
.function = sr_rewrite,
.name = "sr-rewrite",
.vector_size = sizeof (u32),
.format_trace = format_sr_rewrite_trace,
.n_errors = SR_REWRITE_N_ERROR,
.error_strings = sr_rewrite_error_strings,
.runtime_data_bytes = 0,
.n_next_nodes = SR_REWRITE_N_NEXT,
.next_nodes = {
#define _(s,n)
},
}
static char * sr_rewrite_error_strings[]
Definition: sr.c:232
u8 * format_sr_rewrite_trace(u8 *s, va_list *args)
Definition: sr.c:246
static uword sr_rewrite(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: sr.c:275
#define foreach_sr_rewrite_next
Definition: sr.c:211
u8 * format_ip6_sr_header_with_length(u8 *s, va_list *args)
Definition: sr.c:188
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (sr_rewrite_node)

Definition at line 630 of file sr.c.

vlib_cli_command_t sr_tunnel_command
Initial value:
= {
.path = "sr tunnel",
.short_help =
"sr tunnel [del] [name <name>] src <addr> dst <addr> [next <addr>] "
"[clean] [reroute] [key <secret>] [policy <policy_name>]"
"[rx-fib-id <fib_id>] [tx-fib-id <fib_id>]",
}
static clib_error_t * sr_add_del_tunnel_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: sr.c:1029

(constructor) VLIB_CLI_COMMAND (sr_tunnel_command)

Definition at line 1187 of file sr.c.

vlib_cli_command_t test_sr_debug
Initial value:
= {
.path = "test sr debug",
.short_help = "test sr debug on|off",
.function = test_sr_debug_fn,
}
static clib_error_t * test_sr_debug_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: sr.c:2821

(constructor) VLIB_CLI_COMMAND (test_sr_debug)

Definition at line 2840 of file sr.c.

vlib_cli_command_t test_sr_hmac_validate
Initial value:
= {
.path = "test sr hmac",
.short_help = "test sr hmac validate [on|off]",
}
static clib_error_t * test_sr_hmac_validate_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: sr.c:2673

(constructor) VLIB_CLI_COMMAND (test_sr_hmac_validate)

Definition at line 2693 of file sr.c.