FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
ip_in_out_acl.c File Reference
+ Include dependency graph for ip_in_out_acl.c:

Go to the source code of this file.

Data Structures

struct  ip_in_out_acl_trace_t
 

Macros

#define foreach_ip_inacl_error
 
#define foreach_ip_outacl_error
 

Enumerations

enum  ip_inacl_error_t { IP_INACL_N_ERROR }
 
enum  ip_outacl_error_t { IP_OUTACL_N_ERROR }
 

Functions

static u8format_ip_in_out_acl_trace (u8 *s, u32 is_output, va_list *args)
 
static u8format_ip_inacl_trace (u8 *s, va_list *args)
 
static u8format_ip_outacl_trace (u8 *s, va_list *args)
 
static uword ip_in_out_acl_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_ip4, int is_output)
 
VLIB_NODE_FN() ip4_inacl_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip4_outacl_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip6_inacl_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip6_outacl_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static clib_error_tip_in_out_acl_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 ip4_outacl_node
 (constructor) VLIB_REGISTER_NODE (ip4_outacl_node) More...
 
vlib_node_registration_t ip6_inacl_node
 (constructor) VLIB_REGISTER_NODE (ip6_inacl_node) More...
 
vlib_node_registration_t ip6_outacl_node
 (constructor) VLIB_REGISTER_NODE (ip6_outacl_node) More...
 
static char * ip_inacl_error_strings []
 
static char * ip_outacl_error_strings []
 

Macro Definition Documentation

◆ foreach_ip_inacl_error

#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 58 of file ip_in_out_acl.c.

◆ foreach_ip_outacl_error

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

Definition at line 63 of file ip_in_out_acl.c.

Enumeration Type Documentation

◆ ip_inacl_error_t

Enumerator
IP_INACL_N_ERROR 

Definition at line 68 of file ip_in_out_acl.c.

◆ ip_outacl_error_t

Enumerator
IP_OUTACL_N_ERROR 

Definition at line 82 of file ip_in_out_acl.c.

Function Documentation

◆ format_ip_in_out_acl_trace()

static u8* format_ip_in_out_acl_trace ( u8 s,
u32  is_output,
va_list *  args 
)
static

Definition at line 29 of file ip_in_out_acl.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_ip_inacl_trace()

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

Definition at line 42 of file ip_in_out_acl.c.

+ Here is the call graph for this function:

◆ format_ip_outacl_trace()

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

Definition at line 48 of file ip_in_out_acl.c.

+ Here is the call graph for this function:

◆ ip4_inacl_node()

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

Definition at line 489 of file ip_in_out_acl.c.

+ Here is the call graph for this function:

◆ ip4_outacl_node()

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

Definition at line 496 of file ip_in_out_acl.c.

+ Here is the call graph for this function:

◆ ip6_inacl_node()

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

Definition at line 532 of file ip_in_out_acl.c.

+ Here is the call graph for this function:

◆ ip6_outacl_node()

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

Definition at line 539 of file ip_in_out_acl.c.

+ Here is the call graph for this function:

◆ ip_in_out_acl_init()

static clib_error_t* ip_in_out_acl_init ( vlib_main_t vm)
static

Definition at line 576 of file ip_in_out_acl.c.

+ Here is the caller graph for this function:

◆ ip_in_out_acl_inline()

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

Definition at line 97 of file ip_in_out_acl.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ ip4_inacl_node

vlib_node_registration_t ip4_inacl_node
Initial value:
= {
.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",
},
}
unsigned int u32
Definition: types.h:88
static char * ip_inacl_error_strings[]
Definition: ip_in_out_acl.c:76
#define ARRAY_LEN(x)
Definition: clib.h:62
static u8 * format_ip_inacl_trace(u8 *s, va_list *args)
Definition: ip_in_out_acl.c:42

(constructor) VLIB_REGISTER_NODE (ip4_inacl_node)

Definition at line 505 of file ip_in_out_acl.c.

◆ ip4_outacl_node

vlib_node_registration_t ip4_outacl_node
Initial value:
= {
.name = "ip4-outacl",
.vector_size = sizeof (u32),
.format_trace = format_ip_outacl_trace,
.error_strings = ip_outacl_error_strings,
.n_next_nodes = ACL_NEXT_INDEX_N_NEXT,
.next_nodes = {
[ACL_NEXT_INDEX_DENY] = "ip4-drop",
},
}
unsigned int u32
Definition: types.h:88
#define ARRAY_LEN(x)
Definition: clib.h:62
static u8 * format_ip_outacl_trace(u8 *s, va_list *args)
Definition: ip_in_out_acl.c:48
static char * ip_outacl_error_strings[]
Definition: ip_in_out_acl.c:90

(constructor) VLIB_REGISTER_NODE (ip4_outacl_node)

Definition at line 518 of file ip_in_out_acl.c.

◆ ip6_inacl_node

vlib_node_registration_t ip6_inacl_node
Initial value:
= {
.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",
},
}
unsigned int u32
Definition: types.h:88
static char * ip_inacl_error_strings[]
Definition: ip_in_out_acl.c:76
#define ARRAY_LEN(x)
Definition: clib.h:62
static u8 * format_ip_inacl_trace(u8 *s, va_list *args)
Definition: ip_in_out_acl.c:42

(constructor) VLIB_REGISTER_NODE (ip6_inacl_node)

Definition at line 547 of file ip_in_out_acl.c.

◆ ip6_outacl_node

vlib_node_registration_t ip6_outacl_node
Initial value:
= {
.name = "ip6-outacl",
.vector_size = sizeof (u32),
.format_trace = format_ip_outacl_trace,
.error_strings = ip_outacl_error_strings,
.n_next_nodes = ACL_NEXT_INDEX_N_NEXT,
.next_nodes = {
[ACL_NEXT_INDEX_DENY] = "ip6-drop",
},
}
unsigned int u32
Definition: types.h:88
#define ARRAY_LEN(x)
Definition: clib.h:62
static u8 * format_ip_outacl_trace(u8 *s, va_list *args)
Definition: ip_in_out_acl.c:48
static char * ip_outacl_error_strings[]
Definition: ip_in_out_acl.c:90

(constructor) VLIB_REGISTER_NODE (ip6_outacl_node)

Definition at line 560 of file ip_in_out_acl.c.

◆ ip_inacl_error_strings

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

Definition at line 76 of file ip_in_out_acl.c.

◆ ip_outacl_error_strings

char* ip_outacl_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_ip_outacl_error
Definition: ip_in_out_acl.c:63

Definition at line 90 of file ip_in_out_acl.c.