FD.io VPP  v17.04.2-2-ga8f93f8
Vector Packet Processing
cop.h File Reference
+ Include dependency graph for cop.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cop_config_main_t
 
struct  cop_config_data_t
 
struct  cop_main_t
 
struct  cop_whitelist_enable_disable_args_t
 

Enumerations

enum  vnet_cop_t { VNET_COP_IP4, VNET_COP_IP6, VNET_COP_DEFAULT, VNET_N_COPS }
 
enum  cop_feature_type_t {
  IP4_RX_COP_WHITELIST, IP6_RX_COP_WHITELIST, DEFAULT_RX_COP_WHITELIST, IP4_RX_COP_INPUT,
  IP6_RX_COP_INPUT, DEFAULT_RX_COP_INPUT, RX_COP_DROP, COP_RX_N_FEATURES
}
 

Functions

int cop_interface_enable_disable (u32 sw_if_index, int enable_disable)
 
int cop_whitelist_enable_disable (cop_whitelist_enable_disable_args_t *a)
 

Variables

cop_main_t cop_main
 
vlib_node_registration_t cop_input_node
 (constructor) VLIB_REGISTER_NODE (cop_input_node) More...
 

Enumeration Type Documentation

Enumerator
IP4_RX_COP_WHITELIST 
IP6_RX_COP_WHITELIST 
DEFAULT_RX_COP_WHITELIST 
IP4_RX_COP_INPUT 
IP6_RX_COP_INPUT 
DEFAULT_RX_COP_INPUT 
RX_COP_DROP 
COP_RX_N_FEATURES 

Definition at line 39 of file cop.h.

enum vnet_cop_t
Enumerator
VNET_COP_IP4 
VNET_COP_IP6 
VNET_COP_DEFAULT 
VNET_N_COPS 

Definition at line 32 of file cop.h.

Function Documentation

int cop_interface_enable_disable ( u32  sw_if_index,
int  enable_disable 
)

Definition at line 151 of file cop.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int cop_whitelist_enable_disable ( cop_whitelist_enable_disable_args_t a)

Definition at line 229 of file cop.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vlib_node_registration_t cop_input_node
Initial value:
= {
.function = cop_input_node_fn,
.name = "cop-input",
.vector_size = sizeof (u32),
.format_trace = format_cop_input_trace,
.error_strings = cop_input_error_strings,
.n_next_nodes = COP_RX_N_FEATURES,
.next_nodes = {
[IP4_RX_COP_WHITELIST] = "ip4-cop-whitelist",
[IP6_RX_COP_WHITELIST] = "ip6-cop-whitelist",
[DEFAULT_RX_COP_WHITELIST] = "default-cop-whitelist",
[IP4_RX_COP_INPUT] = "ip4-input",
[IP6_RX_COP_INPUT] = "ip6-input",
[DEFAULT_RX_COP_INPUT] = "ethernet-input",
[RX_COP_DROP] = "error-drop",
},
}
static char * cop_input_error_strings[]
Definition: node1.c:47
static uword cop_input_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node1.c:54
static u8 * format_cop_input_trace(u8 *s, va_list *args)
Definition: node1.c:24
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (cop_input_node)

Definition at line 261 of file node1.c.

cop_main_t cop_main

Definition at line 73 of file cop.h.