15 #ifndef included_acl_h 16 #define included_acl_h 32 #define ACL_PLUGIN_VERSION_MAJOR 1 33 #define ACL_PLUGIN_VERSION_MINOR 3 35 #define UDP_SESSION_IDLE_TIMEOUT_SEC 600 36 #define TCP_SESSION_IDLE_TIMEOUT_SEC (3600*24) 37 #define TCP_SESSION_TRANSIENT_TIMEOUT_SEC 120 196 u32 fa_acl_in_ip4_l2_node_feat_next_node_index[32];
197 u32 fa_acl_in_ip6_l2_node_feat_next_node_index[32];
198 u32 fa_acl_out_ip4_l2_node_feat_next_node_index[32];
199 u32 fa_acl_out_ip6_l2_node_feat_next_node_index[32];
217 #define ACL_FA_DEFAULT_MAX_DELETED_SESSIONS_PER_INTERVAL 100 225 #define ACL_FA_DEFAULT_MIN_DELETED_SESSIONS_PER_INTERVAL 1 228 #define ACL_FA_DEFAULT_CLEANER_WAIT_TIME_INCREMENT 0.1 244 #define foreach_fa_cleaner_counter \ 245 _(fa_cleaner_cnt_delete_by_sw_index, "delete_by_sw_index events") \ 246 _(fa_cleaner_cnt_delete_by_sw_index_ok, "delete_by_sw_index handled ok") \ 247 _(fa_cleaner_cnt_unknown_event, "unknown events received") \ 248 _(fa_cleaner_cnt_timer_restarted, "session idle timers restarted") \ 249 _(fa_cleaner_cnt_wait_with_timeout, "event wait with timeout called") \ 250 _(fa_cleaner_cnt_wait_without_timeout, "event wait w/o timeout called") \ 251 _(fa_cleaner_cnt_event_cycles, "total event cycles") \ 253 #define _(id, desc) u32 id; 262 #define foreach_acl_eh \ 263 _(HOPBYHOP , 0 , "IPv6ExtHdrHopByHop") \ 264 _(ROUTING , 43 , "IPv6ExtHdrRouting") \ 265 _(DESTOPT , 60 , "IPv6ExtHdrDestOpt") \ 266 _(FRAGMENT , 44 , "IPv6ExtHdrFragment") \ 267 _(MOBILITY , 135, "Mobility Header") \ 268 _(HIP , 139, "Experimental use Host Identity Protocol") \ 269 _(SHIM6 , 140, "Shim6 Protocol") \ 270 _(EXP1 , 253, "Use for experimentation and testing") \ 271 _(EXP2 , 254, "Use for experimentation and testing") 295 #define _(N, v, s) ACL_EH_##N = v,
u32 * acl_ip4_output_classify_table_by_sw_if_index
u32 fa_cleaner_node_index
uword * fa_out_acl_on_sw_if_index
u64 fa_current_cleaner_timer_wait_interval
u32 ** input_acl_vec_by_sw_if_index
uword * fa_in_acl_on_sw_if_index
int l4_match_nonfirst_fragment
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)
u32 * acl_ip6_input_classify_table_by_sw_if_index
struct _vlib_node_registration vlib_node_registration_t
u32 l2_input_classify_next_acl_ip4
applied_hash_acl_info_t * output_applied_hash_acl_info_by_sw_if_index
vlib_node_registration_t acl_out_node
f64 fa_cleaner_wait_time_increment
uword fa_conn_table_hash_memory_size
u16 dst_port_or_code_last
u32 l2_output_classify_next_acl_ip4
ip46_address_t src_ip_addr
u64 fa_conn_table_max_entries
clib_bihash_40_8_t fa_sessions_hash
u32 * acl_ip4_input_classify_table_by_sw_if_index
applied_hash_acl_info_t * input_applied_hash_acl_info_by_sw_if_index
u16 dst_port_or_code_first
uword * fa_ipv6_known_eh_bitmap
hash_acl_info_t * hash_acl_infos
clib_bihash_48_8_t acl_lookup_hash
u32 l2_input_classify_next_acl_ip6
vlib_node_registration_t acl_in_node
u32 fa_total_enabled_count
u16 src_port_or_type_first
u64 fa_min_deleted_sessions_per_interval
The fine-grained event logger allows lightweight, thread-safe event logging at minimum cost...
applied_hash_ace_entry_t ** output_hash_entry_vec_by_sw_if_index
u64 fa_session_total_adds
int acl_lookup_hash_initialized
int use_hash_acl_matching
#define foreach_fa_cleaner_counter
u16 src_port_or_type_last
Bitmaps built as vectors of machine words.
ace_mask_type_entry_t * ace_mask_type_pool
u32 * macip_acl_by_sw_if_index
u32 * acl_ip6_output_classify_table_by_sw_if_index
macip_acl_list_t * macip_acls
acl_fa_per_worker_data_t * per_worker_data
int fa_interrupt_generation
u32 ** input_sw_if_index_vec_by_acl
u64 fa_max_deleted_sessions_per_interval
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)
u32 ** output_sw_if_index_vec_by_acl
u32 l2_output_classify_next_acl_ip6
int fa_sessions_hash_is_initialized
u32 ** output_acl_vec_by_sw_if_index
u32 fa_conn_table_hash_num_buckets
u64 fa_session_total_dels
applied_hash_ace_entry_t ** input_hash_entry_vec_by_sw_if_index
foreach_fa_cleaner_counter vlib_main_t * vlib_main