FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
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

◆ snap_input_next_t

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

◆ format_snap_input_trace()

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

Definition at line 59 of file node.c.

◆ snap_input()

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:

◆ snap_input_init()

static clib_error_t* snap_input_init ( vlib_main_t vm)
static

Definition at line 288 of file node.c.

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

◆ snap_register_input_protocol()

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

Definition at line 306 of file node.c.

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

Variable Documentation

◆ snap_error_strings

char* snap_error_strings[]
static
Initial value:
= {
#define _(f,s)
}

Definition at line 258 of file node.c.

◆ snap_input_node

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,
}

(constructor) VLIB_REGISTER_NODE (snap_input_node)

Definition at line 265 of file node.c.

SNAP_INPUT_NEXT_DROP
@ SNAP_INPUT_NEXT_DROP
Definition: node.c:47
snap_error_strings
static char * snap_error_strings[]
Definition: node.c:258
unformat_snap_header
unformat_function_t unformat_snap_header
Definition: snap.h:184
SNAP_INPUT_N_NEXT
@ SNAP_INPUT_N_NEXT
Definition: node.c:50
snap_input
static uword snap_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: node.c:71
format_snap_input_trace
static u8 * format_snap_input_trace(u8 *s, va_list *va)
Definition: node.c:59
SNAP_INPUT_NEXT_PUNT
@ SNAP_INPUT_NEXT_PUNT
Definition: node.c:48
SNAP_N_ERROR
@ SNAP_N_ERROR
Definition: snap.h:132
u32
unsigned int u32
Definition: types.h:88
foreach_snap_error
#define foreach_snap_error
Definition: snap.h:123
format_snap_header_with_length
format_function_t format_snap_header_with_length
Definition: snap.h:178
SNAP_INPUT_NEXT_ETHERNET_TYPE
@ SNAP_INPUT_NEXT_ETHERNET_TYPE
Definition: node.c:49