FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
nsh.c File Reference
+ Include dependency graph for nsh.c:

Go to the source code of this file.

Functions

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))
 
nsh_option_map_tnsh_md2_lookup_option (u16 class, u8 type)
 
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))
 
static u8format_nsh_tunnel_with_length (u8 *s, va_list *args)
 Formatting function for tracing VXLAN GPE with length. More...
 
 VNET_HW_INTERFACE_CLASS (nsh_hw_class)
 
void nsh_md2_set_next_ioam_export_override (uword next)
 
clib_error_tnsh_init (vlib_main_t *vm)
 
 VLIB_PLUGIN_REGISTER ()
 

Variables

nsh_main_t nsh_main
 

Function Documentation

◆ format_nsh_tunnel_with_length()

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

Formatting function for tracing VXLAN GPE with length.

Parameters
*s
*args
Returns
*s

Definition at line 160 of file nsh.c.

+ Here is the call graph for this function:

◆ nsh_init()

clib_error_t* nsh_init ( vlib_main_t vm)

Definition at line 185 of file nsh.c.

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

◆ nsh_md2_lookup_option()

nsh_option_map_t* nsh_md2_lookup_option ( u16  class,
u8  type 
)

Definition at line 88 of file nsh.c.

+ Here is the caller graph for this function:

◆ nsh_md2_register_option()

int nsh_md2_register_option ( u16  class,
u8  type,
u8  option_size,
int   add_optionsu8 *opt, u8 *opt_size,
int   optionsvlib_buffer_t *b, nsh_tlv_header_t *opt,
int   swap_optionsvlib_buffer_t *b, nsh_tlv_header_t *old_opt, nsh_tlv_header_t *new_opt,
int   pop_optionsvlib_buffer_t *b, nsh_tlv_header_t *opt,
u8 traceu8 *s, nsh_tlv_header_t *opt 
)

Definition at line 32 of file nsh.c.

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

◆ nsh_md2_set_next_ioam_export_override()

void nsh_md2_set_next_ioam_export_override ( uword  next)

Definition at line 177 of file nsh.c.

+ Here is the caller graph for this function:

◆ nsh_md2_unregister_option()

int nsh_md2_unregister_option ( u16  class,
u8  type,
int   optionsvlib_buffer_t *b, nsh_tlv_header_t *opt,
u8 traceu8 *s, nsh_tlv_header_t *opt 
)

Definition at line 111 of file nsh.c.

+ Here is the call graph for this function:

◆ VLIB_PLUGIN_REGISTER()

VLIB_PLUGIN_REGISTER ( )

◆ VNET_HW_INTERFACE_CLASS()

VNET_HW_INTERFACE_CLASS ( nsh_hw_class  )
+ Here is the caller graph for this function:

Variable Documentation

◆ nsh_main

nsh_main_t nsh_main

Definition at line 28 of file nsh.c.