FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
l2e_node.c File Reference
+ Include dependency graph for l2e_node.c:

Go to the source code of this file.

Macros

#define foreach_l2_emulation
 

Enumerations

enum  l2_emulation_error_t { L2_EMULATION_N_ERROR }
 
enum  l2_emulation_next_t { L2_EMULATION_N_NEXT }
 

Functions

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

Variables

static char * l2_emulation_error_strings []
 
vlib_node_registration_t l2_emulation_node
 (constructor) VLIB_REGISTER_NODE (l2_emulation_node) More...
 

Macro Definition Documentation

◆ foreach_l2_emulation

#define foreach_l2_emulation
Value:
_(IP4, "Extract IPv4") \
_(IP6, "Extract IPv6")
Definition: acl.h:67
Definition: acl.h:67

Definition at line 21 of file l2e_node.c.

Enumeration Type Documentation

◆ l2_emulation_error_t

Enumerator
L2_EMULATION_N_ERROR 

Definition at line 25 of file l2e_node.c.

◆ l2_emulation_next_t

Enumerator
L2_EMULATION_N_NEXT 

Definition at line 39 of file l2e_node.c.

Function Documentation

◆ format_l2_emulation_trace()

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

Definition at line 49 of file l2e_node.c.

+ Here is the call graph for this function:

◆ l2_emulation_node()

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

Definition at line 60 of file l2e_node.c.

+ Here is the call graph for this function:

Variable Documentation

◆ l2_emulation_error_strings

char* l2_emulation_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_l2_emulation
Definition: l2e_node.c:21

Definition at line 33 of file l2e_node.c.

◆ l2_emulation_node

vlib_node_registration_t l2_emulation_node
Initial value:
= {
.name = "l2-emulation",
.vector_size = sizeof (u32),
.format_trace = format_l2_emulation_trace,
.error_strings = l2_emulation_error_strings,
.n_next_nodes = L2_EMULATION_N_NEXT,
.next_nodes = {
[L2_EMULATION_NEXT_IP4] = "ip4-input",
[L2_EMULATION_NEXT_IP6] = "ip6-input",
},
}
static u8 * format_l2_emulation_trace(u8 *s, va_list *args)
Definition: l2e_node.c:49
static char * l2_emulation_error_strings[]
Definition: l2e_node.c:33
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:63

(constructor) VLIB_REGISTER_NODE (l2_emulation_node)

Definition at line 258 of file l2e_node.c.