FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
ip6_allowlist.c File Reference
+ Include dependency graph for ip6_allowlist.c:

Go to the source code of this file.

Data Structures

struct  ip6_adl_allowlist_trace_t
 

Macros

#define foreach_ip6_adl_allowlist_error
 

Enumerations

enum  ip6_adl_allowlist_error_t { IP6_ADL_ALLOWLIST_N_ERROR }
 

Functions

static u8format_ip6_adl_allowlist_trace (u8 *s, va_list *args)
 
VLIB_NODE_FN() ip6_adl_allowlist_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static clib_error_tip6_allowlist_init (vlib_main_t *vm)
 

Variables

static char * ip6_adl_allowlist_error_strings []
 
vlib_node_registration_t ip6_adl_allowlist_node
 (constructor) VLIB_REGISTER_NODE (ip6_adl_allowlist_node) More...
 

Macro Definition Documentation

◆ foreach_ip6_adl_allowlist_error

#define foreach_ip6_adl_allowlist_error
Value:
_(ALLOWED, "ip6 allowlist allowed") \
_(DROPPED, "ip6 allowlist dropped")

Definition at line 36 of file ip6_allowlist.c.

Enumeration Type Documentation

◆ ip6_adl_allowlist_error_t

Enumerator
IP6_ADL_ALLOWLIST_N_ERROR 

Definition at line 40 of file ip6_allowlist.c.

Function Documentation

◆ format_ip6_adl_allowlist_trace()

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

Definition at line 25 of file ip6_allowlist.c.

◆ ip6_adl_allowlist_node()

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

Definition at line 53 of file ip6_allowlist.c.

+ Here is the call graph for this function:

◆ ip6_allowlist_init()

static clib_error_t* ip6_allowlist_init ( vlib_main_t vm)
static

Definition at line 295 of file ip6_allowlist.c.

Variable Documentation

◆ ip6_adl_allowlist_error_strings

char* ip6_adl_allowlist_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}

Definition at line 47 of file ip6_allowlist.c.

◆ ip6_adl_allowlist_node

vlib_node_registration_t ip6_adl_allowlist_node
Initial value:
= {
.name = "ip6-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",
},
}

(constructor) VLIB_REGISTER_NODE (ip6_adl_allowlist_node)

Definition at line 271 of file ip6_allowlist.c.

DEFAULT_RX_ADL_ALLOWLIST
@ DEFAULT_RX_ADL_ALLOWLIST
Definition: adl.h:42
ADL_RX_N_FEATURES
@ ADL_RX_N_FEATURES
Definition: adl.h:52
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
RX_ADL_DROP
@ RX_ADL_DROP
Definition: adl.h:50
DEFAULT_RX_ADL_INPUT
@ DEFAULT_RX_ADL_INPUT
Definition: adl.h:47
IP4_RX_ADL_ALLOWLIST
@ IP4_RX_ADL_ALLOWLIST
Definition: adl.h:40
ip6_adl_allowlist_error_strings
static char * ip6_adl_allowlist_error_strings[]
Definition: ip6_allowlist.c:47
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
foreach_ip6_adl_allowlist_error
#define foreach_ip6_adl_allowlist_error
Definition: ip6_allowlist.c:36
u32
unsigned int u32
Definition: types.h:88
IP6_RX_ADL_ALLOWLIST
@ IP6_RX_ADL_ALLOWLIST
Definition: adl.h:41
IP4_RX_ADL_INPUT
@ IP4_RX_ADL_INPUT
Definition: adl.h:45
format_ip6_adl_allowlist_trace
static u8 * format_ip6_adl_allowlist_trace(u8 *s, va_list *args)
Definition: ip6_allowlist.c:25
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123
IP6_RX_ADL_INPUT
@ IP6_RX_ADL_INPUT
Definition: adl.h:46