FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
gtpu_encap.c File Reference
+ Include dependency graph for gtpu_encap.c:

Go to the source code of this file.

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

static uword gtpu_encap_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, u32 is_ip4)
 
VLIB_NODE_FN() gtpu4_encap_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() gtpu6_encap_node (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

◆ foreach_fixed_header4_offset

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

Definition at line 52 of file gtpu_encap.c.

◆ foreach_fixed_header6_offset

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

Definition at line 55 of file gtpu_encap.c.

◆ foreach_gtpu_encap_error

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

Definition at line 23 of file gtpu_encap.c.

◆ foreach_gtpu_encap_next

#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

◆ gtpu_encap_error_t

Enumerator
GTPU_ENCAP_N_ERROR 

Definition at line 32 of file gtpu_encap.c.

◆ gtpu_encap_next_t

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

◆ gtpu4_encap_node()

VLIB_NODE_FN() gtpu4_encap_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Definition at line 673 of file gtpu_encap.c.

+ Here is the call graph for this function:

◆ gtpu6_encap_node()

VLIB_NODE_FN() gtpu6_encap_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Definition at line 680 of file gtpu_encap.c.

+ Here is the call graph for this function:

◆ gtpu_encap_inline()

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 59 of file gtpu_encap.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ gtpu4_encap_node

vlib_node_registration_t gtpu4_encap_node
Initial value:
= {
.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
u8 * format_gtpu_encap_trace(u8 *s, va_list *args)
Definition: gtpu.c:52
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
#define ARRAY_LEN(x)
Definition: clib.h:63
static char * gtpu_encap_error_strings[]
Definition: gtpu_encap.c:26

(constructor) VLIB_REGISTER_NODE (gtpu4_encap_node)

Definition at line 687 of file gtpu_encap.c.

◆ gtpu6_encap_node

vlib_node_registration_t gtpu6_encap_node
Initial value:
= {
.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.c:52
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
#define ARRAY_LEN(x)
Definition: clib.h:63
static char * gtpu_encap_error_strings[]
Definition: gtpu_encap.c:26

(constructor) VLIB_REGISTER_NODE (gtpu6_encap_node)

Definition at line 702 of file gtpu_encap.c.

◆ gtpu_encap_error_strings

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.