FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
l2_uu_fwd.c File Reference
+ Include dependency graph for l2_uu_fwd.c:

Go to the source code of this file.

Data Structures

struct  l2_uu_fwd_trace_t
 

Macros

#define foreach_l2_uu_fwd_error   _(L2_UU_FWD, "L2 UU fwd")
 

Enumerations

enum  l2_uu_fwd_error_t { L2_UU_FWD_N_ERROR }
 
enum  l2_uu_fwd_next_t { L2_UU_FWD_NEXT_DROP, L2_UU_FWD_NEXT_L2_OUTPUT, L2_UU_FWD_N_NEXT }
 

Functions

static u8format_l2_uu_fwd_trace (u8 *s, va_list *args)
 
VLIB_NODE_FN() l2_uu_fwd_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

static char * l2_uu_fwd_error_strings []
 
vlib_node_registration_t l2_uu_fwd_node
 (constructor) VLIB_REGISTER_NODE (l2_uu_fwd_node) More...
 

Macro Definition Documentation

◆ foreach_l2_uu_fwd_error

#define foreach_l2_uu_fwd_error   _(L2_UU_FWD, "L2 UU fwd")

Definition at line 21 of file l2_uu_fwd.c.

Enumeration Type Documentation

◆ l2_uu_fwd_error_t

Enumerator
L2_UU_FWD_N_ERROR 

Definition at line 24 of file l2_uu_fwd.c.

◆ l2_uu_fwd_next_t

Enumerator
L2_UU_FWD_NEXT_DROP 
L2_UU_FWD_NEXT_L2_OUTPUT 
L2_UU_FWD_N_NEXT 

Definition at line 38 of file l2_uu_fwd.c.

Function Documentation

◆ format_l2_uu_fwd_trace()

static u8* format_l2_uu_fwd_trace ( u8 s,
va_list *  args 
)
static

Definition at line 52 of file l2_uu_fwd.c.

+ Here is the call graph for this function:

◆ l2_uu_fwd_node()

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

Definition at line 62 of file l2_uu_fwd.c.

+ Here is the call graph for this function:

Variable Documentation

◆ l2_uu_fwd_error_strings

char* l2_uu_fwd_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_l2_uu_fwd_error
Definition: l2_uu_fwd.c:21

Definition at line 32 of file l2_uu_fwd.c.

◆ l2_uu_fwd_node

vlib_node_registration_t l2_uu_fwd_node
Initial value:
= {
.name = "l2-uu-fwd",
.vector_size = sizeof (u32),
.format_trace = format_l2_uu_fwd_trace,
.error_strings = l2_uu_fwd_error_strings,
.n_next_nodes = L2_UU_FWD_N_NEXT,
.next_nodes = {
[L2_UU_FWD_NEXT_DROP] = "error-drop",
[L2_UU_FWD_NEXT_L2_OUTPUT] = "l2-output",
},
}
static char * l2_uu_fwd_error_strings[]
Definition: l2_uu_fwd.c:32
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
#define ARRAY_LEN(x)
Definition: clib.h:62
static u8 * format_l2_uu_fwd_trace(u8 *s, va_list *args)
Definition: l2_uu_fwd.c:52

(constructor) VLIB_REGISTER_NODE (l2_uu_fwd_node)

Definition at line 215 of file l2_uu_fwd.c.