FD.io VPP  v21.01.1
Vector Packet Processing
ip4_allowlist.c File Reference
+ Include dependency graph for ip4_allowlist.c:

Go to the source code of this file.

Data Structures

struct  ip4_adl_allowlist_trace_t
 

Macros

#define foreach_ip4_adl_allowlist_error
 

Enumerations

enum  ip4_adl_allowlist_error_t { IP4_ADL_ALLOWLIST_N_ERROR }
 

Functions

static u8format_ip4_adl_allowlist_trace (u8 *s, va_list *args)
 
VLIB_NODE_FN() ip4_adl_allowlist_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static clib_error_tip4_allowlist_init (vlib_main_t *vm)
 

Variables

static char * ip4_adl_allowlist_error_strings []
 
vlib_node_registration_t ip4_adl_allowlist_node
 (constructor) VLIB_REGISTER_NODE (ip4_adl_allowlist_node) More...
 

Macro Definition Documentation

◆ foreach_ip4_adl_allowlist_error

#define foreach_ip4_adl_allowlist_error
Value:
_(ALLOWED, "ip4 allowlist allowed") \
_(DROPPED, "ip4 allowlist dropped")

Definition at line 36 of file ip4_allowlist.c.

Enumeration Type Documentation

◆ ip4_adl_allowlist_error_t

Enumerator
IP4_ADL_ALLOWLIST_N_ERROR 

Definition at line 40 of file ip4_allowlist.c.

Function Documentation

◆ format_ip4_adl_allowlist_trace()

static u8* format_ip4_adl_allowlist_trace ( u8 s,
va_list *  args 
)
static

Definition at line 25 of file ip4_allowlist.c.

◆ ip4_adl_allowlist_node()

VLIB_NODE_FN() ip4_adl_allowlist_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 53 of file ip4_allowlist.c.

+ Here is the call graph for this function:

◆ ip4_allowlist_init()

static clib_error_t* ip4_allowlist_init ( vlib_main_t vm)
static

Definition at line 338 of file ip4_allowlist.c.

Variable Documentation

◆ ip4_adl_allowlist_error_strings

char* ip4_adl_allowlist_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_ip4_adl_allowlist_error
Definition: ip4_allowlist.c:36

Definition at line 47 of file ip4_allowlist.c.

◆ ip4_adl_allowlist_node

vlib_node_registration_t ip4_adl_allowlist_node
Initial value:
= {
.name = "ip4-adl-allowlist",
.vector_size = sizeof (u32),
.n_next_nodes = ADL_RX_N_FEATURES,
.next_nodes = {
[IP4_RX_ADL_ALLOWLIST] = "ip4-adl-allowlist",
[IP6_RX_ADL_ALLOWLIST] = "ip6-adl-allowlist",
[DEFAULT_RX_ADL_ALLOWLIST] = "default-adl-allowlist",
[IP4_RX_ADL_INPUT] = "ip4-input",
[IP6_RX_ADL_INPUT] = "ip6-input",
[DEFAULT_RX_ADL_INPUT] = "ethernet-input",
[RX_ADL_DROP] = "error-drop",
},
}
unsigned int u32
Definition: types.h:88
static char * ip4_adl_allowlist_error_strings[]
Definition: ip4_allowlist.c:47
vl_api_fib_path_type_t type
Definition: fib_types.api:123
#define ARRAY_LEN(x)
Definition: clib.h:67
static u8 * format_ip4_adl_allowlist_trace(u8 *s, va_list *args)
Definition: ip4_allowlist.c:25

(constructor) VLIB_REGISTER_NODE (ip4_adl_allowlist_node)

Definition at line 314 of file ip4_allowlist.c.