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

Go to the source code of this file.

Data Structures

struct  lisp_gpe_rx_trace_t
 

Macros

#define lisp_gpe_error(n, s)   s,
 

Functions

static u8format_lisp_gpe_rx_trace (u8 *s, va_list *args)
 
static u32 next_protocol_to_next_index (lisp_gpe_header_t *lgh, u8 *next_header)
 
static uword lisp_gpe_input_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, u8 is_v4)
 
static uword lisp_gpe_ip4_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static uword lisp_gpe_ip6_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 

Variables

static u32 next_proto_to_next_index [LISP_GPE_NEXT_PROTOS]
 
static char * lisp_gpe_error_strings []
 
vlib_node_registration_t lisp_gpe_ip4_input_node
 (constructor) VLIB_REGISTER_NODE (lisp_gpe_ip4_input_node) More...
 
vlib_node_registration_t lisp_gpe_ip6_input_node
 (constructor) VLIB_REGISTER_NODE (lisp_gpe_ip6_input_node) More...
 

Macro Definition Documentation

#define lisp_gpe_error (   n,
 
)    s,

Function Documentation

static u8* format_lisp_gpe_rx_trace ( u8 s,
va_list *  args 
)
static

Definition at line 29 of file decap.c.

+ Here is the call graph for this function:

static uword lisp_gpe_input_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame,
u8  is_v4 
)
static

Definition at line 81 of file decap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword lisp_gpe_ip4_input ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 339 of file decap.c.

+ Here is the call graph for this function:

static uword lisp_gpe_ip6_input ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 346 of file decap.c.

+ Here is the call graph for this function:

static u32 next_protocol_to_next_index ( lisp_gpe_header_t lgh,
u8 next_header 
)
static

Definition at line 59 of file decap.c.

+ Here is the caller graph for this function:

Variable Documentation

char* lisp_gpe_error_strings[]
static
Initial value:
= {
#define lisp_gpe_error(n,s)
}

Definition at line 352 of file decap.c.

vlib_node_registration_t lisp_gpe_ip4_input_node
Initial value:
= {
.function = lisp_gpe_ip4_input,
.name = "lisp-gpe-ip4-input",
.vector_size = sizeof (u32),
.n_errors = LISP_GPE_N_ERROR,
.error_strings = lisp_gpe_error_strings,
.n_next_nodes = LISP_GPE_INPUT_N_NEXT,
.next_nodes = {
#define _(s,n)
},
.format_trace = format_lisp_gpe_rx_trace,
}
#define foreach_lisp_gpe_ip_input_next
Definition: lisp_gpe.h:84
static uword lisp_gpe_ip4_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: decap.c:339
u8 * format_lisp_gpe_header_with_length(u8 *s, va_list *args)
Definition: interface.c:326
static char * lisp_gpe_error_strings[]
Definition: decap.c:352
unsigned int u32
Definition: types.h:88
static u8 * format_lisp_gpe_rx_trace(u8 *s, va_list *args)
Definition: decap.c:29

(constructor) VLIB_REGISTER_NODE (lisp_gpe_ip4_input_node)

Definition at line 359 of file decap.c.

vlib_node_registration_t lisp_gpe_ip6_input_node
Initial value:
= {
.function = lisp_gpe_ip6_input,
.name = "lisp-gpe-ip6-input",
.vector_size = sizeof (u32),
.n_errors = LISP_GPE_N_ERROR,
.error_strings = lisp_gpe_error_strings,
.n_next_nodes = LISP_GPE_INPUT_N_NEXT,
.next_nodes = {
#define _(s,n)
},
.format_trace = format_lisp_gpe_rx_trace,
}
#define foreach_lisp_gpe_ip_input_next
Definition: lisp_gpe.h:84
static uword lisp_gpe_ip6_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: decap.c:346
u8 * format_lisp_gpe_header_with_length(u8 *s, va_list *args)
Definition: interface.c:326
static char * lisp_gpe_error_strings[]
Definition: decap.c:352
unsigned int u32
Definition: types.h:88
static u8 * format_lisp_gpe_rx_trace(u8 *s, va_list *args)
Definition: decap.c:29

(constructor) VLIB_REGISTER_NODE (lisp_gpe_ip6_input_node)

Definition at line 380 of file decap.c.

u32 next_proto_to_next_index[LISP_GPE_NEXT_PROTOS]
static
Initial value:
= {
LISP_GPE_INPUT_NEXT_DROP,
LISP_GPE_INPUT_NEXT_IP4_INPUT,
LISP_GPE_INPUT_NEXT_IP6_INPUT,
LISP_GPE_INPUT_NEXT_DROP
}

Definition at line 51 of file decap.c.