FD.io VPP  v17.07-30-g839fa73
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, 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)
 
static uword l2t_decap_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (l2t_decap_node, l2t_decap_node_fn)
 
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_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 26 of file decap.c.

#define NSTAGES   3

Definition at line 56 of file decap.c.

Enumeration Type Documentation

Enumerator
L2T_DECAP_N_ERROR 

Definition at line 39 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 47 of file decap.c.

Function Documentation

static uword l2t_decap_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 242 of file decap.c.

void l2tp_decap_init ( void  )

Definition at line 298 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,
u32  bi 
)
inlinestatic

Definition at line 119 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,
u32  buffer_index 
)
inlinestatic

Definition at line 59 of file decap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void stage1 ( vlib_main_t vm,
vlib_node_runtime_t node,
u32  bi 
)
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:

VLIB_NODE_FUNCTION_MULTIARCH ( l2t_decap_node  ,
l2t_decap_node_fn   
)

Variable Documentation

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

Definition at line 33 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:33
u8 * format_l2t_trace(u8 *s, va_list *args)
Definition: l2tp.c:30
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static uword l2t_decap_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: decap.c:242

(constructor) VLIB_REGISTER_NODE (l2t_decap_local_node)

Definition at line 277 of file decap.c.

vlib_node_registration_t l2t_decap_node
Initial value:
= {
.function = l2t_decap_node_fn,
.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:33
u8 * format_l2t_trace(u8 *s, va_list *args)
Definition: l2tp.c:30
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static uword l2t_decap_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: decap.c:242

(constructor) VLIB_REGISTER_NODE (l2t_decap_node)

Definition at line 255 of file decap.c.