FD.io VPP  v18.01.2-1-g9b554f3
Vector Packet Processing
l2_input_acl.c File Reference
+ Include dependency graph for l2_input_acl.c:

Go to the source code of this file.

Data Structures

struct  l2_inacl_main_t
 
struct  l2_inacl_trace_t
 

Macros

#define foreach_l2_inacl_error
 

Enumerations

enum  l2_inacl_error_t { L2_INACL_N_ERROR }
 

Functions

static u8format_l2_inacl_trace (u8 *s, va_list *args)
 
static uword l2_inacl_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
clib_error_tl2_inacl_init (vlib_main_t *vm)
 

Variables

l2_inacl_main_t l2_inacl_main
 
static vlib_node_registration_t l2_inacl_node
 (constructor) VLIB_REGISTER_NODE (l2_inacl_node) More...
 
static char * l2_inacl_error_strings []
 

Macro Definition Documentation

#define foreach_l2_inacl_error
Value:
_(NONE, "valid input ACL packets") \
_(MISS, "input ACL misses") \
_(HIT, "input ACL hits") \
_(CHAIN_HIT, "input ACL hits after chain walk") \
_(TABLE_MISS, "input ACL table-miss drops") \
_(SESSION_DENY, "input ACL session deny drops")

Definition at line 73 of file l2_input_acl.c.

Enumeration Type Documentation

Enumerator
L2_INACL_N_ERROR 

Definition at line 82 of file l2_input_acl.c.

Function Documentation

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

Definition at line 58 of file l2_input_acl.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* l2_inacl_init ( vlib_main_t vm)

Definition at line 406 of file l2_input_acl.c.

+ Here is the call graph for this function:

static uword l2_inacl_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 97 of file l2_input_acl.c.

+ Here is the call graph for this function:

Variable Documentation

char* l2_inacl_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_l2_inacl_error
Definition: l2_input_acl.c:73

Definition at line 90 of file l2_input_acl.c.

l2_inacl_main_t l2_inacl_main

Definition at line 69 of file l2_input_acl.c.

static vlib_node_registration_t l2_inacl_node
static
Initial value:
= {
.function = l2_inacl_node_fn,
.name = "l2-input-acl",
.vector_size = sizeof (u32),
.format_trace = format_l2_inacl_trace,
.error_strings = l2_inacl_error_strings,
.n_next_nodes = ACL_NEXT_INDEX_N_NEXT,
.next_nodes = {
[ACL_NEXT_INDEX_DENY] = "error-drop",
},
}
static u8 * format_l2_inacl_trace(u8 *s, va_list *args)
Definition: l2_input_acl.c:58
static char * l2_inacl_error_strings[]
Definition: l2_input_acl.c:90
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static uword l2_inacl_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: l2_input_acl.c:97

(constructor) VLIB_REGISTER_NODE (l2_inacl_node)

Definition at line 71 of file l2_input_acl.c.