FD.io VPP  v18.04-17-g3a0d853
Vector Packet Processing
gbp_api.c File Reference
+ Include dependency graph for gbp_api.c:

Go to the source code of this file.

Data Structures

struct  gbp_main_t_
 L2 Emulation Main. More...
 
struct  gbp_walk_ctx_t_
 

Macros

#define vl_typedefs   /* define message structures */
 
#define vl_endianfun   /* define message structures */
 
#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 foreach_gbp_api_msg
 
#define GBP_MSG_BASE   gbp_main.msg_id_base
 
#define vl_msg_name_crc_list
 

Typedefs

typedef struct gbp_main_t_ gbp_main_t
 L2 Emulation Main. More...
 
typedef struct gbp_walk_ctx_t_ gbp_walk_ctx_t
 

Functions

static void vl_api_gbp_endpoint_add_del_t_handler (vl_api_gbp_endpoint_add_del_t *mp)
 
static int gbp_endpoint_send_details (gbp_endpoint_t *gbpe, void *args)
 
static void vl_api_gbp_endpoint_dump_t_handler (vl_api_gbp_endpoint_dump_t *mp)
 
static void vl_api_gbp_contract_add_del_t_handler (vl_api_gbp_contract_add_del_t *mp)
 
static int gbp_contract_send_details (gbp_contract_t *gbpc, void *args)
 
static void vl_api_gbp_contract_dump_t_handler (vl_api_gbp_contract_dump_t *mp)
 
static void setup_message_id_table (api_main_t *am)
 
static void gbp_api_hookup (vlib_main_t *vm)
 
static clib_error_tgbp_init (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (gbp_init)
 
 VLIB_PLUGIN_REGISTER ()
 

Variables

static gbp_main_t gbp_main
 

Macro Definition Documentation

#define foreach_gbp_api_msg
Value:
_(GBP_ENDPOINT_ADD_DEL, gbp_endpoint_add_del) \
_(GBP_ENDPOINT_DUMP, gbp_endpoint_dump) \
_(GBP_CONTRACT_ADD_DEL, gbp_contract_add_del) \
_(GBP_CONTRACT_DUMP, gbp_contract_dump)

Definition at line 56 of file gbp_api.c.

#define GBP_MSG_BASE   gbp_main.msg_id_base

Definition at line 72 of file gbp_api.c.

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

Definition at line 50 of file gbp_api.c.

#define vl_endianfun   /* define message structures */

Definition at line 39 of file gbp_api.c.

#define vl_msg_name_crc_list

Definition at line 230 of file gbp_api.c.

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

Definition at line 44 of file gbp_api.c.

#define vl_printfun

Definition at line 45 of file gbp_api.c.

#define vl_typedefs   /* define message structures */

Definition at line 35 of file gbp_api.c.

Typedef Documentation

typedef struct gbp_main_t_ gbp_main_t

L2 Emulation Main.

Function Documentation

static void gbp_api_hookup ( vlib_main_t vm)
static

Definition at line 244 of file gbp_api.c.

+ Here is the caller graph for this function:

static int gbp_contract_send_details ( gbp_contract_t gbpc,
void *  args 
)
static

Definition at line 183 of file gbp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int gbp_endpoint_send_details ( gbp_endpoint_t gbpe,
void *  args 
)
static

Definition at line 116 of file gbp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* gbp_init ( vlib_main_t vm)
static

Definition at line 259 of file gbp_api.c.

+ Here is the call graph for this function:

static void setup_message_id_table ( api_main_t am)
static

Definition at line 235 of file gbp_api.c.

+ Here is the caller graph for this function:

static void vl_api_gbp_contract_add_del_t_handler ( vl_api_gbp_contract_add_del_t mp)
static

Definition at line 166 of file gbp_api.c.

+ Here is the call graph for this function:

static void vl_api_gbp_contract_dump_t_handler ( vl_api_gbp_contract_dump_t mp)
static

Definition at line 207 of file gbp_api.c.

+ Here is the call graph for this function:

static void vl_api_gbp_endpoint_add_del_t_handler ( vl_api_gbp_endpoint_add_del_t mp)
static

Definition at line 75 of file gbp_api.c.

+ Here is the call graph for this function:

static void vl_api_gbp_endpoint_dump_t_handler ( vl_api_gbp_endpoint_dump_t mp)
static

Definition at line 149 of file gbp_api.c.

+ Here is the call graph for this function:

VLIB_API_INIT_FUNCTION ( gbp_init  )

+ Here is the caller graph for this function:

VLIB_PLUGIN_REGISTER ( )

+ Here is the caller graph for this function:

Variable Documentation

gbp_main_t gbp_main
static

Definition at line 70 of file gbp_api.c.