Home
last modified time | relevance | path

Searched refs:hook_mask (Results 1 – 25 of 25) sorted by relevance

/linux-6.1.9/net/netfilter/
Dxt_repldata.h18 unsigned int hook_mask = info->valid_hooks; \
19 unsigned int nhooks = hweight32(hook_mask); \
34 tbl->repl.valid_hooks = hook_mask; \
38 for (; hook_mask != 0; hook_mask >>= 1, ++hooknum) { \
39 if (!(hook_mask & 1)) \
Dnft_chain_filter.c30 .hook_mask = (1 << NF_INET_LOCAL_IN) |
75 .hook_mask = (1 << NF_ARP_IN) |
114 .hook_mask = (1 << NF_INET_LOCAL_IN) |
199 .hook_mask = (1 << NF_INET_INGRESS) |
258 .hook_mask = (1 << NF_BR_PRE_ROUTING) |
313 .hook_mask = (1 << NF_NETDEV_INGRESS) |
Dnft_chain_nat.c41 .hook_mask = (1 << NF_INET_PRE_ROUTING) |
62 .hook_mask = (1 << NF_INET_PRE_ROUTING) |
93 .hook_mask = (1 << NF_INET_PRE_ROUTING) |
Dnft_chain_route.c57 .hook_mask = (1 << NF_INET_LOCAL_OUT),
107 .hook_mask = (1 << NF_INET_LOCAL_OUT),
138 .hook_mask = (1 << NF_INET_LOCAL_OUT),
Dxt_devgroup.c45 par->hook_mask & ~((1 << NF_INET_PRE_ROUTING) | in devgroup_mt_checkentry()
51 par->hook_mask & ~((1 << NF_INET_FORWARD) | in devgroup_mt_checkentry()
Dnft_compat.c177 par->hook_mask = 1 << ops->hooknum; in nft_target_set_tgchk_param()
179 par->hook_mask = 0; in nft_target_set_tgchk_param()
349 unsigned int hook_mask = 0; in nft_target_validate() local
357 hook_mask = 1 << ops->hooknum; in nft_target_validate()
358 if (target->hooks && !(hook_mask & target->hooks)) in nft_target_validate()
454 par->hook_mask = 1 << ops->hooknum; in nft_match_set_mtchk_param()
456 par->hook_mask = 0; in nft_match_set_mtchk_param()
592 unsigned int hook_mask = 0; in nft_match_validate() local
600 hook_mask = 1 << ops->hooknum; in nft_match_validate()
601 if (match->hooks && !(hook_mask & match->hooks)) in nft_match_validate()
Dxt_policy.c137 if (par->hook_mask & ((1 << NF_INET_PRE_ROUTING) | in policy_mt_check()
142 if (par->hook_mask & ((1 << NF_INET_POST_ROUTING) | in policy_mt_check()
Dxt_addrtype.c165 if (par->hook_mask & ((1 << NF_INET_PRE_ROUTING) | in addrtype_mt_checkentry_v1()
172 if (par->hook_mask & ((1 << NF_INET_POST_ROUTING) | in addrtype_mt_checkentry_v1()
Dxt_TCPMSS.c270 (par->hook_mask & ~((1 << NF_INET_FORWARD) | in tcpmss_tg4_check()
294 (par->hook_mask & ~((1 << NF_INET_FORWARD) | in tcpmss_tg6_check()
Dx_tables.c504 if (par->match->hooks && (par->hook_mask & ~par->match->hooks) != 0) { in xt_check_match()
510 par->hook_mask, par->family), in xt_check_match()
1019 if (par->target->hooks && (par->hook_mask & ~par->target->hooks) != 0) { in xt_check_target()
1025 par->hook_mask, par->family), in xt_check_target()
1734 unsigned int hook_mask = table->valid_hooks; in xt_hook_ops_alloc() local
1735 uint8_t i, num_hooks = hweight32(hook_mask); in xt_hook_ops_alloc()
1746 for (i = 0, hooknum = 0; i < num_hooks && hook_mask != 0; in xt_hook_ops_alloc()
1747 hook_mask >>= 1, ++hooknum) { in xt_hook_ops_alloc()
1748 if (!(hook_mask & 1)) in xt_hook_ops_alloc()
Dxt_physdev.c105 par->hook_mask & (1 << NF_INET_LOCAL_OUT)) { in physdev_mt_check()
Dnft_flow_offload.c381 unsigned int hook_mask = (1 << NF_INET_FORWARD); in nft_flow_offload_validate() local
383 return nft_chain_validate_hooks(ctx->chain, hook_mask); in nft_flow_offload_validate()
Dxt_set.c469 (par->hook_mask & ~(1 << NF_INET_FORWARD | in set_target_v3_checkentry()
Dnf_tables_api.c2068 if (hook->num >= NFT_MAX_HOOKS || !(type->hook_mask & (1 << hook->num))) in nft_chain_parse_hook()
/linux-6.1.9/net/bridge/netfilter/
Debt_redirect.c40 unsigned int hook_mask; in ebt_redirect_tg_check() local
45 hook_mask = par->hook_mask & ~(1 << NF_BR_NUMHOOKS); in ebt_redirect_tg_check()
47 hook_mask & ~(1 << NF_BR_PRE_ROUTING)) && in ebt_redirect_tg_check()
49 hook_mask & ~(1 << NF_BR_BROUTING))) in ebt_redirect_tg_check()
Debt_dnat.c64 unsigned int hook_mask; in ebt_dnat_tg_check() local
69 hook_mask = par->hook_mask & ~(1 << NF_BR_NUMHOOKS); in ebt_dnat_tg_check()
71 (hook_mask & ~((1 << NF_BR_PRE_ROUTING) | in ebt_dnat_tg_check()
74 hook_mask & ~(1 << NF_BR_BROUTING))) in ebt_dnat_tg_check()
Debtables.c737 mtpar.hook_mask = tgpar.hook_mask = hookmask; in ebt_check_entry()
/linux-6.1.9/include/linux/netfilter_bridge/
Debtables.h29 unsigned int hook_mask);
46 unsigned int hook_mask);
64 unsigned int hook_mask);
116 #define BASE_CHAIN (par->hook_mask & (1 << NF_BR_NUMHOOKS))
118 #define CLEAR_BASE_CHAIN_BIT (par->hook_mask &= ~(1 << NF_BR_NUMHOOKS))
/linux-6.1.9/include/linux/netfilter/
Dx_tables.h98 unsigned int hook_mask; member
129 unsigned int hook_mask; member
/linux-6.1.9/net/sched/
Dem_ipt.c52 mtpar.hook_mask = 1 << im->hook; in check_match()
Dact_ipt.c50 par.hook_mask = hook; in ipt_init_target()
/linux-6.1.9/net/ipv6/netfilter/
Dip6_tables.c526 .hook_mask = e->comefrom, in check_target()
555 mtpar.hook_mask = e->comefrom; in find_check_entry()
/linux-6.1.9/net/ipv4/netfilter/
Dip_tables.c508 .hook_mask = e->comefrom, in check_target()
536 mtpar.hook_mask = e->comefrom; in find_check_entry()
Darp_tables.c397 .hook_mask = e->comefrom, in check_target()
/linux-6.1.9/include/net/netfilter/
Dnf_tables.h1106 unsigned int hook_mask; member