FD.io VPP  v17.07-30-g839fa73
Vector Packet Processing
gtpu_encap.c File Reference
+ Include dependency graph for gtpu_encap.c:

Go to the source code of this file.

Data Structures

struct  gtpu_encap_trace_t
 

Macros

#define foreach_gtpu_encap_error   _(ENCAPSULATED, "good packets encapsulated")
 
#define foreach_fixed_header4_offset   _(0) _(1) _(2) _(3)
 
#define foreach_fixed_header6_offset   _(0) _(1) _(2) _(3) _(4) _(5) _(6)
 

Enumerations

enum  gtpu_encap_error_t { GTPU_ENCAP_N_ERROR }
 
enum  gtpu_encap_next_t { GTPU_ENCAP_NEXT_DROP, GTPU_ENCAP_N_NEXT }
 

Functions

u8format_gtpu_encap_trace (u8 *s, va_list *args)
 
static uword gtpu_encap_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, u32 is_ip4)
 
static uword gtpu4_encap (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static uword gtpu6_encap (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 

Variables

static char * gtpu_encap_error_strings []
 
vlib_node_registration_t gtpu4_encap_node
 (constructor) VLIB_REGISTER_NODE (gtpu4_encap_node) More...
 
vlib_node_registration_t gtpu6_encap_node
 (constructor) VLIB_REGISTER_NODE (gtpu6_encap_node) More...
 

Macro Definition Documentation

#define foreach_fixed_header4_offset   _(0) _(1) _(2) _(3)

Definition at line 62 of file gtpu_encap.c.

#define foreach_fixed_header6_offset   _(0) _(1) _(2) _(3) _(4) _(5) _(6)

Definition at line 65 of file gtpu_encap.c.

#define foreach_gtpu_encap_error   _(ENCAPSULATED, "good packets encapsulated")

Definition at line 23 of file gtpu_encap.c.

Enumeration Type Documentation

Enumerator
GTPU_ENCAP_N_ERROR 

Definition at line 32 of file gtpu_encap.c.

Enumerator
GTPU_ENCAP_NEXT_DROP 
GTPU_ENCAP_N_NEXT 

Definition at line 39 of file gtpu_encap.c.

Function Documentation

u8* format_gtpu_encap_trace ( u8 s,
va_list *  args 
)

Definition at line 49 of file gtpu_encap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 514 of file gtpu_encap.c.

+ Here is the call graph for this function:

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

Definition at line 522 of file gtpu_encap.c.

+ Here is the call graph for this function:

static uword gtpu_encap_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame,
u32  is_ip4 
)
inlinestatic

Definition at line 69 of file gtpu_encap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vlib_node_registration_t gtpu4_encap_node
Initial value:
= {
.function = gtpu4_encap,
.name = "gtpu4-encap",
.vector_size = sizeof (u32),
.format_trace = format_gtpu_encap_trace,
.error_strings = gtpu_encap_error_strings,
.n_next_nodes = GTPU_ENCAP_N_NEXT,
.next_nodes = {
[GTPU_ENCAP_NEXT_DROP] = "error-drop",
},
}
static uword gtpu4_encap(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: gtpu_encap.c:514
u8 * format_gtpu_encap_trace(u8 *s, va_list *args)
Definition: gtpu_encap.c:49
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static char * gtpu_encap_error_strings[]
Definition: gtpu_encap.c:26

(constructor) VLIB_REGISTER_NODE (gtpu4_encap_node)

Definition at line 529 of file gtpu_encap.c.

vlib_node_registration_t gtpu6_encap_node
Initial value:
= {
.function = gtpu6_encap,
.name = "gtpu6-encap",
.vector_size = sizeof (u32),
.format_trace = format_gtpu_encap_trace,
.error_strings = gtpu_encap_error_strings,
.n_next_nodes = GTPU_ENCAP_N_NEXT,
.next_nodes = {
[GTPU_ENCAP_NEXT_DROP] = "error-drop",
},
}
u8 * format_gtpu_encap_trace(u8 *s, va_list *args)
Definition: gtpu_encap.c:49
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static uword gtpu6_encap(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: gtpu_encap.c:522
static char * gtpu_encap_error_strings[]
Definition: gtpu_encap.c:26

(constructor) VLIB_REGISTER_NODE (gtpu6_encap_node)

Definition at line 545 of file gtpu_encap.c.

char* gtpu_encap_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_gtpu_encap_error
Definition: gtpu_encap.c:23

Definition at line 26 of file gtpu_encap.c.