FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
ip6_whitelist.c File Reference
+ Include dependency graph for ip6_whitelist.c:

Go to the source code of this file.

Data Structures

struct  ip6_cop_whitelist_trace_t
 

Macros

#define foreach_ip6_cop_whitelist_error   _(DROPPED, "ip6 cop whitelist packets dropped")
 

Enumerations

enum  ip6_cop_whitelist_error_t { IP6_COP_WHITELIST_N_ERROR }
 

Functions

static u8format_ip6_cop_whitelist_trace (u8 *s, va_list *args)
 
VLIB_NODE_FN() ip6_cop_whitelist_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static clib_error_tip6_whitelist_init (vlib_main_t *vm)
 

Variables

static char * ip6_cop_whitelist_error_strings []
 
vlib_node_registration_t ip6_cop_whitelist_node
 (constructor) VLIB_REGISTER_NODE (ip6_cop_whitelist_node) More...
 

Macro Definition Documentation

◆ foreach_ip6_cop_whitelist_error

#define foreach_ip6_cop_whitelist_error   _(DROPPED, "ip6 cop whitelist packets dropped")

Definition at line 36 of file ip6_whitelist.c.

Enumeration Type Documentation

◆ ip6_cop_whitelist_error_t

Enumerator
IP6_COP_WHITELIST_N_ERROR 

Definition at line 39 of file ip6_whitelist.c.

Function Documentation

◆ format_ip6_cop_whitelist_trace()

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

Definition at line 25 of file ip6_whitelist.c.

+ Here is the call graph for this function:

◆ ip6_cop_whitelist_node()

VLIB_NODE_FN() ip6_cop_whitelist_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 52 of file ip6_whitelist.c.

+ Here is the call graph for this function:

◆ ip6_whitelist_init()

static clib_error_t* ip6_whitelist_init ( vlib_main_t vm)
static

Definition at line 286 of file ip6_whitelist.c.

Variable Documentation

◆ ip6_cop_whitelist_error_strings

char* ip6_cop_whitelist_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_ip6_cop_whitelist_error
Definition: ip6_whitelist.c:36

Definition at line 46 of file ip6_whitelist.c.

◆ ip6_cop_whitelist_node

vlib_node_registration_t ip6_cop_whitelist_node
Initial value:
= {
.name = "ip6-cop-whitelist",
.vector_size = sizeof (u32),
.n_next_nodes = COP_RX_N_FEATURES,
.next_nodes = {
[IP4_RX_COP_WHITELIST] = "ip4-cop-whitelist",
[IP6_RX_COP_WHITELIST] = "ip6-cop-whitelist",
[DEFAULT_RX_COP_WHITELIST] = "default-cop-whitelist",
[IP4_RX_COP_INPUT] = "ip4-input",
[IP6_RX_COP_INPUT] = "ip6-input",
[DEFAULT_RX_COP_INPUT] = "ethernet-input",
[RX_COP_DROP] = "error-drop",
},
}
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static char * ip6_cop_whitelist_error_strings[]
Definition: ip6_whitelist.c:46
#define ARRAY_LEN(x)
Definition: clib.h:63
static u8 * format_ip6_cop_whitelist_trace(u8 *s, va_list *args)
Definition: ip6_whitelist.c:25

(constructor) VLIB_REGISTER_NODE (ip6_cop_whitelist_node)

Definition at line 262 of file ip6_whitelist.c.