FD.io VPP  v21.01.1
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_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 57 of file stn_api.c.

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

◆ stn_api_init()

clib_error_t* stn_api_init ( vlib_main_t vm,
stn_main_t sm 
)

Definition at line 96 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 41 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 77 of file stn_api.c.

+ Here is the call graph for this function: