Home
last modified time | relevance | path

Searched refs:genmask (Results 1 – 11 of 11) sorted by relevance

/linux-6.6.21/net/netfilter/
Dnft_set_bitmap.c71 nft_bitmap_active(const u8 *bitmap, u32 idx, u32 off, u8 genmask) in nft_bitmap_active() argument
73 return (bitmap[idx] & (0x3 << off)) & (genmask << off); in nft_bitmap_active()
81 u8 genmask = nft_genmask_cur(net); in nft_bitmap_lookup() local
86 return nft_bitmap_active(priv->bitmap, idx, off, genmask); in nft_bitmap_lookup()
91 u8 genmask) in nft_bitmap_elem_find() argument
99 !nft_set_elem_active(&be->ext, genmask)) in nft_bitmap_elem_find()
111 u8 genmask = nft_genmask_cur(net); in nft_bitmap_get() local
116 !nft_set_elem_active(&be->ext, genmask)) in nft_bitmap_get()
130 u8 genmask = nft_genmask_next(net); in nft_bitmap_insert() local
133 be = nft_bitmap_elem_find(set, new, genmask); in nft_bitmap_insert()
[all …]
Dnft_set_hash.c37 u8 genmask; member
66 if (!nft_set_elem_active(&he->ext, x->genmask)) in nft_rhash_cmp()
86 .genmask = nft_genmask_cur(net), in nft_rhash_lookup()
104 .genmask = nft_genmask_cur(net), in nft_rhash_get()
127 .genmask = NFT_GENMASK_ANY, in nft_rhash_update()
170 .genmask = nft_genmask_next(net), in nft_rhash_insert()
212 .genmask = nft_genmask_next(net), in nft_rhash_deactivate()
242 .genmask = NFT_GENMASK_ANY, in nft_rhash_delete()
280 if (!nft_set_elem_active(&he->ext, iter->genmask)) in nft_rhash_walk()
488 u8 genmask = nft_genmask_cur(net); in nft_hash_lookup() local
[all …]
Dnft_set_rbtree.c61 u8 genmask = nft_genmask_cur(net); in __nft_rbtree_lookup() local
84 if (!nft_set_elem_active(&rbe->ext, genmask)) { in __nft_rbtree_lookup()
106 nft_set_elem_active(&interval->ext, genmask) && in __nft_rbtree_lookup()
138 unsigned int seq, unsigned int flags, u8 genmask) in __nft_rbtree_get() argument
164 if (!nft_set_elem_active(&rbe->ext, genmask)) { in __nft_rbtree_get()
187 nft_set_elem_active(&interval->ext, genmask) && in __nft_rbtree_get()
207 u8 genmask = nft_genmask_cur(net); in nft_rbtree_get() local
210 ret = __nft_rbtree_get(net, set, key, &rbe, seq, flags, genmask); in nft_rbtree_get()
216 ret = __nft_rbtree_get(net, set, key, &rbe, seq, flags, genmask); in nft_rbtree_get()
316 u8 genmask = nft_genmask_next(net); in __nft_rbtree_insert() local
[all …]
Dnf_tables_api.c611 u8 genmask = nft_genmask_next(ctx->net); in nft_map_catchall_deactivate() local
618 if (!nft_set_elem_active(ext, genmask)) in nft_map_catchall_deactivate()
630 .genmask = nft_genmask_next(ctx->net), in nft_map_deactivate()
783 u8 family, u8 genmask, u32 nlpid) in nft_table_lookup() argument
796 nft_active_genmask(table, genmask)) { in nft_table_lookup()
810 int family, u8 genmask, u32 nlpid) in nft_table_lookup_byhandle() argument
819 nft_active_genmask(table, genmask)) { in nft_table_lookup_byhandle()
1108 u8 genmask = nft_genmask_cur(info->net); in nf_tables_gettable() local
1124 table = nft_table_lookup(net, nla[NFTA_TABLE_NAME], family, genmask, 0); in nf_tables_gettable()
1342 u8 genmask = nft_genmask_next(info->net); in nf_tables_newtable() local
[all …]
Dnft_objref.c30 u8 genmask = nft_genmask_next(ctx->net); in nft_objref_init() local
40 genmask); in nft_objref_init()
133 u8 genmask = nft_genmask_next(ctx->net); in nft_objref_map_init() local
139 tb[NFTA_OBJREF_SET_ID], genmask); in nft_objref_map_init()
Dnft_lookup.c102 u8 genmask = nft_genmask_next(ctx->net); in nft_lookup_init() local
112 tb[NFTA_LOOKUP_SET_ID], genmask); in nft_lookup_init()
218 iter.genmask = nft_genmask_next(ctx->net); in nft_lookup_validate()
Dnft_set_pipapo.c414 u8 genmask = nft_genmask_cur(net); in nft_pipapo_lookup() local
472 !nft_set_elem_active(*ext, genmask))) in nft_pipapo_lookup()
516 const u8 *data, u8 genmask) in pipapo_get() argument
571 if ((genmask && in pipapo_get()
572 !nft_set_elem_active(&f->mt[b].e->ext, genmask))) in pipapo_get()
1199 u8 genmask = nft_genmask_next(net); local
1209 dup = pipapo_get(net, set, start, genmask);
2040 if (iter->genmask == nft_genmask_cur(net))
2063 if (!nft_set_elem_active(&e->ext, iter->genmask))
Dnft_dynset.c166 u8 genmask = nft_genmask_next(ctx->net); in nft_dynset_init() local
190 tb[NFTA_DYNSET_SET_ID], genmask); in nft_dynset_init()
Dnft_flow_offload.c405 u8 genmask = nft_genmask_next(ctx->net); in nft_flow_offload_init() local
412 genmask); in nft_flow_offload_init()
Dnft_set_pipapo_avx2.c1121 u8 genmask = nft_genmask_cur(net); in nft_pipapo_avx2_lookup() local
1209 !nft_set_elem_active(*ext, genmask))) { in nft_pipapo_avx2_lookup()
/linux-6.6.21/include/net/netfilter/
Dnf_tables.h302 u8 genmask; member
570 genmask:2; member
604 u8 genmask);
701 u8 genmask; member
935 genmask:2, member
1052 genmask:2; member
1219 genmask:2; member
1274 u32 genmask:2; member
1295 u8 genmask);
1379 u32 genmask:2; member
[all …]