FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
node.c File Reference
+ Include dependency graph for node.c:

Go to the source code of this file.

Data Structures

struct  llc_input_trace_t
 

Macros

#define foreach_llc_input_next
 

Enumerations

enum  llc_input_next_t { LLC_INPUT_N_NEXT }
 

Functions

static u8format_llc_input_trace (u8 *s, va_list *va)
 
static uword llc_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static clib_error_tllc_input_init (vlib_main_t *vm)
 
void llc_register_input_protocol (vlib_main_t *vm, llc_protocol_t protocol, u32 node_index)
 

Variables

static char * llc_error_strings []
 
vlib_node_registration_t llc_input_node
 (constructor) VLIB_REGISTER_NODE (llc_input_node) More...
 

Macro Definition Documentation

◆ foreach_llc_input_next

#define foreach_llc_input_next
Value:
_ (PUNT, "error-punt") \
_ (DROP, "error-drop")
DROP
Definition: error.def:41

Definition at line 44 of file node.c.

Enumeration Type Documentation

◆ llc_input_next_t

Enumerator
LLC_INPUT_N_NEXT 

Definition at line 48 of file node.c.

Function Documentation

◆ format_llc_input_trace()

static u8* format_llc_input_trace ( u8 s,
va_list *  va 
)
static

Definition at line 62 of file node.c.

+ Here is the call graph for this function:

◆ llc_input()

static uword llc_input ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 74 of file node.c.

+ Here is the call graph for this function:

◆ llc_input_init()

static clib_error_t* llc_input_init ( vlib_main_t vm)
static

Definition at line 278 of file node.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ llc_register_input_protocol()

void llc_register_input_protocol ( vlib_main_t vm,
llc_protocol_t  protocol,
u32  node_index 
)

Definition at line 302 of file node.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ llc_error_strings

char* llc_error_strings[]
static
Initial value:
= {
#define _(f,s)
}
#define foreach_llc_error
Definition: llc.h:121

Definition at line 248 of file node.c.

◆ llc_input_node

vlib_node_registration_t llc_input_node
Initial value:
= {
.function = llc_input,
.name = "llc-input",
.vector_size = sizeof (u32),
.n_errors = LLC_N_ERROR,
.error_strings = llc_error_strings,
.n_next_nodes = LLC_INPUT_N_NEXT,
.next_nodes = {
#define _(s,n)
},
.format_trace = format_llc_input_trace,
.unformat_buffer = unformat_llc_header,
}
static u8 * format_llc_input_trace(u8 *s, va_list *va)
Definition: node.c:62
#define foreach_llc_input_next
Definition: node.c:44
unsigned int u32
Definition: types.h:88
unformat_function_t unformat_llc_header
Definition: llc.h:169
static uword llc_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: node.c:74
format_function_t format_llc_header_with_length
Definition: llc.h:163
static char * llc_error_strings[]
Definition: node.c:248

(constructor) VLIB_REGISTER_NODE (llc_input_node)

Definition at line 255 of file node.c.