FD.io VPP  v18.01.2-1-g9b554f3
Vector Packet Processing
encap.c File Reference
+ Include dependency graph for encap.c:

Go to the source code of this file.

Data Structures

struct  l2tp_encap_runtime_t
 

Macros

#define foreach_l2t_encap_error
 
#define NSTAGES   3
 

Enumerations

enum  l2t_encap_error_t { L2T_ENCAP_N_ERROR }
 
enum  l2t_encap_next_t { L2T_ENCAP_NEXT_DROP, L2T_ENCAP_NEXT_IP6_LOOKUP, L2T_ENCAP_N_NEXT }
 

Functions

static void stage0 (vlib_main_t *vm, vlib_node_runtime_t *node, u32 buffer_index)
 
static void stage1 (vlib_main_t *vm, vlib_node_runtime_t *node, u32 bi)
 
static u32 last_stage (vlib_main_t *vm, vlib_node_runtime_t *node, u32 bi)
 
uword l2t_encap_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (l2t_encap_node, l2t_encap_node_fn)
 
void l2tp_encap_init (vlib_main_t *vm)
 

Variables

static char * l2t_encap_error_strings []
 
vlib_node_registration_t l2t_encap_node
 (constructor) VLIB_REGISTER_NODE (l2t_encap_node) More...
 

Macro Definition Documentation

#define foreach_l2t_encap_error
Value:
_(NETWORK_TO_USER, "L2TP L2 network to user (ip6) pkts") \
_(LOOKUP_FAIL_TO_L3, "L2TP L2 session lookup failed pkts") \
_(ADMIN_DOWN, "L2TP tunnel is down")

Definition at line 26 of file encap.c.

#define NSTAGES   3

Definition at line 62 of file encap.c.

Enumeration Type Documentation

Enumerator
L2T_ENCAP_N_ERROR 

Definition at line 37 of file encap.c.

Enumerator
L2T_ENCAP_NEXT_DROP 
L2T_ENCAP_NEXT_IP6_LOOKUP 
L2T_ENCAP_N_NEXT 

Definition at line 46 of file encap.c.

Function Documentation

uword l2t_encap_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 191 of file encap.c.

+ Here is the call graph for this function:

void l2tp_encap_init ( vlib_main_t vm)

Definition at line 222 of file encap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 last_stage ( vlib_main_t vm,
vlib_node_runtime_t node,
u32  bi 
)
inlinestatic

Definition at line 97 of file encap.c.

+ Here is the call graph for this function:

static void stage0 ( vlib_main_t vm,
vlib_node_runtime_t node,
u32  buffer_index 
)
inlinestatic

Definition at line 65 of file encap.c.

+ Here is the call graph for this function:

static void stage1 ( vlib_main_t vm,
vlib_node_runtime_t node,
u32  bi 
)
inlinestatic

Definition at line 73 of file encap.c.

+ Here is the call graph for this function:

VLIB_NODE_FUNCTION_MULTIARCH ( l2t_encap_node  ,
l2t_encap_node_fn   
)

+ Here is the caller graph for this function:

Variable Documentation

char* l2t_encap_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_l2t_encap_error
Definition: encap.c:26

Definition at line 31 of file encap.c.

vlib_node_registration_t l2t_encap_node
Initial value:
= {
.function = l2t_encap_node_fn,
.name = "l2tp-encap",
.vector_size = sizeof (u32),
.format_trace = format_l2t_trace,
.runtime_data_bytes = sizeof (l2tp_encap_runtime_t),
.error_strings = l2t_encap_error_strings,
.n_next_nodes = L2T_ENCAP_N_NEXT,
.next_nodes = {
[L2T_ENCAP_NEXT_IP6_LOOKUP] = "ip6-lookup",
[L2T_ENCAP_NEXT_DROP] = "error-drop",
},
}
u8 * format_l2t_trace(u8 *s, va_list *args)
Definition: l2tp.c:30
#define ARRAY_LEN(x)
Definition: clib.h:59
uword l2t_encap_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: encap.c:191
unsigned int u32
Definition: types.h:88
static char * l2t_encap_error_strings[]
Definition: encap.c:31

(constructor) VLIB_REGISTER_NODE (l2t_encap_node)

Definition at line 60 of file encap.c.