FD.io VPP  v16.09
Vector Packet Processing
l2t_ip6.c File Reference
+ Include dependency graph for l2t_ip6.c:

Go to the source code of this file.

Macros

#define foreach_l2t_ip6_error
 
#define NSTAGES   3
 

Enumerations

enum  l2t_ip6_error_t { L2T_IP6_N_ERROR }
 
enum  l2t_ip6_next_t { L2T_IP6_NEXT_DROP, L2T_IP6_NEXT_IP6_INPUT, L2T_IP6_N_NEXT, L2T_IP6_NEXT_OUTPUT = L2T_IP6_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 ip6_l2t_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (sw6_ip6_node, ip6_l2t_node_fn)
 
static clib_error_tl2tp_config (vlib_main_t *vm, unformat_input_t *input)
 
clib_error_tl2t_ip6_init (vlib_main_t *vm)
 

Variables

l2t_main_t l2t_main
 
static char * l2t_ip6_error_strings []
 
vlib_node_registration_t l2t_ip6_node
 
static vlib_node_registration_t sw6_ip6_node
 (constructor) VLIB_REGISTER_NODE (sw6_ip6_node) More...
 

Macro Definition Documentation

#define foreach_l2t_ip6_error
Value:
_(USER_TO_NETWORK, "User (v6) to L2 network pkts") \
_(SESSION_ID_MISMATCH, "l2tpv3 local session id mismatches") \
_(COOKIE_MISMATCH, "l2tpv3 local cookie mismatches")

Definition at line 35 of file l2t_ip6.c.

#define NSTAGES   3

Definition at line 70 of file l2t_ip6.c.

Enumeration Type Documentation

Enumerator
L2T_IP6_N_ERROR 

Definition at line 46 of file l2t_ip6.c.

Enumerator
L2T_IP6_NEXT_DROP 
L2T_IP6_NEXT_IP6_INPUT 
L2T_IP6_N_NEXT 
L2T_IP6_NEXT_OUTPUT 

Definition at line 59 of file l2t_ip6.c.

Function Documentation

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

Definition at line 252 of file l2t_ip6.c.

+ Here is the call graph for this function:

clib_error_t* l2t_ip6_init ( vlib_main_t vm)

Definition at line 306 of file l2t_ip6.c.

+ Here is the call graph for this function:

static clib_error_t* l2tp_config ( vlib_main_t vm,
unformat_input_t input 
)
static

Definition at line 284 of file l2t_ip6.c.

+ Here is the call graph for this function:

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

Definition at line 135 of file l2t_ip6.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 73 of file l2t_ip6.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 82 of file l2t_ip6.c.

+ Here is the call graph for this function:

VLIB_NODE_FUNCTION_MULTIARCH ( sw6_ip6_node  ,
ip6_l2t_node_fn   
)

Variable Documentation

char* l2t_ip6_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_l2t_ip6_error
Definition: l2t_ip6.c:35

Definition at line 40 of file l2t_ip6.c.

Definition at line 68 of file l2t_ip6.c.

l2t_main_t l2t_main

Definition at line 32 of file l2t_ip6.c.

vlib_node_registration_t sw6_ip6_node
static
Initial value:
= {
.function = ip6_l2t_node_fn,
.name = "ip6-l2t-input",
.vector_size = sizeof (u32),
.format_trace = format_l2t_trace,
.error_strings = l2t_ip6_error_strings,
.n_next_nodes = L2T_IP6_N_NEXT,
.next_nodes = {
[L2T_IP6_NEXT_IP6_INPUT] = "ip6-input",
[L2T_IP6_NEXT_DROP] = "error-drop",
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static char * l2t_ip6_error_strings[]
Definition: l2t_ip6.c:40
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 ip6_l2t_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: l2t_ip6.c:252

(constructor) VLIB_REGISTER_NODE (sw6_ip6_node)

Definition at line 262 of file l2t_ip6.c.