FD.io VPP  v17.01-9-ge7dcee4
Vector Packet Processing
acl.h File Reference
+ Include dependency graph for acl.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  address_t
 
struct  acl_rule_t
 
struct  macip_acl_rule_t
 
struct  acl_list_t
 
struct  macip_acl_list_t
 
struct  acl_main_t
 

Macros

#define ACL_PLUGIN_VERSION_MAJOR   1
 
#define ACL_PLUGIN_VERSION_MINOR   1
 

Enumerations

enum  address_e { IP4, IP6 }
 

Functions

void input_acl_packet_match (u32 sw_if_index, vlib_buffer_t *b0, u32 *nextp, u32 *acl_match_p, u32 *rule_match_p, u32 *trace_bitmap)
 
void output_acl_packet_match (u32 sw_if_index, vlib_buffer_t *b0, u32 *nextp, u32 *acl_match_p, u32 *rule_match_p, u32 *trace_bitmap)
 

Variables

vlib_node_registration_t acl_in_node
 (constructor) VLIB_REGISTER_NODE (acl_in_node) More...
 
vlib_node_registration_t acl_out_node
 (constructor) VLIB_REGISTER_NODE (acl_out_node) More...
 
acl_main_t acl_main
 

Macro Definition Documentation

#define ACL_PLUGIN_VERSION_MAJOR   1

Definition at line 28 of file acl.h.

#define ACL_PLUGIN_VERSION_MINOR   1

Definition at line 29 of file acl.h.

Enumeration Type Documentation

enum address_e
Enumerator
IP4 
IP6 

Definition at line 37 of file acl.h.

Function Documentation

void input_acl_packet_match ( u32  sw_if_index,
vlib_buffer_t b0,
u32 nextp,
u32 acl_match_p,
u32 rule_match_p,
u32 trace_bitmap 
)

Definition at line 970 of file acl.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void output_acl_packet_match ( u32  sw_if_index,
vlib_buffer_t b0,
u32 nextp,
u32 acl_match_p,
u32 rule_match_p,
u32 trace_bitmap 
)

Definition at line 1006 of file acl.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

Initial value:
=
{
.function = acl_in_node_fn,.name = "acl-plugin-in",.vector_size =
sizeof (u32),.format_trace = format_acl_in_trace,.type =
ARRAY_LEN (acl_in_error_strings),.error_strings =
.next_nodes =
{
[ACL_IN_ERROR_DROP] = "error-drop",
[ACL_IN_ETHERNET_INPUT] = "ethernet-input",
[ACL_IN_L2S_INPUT_IP4_ADD] = "aclp-l2s-input-ip4-add",
[ACL_IN_L2S_INPUT_IP6_ADD] = "aclp-l2s-input-ip6-add",}
,}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static uword acl_in_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node_in.c:67
static char * acl_in_error_strings[]
Definition: node_in.c:60
static u8 * format_acl_in_trace(u8 *s, va_list *args)
Definition: node_in.c:33

(constructor) VLIB_REGISTER_NODE (acl_in_node)

Definition at line 154 of file node_in.c.

acl_main_t acl_main

Definition at line 57 of file acl.c.

Initial value:
=
{
.function = acl_out_node_fn,.name = "acl-plugin-out",.vector_size =
sizeof (u32),.format_trace = format_acl_out_trace,.type =
ARRAY_LEN (acl_out_error_strings),.error_strings =
.next_nodes =
{
[ACL_OUT_ERROR_DROP] = "error-drop",
[ACL_OUT_INTERFACE_OUTPUT] = "interface-output",
[ACL_OUT_L2S_OUTPUT_IP4_ADD] = "aclp-l2s-output-ip4-add",
[ACL_OUT_L2S_OUTPUT_IP6_ADD] = "aclp-l2s-output-ip6-add",}
,}
static uword acl_out_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node_out.c:67
static u8 * format_acl_out_trace(u8 *s, va_list *args)
Definition: node_out.c:34
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static char * acl_out_error_strings[]
Definition: node_out.c:60

(constructor) VLIB_REGISTER_NODE (acl_out_node)

Definition at line 155 of file node_out.c.