21 #include <vpp/app/version.h> 42 return (
format (s,
"SR: dynamic_proxy_index:[%u]", index));
63 "Endpoint function with encapsulation for IPv4/GTP tunnel";
71 s =
format (s,
"SRv6 End gtp4.e\n\t");
81 void **plugin_mem_p = va_arg (*args,
void **);
85 if (!
unformat (input,
"end.m.gtp4.e v4src_position %d", &v4src_position))
90 *plugin_mem_p = ls_mem;
162 "couldn't be registered");
169 .arc_name =
"ip6-unicast",
170 .node_name =
"srv6-end-m-gtp4-e",
177 .version = VPP_BUILD_VER,
178 .description =
"SRv6 GTP Endpoint Functions",
dpo_lock_fn_t dv_lock
A reference counting lock function.
A virtual function table regisitered for a DPO type.
static void * clib_mem_alloc_aligned_at_offset(uword size, uword align, uword align_offset, int os_out_of_memory_on_failure)
#define SRV6_GTP_UDP_DST_PORT
vnet_main_t * vnet_get_main(void)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
vlib_node_registration_t srv6_end_m_gtp4_e
(constructor) VLIB_REGISTER_NODE (srv6_end_m_gtp4_e)
VNET_FEATURE_INIT(srv6_end_m_gtp4_e, static)
int sr_localsid_register_function(vlib_main_t *vm, u8 *fn_name, u8 *keyword_str, u8 *def_str, u8 *params_str, u8 prefix_length, dpo_type_t *dpo, format_function_t *ls_format, unformat_function_t *ls_unformat, sr_plugin_callback_t *creation_fn, sr_plugin_callback_t *removal_fn)
SR LocalSID plugin registry.
enum dpo_type_t_ dpo_type_t
Common types of data-path objects New types can be dynamically added using dpo_register_new_type() ...
static void clb_dpo_unlock_srv6_end_m_gtp4_e(dpo_id_t *dpo)
#define VLIB_INIT_FUNCTION(x)
static int clb_creation_srv6_end_m_gtp4_e(ip6_sr_localsid_t *localsid)
static void clb_dpo_lock_srv6_end_m_gtp4_e(dpo_id_t *dpo)
#define clib_error_return(e, args...)
dpo_type_t dpo_register_new_type(const dpo_vft_t *vft, const char *const *const *nodes)
Create and register a new DPO type.
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
vlib_node_t * vlib_get_node_by_name(vlib_main_t *vm, u8 *name)
u32 end_m_gtp4_e_node_index
static int clb_removal_srv6_end_m_gtp4_e(ip6_sr_localsid_t *localsid)
vlib_main_t vlib_node_runtime_t * node
ip4_gtpu_header_t cache_hdr
srv6_end_main_v4_t srv6_end_main_v4
static u8 * clb_dpo_format_srv6_end_m_gtp4_e(u8 *s, va_list *args)
void * plugin_mem
Memory to be used by the plugin callback functions.
static u8 * clb_format_srv6_end_m_gtp4_e(u8 *s, va_list *args)
static void clib_mem_free(void *p)
static clib_error_t * srv6_end_m_gtp4_e_init(vlib_main_t *vm)
static_always_inline void clib_memset_u8(void *p, u8 val, uword count)
static const char *const *const dpo_nodes[DPO_PROTO_NUM]
static uword clb_unformat_srv6_end_m_gtp4_e(unformat_input_t *input, va_list *args)
static const char *const srv6_end_m_gtp4_e_nodes[]