FD.io VPP  v19.04.2-12-g66b1689
Vector Packet Processing
decap.c File Reference
+ Include dependency graph for decap.c:

Go to the source code of this file.

Macros

#define foreach_l2t_decap_error
 
#define NSTAGES   3
 

Enumerations

enum  l2t_DECAP_error_t { L2T_DECAP_N_ERROR }
 
enum  l2t_decap_next_t { L2T_DECAP_NEXT_DROP, L2T_DECAP_NEXT_L2_INPUT, L2T_DECAP_N_NEXT, L2T_DECAP_NEXT_NO_INTERCEPT = L2T_DECAP_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_decap_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
void l2tp_decap_init (void)
 

Variables

static char * l2t_decap_error_strings []
 
vlib_node_registration_t l2t_decap_node
 (constructor) VLIB_REGISTER_NODE (l2t_decap_node) More...
 
vlib_node_function_t l2t_decap_node_fn
 
vlib_node_registration_t l2t_decap_local_node
 (constructor) VLIB_REGISTER_NODE (l2t_decap_local_node) More...
 

Macro Definition Documentation

#define foreach_l2t_decap_error
Value:
_(USER_TO_NETWORK, "L2TP user (ip6) to L2 network pkts") \
_(SESSION_ID_MISMATCH, "l2tpv3 local session id mismatches") \
_(COOKIE_MISMATCH, "l2tpv3 local cookie mismatches") \
_(NO_SESSION, "l2tpv3 session not found") \
_(ADMIN_DOWN, "l2tpv3 tunnel is down")

Definition at line 27 of file decap.c.

#define NSTAGES   3

Definition at line 57 of file decap.c.

Enumeration Type Documentation

Enumerator
L2T_DECAP_N_ERROR 

Definition at line 40 of file decap.c.

Enumerator
L2T_DECAP_NEXT_DROP 
L2T_DECAP_NEXT_L2_INPUT 
L2T_DECAP_N_NEXT 
L2T_DECAP_NEXT_NO_INTERCEPT 

Definition at line 48 of file decap.c.

Function Documentation

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

Definition at line 239 of file decap.c.

void l2tp_decap_init ( void  )

Definition at line 297 of file decap.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,
vlib_buffer_t b 
)
inlinestatic

Definition at line 118 of file decap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 60 of file decap.c.

+ Here is the caller graph for this function:

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

Definition at line 68 of file decap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

char* l2t_decap_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_l2t_decap_error
Definition: decap.c:27

Definition at line 34 of file decap.c.

vlib_node_registration_t l2t_decap_local_node
Initial value:
= {
.function = l2t_decap_node_fn,
.name = "l2tp-decap-local",
.vector_size = sizeof (u32),
.format_trace = format_l2t_trace,
.error_strings = l2t_decap_error_strings,
.n_next_nodes = L2T_DECAP_N_NEXT,
.next_nodes = {
[L2T_DECAP_NEXT_L2_INPUT] = "l2-input",
[L2T_DECAP_NEXT_DROP] = "error-drop",
},
}
static char * l2t_decap_error_strings[]
Definition: decap.c:34
unsigned int u32
Definition: types.h:88
u8 * format_l2t_trace(u8 *s, va_list *args)
Definition: l2tp.c:30
#define ARRAY_LEN(x)
Definition: clib.h:62
vlib_node_function_t l2t_decap_node_fn

(constructor) VLIB_REGISTER_NODE (l2t_decap_local_node)

Definition at line 275 of file decap.c.

vlib_node_registration_t l2t_decap_node
Initial value:
= {
.name = "l2tp-decap",
.vector_size = sizeof (u32),
.format_trace = format_l2t_trace,
.error_strings = l2t_decap_error_strings,
.n_next_nodes = L2T_DECAP_N_NEXT,
.next_nodes = {
[L2T_DECAP_NEXT_L2_INPUT] = "l2-input",
[L2T_DECAP_NEXT_DROP] = "error-drop",
},
}
static char * l2t_decap_error_strings[]
Definition: decap.c:34
unsigned int u32
Definition: types.h:88
u8 * format_l2t_trace(u8 *s, va_list *args)
Definition: l2tp.c:30
#define ARRAY_LEN(x)
Definition: clib.h:62

(constructor) VLIB_REGISTER_NODE (l2t_decap_node)

Definition at line 253 of file decap.c.

vlib_node_function_t l2t_decap_node_fn