FD.io VPP  v18.01.2-1-g9b554f3
Vector Packet Processing
api.c File Reference
+ Include dependency graph for 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_api_version(n, v)   static u32 api_version=(v);
 
#define vl_msg_name_crc_list
 
#define REPLY_MSG_ID_BASE   lbm->msg_id_base
 
#define FINISH
 
#define foreach_lb_plugin_api_msg
 

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 setup_message_id_table (lb_main_t *lbm, api_main_t *am)
 
static void vl_api_lb_conf_t_handler (vl_api_lb_conf_t *mp)
 
static void * vl_api_lb_conf_t_print (vl_api_lb_conf_t *mp, void *handle)
 
static void vl_api_lb_add_del_vip_t_handler (vl_api_lb_add_del_vip_t *mp)
 
static void * vl_api_lb_add_del_vip_t_print (vl_api_lb_add_del_vip_t *mp, void *handle)
 
static void vl_api_lb_add_del_as_t_handler (vl_api_lb_add_del_as_t *mp)
 
static void * vl_api_lb_add_del_as_t_print (vl_api_lb_add_del_as_t *mp, void *handle)
 
static clib_error_tlb_api_init (vlib_main_t *vm)
 

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: api.c:43
#define vec_free(V)
Free vector's memory (no header).
Definition: vec.h:336

Definition at line 68 of file api.c.

#define foreach_lb_plugin_api_msg
Value:
_(LB_CONF, lb_conf) \
_(LB_ADD_DEL_VIP, lb_add_del_vip) \
_(LB_ADD_DEL_AS, lb_add_del_as)
int lb_conf(ip4_address_t *ip4_address, ip6_address_t *ip6_address, u32 per_cpu_sticky_buckets, u32 flow_timeout)
Fix global load-balancer parameters.
Definition: lb.c:364

Definition at line 180 of file api.c.

#define REPLY_MSG_ID_BASE   lbm->msg_id_base

Definition at line 55 of file api.c.

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

Definition at line 46 of file api.c.

#define vl_endianfun

Definition at line 39 of file api.c.

#define vl_msg_id (   n,
  h 
)    n,

Definition at line 24 of file api.c.

#define vl_msg_name_crc_list

Definition at line 50 of file api.c.

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

Definition at line 43 of file api.c.

#define vl_typedefs

Definition at line 34 of file 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 25 of file api.c.

Function Documentation

static clib_error_t* lb_api_init ( vlib_main_t vm)
static

Definition at line 185 of file api.c.

+ Here is the call graph for this function:

static void setup_message_id_table ( lb_main_t lbm,
api_main_t am 
)
static

Definition at line 59 of file api.c.

+ Here is the caller graph for this function:

static void vl_api_lb_add_del_as_t_handler ( vl_api_lb_add_del_as_t mp)
static

Definition at line 147 of file api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void* vl_api_lb_add_del_as_t_print ( vl_api_lb_add_del_as_t mp,
void *  handle 
)
static

Definition at line 167 of file api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_lb_add_del_vip_t_handler ( vl_api_lb_add_del_vip_t mp)
static

Definition at line 105 of file api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void* vl_api_lb_add_del_vip_t_print ( vl_api_lb_add_del_vip_t mp,
void *  handle 
)
static

Definition at line 133 of file api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_lb_conf_t_handler ( vl_api_lb_conf_t mp)
static

Definition at line 76 of file api.c.

+ Here is the call graph for this function:

static void* vl_api_lb_conf_t_print ( vl_api_lb_conf_t mp,
void *  handle 
)
static

Definition at line 91 of file api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: