FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
api.c File Reference
+ Include dependency graph for api.c:

Go to the source code of this file.

Macros

#define vl_print(handle, ...)   vlib_cli_output (handle, __VA_ARGS__)
 
#define REPLY_MSG_ID_BASE   lbm->msg_id_base
 
#define FINISH
 

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_add_del_intf_nat4_t_handler (vl_api_lb_add_del_intf_nat4_t *mp)
 
static void vl_api_lb_add_del_intf_nat6_t_handler (vl_api_lb_add_del_intf_nat6_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:592

Definition at line 39 of file api.c.

◆ REPLY_MSG_ID_BASE

#define REPLY_MSG_ID_BASE   lbm->msg_id_base

Definition at line 35 of file api.c.

◆ vl_print

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

Definition at line 33 of file api.c.

Function Documentation

◆ lb_api_init()

static clib_error_t* lb_api_init ( vlib_main_t vm)
static

Definition at line 424 of file api.c.

+ Here is the call graph for this function:

◆ send_lb_as_details()

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

Definition at line 272 of file api.c.

◆ 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 179 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 210 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_intf_nat4_t_handler()

static void vl_api_lb_add_del_intf_nat4_t_handler ( vl_api_lb_add_del_intf_nat4_t mp)
static

Definition at line 371 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_intf_nat6_t_handler()

static void vl_api_lb_add_del_intf_nat6_t_handler ( vl_api_lb_add_del_intf_nat6_t mp)
static

Definition at line 391 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 83 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 146 of file api.c.

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

◆ vl_api_lb_as_dump_t_handler()

static void vl_api_lb_as_dump_t_handler ( vl_api_lb_as_dump_t *  mp)
static

Definition at line 311 of file api.c.

+ Here is the call 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 47 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 69 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 344 of file api.c.

+ Here is the call 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 411 of file api.c.

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

◆ vl_api_lb_vip_dump_t_handler()

static void vl_api_lb_vip_dump_t_handler ( vl_api_lb_vip_dump_t *  mp)
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: