FD.io VPP  v18.01-8-g0eacf49
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_gtpu_encap_next
 
#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_NEXT_IP4_LOOKUP, GTPU_ENCAP_NEXT_IP6_LOOKUP, 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 69 of file gtpu_encap.c.

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

Definition at line 72 of file gtpu_encap.c.

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

Definition at line 23 of file gtpu_encap.c.

#define foreach_gtpu_encap_next
Value:
_(DROP, "error-drop") \
_(IP4_LOOKUP, "ip4-lookup") \
_(IP6_LOOKUP, "ip6-lookup")
DROP
Definition: error.def:41

Definition at line 39 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_NEXT_IP4_LOOKUP 
GTPU_ENCAP_NEXT_IP6_LOOKUP 
GTPU_ENCAP_N_NEXT 

Definition at line 44 of file gtpu_encap.c.

Function Documentation

u8* format_gtpu_encap_trace ( u8 s,
va_list *  args 
)

Definition at line 56 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 655 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 663 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 76 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 = {
#define _(s,n)
},
}
#define foreach_gtpu_encap_next
Definition: gtpu_encap.c:39
static uword gtpu4_encap(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: gtpu_encap.c:655
u8 * format_gtpu_encap_trace(u8 *s, va_list *args)
Definition: gtpu_encap.c:56
#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 670 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 = {
#define _(s,n)
},
}
#define foreach_gtpu_encap_next
Definition: gtpu_encap.c:39
u8 * format_gtpu_encap_trace(u8 *s, va_list *args)
Definition: gtpu_encap.c:56
#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:663
static char * gtpu_encap_error_strings[]
Definition: gtpu_encap.c:26

(constructor) VLIB_REGISTER_NODE (gtpu6_encap_node)

Definition at line 688 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.