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

Go to the source code of this file.

Data Structures

struct  l2_outacl_main_t
 
struct  l2_outacl_trace_t
 

Macros

#define foreach_l2_outacl_error
 

Enumerations

enum  l2_outacl_error_t { L2_OUTACL_N_ERROR }
 
enum  l2_outacl_next_t { L2_OUTACL_NEXT_DROP, L2_OUTACL_N_NEXT }
 

Functions

static u8format_l2_outacl_trace (u8 *s, va_list *args)
 
static uword l2_outacl_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
clib_error_tl2_outacl_init (vlib_main_t *vm)
 

Variables

l2_outacl_main_t l2_outacl_main
 
static vlib_node_registration_t l2_outacl_node
 (constructor) VLIB_REGISTER_NODE (l2_outacl_node) More...
 
static char * l2_outacl_error_strings []
 

Macro Definition Documentation

#define foreach_l2_outacl_error
Value:
_(L2_OUTACL, "L2 output ACL packets") \
_(DROP, "L2 output drops")
DROP
Definition: error.def:41

Definition at line 75 of file l2_output_acl.c.

Enumeration Type Documentation

Enumerator
L2_OUTACL_N_ERROR 

Definition at line 79 of file l2_output_acl.c.

Enumerator
L2_OUTACL_NEXT_DROP 
L2_OUTACL_N_NEXT 

Definition at line 93 of file l2_output_acl.c.

Function Documentation

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

Definition at line 58 of file l2_output_acl.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* l2_outacl_init ( vlib_main_t vm)

Definition at line 272 of file l2_output_acl.c.

+ Here is the call graph for this function:

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

Definition at line 102 of file l2_output_acl.c.

+ Here is the call graph for this function:

Variable Documentation

char* l2_outacl_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_l2_outacl_error
Definition: l2_output_acl.c:75

Definition at line 87 of file l2_output_acl.c.

l2_outacl_main_t l2_outacl_main

Definition at line 71 of file l2_output_acl.c.

static vlib_node_registration_t l2_outacl_node
static
Initial value:
= {
.function = l2_outacl_node_fn,
.name = "l2-output-acl",
.vector_size = sizeof (u32),
.format_trace = format_l2_outacl_trace,
.error_strings = l2_outacl_error_strings,
.n_next_nodes = L2_OUTACL_N_NEXT,
.next_nodes = {
[L2_OUTACL_NEXT_DROP] = "error-drop",
},
}
static uword l2_outacl_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static u8 * format_l2_outacl_trace(u8 *s, va_list *args)
Definition: l2_output_acl.c:58
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static char * l2_outacl_error_strings[]
Definition: l2_output_acl.c:87

(constructor) VLIB_REGISTER_NODE (l2_outacl_node)

Definition at line 73 of file l2_output_acl.c.