|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
21 #include <vpp/app/version.h>
42 return (
format (s,
"SR: dynamic_proxy_index:[%u]",
index));
63 "Endpoint function with encapsulation for IPv6/GTP tunnel";
69 s =
format (s,
"SRv6 End format function unsupported.");
76 if (!
unformat (input,
"end.m.gtp6.e"))
117 ip6->ip_version_traffic_class_and_flow_label = 0x60;
118 ip6->protocol = IP_PROTOCOL_UDP;
136 "couldn't be registered");
143 .arc_name =
"ip6-unicast",
144 .node_name =
"srv6-end-m-gtp6-e",
VNET_FEATURE_INIT(srv6_end_m_gtp6_e, static)
static uword clb_unformat_srv6_end_m_gtp6_e(unformat_input_t *input, va_list *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.
static clib_error_t * srv6_end_m_gtp6_e_init(vlib_main_t *vm)
static u8 * clb_format_srv6_end_m_gtp6_e(u8 *s, va_list *args)
#define SRV6_GTP_UDP_DST_PORT
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.
vlib_node_registration_t srv6_end_m_gtp6_e
(constructor) VLIB_REGISTER_NODE (srv6_end_m_gtp6_e)
vlib_main_t vlib_node_runtime_t * node
#define clib_error_return(e, args...)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
static void clb_dpo_unlock_srv6_end_m_gtp6_e(dpo_id_t *dpo)
srv6_end_main_v6_t srv6_end_main_v6
vnet_main_t * vnet_get_main(void)
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
const static dpo_vft_t dpo_vft
const static char *const *const dpo_nodes[DPO_PROTO_NUM]
ip6_gtpu_header_t cache_hdr
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 u8 * clb_dpo_format_srv6_end_m_gtp6_e(u8 *s, va_list *args)
static int clb_creation_srv6_end_m_gtp6_e(ip6_sr_localsid_t *localsid)
dpo_lock_fn_t dv_lock
A reference counting lock function.
static void clb_dpo_lock_srv6_end_m_gtp6_e(dpo_id_t *dpo)
static_always_inline void clib_memset_u8(void *p, u8 val, uword count)
vlib_node_t * vlib_get_node_by_name(vlib_main_t *vm, u8 *name)
static int clb_removal_srv6_end_m_gtp6_e(ip6_sr_localsid_t *localsid)
description fragment has unexpected format
#define VLIB_INIT_FUNCTION(x)
u32 end_m_gtp6_e_node_index
const static char *const srv6_end_m_gtp6_e_nodes[]
A virtual function table regisitered for a DPO type.
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...