FD.io VPP  v18.07-rc0-415-g6c78436
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  macip_acl_rule_t
 
struct  acl_list_t
 
struct  macip_acl_list_t
 
struct  ace_mask_type_entry_t
 
struct  acl_main_t
 

Macros

#define ACL_PLUGIN_VERSION_MAJOR   1
 
#define ACL_PLUGIN_VERSION_MINOR   3
 
#define UDP_SESSION_IDLE_TIMEOUT_SEC   600
 
#define TCP_SESSION_IDLE_TIMEOUT_SEC   (3600*24)
 
#define TCP_SESSION_TRANSIENT_TIMEOUT_SEC   120
 
#define SESSION_PURGATORY_TIMEOUT_USEC   10
 
#define ACL_PLUGIN_HASH_LOOKUP_HEAP_SIZE   (2 << 25)
 
#define ACL_PLUGIN_HASH_LOOKUP_HASH_BUCKETS   65536
 
#define ACL_PLUGIN_HASH_LOOKUP_HASH_MEMORY   (2 << 25)
 
#define ACL_FA_DEFAULT_MAX_DELETED_SESSIONS_PER_INTERVAL   100
 
#define ACL_FA_DEFAULT_MIN_DELETED_SESSIONS_PER_INTERVAL   1
 
#define ACL_FA_DEFAULT_CLEANER_WAIT_TIME_INCREMENT   0.1
 
#define foreach_fa_cleaner_counter
 
#define acl_log_err(...)   vlib_log(VLIB_LOG_LEVEL_ERR, acl_main.log_default, __VA_ARGS__)
 
#define acl_log_warn(...)   vlib_log(VLIB_LOG_LEVEL_WARNING, acl_main.log_default, __VA_ARGS__)
 
#define acl_log_notice(...)   vlib_log(VLIB_LOG_LEVEL_NOTICE, acl_main.log_default, __VA_ARGS__)
 
#define acl_log_info(...)   vlib_log(VLIB_LOG_LEVEL_INFO, acl_main.log_default, __VA_ARGS__)
 
#define foreach_acl_eh
 

Enumerations

enum  acl_timeout_e {
  ACL_TIMEOUT_UNUSED = 0, ACL_TIMEOUT_UDP_IDLE, ACL_TIMEOUT_TCP_IDLE, ACL_TIMEOUT_TCP_TRANSIENT,
  ACL_N_USER_TIMEOUTS, ACL_TIMEOUT_PURGATORY = ACL_N_USER_TIMEOUTS, ACL_N_TIMEOUTS
}
 
enum  address_e { IP4, IP6 }
 
enum  acl_eh_t { foreach_acl_eh }
 

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)
 
void * acl_plugin_set_heap ()
 

Variables

vlib_node_registration_t acl_in_node
 
vlib_node_registration_t acl_out_node
 
acl_main_t acl_main
 

Macro Definition Documentation

#define ACL_FA_DEFAULT_CLEANER_WAIT_TIME_INCREMENT   0.1

Definition at line 289 of file acl.h.

#define ACL_FA_DEFAULT_MAX_DELETED_SESSIONS_PER_INTERVAL   100

Definition at line 278 of file acl.h.

#define ACL_FA_DEFAULT_MIN_DELETED_SESSIONS_PER_INTERVAL   1

Definition at line 286 of file acl.h.

#define acl_log_err (   ...)    vlib_log(VLIB_LOG_LEVEL_ERR, acl_main.log_default, __VA_ARGS__)

Definition at line 325 of file acl.h.

#define acl_log_info (   ...)    vlib_log(VLIB_LOG_LEVEL_INFO, acl_main.log_default, __VA_ARGS__)

Definition at line 331 of file acl.h.

#define acl_log_notice (   ...)    vlib_log(VLIB_LOG_LEVEL_NOTICE, acl_main.log_default, __VA_ARGS__)

Definition at line 329 of file acl.h.

#define acl_log_warn (   ...)    vlib_log(VLIB_LOG_LEVEL_WARNING, acl_main.log_default, __VA_ARGS__)

Definition at line 327 of file acl.h.

#define ACL_PLUGIN_HASH_LOOKUP_HASH_BUCKETS   65536

Definition at line 46 of file acl.h.

#define ACL_PLUGIN_HASH_LOOKUP_HASH_MEMORY   (2 << 25)

Definition at line 47 of file acl.h.

#define ACL_PLUGIN_HASH_LOOKUP_HEAP_SIZE   (2 << 25)

Definition at line 45 of file acl.h.

#define ACL_PLUGIN_VERSION_MAJOR   1

Definition at line 36 of file acl.h.

#define ACL_PLUGIN_VERSION_MINOR   3

Definition at line 37 of file acl.h.

#define foreach_acl_eh
Value:
_(HOPBYHOP , 0 , "IPv6ExtHdrHopByHop") \
_(ROUTING , 43 , "IPv6ExtHdrRouting") \
_(DESTOPT , 60 , "IPv6ExtHdrDestOpt") \
_(FRAGMENT , 44 , "IPv6ExtHdrFragment") \
_(MOBILITY , 135, "Mobility Header") \
_(HIP , 139, "Experimental use Host Identity Protocol") \
_(SHIM6 , 140, "Shim6 Protocol") \
_(EXP1 , 253, "Use for experimentation and testing") \
_(EXP2 , 254, "Use for experimentation and testing")

Definition at line 336 of file acl.h.

#define foreach_fa_cleaner_counter
Value:
_(fa_cleaner_cnt_delete_by_sw_index, "delete_by_sw_index events") \
_(fa_cleaner_cnt_delete_by_sw_index_ok, "delete_by_sw_index handled ok") \
_(fa_cleaner_cnt_unknown_event, "unknown events received") \
_(fa_cleaner_cnt_timer_restarted, "session idle timers restarted") \
_(fa_cleaner_cnt_wait_with_timeout, "event wait with timeout called") \
_(fa_cleaner_cnt_wait_without_timeout, "event wait w/o timeout called") \
_(fa_cleaner_cnt_event_cycles, "total event cycles") \
/* end of counters */

Definition at line 305 of file acl.h.

#define SESSION_PURGATORY_TIMEOUT_USEC   10

Definition at line 43 of file acl.h.

#define TCP_SESSION_IDLE_TIMEOUT_SEC   (3600*24)

Definition at line 40 of file acl.h.

#define TCP_SESSION_TRANSIENT_TIMEOUT_SEC   120

Definition at line 41 of file acl.h.

#define UDP_SESSION_IDLE_TIMEOUT_SEC   600

Definition at line 39 of file acl.h.

Enumeration Type Documentation

enum acl_eh_t
Enumerator
foreach_acl_eh 

Definition at line 368 of file acl.h.

Enumerator
ACL_TIMEOUT_UNUSED 
ACL_TIMEOUT_UDP_IDLE 
ACL_TIMEOUT_TCP_IDLE 
ACL_TIMEOUT_TCP_TRANSIENT 
ACL_N_USER_TIMEOUTS 
ACL_TIMEOUT_PURGATORY 
ACL_N_TIMEOUTS 

Definition at line 55 of file acl.h.

enum address_e
Enumerator
IP4 
IP6 

Definition at line 66 of file acl.h.

Function Documentation

void* acl_plugin_set_heap ( )

Definition at line 157 of file acl.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 
)

Variable Documentation

acl_main_t acl_main

Definition at line 39 of file jvpp_acl.h.