FD.io VPP  v19.04.2-12-g66b1689
Vector Packet Processing
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
node.c File Reference
+ Include dependency graph for node.c:

Go to the source code of this file.

Data Structures

struct  snap_input_trace_t
 

Enumerations

enum  snap_input_next_t { SNAP_INPUT_NEXT_DROP, SNAP_INPUT_NEXT_PUNT, SNAP_INPUT_NEXT_ETHERNET_TYPE, SNAP_INPUT_N_NEXT }
 

Functions

static u8format_snap_input_trace (u8 *s, va_list *va)
 
static uword snap_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static clib_error_tsnap_input_init (vlib_main_t *vm)
 
void snap_register_input_protocol (vlib_main_t *vm, char *name, u32 ieee_oui, u16 protocol, u32 node_index)
 

Variables

static char * snap_error_strings []
 
vlib_node_registration_t snap_input_node
 (constructor) VLIB_REGISTER_NODE (snap_input_node) More...
 

Enumeration Type Documentation

Enumerator
SNAP_INPUT_NEXT_DROP 
SNAP_INPUT_NEXT_PUNT 
SNAP_INPUT_NEXT_ETHERNET_TYPE 
SNAP_INPUT_N_NEXT 

Definition at line 45 of file node.c.

Function Documentation

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

Definition at line 59 of file node.c.

+ Here is the call graph for this function:

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

Definition at line 71 of file node.c.

+ Here is the call graph for this function:

static clib_error_t* snap_input_init ( vlib_main_t vm)
static

Definition at line 293 of file node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void snap_register_input_protocol ( vlib_main_t vm,
char *  name,
u32  ieee_oui,
u16  protocol,
u32  node_index 
)

Definition at line 311 of file node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

char* snap_error_strings[]
static
Initial value:
= {
#define _(f,s)
}
#define foreach_snap_error
Definition: snap.h:123

Definition at line 263 of file node.c.

vlib_node_registration_t snap_input_node
Initial value:
= {
.function = snap_input,
.name = "snap-input",
.vector_size = sizeof (u32),
.n_errors = SNAP_N_ERROR,
.error_strings = snap_error_strings,
.n_next_nodes = SNAP_INPUT_N_NEXT,
.next_nodes = {
[SNAP_INPUT_NEXT_DROP] = "error-drop",
[SNAP_INPUT_NEXT_PUNT] = "error-punt",
[SNAP_INPUT_NEXT_ETHERNET_TYPE] = "ethernet-input-type",
},
.format_trace = format_snap_input_trace,
.unformat_buffer = unformat_snap_header,
}
static u8 * format_snap_input_trace(u8 *s, va_list *va)
Definition: node.c:59
unsigned int u32
Definition: types.h:88
static char * snap_error_strings[]
Definition: node.c:263
format_function_t format_snap_header_with_length
Definition: snap.h:178
unformat_function_t unformat_snap_header
Definition: snap.h:184
static uword snap_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: node.c:71

(constructor) VLIB_REGISTER_NODE (snap_input_node)

Definition at line 270 of file node.c.