16 #include <netinet/in.h> 51 "acl-plugin: sw_if_index %d, next index %d, action: %d, match: acl %d rule %d trace_bits %08x\n" 52 " pkt info %016llx %016llx %016llx %016llx %016llx %016llx",
61 #define foreach_acl_fa_error \ 62 _(ACL_DROP, "ACL deny packets") \ 63 _(ACL_PERMIT, "ACL permit packets") \ 64 _(ACL_NEW_SESSION, "new sessions added") \ 65 _(ACL_EXIST_SESSION, "existing session packets") \ 66 _(ACL_CHECK, "checked packets") \ 67 _(ACL_RESTART_SESSION_TIMER, "restart session timer") \ 68 _(ACL_TOO_MANY_SESSIONS, "too many sessions to add new") \ 73 #define _(sym,str) ACL_FA_ERROR_##sym, 80 #define _(sym,string) string, 96 int prefixlen,
int is_ip6)
105 if (memcmp (addr1, addr2, prefixlen / 8))
112 u8 b1 = *((
u8 *) addr1 + 1 + prefixlen / 8);
113 u8 b2 = *((
u8 *) addr2 + 1 + prefixlen / 8);
114 u8 mask0 = (0xff - ((1 << (8 - (prefixlen % 8))) - 1));
115 return (b1 & mask0) == b2;
125 uint32_t a1 = ntohl (addr1->ip4.as_u32);
126 uint32_t a2 = ntohl (addr2->ip4.as_u32);
127 uint32_t mask0 = 0xffffffff - ((1 << (32 - prefixlen)) - 1);
128 return (a1 & mask0) == a2;
135 return ((port >= port_first) && (port <= port_last));
140 int is_ip6,
u8 * r_action,
u32 * r_acl_match_p,
141 u32 * r_rule_match_p,
u32 * trace_bitmap)
150 *r_acl_match_p = acl_index;
152 *r_rule_match_p = -1;
156 a = am->
acls + acl_index;
157 for (i = 0; i < a->
count; i++)
168 #ifdef FA_NODE_VERBOSE_DEBUG 170 (
"ACL_FA_NODE_DBG acl %d rule %d pkt dst addr %U match rule addr %U/%d",
180 #ifdef FA_NODE_VERBOSE_DEBUG 182 (
"ACL_FA_NODE_DBG acl %d rule %d pkt src addr %U match rule addr %U/%d",
187 (
"ACL_FA_NODE_DBG acl %d rule %d trying to match pkt proto %d with rule %d",
199 *trace_bitmap |= 0x80000000;
202 *r_acl_match_p = acl_index;
212 #ifdef FA_NODE_VERBOSE_DEBUG 214 (
"ACL_FA_NODE_DBG acl %d rule %d pkt proto %d match rule %d",
223 #ifdef FA_NODE_VERBOSE_DEBUG 225 (
"ACL_FA_NODE_DBG acl %d rule %d pkt sport %d match rule [%d..%d]",
235 #ifdef FA_NODE_VERBOSE_DEBUG 237 (
"ACL_FA_NODE_DBG acl %d rule %d pkt dport %d match rule [%d..%d]",
247 #ifdef FA_NODE_VERBOSE_DEBUG 248 clib_warning (
"ACL_FA_NODE_DBG acl %d rule %d FULL-MATCH, action %d",
253 *r_acl_match_p = acl_index;
263 int is_ip6,
int is_input,
u32 * acl_match_p,
264 u32 * rule_match_p,
u32 * trace_bitmap)
281 for (i = 0; i <
vec_len (acl_vector); i++)
283 #ifdef FA_NODE_VERBOSE_DEBUG 284 clib_warning (
"ACL_FA_NODE_DBG: Trying to match ACL: %d",
288 (am, acl_vector[i], pkt_5tuple, is_ip6, &action,
289 acl_match_p, rule_match_p, trace_bitmap))
294 if (vec_len (acl_vector) > 0)
299 #ifdef FA_NODE_VERBOSE_DEBUG 300 clib_warning (
"ACL_FA_NODE_DBG: No ACL on sw_if_index %d", sw_if_index);
315 int is_input,
int is_l2_path,
fa_5tuple_t * p5tuple_pkt)
322 static u8 icmp_protos[] = { IP_PROTOCOL_ICMP, IP_PROTOCOL_ICMP6 };
324 if (is_input && !(is_l2_path))
331 p5tuple_pkt->
kv.
key[4] = 0;
339 src_address) + l3_offset),
340 sizeof (p5tuple_pkt->
addr));
344 protocol) + l3_offset);
346 #ifdef FA_NODE_VERBOSE_DEBUG 347 clib_warning (
"ACL_FA_NODE_DBG: proto: %d, l4_offset: %d", proto,
362 frag_offset = ntohs(frag_offset) >> 3;
379 l4_offset += 8 * (1 + (
u16) nwords);
381 #ifdef FA_NODE_VERBOSE_DEBUG 382 clib_warning (
"ACL_FA_NODE_DBG: new proto: %d, new offset: %d",
392 p5tuple_pkt->
kv.
key[0] = 0;
393 p5tuple_pkt->
kv.
key[1] = 0;
394 p5tuple_pkt->
kv.
key[2] = 0;
395 p5tuple_pkt->
kv.
key[3] = 0;
399 src_address) + l3_offset),
400 sizeof (p5tuple_pkt->
addr[0].ip4));
404 dst_address) + l3_offset),
405 sizeof (p5tuple_pkt->
addr[1].ip4));
409 protocol) + l3_offset);
411 u16 flags_and_fragment_offset;
415 flags_and_fragment_offset)) + l3_offset,
416 sizeof(flags_and_fragment_offset));
417 flags_and_fragment_offset = ntohs (flags_and_fragment_offset);
432 if (icmp_protos[is_ip6] == proto)
437 l4_offset + offsetof (icmp46_header_t,
442 l4_offset + offsetof (icmp46_header_t,
445 else if ((IPPROTO_TCP == proto) || (IPPROTO_UDP == proto))
452 p5tuple_pkt->
l4.
port[0] = ntohs (ports[0]);
453 p5tuple_pkt->
l4.
port[1] = ntohs (ports[1]);
484 int src_index = is_input ? 0 : 1;
485 int dst_index = is_input ? 1 : 0;
486 p5tuple_sess->
addr[src_index] = p5tuple_pkt->
addr[0];
487 p5tuple_sess->
addr[dst_index] = p5tuple_pkt->
addr[1];
489 p5tuple_sess->
l4.
port[src_index] = p5tuple_pkt->
l4.
port[0];
490 p5tuple_sess->
l4.
port[dst_index] = p5tuple_pkt->
l4.
port[1];
557 #ifdef FA_NODE_VERBOSE_DEBUG 559 (
"Initializing bihash for sw_if_index %d num buckets %lu memory size %llu",
565 [sw_if_index0],
"ACL plugin FA session bihash",
604 clib_warning(
"(prev_sess->link_list_id != sess->link_list_id)");
610 clib_warning(
"(next_sess->link_list_id != sess->link_list_id)");
671 return (curr_sess < am->fa_conn_table_max_entries);
706 memcpy (sess, pkv,
sizeof (pkv->
key));
743 int is_input,
int is_l2_path,
u32 * l2_feat_next_node_index,
746 u32 n_left_from, *from, *to_next;
748 u32 pkts_acl_checked = 0;
749 u32 pkts_new_session = 0;
750 u32 pkts_exist_session = 0;
751 u32 pkts_acl_permit = 0;
752 u32 pkts_restart_session_timer = 0;
753 u32 trace_bitmap = 0;
767 while (n_left_from > 0)
773 while (n_left_from > 0 && n_left_to_next > 0)
780 int acl_check_needed = 1;
781 u32 match_acl_in_index = ~0;
782 u32 match_rule_index = ~0;
800 feature_bitmap0 =
vnet_buffer (b0)->l2.feature_bitmap;
810 #ifdef FA_NODE_VERBOSE_DEBUG 812 (
"ACL_FA_NODE_DBG: session 5-tuple %016llx %016llx %016llx %016llx %016llx : %016llx",
816 (
"ACL_FA_NODE_DBG: packet 5-tuple %016llx %016llx %016llx %016llx %016llx : %016llx",
826 (am, sw_if_index0, &kv_sess, &value_sess))
828 trace_bitmap |= 0x80000000;
829 error0 = ACL_FA_ERROR_ACL_EXIST_SESSION;
833 int old_timeout_type =
839 match_rule_index = sess_id;
840 int new_timeout_type =
842 acl_check_needed = 0;
843 pkts_exist_session += 1;
848 pkts_restart_session_timer++;
850 0x00010000 + ((0xff & old_timeout_type) << 8) +
851 (0xff & new_timeout_type);
856 if (acl_check_needed)
860 is_ip6, is_input, &match_acl_in_index,
861 &match_rule_index, &trace_bitmap);
864 pkts_acl_permit += 1;
874 pkts_new_session += 1;
879 error0 = ACL_FA_ERROR_ACL_TOO_MANY_SESSIONS;
918 pkts_acl_checked += 1;
922 to_next, n_left_to_next, bi0,
930 ACL_FA_ERROR_ACL_CHECK, pkts_acl_checked);
932 ACL_FA_ERROR_ACL_PERMIT, pkts_acl_permit);
934 ACL_FA_ERROR_ACL_NEW_SESSION,
937 ACL_FA_ERROR_ACL_EXIST_SESSION,
940 ACL_FA_ERROR_ACL_RESTART_SESSION_TIMER,
941 pkts_restart_session_timer);
1041 #define foreach_acl_fa_cleaner_error \ 1042 _(UNKNOWN_EVENT, "unknown event received") \ 1047 #define _(sym,str) ACL_FA_CLEANER_ERROR_##sym, 1054 #define _(sym,string) string, 1069 if ( (~0 == sw_if_index) || (sw_if_index == sess->sw_if_index) )
1070 vec_add1(dv, sess-am->fa_sessions_pool);
1080 if ( (~0 == sw_if_index) || (sw_if_index == sess->sw_if_index) )
1085 if (~0 == sw_if_index)
1094 return (undeleted == 0);
1106 return (timeout_time < now);
1119 u64 max_timer_wait_interval = cpu_cps / 2;
1123 uword event_type, *event_data = 0;
1129 u32 count_deleted_sessions = 0;
1130 u32 count_already_deleted = 0;
1133 int has_pending_conns = 0;
1138 has_pending_conns = 1;
1142 if (!has_pending_conns)
1144 am->fa_cleaner_cnt_wait_without_timeout++;
1150 f64 timeout = ((
i64) next_expire - (
i64) now) / cpu_cps;
1161 am->fa_cleaner_cnt_wait_with_timeout++;
1178 uword *sw_if_index0;
1181 am->fa_cleaner_cnt_delete_by_sw_index++;
1182 #ifdef FA_NODE_VERBOSE_DEBUG 1184 (
"ACL_FA_NODE_CLEAN: ACL_FA_CLEANER_DELETE_BY_SW_IF_INDEX: %d",
1191 count_deleted_sessions += count;
1192 am->fa_cleaner_cnt_delete_by_sw_index_ok += result;
1197 #ifdef FA_NODE_VERBOSE_DEBUG 1198 clib_warning (
"ACL plugin connection cleaner: unknown event %u",
1204 ACL_FA_CLEANER_ERROR_UNKNOWN_EVENT, 1);
1205 am->fa_cleaner_cnt_unknown_event++;
1226 u32 session_index = *psid;
1231 u64 sess_timeout_time =
1233 if (now < sess_timeout_time)
1246 am->fa_cleaner_cnt_timer_restarted++;
1253 count_deleted_sessions++;
1258 count_already_deleted++;
1262 _vec_len (expired) = 0;
1264 _vec_len (event_data) = 0;
1269 }
else if (count_deleted_sessions < am->fa_min_deleted_sessions_per_interval) {
1274 am->fa_cleaner_cnt_event_cycles++;
1275 am->fa_cleaner_cnt_deleted_sessions += count_deleted_sessions;
1276 am->fa_cleaner_cnt_already_deleted += count_already_deleted;
1290 sw_if_index, enable_disable, 0, 0);
1292 sw_if_index, enable_disable, 0, 0);
1300 sw_if_index, enable_disable, 0, 0);
1302 sw_if_index, enable_disable, 0, 0);
1324 .name =
"acl-plugin-fa-cleaner-process",
1335 .name =
"acl-plugin-in-ip6-l2",
1336 .vector_size =
sizeof (
u32),
1351 .name =
"acl-plugin-in-ip4-l2",
1352 .vector_size =
sizeof (
u32),
1367 .name =
"acl-plugin-out-ip6-l2",
1368 .vector_size =
sizeof (
u32),
1383 .name =
"acl-plugin-out-ip4-l2",
1384 .vector_size =
sizeof (
u32),
1400 .name =
"acl-plugin-in-ip6-fa",
1401 .vector_size =
sizeof (
u32),
1415 .arc_name =
"ip6-unicast",
1416 .node_name =
"acl-plugin-in-ip6-fa",
1423 .name =
"acl-plugin-in-ip4-fa",
1424 .vector_size =
sizeof (
u32),
1438 .arc_name =
"ip4-unicast",
1439 .node_name =
"acl-plugin-in-ip4-fa",
1447 .name =
"acl-plugin-out-ip6-fa",
1448 .vector_size =
sizeof (
u32),
1462 .arc_name =
"ip6-output",
1463 .node_name =
"acl-plugin-out-ip6-fa",
1470 .name =
"acl-plugin-out-ip4-fa",
1471 .vector_size =
sizeof (
u32),
1486 .arc_name =
"ip4-output",
1487 .node_name =
"acl-plugin-out-ip4-fa",
static uword acl_in_ip4_l2_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
#define vec_validate(V, I)
Make sure vector is long enough for given index (no header, unspecified alignment) ...
static int acl_fa_ifc_has_in_acl(acl_main_t *am, int sw_if_index0)
u32 fa_cleaner_node_index
u32 session_timeout_sec[ACL_N_TIMEOUTS]
u32 fa_acl_in_ip4_l2_node_feat_next_node_index[32]
static int acl_fa_can_add_session(acl_main_t *am, int is_input, u32 sw_if_index)
static char * acl_fa_cleaner_error_strings[]
sll srl srl sll sra u16x4 i
uword * fa_out_acl_on_sw_if_index
int acl_match_5tuple(acl_main_t *am, u32 acl_index, fa_5tuple_t *pkt_5tuple, int is_ip6, u8 *r_action, u32 *r_acl_match_p, u32 *r_rule_match_p, u32 *trace_bitmap)
static u8 full_acl_match_5tuple(u32 sw_if_index, fa_5tuple_t *pkt_5tuple, int is_l2, int is_ip6, int is_input, u32 *acl_match_p, u32 *rule_match_p, u32 *trace_bitmap)
static void acl_fa_conn_list_add_session(acl_main_t *am, u32 sess_id, u64 now)
static f64 vlib_process_wait_for_event_or_clock(vlib_main_t *vm, f64 dt)
Suspend a cooperative multi-tasking thread Waits for an event, or for the indicated number of seconds...
static void acl_fa_try_recycle_session(acl_main_t *am, int is_input, u32 sw_if_index)
u64 fa_current_cleaner_timer_wait_interval
static uword * vlib_process_wait_for_event(vlib_main_t *vm)
u32 ** input_acl_vec_by_sw_if_index
uword * fa_in_acl_on_sw_if_index
int l4_match_nonfirst_fragment
vlib_node_registration_t acl_out_fa_ip6_node
(constructor) VLIB_REGISTER_NODE (acl_out_fa_ip6_node)
static int fa_acl_match_port(u16 port, u16 port_first, u16 port_last, int is_ip6)
static void acl_fa_restart_timer_for_session(acl_main_t *am, u64 now, u32 sess_id)
vlib_node_registration_t acl_out_l2_ip4_node
(constructor) VLIB_REGISTER_NODE (acl_out_l2_ip4_node)
void vlib_put_next_frame(vlib_main_t *vm, vlib_node_runtime_t *r, u32 next_index, u32 n_vectors_left)
Release pointer to next frame vector data.
#define TCP_FLAGS_RSTFINACKSYN
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
static u64 clib_cpu_time_now(void)
static void acl_fa_add_session(acl_main_t *am, int is_input, u32 sw_if_index, u64 now, fa_5tuple_t *p5tuple)
struct _vlib_node_registration vlib_node_registration_t
static int acl_fa_find_session(acl_main_t *am, u32 sw_if_index0, fa_5tuple_t *p5tuple, clib_bihash_kv_40_8_t *pvalue_sess)
u32 fa_conn_list_tail[ACL_N_TIMEOUTS]
static void acl_fa_delete_session(acl_main_t *am, u32 sw_if_index, u32 sess_id)
static uword acl_out_ip4_fa_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static uword * clib_bitmap_set(uword *ai, uword i, uword value)
Sets the ith bit of a bitmap to new_value Removes trailing zeros from the bitmap. ...
#define foreach_acl_fa_error
vlib_error_t * errors
Vector of errors for this node.
#define pool_get(P, E)
Allocate an object E from a pool P (unspecified alignment).
struct _tcp_header tcp_header_t
static u8 * format_acl_fa_trace(u8 *s, va_list *args)
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)
uword * fa_sessions_on_sw_if_index
u32 fa_acl_out_ip4_l2_node_feat_next_node_index[32]
f64 fa_cleaner_wait_time_increment
uword fa_conn_table_hash_memory_size
u16 dst_port_or_code_last
u32 fa_conn_list_head[ACL_N_TIMEOUTS]
#define pool_foreach(VAR, POOL, BODY)
Iterate through pool.
vlib_node_registration_t acl_in_fa_ip6_node
(constructor) VLIB_REGISTER_NODE (acl_in_fa_ip6_node)
int clib_bihash_add_del(clib_bihash *h, clib_bihash_kv *add_v, int is_add)
Add or delete a (key,value) pair from a bi-hash table.
static uword vlib_process_get_events(vlib_main_t *vm, uword **data_vector)
Return the first event type which has occurred and a vector of per-event data of that type...
fa_session_t * fa_sessions_pool
#define foreach_acl_fa_cleaner_error
static uword acl_in_ip6_l2_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
clib_bihash_40_8_t * fa_sessions_by_sw_if_index
static void acl_fa_conn_list_delete_session(acl_main_t *am, u32 sess_id)
u32 fa_acl_out_ip6_l2_node_feat_next_node_index[32]
static int acl_fa_conn_time_to_check(acl_main_t *am, u64 now, u32 session_index)
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
u16 current_length
Nbytes between current data and the end of this buffer.
static void vlib_process_signal_event(vlib_main_t *vm, uword node_index, uword type_opaque, uword data)
u16 dst_port_or_code_first
static void acl_fill_5tuple(acl_main_t *am, vlib_buffer_t *b0, int is_ip6, int is_input, int is_l2_path, fa_5tuple_t *p5tuple_pkt)
static uword acl_out_ip6_fa_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
uword * fa_ipv6_known_eh_bitmap
static int acl_fa_clean_sessions_by_sw_if_index(acl_main_t *am, u32 sw_if_index, u32 *count)
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
static uword acl_out_ip6_l2_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static int fa_session_get_timeout_type(acl_main_t *am, fa_session_t *sess)
static int acl_fa_ifc_has_out_acl(acl_main_t *am, int sw_if_index0)
static_always_inline void vnet_feature_next(u32 sw_if_index, u32 *next0, vlib_buffer_t *b0)
static u32 feat_bitmap_get_next_node_index(u32 *next_nodes, u32 bitmap)
Return the graph node index for the feature corresponding to the first set bit in the bitmap...
#define vlib_validate_buffer_enqueue_x1(vm, node, next_index, to_next, n_left_to_next, bi0, next0)
Finish enqueueing one buffer forward in the graph.
#define vlib_get_next_frame(vm, node, next_index, vectors, n_vectors_left)
Get pointer to next frame vector data by (vlib_node_runtime_t, next_index).
void clib_bihash_init(clib_bihash *h, char *name, u32 nbuckets, uword memory_size)
initialize a bounded index extensible hash table
vlib_error_t error
Error code for buffers to be enqueued to error handler.
u16 src_port_or_type_first
static void vlib_node_increment_counter(vlib_main_t *vm, u32 node_index, u32 counter_index, u64 increment)
int acl_fa_session_is_dead(acl_main_t *am, u32 sw_if_index, u64 now, u32 sess_id)
static uword acl_in_ip6_fa_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static int offset_within_packet(vlib_buffer_t *b0, int offset)
u64 * fa_session_dels_by_sw_if_index
#define clib_warning(format, args...)
#define VLIB_BUFFER_IS_TRACED
static vlib_node_runtime_t * vlib_node_get_runtime(vlib_main_t *vm, u32 node_index)
Get node runtime by node index.
#define clib_memcpy(a, b, c)
union fa_session_t::@249 tcp_flags_seen
#define pool_is_free_index(P, I)
Use free bitmap to query whether given index is free.
static uword clib_bitmap_get(uword *ai, uword i)
Gets the ith bit value from a bitmap.
void acl_fa_enable_disable(u32 sw_if_index, int is_input, int enable_disable)
static vlib_node_registration_t acl_fa_session_cleaner_process_node
(constructor) VLIB_REGISTER_NODE (acl_fa_session_cleaner_process_node)
VNET_FEATURE_INIT(acl_in_ip6_fa_feature, static)
u16 cached_next_index
Next frame index that vector arguments were last enqueued to last time this node ran.
#define pool_put_index(p, i)
Free pool element with given index.
static uword acl_out_ip4_l2_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static u64 fa_session_get_timeout(acl_main_t *am, fa_session_t *sess)
int clib_bihash_search(clib_bihash *h, clib_bihash_kv *search_v, clib_bihash_kv *return_v)
Search a bi-hash table.
static int acl_fa_ifc_has_sessions(acl_main_t *am, int sw_if_index0)
u16 src_port_or_type_last
static u8 acl_fa_track_session(acl_main_t *am, int is_input, u32 sw_if_index, u64 now, fa_session_t *sess, fa_5tuple_t *pkt_5tuple)
static void * get_ptr_to_offset(vlib_buffer_t *b0, int offset)
static uword acl_in_ip4_fa_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static uword acl_fa_session_cleaner_process(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
u64 * fa_session_adds_by_sw_if_index
#define VLIB_NODE_FLAG_TRACE
vlib_node_registration_t acl_in_l2_ip4_node
(constructor) VLIB_REGISTER_NODE (acl_in_l2_ip4_node)
vlib_node_registration_t acl_in_l2_ip6_node
(constructor) VLIB_REGISTER_NODE (acl_in_l2_ip6_node)
#define VNET_FEATURES(...)
u32 fa_acl_in_ip6_l2_node_feat_next_node_index[32]
static void * vlib_add_trace(vlib_main_t *vm, vlib_node_runtime_t *r, vlib_buffer_t *b, u32 n_data_bytes)
template key/value backing page structure
static void acl_fa_ifc_init_sessions(acl_main_t *am, int sw_if_index0)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
u64 fa_max_deleted_sessions_per_interval
static void acl_make_5tuple_session_key(int is_input, fa_5tuple_t *p5tuple_pkt, fa_5tuple_t *p5tuple_sess)
struct clib_bihash_value offset
template key/value backing page structure
vlib_node_registration_t acl_out_l2_ip6_node
(constructor) VLIB_REGISTER_NODE (acl_out_l2_ip6_node)
static char * acl_fa_error_strings[]
#define VLIB_REGISTER_NODE(x,...)
vlib_node_registration_t acl_out_fa_ip4_node
(constructor) VLIB_REGISTER_NODE (acl_out_fa_ip4_node)
#define vec_foreach(var, vec)
Vector iterator.
u16 flags
Copy of main node flags.
static int fa_acl_match_addr(ip46_address_t *addr1, ip46_address_t *addr2, int prefixlen, int is_ip6)
u32 flags
buffer flags: VLIB_BUFFER_IS_TRACED: trace this buffer.
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.
u32 ** output_acl_vec_by_sw_if_index
vlib_node_registration_t acl_in_fa_ip4_node
(constructor) VLIB_REGISTER_NODE (acl_in_fa_ip4_node)
int vnet_feature_enable_disable(const char *arc_name, const char *node_name, u32 sw_if_index, int enable_disable, void *feature_config, u32 n_feature_config_bytes)
u32 fa_conn_table_hash_num_buckets
foreach_fa_cleaner_counter vlib_main_t * vlib_main