FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
gtp4_d.c File Reference
+ Include dependency graph for gtp4_d.c:

Go to the source code of this file.

Functions

static void clb_dpo_lock_srv6_t_m_gtp4_d (dpo_id_t *dpo)
 
static void clb_dpo_unlock_srv6_t_m_gtp4_d (dpo_id_t *dpo)
 
static u8clb_dpo_format_srv6_t_m_gtp4_d (u8 *s, va_list *args)
 
static u8clb_format_srv6_t_m_gtp4_d (u8 *s, va_list *args)
 
static uword clb_unformat_srv6_t_m_gtp4_d (unformat_input_t *input, va_list *args)
 
static int clb_creation_srv6_t_m_gtp4_d (ip6_sr_policy_t *sr_policy)
 
static int clb_removal_srv6_t_m_gtp4_d (ip6_sr_policy_t *sr_policy)
 
static clib_error_tsrv6_t_m_gtp4_d_init (vlib_main_t *vm)
 
 VNET_FEATURE_INIT (srv6_t_m_gtp4_d, static)
 

Variables

srv6_t_main_v4_decap_t srv6_t_main_v4_decap
 
const static dpo_vft_t dpo_vft
 
const static char *const srv6_t_m_gtp4_d_nodes []
 
const static char *const srv6_t_m_gtp4_d_v6_nodes []
 
const static char *const *const dpo_nodes [DPO_PROTO_NUM]
 
static u8 fn_name [] = "SRv6-T.M.GTP4.D-plugin"
 
static u8 keyword_str [] = "t.m.gtp4.d"
 
static u8 def_str []
 
static u8 param_str []
 

Function Documentation

◆ clb_creation_srv6_t_m_gtp4_d()

static int clb_creation_srv6_t_m_gtp4_d ( ip6_sr_policy_t sr_policy)
static

Definition at line 165 of file gtp4_d.c.

+ Here is the caller graph for this function:

◆ clb_dpo_format_srv6_t_m_gtp4_d()

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

Definition at line 37 of file gtp4_d.c.

◆ clb_dpo_lock_srv6_t_m_gtp4_d()

static void clb_dpo_lock_srv6_t_m_gtp4_d ( dpo_id_t dpo)
static

Definition at line 27 of file gtp4_d.c.

◆ clb_dpo_unlock_srv6_t_m_gtp4_d()

static void clb_dpo_unlock_srv6_t_m_gtp4_d ( dpo_id_t dpo)
static

Definition at line 32 of file gtp4_d.c.

◆ clb_format_srv6_t_m_gtp4_d()

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

Definition at line 74 of file gtp4_d.c.

+ Here is the caller graph for this function:

◆ clb_removal_srv6_t_m_gtp4_d()

static int clb_removal_srv6_t_m_gtp4_d ( ip6_sr_policy_t sr_policy)
static

Definition at line 171 of file gtp4_d.c.

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

◆ clb_unformat_srv6_t_m_gtp4_d()

static uword clb_unformat_srv6_t_m_gtp4_d ( unformat_input_t input,
va_list *  args 
)
static

Definition at line 106 of file gtp4_d.c.

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

◆ srv6_t_m_gtp4_d_init()

static clib_error_t* srv6_t_m_gtp4_d_init ( vlib_main_t vm)
static

Definition at line 183 of file gtp4_d.c.

+ Here is the call graph for this function:

◆ VNET_FEATURE_INIT()

VNET_FEATURE_INIT ( srv6_t_m_gtp4_d  ,
static   
)

Variable Documentation

◆ def_str

u8 def_str[]
static
Initial value:
=
"Transit function with decapsulation for IPv4/GTP tunnel"

Definition at line 68 of file gtp4_d.c.

◆ dpo_nodes

const static char* const * const dpo_nodes[DPO_PROTO_NUM]
static
Initial value:

Definition at line 61 of file gtp4_d.c.

◆ dpo_vft

const static dpo_vft_t dpo_vft
static
Initial value:

Definition at line 45 of file gtp4_d.c.

◆ fn_name

u8 fn_name[] = "SRv6-T.M.GTP4.D-plugin"
static

Definition at line 66 of file gtp4_d.c.

◆ keyword_str

u8 keyword_str[] = "t.m.gtp4.d"
static

Definition at line 67 of file gtp4_d.c.

◆ param_str

u8 param_str[]
static
Initial value:
=
"<sr-prefix>/<sr-prefixlen> v6src_prefix <v6src_prefix>/<prefixlen> [nhtype <nhtype>]"

Definition at line 70 of file gtp4_d.c.

◆ srv6_t_m_gtp4_d_nodes

const static char* const srv6_t_m_gtp4_d_nodes[]
static
Initial value:
= {
"srv6-t-m-gtp4-d",
NULL,
}

Definition at line 51 of file gtp4_d.c.

◆ srv6_t_m_gtp4_d_v6_nodes

const static char* const srv6_t_m_gtp4_d_v6_nodes[]
static
Initial value:
= {
"error-drop",
NULL,
}

Definition at line 56 of file gtp4_d.c.

◆ srv6_t_main_v4_decap

srv6_t_main_v4_decap_t srv6_t_main_v4_decap

Definition at line 24 of file gtp4_d.c.

clb_dpo_format_srv6_t_m_gtp4_d
static u8 * clb_dpo_format_srv6_t_m_gtp4_d(u8 *s, va_list *args)
Definition: gtp4_d.c:37
srv6_t_m_gtp4_d_v6_nodes
const static char *const srv6_t_m_gtp4_d_v6_nodes[]
Definition: gtp4_d.c:56
clb_dpo_lock_srv6_t_m_gtp4_d
static void clb_dpo_lock_srv6_t_m_gtp4_d(dpo_id_t *dpo)
Definition: gtp4_d.c:27
DPO_PROTO_IP6
@ DPO_PROTO_IP6
Definition: dpo.h:65
srv6_t_m_gtp4_d_nodes
const static char *const srv6_t_m_gtp4_d_nodes[]
Definition: gtp4_d.c:51
clb_dpo_unlock_srv6_t_m_gtp4_d
static void clb_dpo_unlock_srv6_t_m_gtp4_d(dpo_id_t *dpo)
Definition: gtp4_d.c:32
DPO_PROTO_IP4
@ DPO_PROTO_IP4
Definition: dpo.h:64