FD.io VPP  v21.10.1-2-g0a485f517
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)
 

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

◆ foreach_l2t_decap_error

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

◆ NSTAGES

#define NSTAGES   3

Definition at line 57 of file decap.c.

Enumeration Type Documentation

◆ l2t_DECAP_error_t

Enumerator
L2T_DECAP_N_ERROR 

Definition at line 40 of file decap.c.

◆ l2t_decap_next_t

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

◆ l2t_decap_node()

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.

◆ last_stage()

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:

◆ stage0()

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.

◆ stage1()

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:

Variable Documentation

◆ l2t_decap_error_strings

char* l2t_decap_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}

Definition at line 34 of file decap.c.

◆ l2t_decap_local_node

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",
},
}

(constructor) VLIB_REGISTER_NODE (l2t_decap_local_node)

Definition at line 275 of file decap.c.

◆ l2t_decap_node

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",
},
}

(constructor) VLIB_REGISTER_NODE (l2t_decap_node)

Definition at line 253 of file decap.c.

◆ l2t_decap_node_fn

vlib_node_function_t l2t_decap_node_fn
l2t_decap_node_fn
vlib_node_function_t l2t_decap_node_fn
format_l2t_trace
u8 * format_l2t_trace(u8 *s, va_list *args)
Definition: l2tp.c:30
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
L2T_DECAP_NEXT_L2_INPUT
@ L2T_DECAP_NEXT_L2_INPUT
Definition: decap.c:51
l2t_decap_error_strings
static char * l2t_decap_error_strings[]
Definition: decap.c:34
L2T_DECAP_N_NEXT
@ L2T_DECAP_N_NEXT
Definition: decap.c:52
u32
unsigned int u32
Definition: types.h:88
foreach_l2t_decap_error
#define foreach_l2t_decap_error
Definition: decap.c:27
L2T_DECAP_NEXT_DROP
@ L2T_DECAP_NEXT_DROP
Definition: decap.c:50
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123