FD.io VPP  v18.01-8-g0eacf49
Vector Packet Processing
ip_input_acl.c File Reference
+ Include dependency graph for ip_input_acl.c:

Go to the source code of this file.

Data Structures

struct  ip_inacl_trace_t
 

Macros

#define foreach_ip_inacl_error
 

Enumerations

enum  ip_inacl_error_t { IP_INACL_N_ERROR }
 

Functions

static u8format_ip_inacl_trace (u8 *s, va_list *args)
 
static uword ip_inacl_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_ip4)
 
static uword ip4_inacl (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (ip4_inacl_node, ip4_inacl)
 
static uword ip6_inacl (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VLIB_NODE_FUNCTION_MULTIARCH (ip6_inacl_node, ip6_inacl)
 
static clib_error_tip_inacl_init (vlib_main_t *vm)
 

Variables

vlib_node_registration_t ip4_inacl_node
 (constructor) VLIB_REGISTER_NODE (ip4_inacl_node) More...
 
vlib_node_registration_t ip6_inacl_node
 (constructor) VLIB_REGISTER_NODE (ip6_inacl_node) More...
 
static char * ip_inacl_error_strings []
 

Macro Definition Documentation

#define foreach_ip_inacl_error
Value:
_(MISS, "input ACL misses") \
_(HIT, "input ACL hits") \
_(CHAIN_HIT, "input ACL hits after chain walk")

Definition at line 43 of file ip_input_acl.c.

Enumeration Type Documentation

Enumerator
IP_INACL_N_ERROR 

Definition at line 48 of file ip_input_acl.c.

Function Documentation

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

Definition at line 29 of file ip_input_acl.c.

+ Here is the call graph for this function:

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

Definition at line 388 of file ip_input_acl.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 413 of file ip_input_acl.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* ip_inacl_init ( vlib_main_t vm)
static

Definition at line 438 of file ip_input_acl.c.

+ Here is the caller graph for this function:

static uword ip_inacl_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  is_ip4 
)
inlinestatic

Definition at line 63 of file ip_input_acl.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VLIB_NODE_FUNCTION_MULTIARCH ( ip4_inacl_node  ,
ip4_inacl   
)
VLIB_NODE_FUNCTION_MULTIARCH ( ip6_inacl_node  ,
ip6_inacl   
)

Variable Documentation

vlib_node_registration_t ip4_inacl_node
Initial value:
= {
.function = ip4_inacl,
.name = "ip4-inacl",
.vector_size = sizeof (u32),
.format_trace = format_ip_inacl_trace,
.error_strings = ip_inacl_error_strings,
.n_next_nodes = ACL_NEXT_INDEX_N_NEXT,
.next_nodes = {
[ACL_NEXT_INDEX_DENY] = "ip4-drop",
},
}
static u8 * format_ip_inacl_trace(u8 *s, va_list *args)
Definition: ip_input_acl.c:29
static char * ip_inacl_error_strings[]
Definition: ip_input_acl.c:56
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static uword ip4_inacl(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip_input_acl.c:388

(constructor) VLIB_REGISTER_NODE (ip4_inacl_node)

Definition at line 40 of file ip_input_acl.c.

vlib_node_registration_t ip6_inacl_node
Initial value:
= {
.function = ip6_inacl,
.name = "ip6-inacl",
.vector_size = sizeof (u32),
.format_trace = format_ip_inacl_trace,
.error_strings = ip_inacl_error_strings,
.n_next_nodes = ACL_NEXT_INDEX_N_NEXT,
.next_nodes = {
[ACL_NEXT_INDEX_DENY] = "ip6-drop",
},
}
static u8 * format_ip_inacl_trace(u8 *s, va_list *args)
Definition: ip_input_acl.c:29
static char * ip_inacl_error_strings[]
Definition: ip_input_acl.c:56
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static uword ip6_inacl(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip_input_acl.c:413

(constructor) VLIB_REGISTER_NODE (ip6_inacl_node)

Definition at line 41 of file ip_input_acl.c.

char* ip_inacl_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_ip_inacl_error
Definition: ip_input_acl.c:43

Definition at line 56 of file ip_input_acl.c.