FD.io VPP  v19.08-27-gf4dcae4
Vector Packet Processing
api.c File Reference
+ Include dependency graph for 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   lbm->msg_id_base
 
#define foreach_lb_plugin_api_msg
 
#define FINISH
 
#define vl_msg_name_crc_list
 

Functions

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_vip_dump_t_handler (vl_api_lb_vip_dump_t *mp)
 
static void send_lb_as_details (vl_api_registration_t *reg, u32 context, lb_vip_t *vip)
 
static void vl_api_lb_as_dump_t_handler (vl_api_lb_as_dump_t *mp)
 
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_plugin_api_hookup (vlib_main_t *vm)
 
static void setup_message_id_table (lb_main_t *lmp, api_main_t *am)
 
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:522
#define vl_print(handle,...)
Definition: api.c:42
#define vec_free(V)
Free vector's memory (no header).
Definition: vec.h:341

Definition at line 66 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) \
_(LB_VIP_DUMP, lb_vip_dump) \
_(LB_AS_DUMP, lb_as_dump) \
_(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:473

Definition at line 56 of file api.c.

#define REPLY_MSG_ID_BASE   lbm->msg_id_base

Definition at line 52 of file api.c.

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

Definition at line 48 of file api.c.

#define vl_endianfun

Definition at line 37 of file api.c.

#define vl_msg_name_crc_list

Definition at line 428 of file api.c.

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

Definition at line 42 of file api.c.

#define vl_printfun

Definition at line 43 of file api.c.

#define vl_typedefs

Definition at line 32 of file api.c.

Function Documentation

static clib_error_t* lb_api_init ( vlib_main_t vm)
static

Definition at line 440 of file api.c.

+ Here is the call graph for this function:

static clib_error_t* lb_plugin_api_hookup ( vlib_main_t vm)
static

Definition at line 411 of file api.c.

+ Here is the caller graph for this function:

static void send_lb_as_details ( vl_api_registration_t reg,
u32  context,
lb_vip_t vip 
)
static

Definition at line 298 of file api.c.

static void setup_message_id_table ( lb_main_t lmp,
api_main_t am 
)
static

Definition at line 433 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 206 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 236 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 110 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 173 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_as_dump_t_handler ( vl_api_lb_as_dump_t *  mp)
static

Definition at line 337 of file api.c.

+ Here is the call graph for this function:

static void vl_api_lb_conf_t_handler ( vl_api_lb_conf_t mp)
static

Definition at line 74 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 96 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_flush_vip_t_handler ( vl_api_lb_flush_vip_t mp)
static

Definition at line 370 of file api.c.

+ Here is the call graph for this function:

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

Definition at line 397 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_vip_dump_t_handler ( vl_api_lb_vip_dump_t *  mp)
static

Definition at line 256 of file api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: