FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
stn_api.c File Reference
+ Include dependency graph for stn_api.c:

Go to the source code of this file.

Macros

#define REPLY_MSG_ID_BASE   stn_main.msg_id_base
 
#define vl_print(handle, ...)   vlib_cli_output (handle, __VA_ARGS__)
 
#define FINISH
 

Functions

static void * vl_api_stn_add_del_rule_t_print (vl_api_stn_add_del_rule_t *mp, void *handle)
 API message custom-dump function. More...
 
static void vl_api_stn_add_del_rule_t_handler (vl_api_stn_add_del_rule_t *mp)
 
static void send_stn_rules_details (stn_rule_t *r, vl_api_registration_t *reg, u32 context)
 
static void vl_api_stn_rules_dump_t_handler (vl_api_stn_rules_dump_t *mp)
 
clib_error_tstn_api_init (vlib_main_t *vm, stn_main_t *sm)
 

Macro Definition Documentation

◆ FINISH

#define FINISH
Value:
vec_add1 (s, 0); \
vl_print (handle, (char *)s); \
vec_free (s); \
return handle;
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
Definition: vec.h:592

Definition at line 34 of file stn_api.c.

◆ REPLY_MSG_ID_BASE

#define REPLY_MSG_ID_BASE   stn_main.msg_id_base

Definition at line 29 of file stn_api.c.

◆ vl_print

#define vl_print (   handle,
  ... 
)    vlib_cli_output (handle, __VA_ARGS__)

Definition at line 32 of file stn_api.c.

Function Documentation

◆ send_stn_rules_details()

static void send_stn_rules_details ( stn_rule_t r,
vl_api_registration_t reg,
u32  context 
)
static

Definition at line 75 of file stn_api.c.

+ Here is the call graph for this function:

◆ stn_api_init()

clib_error_t* stn_api_init ( vlib_main_t vm,
stn_main_t sm 
)

Definition at line 114 of file stn_api.c.

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

◆ vl_api_stn_add_del_rule_t_handler()

static void vl_api_stn_add_del_rule_t_handler ( vl_api_stn_add_del_rule_t mp)
static

Definition at line 59 of file stn_api.c.

+ Here is the call graph for this function:

◆ vl_api_stn_add_del_rule_t_print()

static void* vl_api_stn_add_del_rule_t_print ( vl_api_stn_add_del_rule_t mp,
void *  handle 
)
static

API message custom-dump function.

Parameters
mpvl_api_stn_add_del_rule_t * mp the api message
handlevoid * print function handle
Returns
u8 * output string

Definition at line 47 of file stn_api.c.

+ Here is the call graph for this function:

◆ vl_api_stn_rules_dump_t_handler()

static void vl_api_stn_rules_dump_t_handler ( vl_api_stn_rules_dump_t mp)
static

Definition at line 95 of file stn_api.c.

+ Here is the call graph for this function: