FD.io VPP  v18.07.1-19-g511ce25
Vector Packet Processing
dataplane_node.c File Reference
+ Include dependency graph for dataplane_node.c:

Go to the source code of this file.

Data Structures

struct  acl_fa_trace_t
 

Macros

#define foreach_acl_fa_error
 

Enumerations

enum  acl_fa_error_t { ACL_FA_N_ERROR }
 

Functions

static uword acl_fa_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_ip6, int is_input, int is_l2_path, u32 *l2_feat_next_node_index, vlib_node_registration_t *acl_fa_node)
 
VLIB_NODE_FN() acl_in_l2_ip6_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() acl_in_l2_ip4_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() acl_out_l2_ip6_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() acl_out_l2_ip4_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() acl_in_fa_ip6_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() acl_in_fa_ip4_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() acl_out_fa_ip6_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() acl_out_fa_ip4_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static u8format_fa_5tuple (u8 *s, va_list *args)
 
u8format_acl_plugin_5tuple (u8 *s, va_list *args)
 
u8format_acl_plugin_trace (u8 *s, va_list *args)
 
 VNET_FEATURE_INIT (acl_in_ip6_fa_feature, static)
 
 VNET_FEATURE_INIT (acl_in_ip4_fa_feature, static)
 
 VNET_FEATURE_INIT (acl_out_ip6_fa_feature, static)
 
 VNET_FEATURE_INIT (acl_out_ip4_fa_feature, static)
 

Variables

vlib_node_registration_t acl_in_l2_ip6_node
 (constructor) VLIB_REGISTER_NODE (acl_in_l2_ip6_node) More...
 
vlib_node_registration_t acl_in_l2_ip4_node
 (constructor) VLIB_REGISTER_NODE (acl_in_l2_ip4_node) More...
 
vlib_node_registration_t acl_out_l2_ip6_node
 (constructor) VLIB_REGISTER_NODE (acl_out_l2_ip6_node) More...
 
vlib_node_registration_t acl_out_l2_ip4_node
 (constructor) VLIB_REGISTER_NODE (acl_out_l2_ip4_node) More...
 
vlib_node_registration_t acl_in_fa_ip6_node
 (constructor) VLIB_REGISTER_NODE (acl_in_fa_ip6_node) More...
 
vlib_node_registration_t acl_in_fa_ip4_node
 (constructor) VLIB_REGISTER_NODE (acl_in_fa_ip4_node) More...
 
vlib_node_registration_t acl_out_fa_ip6_node
 (constructor) VLIB_REGISTER_NODE (acl_out_fa_ip6_node) More...
 
vlib_node_registration_t acl_out_fa_ip4_node
 (constructor) VLIB_REGISTER_NODE (acl_out_fa_ip4_node) More...
 
static char * acl_fa_error_strings []
 

Macro Definition Documentation

#define foreach_acl_fa_error
Value:
_(ACL_DROP, "ACL deny packets") \
_(ACL_PERMIT, "ACL permit packets") \
_(ACL_NEW_SESSION, "new sessions added") \
_(ACL_EXIST_SESSION, "existing session packets") \
_(ACL_CHECK, "checked packets") \
_(ACL_RESTART_SESSION_TIMER, "restart session timer") \
_(ACL_TOO_MANY_SESSIONS, "too many sessions to add new") \
/* end of errors */

Definition at line 49 of file dataplane_node.c.

Enumeration Type Documentation

Enumerator
ACL_FA_N_ERROR 

Definition at line 59 of file dataplane_node.c.

Function Documentation

static uword acl_fa_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  is_ip6,
int  is_input,
int  is_l2_path,
u32 l2_feat_next_node_index,
vlib_node_registration_t acl_fa_node 
)
inlinestatic

Definition at line 71 of file dataplane_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 389 of file dataplane_node.c.

+ Here is the call graph for this function:

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

Definition at line 381 of file dataplane_node.c.

+ Here is the call graph for this function:

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

Definition at line 346 of file dataplane_node.c.

+ Here is the call graph for this function:

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

Definition at line 335 of file dataplane_node.c.

+ Here is the call graph for this function:

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

Definition at line 405 of file dataplane_node.c.

+ Here is the call graph for this function:

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

Definition at line 397 of file dataplane_node.c.

+ Here is the call graph for this function:

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

Definition at line 368 of file dataplane_node.c.

+ Here is the call graph for this function:

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

Definition at line 357 of file dataplane_node.c.

+ Here is the call graph for this function:

u8* format_acl_plugin_5tuple ( u8 s,
va_list *  args 
)

Definition at line 445 of file dataplane_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_acl_plugin_trace ( u8 s,
va_list *  args 
)

Definition at line 452 of file dataplane_node.c.

+ Here is the call graph for this function:

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

Definition at line 414 of file dataplane_node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VNET_FEATURE_INIT ( acl_in_ip6_fa_feature  ,
static   
)
VNET_FEATURE_INIT ( acl_in_ip4_fa_feature  ,
static   
)
VNET_FEATURE_INIT ( acl_out_ip6_fa_feature  ,
static   
)
VNET_FEATURE_INIT ( acl_out_ip4_fa_feature  ,
static   
)

Variable Documentation

char* acl_fa_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_acl_fa_error

Definition at line 475 of file dataplane_node.c.

vlib_node_registration_t acl_in_fa_ip4_node
Initial value:
=
{
.name = "acl-plugin-in-ip4-fa",
.vector_size = sizeof (u32),
.format_trace = format_acl_plugin_trace,
.error_strings = acl_fa_error_strings,
.n_next_nodes = ACL_FA_N_NEXT,
.next_nodes =
{
[ACL_FA_ERROR_DROP] = "error-drop",
}
}
unsigned int u32
Definition: types.h:88
static char * acl_fa_error_strings[]
u8 * format_acl_plugin_trace(u8 *s, va_list *args)
#define ARRAY_LEN(x)
Definition: clib.h:59

(constructor) VLIB_REGISTER_NODE (acl_in_fa_ip4_node)

Definition at line 388 of file dataplane_node.c.

vlib_node_registration_t acl_in_fa_ip6_node
Initial value:
=
{
.name = "acl-plugin-in-ip6-fa",
.vector_size = sizeof (u32),
.format_trace = format_acl_plugin_trace,
.error_strings = acl_fa_error_strings,
.n_next_nodes = ACL_FA_N_NEXT,
.next_nodes =
{
[ACL_FA_ERROR_DROP] = "error-drop",
}
}
unsigned int u32
Definition: types.h:88
static char * acl_fa_error_strings[]
u8 * format_acl_plugin_trace(u8 *s, va_list *args)
#define ARRAY_LEN(x)
Definition: clib.h:59

(constructor) VLIB_REGISTER_NODE (acl_in_fa_ip6_node)

Definition at line 380 of file dataplane_node.c.

vlib_node_registration_t acl_in_l2_ip4_node
Initial value:
=
{
.name = "acl-plugin-in-ip4-l2",
.vector_size = sizeof (u32),
.format_trace = format_acl_plugin_trace,
.error_strings = acl_fa_error_strings,
.n_next_nodes = ACL_FA_N_NEXT,
.next_nodes =
{
[ACL_FA_ERROR_DROP] = "error-drop",
}
}
unsigned int u32
Definition: types.h:88
static char * acl_fa_error_strings[]
u8 * format_acl_plugin_trace(u8 *s, va_list *args)
#define ARRAY_LEN(x)
Definition: clib.h:59

(constructor) VLIB_REGISTER_NODE (acl_in_l2_ip4_node)

Definition at line 345 of file dataplane_node.c.

