FD.io VPP  v19.01.3-6-g70449b9b9
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, 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 void vl_api_lb_flush_vip_t_handler (vl_api_lb_flush_vip_t *mp)
 
static void * vl_api_lb_flush_vip_t_print (vl_api_lb_flush_vip_t *mp, void *handle)
 
static clib_error_tlb_api_init (vlib_main_t *vm)
 

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:525

Definition at line 68 of file api.c.

◆ foreach_lb_plugin_api_msg

#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) \
_(LB_FLUSH_VIP, lb_flush_vip)
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:472

Definition at line 285 of file api.c.

◆ REPLY_MSG_ID_BASE

#define REPLY_MSG_ID_BASE   lbm->msg_id_base

Definition at line 55 of file api.c.

◆ vl_api_version

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

Definition at line 46 of file api.c.

◆ vl_endianfun

#define vl_endianfun

Definition at line 39 of file api.c.

◆ vl_msg_id

#define vl_msg_id (   n,
  h 
)    n,

Definition at line 24 of file api.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 50 of file api.c.

◆ vl_print

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

Definition at line 43 of file api.c.

◆ vl_typedefs

#define vl_typedefs

Definition at line 34 of file api.c.

Enumeration Type Documentation

◆ vl_msg_id_t

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 
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

◆ lb_api_init()

static clib_error_t* lb_api_init ( vlib_main_t vm)
static

Definition at line 291 of file api.c.

+ Here is the call graph for this function:

◆ setup_message_id_table()

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:

◆ vl_api_lb_add_del_as_t_handler()

static void vl_api_lb_add_del_as_t_handler ( vl_api_lb_add_del_as_t mp)
static

Definition at line 200 of file api.c.

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

◆ vl_api_lb_add_del_as_t_print()

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

Definition at line 230 of file api.c.

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

◆ vl_api_lb_add_del_vip_t_handler()

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:

◆ vl_api_lb_add_del_vip_t_print()

static void* vl_api_lb_add_del_vip_t_print ( vl_api_lb_add_del_vip_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:

◆ vl_api_lb_conf_t_handler()

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:

◆ vl_api_lb_conf_t_print()

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:

◆ vl_api_lb_flush_vip_t_handler()

static void vl_api_lb_flush_vip_t_handler ( vl_api_lb_flush_vip_t mp)
static

Definition at line 244 of file api.c.

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

◆ vl_api_lb_flush_vip_t_print()

static void* vl_api_lb_flush_vip_t_print ( vl_api_lb_flush_vip_t mp,
void *  handle 
)
static

Definition at line 271 of file api.c.

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