FD.io VPP  v20.09-rc2-28-g3c5414029
Vector Packet Processing
cop_api.c File Reference
+ Include dependency graph for cop_api.c:

Go to the source code of this file.

Data Structures

struct  cop_whitelist_enable_disable_args_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 foreach_vpe_api_msg
 
#define vl_msg_name_crc_list
 

Functions

static int default_interface_enable_disable_callback (u32 sw_if_index, int enable_disable)
 
static void vl_api_cop_interface_enable_disable_t_handler (vl_api_cop_interface_enable_disable_t *mp)
 
static int default_whitelist_enable_disable_callback (cop_whitelist_enable_disable_args_t *a)
 
void register_vl_api_cop_whitelist_enable_disable_callback (void *cb)
 
static void vl_api_cop_whitelist_enable_disable_t_handler (vl_api_cop_whitelist_enable_disable_t *mp)
 
static void setup_message_id_table (api_main_t *am)
 
static clib_error_tcop_api_hookup (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (cop_api_hookup)
 

Variables

static int(* interface_enable_disable_callback )(u32, int)
 
static int(* whitelist_enable_disable_callback )(cop_whitelist_enable_disable_args_t *a)=default_whitelist_enable_disable_callback
 

Macro Definition Documentation

◆ foreach_vpe_api_msg

#define foreach_vpe_api_msg
Value:
_(COP_INTERFACE_ENABLE_DISABLE, cop_interface_enable_disable) \
_(COP_WHITELIST_ENABLE_DISABLE, cop_whitelist_enable_disable)

Definition at line 44 of file cop_api.c.

◆ vl_endianfun

#define vl_endianfun   /* define message structures */

Definition at line 32 of file cop_api.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 150 of file cop_api.c.

◆ vl_print

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

Definition at line 37 of file cop_api.c.

◆ vl_printfun

#define vl_printfun

Definition at line 38 of file cop_api.c.

◆ vl_typedefs

#define vl_typedefs   /* define message structures */

Definition at line 28 of file cop_api.c.

Function Documentation

◆ cop_api_hookup()

static clib_error_t* cop_api_hookup ( vlib_main_t vm)
static

Definition at line 163 of file cop_api.c.

+ Here is the call graph for this function:

◆ default_interface_enable_disable_callback()

static int default_interface_enable_disable_callback ( u32  sw_if_index,
int  enable_disable 
)
static

Definition at line 64 of file cop_api.c.

◆ default_whitelist_enable_disable_callback()

static int default_whitelist_enable_disable_callback ( cop_whitelist_enable_disable_args_t a)
static

Definition at line 105 of file cop_api.c.

+ Here is the caller graph for this function:

◆ register_vl_api_cop_whitelist_enable_disable_callback()

void register_vl_api_cop_whitelist_enable_disable_callback ( void *  cb)

Definition at line 115 of file cop_api.c.

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

◆ setup_message_id_table()

static void setup_message_id_table ( api_main_t am)
static

Definition at line 155 of file cop_api.c.

+ Here is the caller graph for this function:

◆ vl_api_cop_interface_enable_disable_t_handler()

static void vl_api_cop_interface_enable_disable_t_handler ( vl_api_cop_interface_enable_disable_t mp)
static

Definition at line 79 of file cop_api.c.

+ Here is the call graph for this function:

◆ vl_api_cop_whitelist_enable_disable_t_handler()

static void vl_api_cop_whitelist_enable_disable_t_handler ( vl_api_cop_whitelist_enable_disable_t mp)
static

Definition at line 121 of file cop_api.c.

+ Here is the caller graph for this function:

◆ VLIB_API_INIT_FUNCTION()

VLIB_API_INIT_FUNCTION ( cop_api_hookup  )
+ Here is the caller graph for this function:

Variable Documentation

◆ interface_enable_disable_callback

int(* interface_enable_disable_callback) (u32, int)
staticdefault

Definition at line 69 of file cop_api.c.

◆ whitelist_enable_disable_callback

int(* whitelist_enable_disable_callback) (cop_whitelist_enable_disable_args_t *a)=default_whitelist_enable_disable_callback
staticdefault

Definition at line 111 of file cop_api.c.