FD.io VPP  v17.01-9-ge7dcee4
Vector Packet Processing
ip4_whitelist.c File Reference
+ Include dependency graph for ip4_whitelist.c:

Go to the source code of this file.

Data Structures

struct  ip4_cop_whitelist_trace_t
 

Macros

#define foreach_ip4_cop_whitelist_error   _(DROPPED, "ip4 cop whitelist packets dropped")
 

Enumerations

enum  ip4_cop_whitelist_error_t { IP4_COP_WHITELIST_N_ERROR }
 

Functions

static u8format_ip4_cop_whitelist_trace (u8 *s, va_list *args)
 
static uword ip4_cop_whitelist_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static clib_error_tip4_whitelist_init (vlib_main_t *vm)
 

Variables

vlib_node_registration_t ip4_cop_whitelist_node
 (constructor) VLIB_REGISTER_NODE (ip4_cop_whitelist_node) More...
 
static char * ip4_cop_whitelist_error_strings []
 

Macro Definition Documentation

#define foreach_ip4_cop_whitelist_error   _(DROPPED, "ip4 cop whitelist packets dropped")

Definition at line 38 of file ip4_whitelist.c.

Enumeration Type Documentation

Enumerator
IP4_COP_WHITELIST_N_ERROR 

Definition at line 41 of file ip4_whitelist.c.

Function Documentation

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

Definition at line 25 of file ip4_whitelist.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 55 of file ip4_whitelist.c.

+ Here is the call graph for this function:

static clib_error_t* ip4_whitelist_init ( vlib_main_t vm)
static

Definition at line 351 of file ip4_whitelist.c.

+ Here is the caller graph for this function:

Variable Documentation

char* ip4_cop_whitelist_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_ip4_cop_whitelist_error
Definition: ip4_whitelist.c:38

Definition at line 48 of file ip4_whitelist.c.

vlib_node_registration_t ip4_cop_whitelist_node
Initial value:
= {
.name = "ip4-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",
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static u8 * format_ip4_cop_whitelist_trace(u8 *s, va_list *args)
Definition: ip4_whitelist.c:25
static char * ip4_cop_whitelist_error_strings[]
Definition: ip4_whitelist.c:48
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static uword ip4_cop_whitelist_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip4_whitelist.c:55

(constructor) VLIB_REGISTER_NODE (ip4_cop_whitelist_node)

Definition at line 36 of file ip4_whitelist.c.