26 #include <vpp/app/version.h> 35 int add_options (
u8 * opt,
38 nsh_tlv_header_t * opt),
40 nsh_tlv_header_t * old_opt,
41 nsh_tlv_header_t * new_opt),
43 nsh_tlv_header_t * opt),
44 u8 *
trace (
u8 * s, nsh_tlv_header_t * opt))
114 nsh_tlv_header_t * opt),
115 u8 *
trace (
u8 * s, nsh_tlv_header_t * opt))
141 key_copy = (
void *) (hp->
key);
162 u32 dev_instance = va_arg (*args,
u32);
163 s =
format (s,
"unimplemented dev %u", dev_instance);
275 .version = VPP_BUILD_VER,
276 .description =
"Network Service Header (NSH)",
vlib_node_registration_t gre4_input_node
(constructor) VLIB_REGISTER_NODE (gre4_input_node)
static vlib_cli_command_t trace
(constructor) VLIB_CLI_COMMAND (trace)
static u8 * format_nsh_tunnel_with_length(u8 *s, va_list *args)
Formatting function for tracing VXLAN GPE with length.
vnet_main_t * vnet_get_main(void)
vlib_node_registration_t vxlan4_gpe_input_node
(constructor) VLIB_REGISTER_NODE (vxlan4_gpe_input_node)
vlib_node_registration_t vxlan4_input_node
(constructor) VLIB_REGISTER_NODE (vxlan4_input_node)
u8 *(* trace[MAX_MD2_OPTIONS])(u8 *s, nsh_tlv_header_t *opt)
vlib_node_registration_t vxlan6_gpe_input_node
(constructor) VLIB_REGISTER_NODE (vxlan6_gpe_input_node)
#define hash_set_mem(h, key, value)
clib_memset(h->entries, 0, sizeof(h->entries[0])*entries)
vlib_node_registration_t nsh_aware_vnf_proxy_node
(constructor) VLIB_REGISTER_NODE (nsh_aware_vnf_proxy_node)
static uword vlib_node_add_next(vlib_main_t *vm, uword node, uword next_node)
vlib_node_registration_t ip4_classify_node
(constructor) VLIB_REGISTER_NODE (ip4_classify_node)
#define clib_memcpy(d, s, n)
u8 options_size[MAX_MD2_OPTIONS]
vlib_node_registration_t l2_input_classify_node
(constructor) VLIB_REGISTER_NODE (l2_input_classify_node)
int(* add_options[MAX_MD2_OPTIONS])(u8 *opt, u8 *opt_size)
#define VLIB_INIT_FUNCTION(x)
#define hash_get_pair(h, key)
void vxlan_gpe_register_decap_protocol(u8 protocol_id, uword next_node_index)
#define hash_create_mem(elts, key_bytes, value_bytes)
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
#define hash_unset_mem(h, key)
int nsh_md2_unregister_option(u16 class, u8 type, int options(vlib_buffer_t *b, nsh_tlv_header_t *opt), u8 *trace(u8 *s, nsh_tlv_header_t *opt))
#define pool_put(P, E)
Free an object E in pool P.
nsh_option_map_t * nsh_option_mappings
vlib_node_registration_t vxlan6_input_node
(constructor) VLIB_REGISTER_NODE (vxlan6_input_node)
uword decap_v4_next_override
u32 nsh_classifier_node_index
int(* pop_options[MAX_MD2_OPTIONS])(vlib_buffer_t *b, nsh_tlv_header_t *opt)
#define pool_get_aligned(P, E, A)
Allocate an object E from a pool P with alignment A.
int(* swap_options[MAX_MD2_OPTIONS])(vlib_buffer_t *b, nsh_tlv_header_t *old_opt, nsh_tlv_header_t *new_opt)
clib_error_t * nsh_init(vlib_main_t *vm)
VNET_HW_INTERFACE_CLASS(nsh_hw_class)
nsh_option_map_t * nsh_md2_lookup_option(u16 class, u8 type)
uword * nsh_proxy_session_by_key
vlib_node_t * vlib_get_node_by_name(vlib_main_t *vm, u8 *name)
void nsh_md2_set_next_ioam_export_override(uword next)
#define MAX_NSH_OPTION_LEN
u8 * default_build_rewrite(vnet_main_t *vnm, u32 sw_if_index, vnet_link_t link_type, const void *dst_address)
Return a complete, zero-length (aka dummy) rewrite.
vnet_hw_interface_class_t nsh_hw_class
static void clib_mem_free(void *p)
static void * clib_mem_alloc(uword size)
void ethernet_register_input_type(vlib_main_t *vm, ethernet_type_t type, u32 node_index)
int(* options[MAX_MD2_OPTIONS])(vlib_buffer_t *b, nsh_tlv_header_t *opt)
VLIB buffer representation.
uword * nsh_option_map_by_key
a point 2 point interface
#define hash_get_mem(h, key)
int nsh_md2_register_option(u16 class, u8 type, u8 option_size, int add_options(u8 *opt, u8 *opt_size), int options(vlib_buffer_t *b, nsh_tlv_header_t *opt), int swap_options(vlib_buffer_t *b, nsh_tlv_header_t *old_opt, nsh_tlv_header_t *new_opt), int pop_options(vlib_buffer_t *b, nsh_tlv_header_t *opt), u8 *trace(u8 *s, nsh_tlv_header_t *opt))
vlib_node_registration_t gre6_input_node
(constructor) VLIB_REGISTER_NODE (gre6_input_node)
uword * nsh_mapping_by_mapped_key
vlib_node_registration_t ip6_classify_node
(constructor) VLIB_REGISTER_NODE (ip6_classify_node)
#define CLIB_CACHE_LINE_BYTES
clib_error_t * nsh_api_init(vlib_main_t *vm, nsh_main_t *nm)
uword * nsh_mapping_by_key