FD.io VPP  v20.05.1-6-gf53edbc3b
Vector Packet Processing
cop.c File Reference
+ Include dependency graph for cop.c:

Go to the source code of this file.

Functions

static clib_error_tcop_sw_interface_add_del (vnet_main_t *vnm, u32 sw_if_index, u32 is_add)
 
 VNET_SW_INTERFACE_ADD_DEL_FUNCTION (cop_sw_interface_add_del)
 
static clib_error_tcop_init (vlib_main_t *vm)
 
int cop_interface_enable_disable (u32 sw_if_index, int enable_disable)
 
static clib_error_tcop_enable_disable_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
int cop_whitelist_enable_disable (cop_whitelist_enable_disable_args_t *a)
 
static clib_error_tcop_whitelist_enable_disable_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

cop_main_t cop_main
 
static vlib_cli_command_t cop_interface_command
 (constructor) VLIB_CLI_COMMAND (cop_interface_command) More...
 
static vlib_cli_command_t cop_whitelist_command
 (constructor) VLIB_CLI_COMMAND (cop_whitelist_command) More...
 

Function Documentation

◆ cop_enable_disable_command_fn()

static clib_error_t* cop_enable_disable_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 174 of file cop.c.

+ Here is the call graph for this function:

◆ cop_init()

static clib_error_t* cop_init ( vlib_main_t vm)
static

Definition at line 132 of file cop.c.

+ Here is the call graph for this function:

◆ cop_interface_enable_disable()

int cop_interface_enable_disable ( u32  sw_if_index,
int  enable_disable 
)

Definition at line 149 of file cop.c.

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

◆ cop_sw_interface_add_del()

static clib_error_t* cop_sw_interface_add_del ( vnet_main_t vnm,
u32  sw_if_index,
u32  is_add 
)
static

Definition at line 20 of file cop.c.

+ Here is the call graph for this function:

◆ cop_whitelist_enable_disable()

int cop_whitelist_enable_disable ( cop_whitelist_enable_disable_args_t a)

Definition at line 227 of file cop.c.

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

◆ cop_whitelist_enable_disable_command_fn()

static clib_error_t* cop_whitelist_enable_disable_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 313 of file cop.c.

+ Here is the call graph for this function:

◆ VNET_SW_INTERFACE_ADD_DEL_FUNCTION()

VNET_SW_INTERFACE_ADD_DEL_FUNCTION ( cop_sw_interface_add_del  )
+ Here is the caller graph for this function:

Variable Documentation

◆ cop_interface_command

vlib_cli_command_t cop_interface_command
static
Initial value:
= {
.path = "cop interface",
.short_help =
"cop interface <interface-name> [disable]",
}
static clib_error_t * cop_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cop.c:174

(constructor) VLIB_CLI_COMMAND (cop_interface_command)

Definition at line 219 of file cop.c.

◆ cop_main

cop_main_t cop_main

Definition at line 17 of file cop.c.

◆ cop_whitelist_command

vlib_cli_command_t cop_whitelist_command
static
Initial value:
= {
.path = "cop whitelist",
.short_help =
"cop whitelist <interface-name> [ip4][ip6][default][fib-id <NN>][disable]",
}
static clib_error_t * cop_whitelist_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cop.c:313

(constructor) VLIB_CLI_COMMAND (cop_whitelist_command)

Definition at line 379 of file cop.c.