FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
nsh_api.c File Reference
+ Include dependency graph for nsh_api.c:

Go to the source code of this file.

Functions

static clib_error_tnsh_interface_admin_up_down (vnet_main_t *vnm, u32 nsh_hw_if, u32 flags)
 CLI function for NSH admin up/down. More...
 
static u8format_nsh_name (u8 *s, va_list *args)
 Naming for NSH tunnel. More...
 
 VNET_DEVICE_CLASS (nsh_device_class, static)
 
static void send_nsh_entry_details (nsh_entry_t *t, vl_api_registration_t *rp, u32 context)
 
static void send_nsh_map_details (nsh_map_t *t, vl_api_registration_t *rp, u32 context)
 
static void vl_api_nsh_map_dump_t_handler (vl_api_nsh_map_dump_t *mp)
 
static void vl_api_nsh_add_del_map_t_handler (vl_api_nsh_add_del_map_t *mp)
 API message handler. More...
 
int nsh_header_rewrite (nsh_entry_t *nsh_entry)
 
int nsh_add_del_map (nsh_add_del_map_args_t *a, u32 *map_indexp)
 Action function to add or del an nsh map. More...
 
int nsh_add_del_proxy_session (nsh_add_del_map_args_t *a)
 Action function to add or del an nsh-proxy-session. More...
 
int nsh_add_del_entry (nsh_add_del_entry_args_t *a, u32 *entry_indexp)
 Action function for adding an NSH entry nsh_add_del_entry_args_t *a: host order. More...
 
static void vl_api_nsh_add_del_entry_t_handler (vl_api_nsh_add_del_entry_t *mp)
 API message handler. More...
 
static void vl_api_nsh_entry_dump_t_handler (vl_api_nsh_entry_dump_t *mp)
 
clib_error_tnsh_api_init (vlib_main_t *vm, nsh_main_t *nm)
 

Variables

vnet_hw_interface_class_t nsh_hw_class
 

Function Documentation

◆ format_nsh_name()

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

Naming for NSH tunnel.

Parameters
*sformatting string
*args
Returns
*s formatted string

Definition at line 61 of file nsh_api.c.

◆ nsh_add_del_entry()

int nsh_add_del_entry ( nsh_add_del_entry_args_t a,
u32 entry_indexp 
)

Action function for adding an NSH entry nsh_add_del_entry_args_t *a: host order.

Definition at line 466 of file nsh_api.c.

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

◆ nsh_add_del_map()

int nsh_add_del_map ( nsh_add_del_map_args_t a,
u32 map_indexp 
)

Action function to add or del an nsh map.

Shared by both CLI and binary API

Definition at line 302 of file nsh_api.c.

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

◆ nsh_add_del_proxy_session()

int nsh_add_del_proxy_session ( nsh_add_del_map_args_t a)

Action function to add or del an nsh-proxy-session.

Shared by both CLI and binary API

Definition at line 404 of file nsh_api.c.

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

◆ nsh_api_init()

clib_error_t* nsh_api_init ( vlib_main_t vm,
nsh_main_t nm 
)

Definition at line 629 of file nsh_api.c.

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

◆ nsh_header_rewrite()

int nsh_header_rewrite ( nsh_entry_t nsh_entry)

Definition at line 200 of file nsh_api.c.

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

◆ nsh_interface_admin_up_down()

static clib_error_t* nsh_interface_admin_up_down ( vnet_main_t vnm,
u32  nsh_hw_if,
u32  flags 
)
static

CLI function for NSH admin up/down.

Parameters
*vnm
nsh_hw_if
flag
Returns
*rc

Definition at line 40 of file nsh_api.c.

+ Here is the call graph for this function:

◆ send_nsh_entry_details()

static void send_nsh_entry_details ( nsh_entry_t t,
vl_api_registration_t rp,
u32  context 
)
static

Definition at line 76 of file nsh_api.c.

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

◆ send_nsh_map_details()

static void send_nsh_map_details ( nsh_map_t t,
vl_api_registration_t rp,
u32  context 
)
static

Definition at line 113 of file nsh_api.c.

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

◆ vl_api_nsh_add_del_entry_t_handler()

static void vl_api_nsh_add_del_entry_t_handler ( vl_api_nsh_add_del_entry_t mp)
static

API message handler.

Definition at line 549 of file nsh_api.c.

+ Here is the call graph for this function:

◆ vl_api_nsh_add_del_map_t_handler()

static void vl_api_nsh_add_del_map_t_handler ( vl_api_nsh_add_del_map_t mp)
static

API message handler.

Definition at line 168 of file nsh_api.c.

+ Here is the call graph for this function:

◆ vl_api_nsh_entry_dump_t_handler()

static void vl_api_nsh_entry_dump_t_handler ( vl_api_nsh_entry_dump_t mp)
static

Definition at line 594 of file nsh_api.c.

+ Here is the call graph for this function:

◆ vl_api_nsh_map_dump_t_handler()

static void vl_api_nsh_map_dump_t_handler ( vl_api_nsh_map_dump_t mp)
static

Definition at line 135 of file nsh_api.c.

+ Here is the call graph for this function:

◆ VNET_DEVICE_CLASS()

VNET_DEVICE_CLASS ( nsh_device_class  ,
static   
)

Variable Documentation

◆ nsh_hw_class