FD.io VPP  v19.04-6-g6f05f72
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 vl_typedefs
 
#define vl_endianfun
 
#define vl_print(handle, ...)   vlib_cli_output (handle, __VA_ARGS__)
 
#define vl_printfun
 
#define vl_api_version(n, v)   static u32 api_version=(v);
 
#define REPLY_MSG_ID_BASE   stn_main.msg_id_base
 
#define FINISH
 
#define foreach_stn_plugin_api_msg
 
#define vl_msg_name_crc_list
 

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)
 
static clib_error_tstn_plugin_api_hookup (vlib_main_t *vm)
 Set up the API message handling tables. More...
 
static void setup_message_id_table (stn_main_t *stn, api_main_t *am)
 
static void plugin_custom_dump_configure (stn_main_t *stn)
 
clib_error_tstn_api_init (vlib_main_t *vm, stn_main_t *sm)
 

Macro Definition Documentation

#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:522
#define vl_print(handle,...)
Definition: stn_api.c:38
#define vec_free(V)
Free vector's memory (no header).
Definition: vec.h:341

Definition at line 52 of file stn_api.c.

#define foreach_stn_plugin_api_msg
Value:
_(STN_ADD_DEL_RULE, stn_add_del_rule) \
_(STN_RULES_DUMP, stn_rules_dump)

Definition at line 150 of file stn_api.c.

#define REPLY_MSG_ID_BASE   stn_main.msg_id_base

Definition at line 48 of file stn_api.c.

#define vl_api_version (   n,
 
)    static u32 api_version=(v);

Definition at line 44 of file stn_api.c.

#define vl_endianfun

Definition at line 33 of file stn_api.c.

#define vl_msg_name_crc_list

Definition at line 177 of file stn_api.c.

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

Definition at line 38 of file stn_api.c.

#define vl_printfun

Definition at line 39 of file stn_api.c.

#define vl_typedefs

Definition at line 28 of file stn_api.c.

Function Documentation

static void plugin_custom_dump_configure ( stn_main_t stn)
static

Definition at line 191 of file stn_api.c.

+ Here is the caller graph for this function:

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

Definition at line 104 of file stn_api.c.

+ Here is the call graph for this function:

static void setup_message_id_table ( stn_main_t stn,
api_main_t am 
)
static

Definition at line 182 of file stn_api.c.

+ Here is the caller graph for this function:

clib_error_t* stn_api_init ( vlib_main_t vm,
stn_main_t sm 
)

Definition at line 201 of file stn_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* stn_plugin_api_hookup ( vlib_main_t vm)
static

Set up the API message handling tables.

Parameters
vmvlib_main_t * vlib main data structure pointer
Returns
0 to indicate all is well

Definition at line 160 of file stn_api.c.

+ Here is the caller graph for this function:

static void vl_api_stn_add_del_rule_t_handler ( vl_api_stn_add_del_rule_t mp)
static

Definition at line 80 of file stn_api.c.

+ Here is the call graph for this function:

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 65 of file stn_api.c.

+ Here is the call graph for this function:

static void vl_api_stn_rules_dump_t_handler ( vl_api_stn_rules_dump_t mp)
static

Definition at line 131 of file stn_api.c.

+ Here is the call graph for this function: