FD.io VPP  v18.01-8-g0eacf49
Vector Packet Processing
node.c File Reference
+ Include dependency graph for node.c:

Go to the source code of this file.

Data Structures

struct  osi_input_trace_t
 

Macros

#define foreach_osi_input_next
 

Enumerations

enum  osi_input_next_t { OSI_INPUT_N_NEXT }
 

Functions

static u8format_osi_input_trace (u8 *s, va_list *va)
 
static uword osi_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static clib_error_tosi_input_init (vlib_main_t *vm)
 
void osi_register_input_protocol (osi_protocol_t protocol, u32 node_index)
 

Variables

static char * osi_error_strings []
 
vlib_node_registration_t osi_input_node
 (constructor) VLIB_REGISTER_NODE (osi_input_node) More...
 

Macro Definition Documentation

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

Definition at line 47 of file node.c.

Enumeration Type Documentation

Enumerator
OSI_INPUT_N_NEXT 

Definition at line 51 of file node.c.

Function Documentation

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

Definition at line 65 of file node.c.

+ Here is the call graph for this function:

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

Definition at line 77 of file node.c.

+ Here is the call graph for this function:

static clib_error_t* osi_input_init ( vlib_main_t vm)
static

Definition at line 266 of file node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void osi_register_input_protocol ( osi_protocol_t  protocol,
u32  node_index 
)

Definition at line 301 of file node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

char* osi_error_strings[]
static
Initial value:
= {
#define _(f,s)
}
#define foreach_osi_error
Definition: osi.h:97

Definition at line 236 of file node.c.

vlib_node_registration_t osi_input_node
Initial value:
= {
.function = osi_input,
.name = "osi-input",
.vector_size = sizeof (u32),
.n_errors = OSI_N_ERROR,
.error_strings = osi_error_strings,
.n_next_nodes = OSI_INPUT_N_NEXT,
.next_nodes = {
#define _(s,n)
},
.format_trace = format_osi_input_trace,
.unformat_buffer = unformat_osi_header,
}
static u8 * format_osi_input_trace(u8 *s, va_list *va)
Definition: node.c:65
unformat_function_t unformat_osi_header
Definition: osi.h:142
format_function_t format_osi_header_with_length
Definition: osi.h:136
static char * osi_error_strings[]
Definition: node.c:236
static uword osi_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: node.c:77
#define foreach_osi_input_next
Definition: node.c:47
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (osi_input_node)

Definition at line 243 of file node.c.