FD.io VPP  v16.09
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)
 
static uword ip6_inacl (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
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 41 of file ip_input_acl.c.

Enumeration Type Documentation

Enumerator
IP_INACL_N_ERROR 

Definition at line 46 of file ip_input_acl.c.

Function Documentation

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

Definition at line 27 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 350 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 375 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 400 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 60 of file ip_input_acl.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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] = "error-drop",
},
}
static u8 * format_ip_inacl_trace(u8 *s, va_list *args)
Definition: ip_input_acl.c:27
static char * ip_inacl_error_strings[]
Definition: ip_input_acl.c:53
#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:350

(constructor) VLIB_REGISTER_NODE (ip4_inacl_node)

Definition at line 38 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] = "error-drop",
},
}
static u8 * format_ip_inacl_trace(u8 *s, va_list *args)
Definition: ip_input_acl.c:27
static char * ip_inacl_error_strings[]
Definition: ip_input_acl.c:53
#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:375

(constructor) VLIB_REGISTER_NODE (ip6_inacl_node)

Definition at line 39 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:41

Definition at line 53 of file ip_input_acl.c.