FD.io VPP  v18.07-rc0-415-g6c78436
Vector Packet Processing
node1.c File Reference
+ Include dependency graph for node1.c:

Go to the source code of this file.

Data Structures

struct  cop_input_trace_t
 

Macros

#define foreach_cop_input_error   _(PROCESSED, "COP input packets processed")
 
#define foreach_cop_stub   _(default-cop-whitelist, default_cop_whitelist)
 

Enumerations

enum  cop_input_error_t { COP_INPUT_N_ERROR }
 

Functions

static u8format_cop_input_trace (u8 *s, va_list *args)
 
static uword cop_input_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

vlib_node_registration_t cop_input_node
 (constructor) VLIB_REGISTER_NODE (cop_input_node) More...
 
static char * cop_input_error_strings []
 
 foreach_cop_stub
 

Macro Definition Documentation

#define foreach_cop_input_error   _(PROCESSED, "COP input packets processed")

Definition at line 37 of file node1.c.

#define foreach_cop_stub   _(default-cop-whitelist, default_cop_whitelist)

Definition at line 287 of file node1.c.

Enumeration Type Documentation

Enumerator
COP_INPUT_N_ERROR 

Definition at line 40 of file node1.c.

Function Documentation

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

Definition at line 54 of file node1.c.

+ Here is the call graph for this function:

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

Definition at line 24 of file node1.c.

+ Here is the call graph for this function:

Variable Documentation

char* cop_input_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_cop_input_error
Definition: node1.c:37

Definition at line 47 of file node1.c.

vlib_node_registration_t cop_input_node
Initial value:
= {
.function = cop_input_node_fn,
.name = "cop-input",
.vector_size = sizeof (u32),
.format_trace = format_cop_input_trace,
.error_strings = cop_input_error_strings,
.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",
},
}
static char * cop_input_error_strings[]
Definition: node1.c:47
static uword cop_input_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node1.c:54
static u8 * format_cop_input_trace(u8 *s, va_list *args)
Definition: node1.c:24
unsigned int u32
Definition: types.h:88
#define ARRAY_LEN(x)
Definition: clib.h:59

(constructor) VLIB_REGISTER_NODE (cop_input_node)

Definition at line 35 of file node1.c.

foreach_cop_stub

Definition at line 313 of file node1.c.