FD.io VPP  v18.01-8-g0eacf49
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_msg_id(n, h)   n,
 
#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
 

Enumerations

enum  vl_msg_id_t {
  VL_ILLEGAL_MESSAGE_ID = 0, VL_ILLEGAL_MESSAGE_ID = 0, VL_MSG_FIRST_AVAILABLE, VL_ILLEGAL_MESSAGE_ID = 0,
  VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE,
  VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE,
  VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE,
  VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE,
  VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE,
  VL_MSG_FIRST_AVAILABLE, VL_MSG_FIRST_AVAILABLE
}
 

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_rule (stn_rule_t *r, unix_shared_memory_queue_t *q, 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:518
#define vl_print(handle,...)
Definition: stn_api.c:45
#define vec_free(V)
Free vector's memory (no header).
Definition: vec.h:336

Definition at line 59 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 159 of file stn_api.c.

#define REPLY_MSG_ID_BASE   stn_main.msg_id_base

Definition at line 55 of file stn_api.c.

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

Definition at line 51 of file stn_api.c.

#define vl_endianfun

Definition at line 40 of file stn_api.c.

#define vl_msg_id (   n,
  h 
)    n,

Definition at line 25 of file stn_api.c.

#define vl_msg_name_crc_list

Definition at line 186 of file stn_api.c.

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

Definition at line 45 of file stn_api.c.

#define vl_printfun

Definition at line 46 of file stn_api.c.

#define vl_typedefs

Definition at line 35 of file stn_api.c.

Enumeration Type Documentation

Enumerator
VL_ILLEGAL_MESSAGE_ID 
VL_ILLEGAL_MESSAGE_ID 
VL_MSG_FIRST_AVAILABLE 
VL_ILLEGAL_MESSAGE_ID 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 
VL_MSG_FIRST_AVAILABLE 

Definition at line 26 of file stn_api.c.

Function Documentation

static void plugin_custom_dump_configure ( stn_main_t stn)
static

Definition at line 200 of file stn_api.c.

+ Here is the caller graph for this function:

static void send_stn_rule ( stn_rule_t r,
unix_shared_memory_queue_t q,
u32  context 
)
static

Definition at line 111 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 191 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 210 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 169 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 87 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 72 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 138 of file stn_api.c.

+ Here is the call graph for this function: