Home
last modified time | relevance | path

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

/linux/net/netfilter/
H A 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)) \
H A Dnft_chain_filter.c31 .hook_mask = (1 << NF_INET_LOCAL_IN) |
76 .hook_mask = (1 << NF_ARP_IN) |
115 .hook_mask = (1 << NF_INET_LOCAL_IN) |
200 .hook_mask = (1 << NF_INET_INGRESS) |
259 .hook_mask = (1 << NF_BR_PRE_ROUTING) |
314 .hook_mask = (1 << NF_NETDEV_INGRESS) |
H A 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) |
H A 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),
H A Dxt_devgroup.c41 par->hook_mask & ~((1 << NF_INET_PRE_ROUTING) | in devgroup_mt_check_hooks()
47 par->hook_mask & ~((1 << NF_INET_FORWARD) | in devgroup_mt_check_hooks()
H A Dnft_compat.c178 par->hook_mask = 1 << ops->hooknum; in nft_target_set_tgchk_param()
180 par->hook_mask = 0; in nft_target_set_tgchk_param()
378 unsigned int hook_mask = 1 << ops->hooknum; in nft_target_validate() local
384 if (target->hooks && !(hook_mask & target->hooks)) in nft_target_validate()
503 par->hook_mask = 1 << ops->hooknum; in match_compat_from_user()
505 par->hook_mask = 0;
663 unsigned int hook_mask = 1 << ops->hooknum; in nft_match_validate()
670 if (match->hooks && !(hook_mask & match->hooks)) in nft_match_validate()
647 unsigned int hook_mask = 1 << ops->hooknum; nft_match_validate() local
H A Dxt_policy.c134 if (par->hook_mask & ((1 << NF_INET_PRE_ROUTING) | in policy_mt_check_hooks()
139 if (par->hook_mask & ((1 << NF_INET_POST_ROUTING) | in policy_mt_check_hooks()
H A Dxt_addrtype.c161 if (par->hook_mask & ((1 << NF_INET_PRE_ROUTING) | in addrtype_mt_check_hooks()
168 if (par->hook_mask & ((1 << NF_INET_POST_ROUTING) | in addrtype_mt_check_hooks()
H A Dx_tables.c516 if (par->match->hooks && (par->hook_mask & ~par->match->hooks) != 0) { in xt_check_match_common()
522 par->hook_mask, par->family), in xt_check_match_common()
1079 if (par->target->hooks && (par->hook_mask & ~par->target->hooks) != 0) { in xt_check_target_common()
1085 par->hook_mask, par->family), in xt_check_target_common()
1940 unsigned int hook_mask = table->valid_hooks; in xt_hook_ops_alloc() local
1941 uint8_t i, num_hooks = hweight32(hook_mask); in xt_hook_ops_alloc()
1952 for (i = 0, hooknum = 0; i < num_hooks && hook_mask != 0; in xt_hook_ops_alloc()
1953 hook_mask >>= 1, ++hooknum) { in xt_hook_ops_alloc()
1954 if (!(hook_mask & 1)) in xt_hook_ops_alloc()
H A Dxt_physdev.c101 par->hook_mask & (1 << NF_INET_LOCAL_OUT)) { in physdev_mt_check_hooks()
H A Dxt_TCPMSS.c255 (par->hook_mask & ~((1 << NF_INET_FORWARD) | in tcpmss_tg4_check_hooks()
H A Dxt_set.c445 (par->hook_mask & ~(1 << NF_INET_FORWARD | in set_target_v3_check_hooks()
H A Dnf_tables_api.c144 chain->vstate.hook_mask[type] & BIT(hooknum)) in nft_chain_vstate_valid()
2583 if (hook->num >= NFT_MAX_HOOKS || !(type->hook_mask & (1 << hook->num))) in nft_chain_parse_hook()
4156 chain->vstate.hook_mask[type] |= BIT(hooknum);
/linux/net/bridge/netfilter/
H A Debt_redirect.c46 unsigned int hook_mask; in ebt_redirect_tg_check()
51 hook_mask = par->hook_mask & ~(1 << NF_BR_NUMHOOKS); in ebt_redirect_tg_check()
53 hook_mask & ~(1 << NF_BR_PRE_ROUTING)) && in ebt_redirect_tg_check()
55 hook_mask & ~(1 << NF_BR_BROUTING)))
40 unsigned int hook_mask; ebt_redirect_tg_check() local
H A Debt_dnat.c66 unsigned int hook_mask; in ebt_dnat_tg_check()
71 hook_mask = par->hook_mask & ~(1 << NF_BR_NUMHOOKS); in ebt_dnat_tg_check()
73 (hook_mask & ~((1 << NF_BR_PRE_ROUTING) | in ebt_dnat_tg_check()
76 hook_mask & ~(1 << NF_BR_BROUTING))) in ebt_dnat_tg_check()
64 unsigned int hook_mask; ebt_dnat_tg_check() local
H A Debtables.c738 mtpar.hook_mask = tgpar.hook_mask = hookmask; in ebt_check_entry()
/linux/include/linux/netfilter_bridge/
H A 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/include/linux/netfilter/
H A Dx_tables.h79 * @hook_mask: via which hooks the new rule is reachable
90 unsigned int hook_mask;
121 * @hook_mask: via which hooks the new rule is reachable
132 unsigned int hook_mask;
201 hook_mask is a bitmask of hooks from which it can be
88 unsigned int hook_mask; global() member
119 unsigned int hook_mask; global() member
/linux/net/sched/
H A Dem_ipt.c52 mtpar.hook_mask = 1 << im->hook; in check_match()
/linux/include/net/netfilter/
H A Dnf_tables.h1113 u8 hook_mask[NFT_CHAIN_T_MAX]; member
1183 unsigned int hook_mask; member
/linux/net/ipv6/netfilter/
H A Dip6_tables.c524 .hook_mask = e->comefrom, in check_target()
553 mtpar.hook_mask = e->comefrom; in find_check_entry()
/linux/net/ipv4/netfilter/
H A Dip_tables.c506 .hook_mask = e->comefrom, in check_target()
534 mtpar.hook_mask = e->comefrom; in find_check_entry()
H A Darp_tables.c409 .hook_mask = e->comefrom, in check_target()