FD.io VPP  v19.08.3-2-gbabecb413
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, vlib_buffer_t *b)
 
static void stage1 (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_buffer_t *b)
 
static u32 last_stage (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_buffer_t *b)
 
VLIB_NODE_FN() l2t_encap_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
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

◆ foreach_l2t_encap_error

#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.

◆ NSTAGES

#define NSTAGES   3

Definition at line 62 of file encap.c.

Enumeration Type Documentation

◆ l2t_encap_error_t

Enumerator
L2T_ENCAP_N_ERROR 

Definition at line 37 of file encap.c.

◆ l2t_encap_next_t

Enumerator
L2T_ENCAP_NEXT_DROP 
L2T_ENCAP_NEXT_IP6_LOOKUP 
L2T_ENCAP_N_NEXT 

Definition at line 46 of file encap.c.

Function Documentation

◆ l2t_encap_node()

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

Definition at line 187 of file encap.c.

◆ l2tp_encap_init()

void l2tp_encap_init ( vlib_main_t vm)

Definition at line 218 of file encap.c.

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

◆ last_stage()

static u32 last_stage ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_buffer_t b 
)
inlinestatic

Definition at line 95 of file encap.c.

+ Here is the call graph for this function:

◆ stage0()

static void stage0 ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_buffer_t b 
)
inlinestatic

Definition at line 65 of file encap.c.

◆ stage1()

static void stage1 ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_buffer_t b 
)
inlinestatic

Definition at line 72 of file encap.c.

+ Here is the call graph for this function:

Variable Documentation

◆ l2t_encap_error_strings

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.

◆ l2t_encap_node

vlib_node_registration_t l2t_encap_node
Initial value:
= {
.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",
},
}
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
u8 * format_l2t_trace(u8 *s, va_list *args)
Definition: l2tp.c:30
#define ARRAY_LEN(x)
Definition: clib.h:63
static char * l2t_encap_error_strings[]
Definition: encap.c:31

(constructor) VLIB_REGISTER_NODE (l2t_encap_node)

Definition at line 196 of file encap.c.