FD.io VPP  v18.10-34-gcce845e
Vector Packet Processing
ip6_punt_drop.c File Reference
+ Include dependency graph for ip6_punt_drop.c:

Go to the source code of this file.

Macros

#define foreach_ip6_punt_redirect_error   _(DROP, "ip6 punt redirect drop")
 

Enumerations

enum  ip6_punt_redirect_error_t { IP6_PUNT_REDIRECT_N_ERROR }
 

Functions

 VNET_FEATURE_ARC_INIT (ip6_punt)
 
 VNET_FEATURE_ARC_INIT (ip6_drop)
 
static uword ip6_punt_policer (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (ip6_punt_policer_node, ip6_punt_policer)
 
 VNET_FEATURE_INIT (ip6_punt_policer_node, static)
 
static uword ip6_drop (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword ip6_not_enabled (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword ip6_punt (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (ip6_drop_node, ip6_drop)
 
 VLIB_NODE_FUNCTION_MULTIARCH (ip6_not_enabled_node, ip6_not_enabled)
 
 VLIB_NODE_FUNCTION_MULTIARCH (ip6_punt_node, ip6_punt)
 
 VNET_FEATURE_INIT (ip6_punt_end_of_arc, static)
 
 VNET_FEATURE_INIT (ip6_drop_end_of_arc, static)
 
void ip6_punt_policer_add_del (u8 is_add, u32 policer_index)
 
static clib_error_tip6_punt_police_cmd (vlib_main_t *vm, unformat_input_t *main_input, vlib_cli_command_t *cmd)
 
static uword ip6_punt_redirect (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (ip6_punt_redirect_node, ip6_punt_redirect)
 
 VNET_FEATURE_INIT (ip6_punt_redirect_node, static)
 
void ip6_punt_redirect_add (u32 rx_sw_if_index, u32 tx_sw_if_index, ip46_address_t *nh)
 
void ip6_punt_redirect_del (u32 rx_sw_if_index)
 
static clib_error_tip6_punt_redirect_cmd (vlib_main_t *vm, unformat_input_t *main_input, vlib_cli_command_t *cmd)
 
static clib_error_tip6_punt_redirect_show_cmd (vlib_main_t *vm, unformat_input_t *main_input, vlib_cli_command_t *cmd)
 

Variables

ip_punt_policer_t ip6_punt_policer_cfg
 
static char * ip6_punt_policer_error_strings []
 
static vlib_node_registration_t ip6_punt_policer_node
 (constructor) VLIB_REGISTER_NODE (ip6_punt_policer_node) More...
 
static vlib_node_registration_t ip6_drop_node
 (constructor) VLIB_REGISTER_NODE (ip6_drop_node) More...
 
static vlib_node_registration_t ip6_not_enabled_node
 (constructor) VLIB_REGISTER_NODE (ip6_not_enabled_node) More...
 
static vlib_node_registration_t ip6_punt_node
 (constructor) VLIB_REGISTER_NODE (ip6_punt_node) More...
 
static vlib_cli_command_t ip6_punt_policer_command
 (constructor) VLIB_CLI_COMMAND (ip6_punt_policer_command) More...
 
ip_punt_redirect_t ip6_punt_redirect_cfg
 
static char * ip6_punt_redirect_error_strings []
 
static vlib_node_registration_t ip6_punt_redirect_node
 (constructor) VLIB_REGISTER_NODE (ip6_punt_redirect_node) More...
 
static vlib_cli_command_t ip6_punt_redirect_command
 (constructor) VLIB_CLI_COMMAND (ip6_punt_redirect_command) More...
 
static vlib_cli_command_t show_ip6_punt_redirect_command
 (constructor) VLIB_CLI_COMMAND (show_ip6_punt_redirect_command) More...
 

Macro Definition Documentation

#define foreach_ip6_punt_redirect_error   _(DROP, "ip6 punt redirect drop")

Definition at line 246 of file ip6_punt_drop.c.

Enumeration Type Documentation

Enumerator
IP6_PUNT_REDIRECT_N_ERROR 

Definition at line 249 of file ip6_punt_drop.c.

Function Documentation

static uword ip6_drop ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 81 of file ip6_punt_drop.c.

+ Here is the call graph for this function:

static uword ip6_not_enabled ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 92 of file ip6_punt_drop.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword ip6_punt ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 104 of file ip6_punt_drop.c.

+ Here is the call graph for this function:

static clib_error_t* ip6_punt_police_cmd ( vlib_main_t vm,
unformat_input_t main_input,
vlib_cli_command_t cmd 
)
static

Definition at line 179 of file ip6_punt_drop.c.

+ Here is the call graph for this function:

static uword ip6_punt_policer ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 44 of file ip6_punt_drop.c.

+ Here is the call graph for this function:

void ip6_punt_policer_add_del ( u8  is_add,
u32  policer_index 
)

Definition at line 170 of file ip6_punt_drop.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword ip6_punt_redirect ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 264 of file ip6_punt_drop.c.

+ Here is the call graph for this function:

void ip6_punt_redirect_add ( u32  rx_sw_if_index,
u32  tx_sw_if_index,
ip46_address_t *  nh 
)

Definition at line 301 of file ip6_punt_drop.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* ip6_punt_redirect_cmd ( vlib_main_t vm,
unformat_input_t main_input,
vlib_cli_command_t cmd 
)
static

Definition at line 324 of file ip6_punt_drop.c.

+ Here is the call graph for this function:

void ip6_punt_redirect_del ( u32  rx_sw_if_index)

Definition at line 316 of file ip6_punt_drop.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* ip6_punt_redirect_show_cmd ( vlib_main_t vm,
unformat_input_t main_input,
vlib_cli_command_t cmd 
)
static

Definition at line 403 of file ip6_punt_drop.c.

+ Here is the call graph for this function:

VLIB_NODE_FUNCTION_MULTIARCH ( ip6_punt_policer_node  ,
ip6_punt_policer   
)
VLIB_NODE_FUNCTION_MULTIARCH ( ip6_drop_node  ,
ip6_drop   
)
VLIB_NODE_FUNCTION_MULTIARCH ( ip6_not_enabled_node  ,
ip6_not_enabled   
)
VLIB_NODE_FUNCTION_MULTIARCH ( ip6_punt_node  ,
ip6_punt   
)
VLIB_NODE_FUNCTION_MULTIARCH ( ip6_punt_redirect_node  ,
ip6_punt_redirect   
)
VNET_FEATURE_ARC_INIT ( ip6_punt  )
VNET_FEATURE_ARC_INIT ( ip6_drop  )
VNET_FEATURE_INIT ( ip6_punt_policer_node  ,
static   
)
VNET_FEATURE_INIT ( ip6_punt_end_of_arc  ,
static   
)
VNET_FEATURE_INIT ( ip6_drop_end_of_arc  ,
static   
)
VNET_FEATURE_INIT ( ip6_punt_redirect_node  ,
static   
)

Variable Documentation

vlib_node_registration_t ip6_drop_node
static
Initial value:
=
{
.function = ip6_drop,
.name = "ip6-drop",
.vector_size = sizeof (u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
unsigned int u32
Definition: types.h:88
static uword ip6_drop(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip6_punt_drop.c:81
u8 * format_ip6_forward_next_trace(u8 *s, va_list *args)
Definition: ip6_forward.c:768

(constructor) VLIB_REGISTER_NODE (ip6_drop_node)

Definition at line 114 of file ip6_punt_drop.c.

vlib_node_registration_t ip6_not_enabled_node
static
Initial value:
=
{
.function = ip6_not_enabled,
.name = "ip6-not-enabled",
.vector_size = sizeof (u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
unsigned int u32
Definition: types.h:88
static uword ip6_not_enabled(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip6_punt_drop.c:92
u8 * format_ip6_forward_next_trace(u8 *s, va_list *args)
Definition: ip6_forward.c:768

(constructor) VLIB_REGISTER_NODE (ip6_not_enabled_node)

Definition at line 128 of file ip6_punt_drop.c.

vlib_node_registration_t ip6_punt_node
static
Initial value:
=
{
.function = ip6_punt,
.name = "ip6-punt",
.vector_size = sizeof (u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-punt",
},
}
static uword ip6_punt(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
unsigned int u32
Definition: types.h:88
u8 * format_ip6_forward_next_trace(u8 *s, va_list *args)
Definition: ip6_forward.c:768

(constructor) VLIB_REGISTER_NODE (ip6_punt_node)

Definition at line 142 of file ip6_punt_drop.c.

ip_punt_policer_t ip6_punt_policer_cfg

Definition at line 35 of file ip6_punt_drop.c.

vlib_cli_command_t ip6_punt_policer_command
static
Initial value:
=
{
.path = "ip6 punt policer",
.function = ip6_punt_police_cmd,
.short_help = "ip6 punt policer [add|del] <index>",
}
static clib_error_t * ip6_punt_police_cmd(vlib_main_t *vm, unformat_input_t *main_input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (ip6_punt_policer_command)

Definition at line 230 of file ip6_punt_drop.c.

char* ip6_punt_policer_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_ip_punt_policer_error
Definition: ip_punt_drop.h:44

Definition at line 37 of file ip6_punt_drop.c.

vlib_node_registration_t ip6_punt_policer_node
static
Initial value:
= {
.function = ip6_punt_policer,
.name = "ip6-punt-policer",
.vector_size = sizeof (u32),
.n_next_nodes = IP_PUNT_POLICER_N_NEXT,
.next_nodes = {
[IP_PUNT_POLICER_NEXT_DROP] = "ip6-drop",
},
}
static uword ip6_punt_policer(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip6_punt_drop.c:44
static char * ip6_punt_policer_error_strings[]
Definition: ip6_punt_drop.c:37
unsigned int u32
Definition: types.h:88
u8 * format_ip_punt_policer_trace(u8 *s, va_list *args)
Definition: ip4_punt_drop.c:36
#define ARRAY_LEN(x)
Definition: clib.h:61

(constructor) VLIB_REGISTER_NODE (ip6_punt_policer_node)

Definition at line 55 of file ip6_punt_drop.c.

ip_punt_redirect_t ip6_punt_redirect_cfg
Initial value:
= {
.any_rx_sw_if_index = {
.tx_sw_if_index = ~0,
.adj_index = ADJ_INDEX_INVALID,
},
}
#define ADJ_INDEX_INVALID
Invalid ADJ index - used when no adj is known likewise blazoned capitals INVALID speak volumes where ...
Definition: adj_types.h:36

Definition at line 238 of file ip6_punt_drop.c.

vlib_cli_command_t ip6_punt_redirect_command
static
Initial value:
=
{
.path = "ip6 punt redirect",
.function = ip6_punt_redirect_cmd,
.short_help = "ip6 punt redirect [add|del] rx [<interface>|all] via [<nh>] <tx_interface>",
}
static clib_error_t * ip6_punt_redirect_cmd(vlib_main_t *vm, unformat_input_t *main_input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (ip6_punt_redirect_command)

Definition at line 394 of file ip6_punt_drop.c.

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

Definition at line 257 of file ip6_punt_drop.c.

vlib_node_registration_t ip6_punt_redirect_node
static
Initial value:
= {
.function = ip6_punt_redirect,
.name = "ip6-punt-redirect",
.vector_size = sizeof (u32),
.n_next_nodes = IP_PUNT_REDIRECT_N_NEXT,
.next_nodes = {
[IP_PUNT_REDIRECT_NEXT_TX] = "ip6-rewrite",
[IP_PUNT_REDIRECT_NEXT_ARP] = "ip6-discover-neighbor",
},
}
u8 * format_ip_punt_redirect_trace(u8 *s, va_list *args)
Definition: ip4_punt_drop.c:91
unsigned int u32
Definition: types.h:88
static uword ip6_punt_redirect(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
#define ARRAY_LEN(x)
Definition: clib.h:61
static char * ip6_punt_redirect_error_strings[]

(constructor) VLIB_REGISTER_NODE (ip6_punt_redirect_node)

Definition at line 273 of file ip6_punt_drop.c.

vlib_cli_command_t show_ip6_punt_redirect_command
static
Initial value:
=
{
.path = "show ip6 punt redirect",
.short_help = "show ip6 punt redirect",
.is_mp_safe = 1,
}
static clib_error_t * ip6_punt_redirect_show_cmd(vlib_main_t *vm, unformat_input_t *main_input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (show_ip6_punt_redirect_command)

Definition at line 418 of file ip6_punt_drop.c.