vlib_node_registration_t acl_in_l2_ip6_node
Initial value:
=
{
.name = "acl-plugin-in-ip6-l2",
.vector_size = sizeof (u32),
.format_trace = format_acl_plugin_trace,
.error_strings = acl_fa_error_strings,
.n_next_nodes = ACL_FA_N_NEXT,
.next_nodes =
{
[ACL_FA_ERROR_DROP] = "error-drop",
}
}
unsigned int u32
Definition: types.h:88
static char * acl_fa_error_strings[]
u8 * format_acl_plugin_trace(u8 *s, va_list *args)
#define ARRAY_LEN(x)
Definition: clib.h:59

(constructor) VLIB_REGISTER_NODE (acl_in_l2_ip6_node)

Definition at line 334 of file dataplane_node.c.

vlib_node_registration_t acl_out_fa_ip4_node
Initial value:
=
{
.name = "acl-plugin-out-ip4-fa",
.vector_size = sizeof (u32),
.format_trace = format_acl_plugin_trace,
.error_strings = acl_fa_error_strings,
.n_next_nodes = ACL_FA_N_NEXT,
.next_nodes =
{
[ACL_FA_ERROR_DROP] = "error-drop",
}
}
unsigned int u32
Definition: types.h:88
static char * acl_fa_error_strings[]
u8 * format_acl_plugin_trace(u8 *s, va_list *args)
#define ARRAY_LEN(x)
Definition: clib.h:59

(constructor) VLIB_REGISTER_NODE (acl_out_fa_ip4_node)

Definition at line 404 of file dataplane_node.c.

vlib_node_registration_t acl_out_fa_ip6_node
Initial value:
=
{
.name = "acl-plugin-out-ip6-fa",
.vector_size = sizeof (u32),
.format_trace = format_acl_plugin_trace,
.error_strings = acl_fa_error_strings,
.n_next_nodes = ACL_FA_N_NEXT,
.next_nodes =
{
[ACL_FA_ERROR_DROP] = "error-drop",
}
}
unsigned int u32
Definition: types.h:88
static char * acl_fa_error_strings[]
u8 * format_acl_plugin_trace(u8 *s, va_list *args)
#define ARRAY_LEN(x)
Definition: clib.h:59

(constructor) VLIB_REGISTER_NODE (acl_out_fa_ip6_node)

Definition at line 396 of file dataplane_node.c.

vlib_node_registration_t acl_out_l2_ip4_node
Initial value:
=
{
.name = "acl-plugin-out-ip4-l2",
.vector_size = sizeof (u32),
.format_trace = format_acl_plugin_trace,
.error_strings = acl_fa_error_strings,
.n_next_nodes = ACL_FA_N_NEXT,
.next_nodes =
{
[ACL_FA_ERROR_DROP] = "error-drop",
}
}
unsigned int u32
Definition: types.h:88
static char * acl_fa_error_strings[]
u8 * format_acl_plugin_trace(u8 *s, va_list *args)
#define ARRAY_LEN(x)
Definition: clib.h:59

(constructor) VLIB_REGISTER_NODE (acl_out_l2_ip4_node)

Definition at line 367 of file dataplane_node.c.

vlib_node_registration_t acl_out_l2_ip6_node
Initial value:
=
{
.name = "acl-plugin-out-ip6-l2",
.vector_size = sizeof (u32),
.format_trace = format_acl_plugin_trace,
.error_strings = acl_fa_error_strings,
.n_next_nodes = ACL_FA_N_NEXT,
.next_nodes =
{
[ACL_FA_ERROR_DROP] = "error-drop",
}
}
unsigned int u32
Definition: types.h:88
static char * acl_fa_error_strings[]
u8 * format_acl_plugin_trace(u8 *s, va_list *args)
#define ARRAY_LEN(x)
Definition: clib.h:59

(constructor) VLIB_REGISTER_NODE (acl_out_l2_ip6_node)

Definition at line 356 of file dataplane_node.c.