FD.io VPP  v19.04.4-rc0-5-ge88582fac
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)
 
VLIB_NODE_FN() cop_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

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

Macro Definition Documentation

◆ foreach_cop_input_error

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

Definition at line 35 of file node1.c.

◆ foreach_cop_stub

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

Definition at line 281 of file node1.c.

Enumeration Type Documentation

◆ cop_input_error_t

Enumerator
COP_INPUT_N_ERROR 

Definition at line 38 of file node1.c.

Function Documentation

◆ cop_input_node()

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

Definition at line 51 of file node1.c.

+ Here is the call graph for this function:

◆ format_cop_input_trace()

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

◆ cop_input_error_strings

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

Definition at line 45 of file node1.c.

◆ cop_input_node

vlib_node_registration_t cop_input_node
Initial value:
= {
.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:45
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:62

(constructor) VLIB_REGISTER_NODE (cop_input_node)

Definition at line 258 of file node1.c.

◆ foreach_cop_stub

foreach_cop_stub

Definition at line 307 of file node1.c.