Home
last modified time | relevance | path

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

/linux-4.4.14/net/netfilter/
Dxt_repldata.h17 unsigned int hook_mask = info->valid_hooks; \
18 unsigned int nhooks = hweight32(hook_mask); \
33 tbl->repl.valid_hooks = hook_mask; \
37 for (; hook_mask != 0; hook_mask >>= 1, ++hooknum) { \
38 if (!(hook_mask & 1)) \
Dxt_devgroup.c48 par->hook_mask & ~((1 << NF_INET_PRE_ROUTING) | in devgroup_mt_checkentry()
54 par->hook_mask & ~((1 << NF_INET_FORWARD) | in devgroup_mt_checkentry()
Dnft_compat.c159 par->hook_mask = 1 << ops->hooknum; in nft_target_set_tgchk_param()
161 par->hook_mask = 0; in nft_target_set_tgchk_param()
287 unsigned int hook_mask = 0; in nft_target_validate() local
295 hook_mask = 1 << ops->hooknum; in nft_target_validate()
296 if (!(hook_mask & target->hooks)) in nft_target_validate()
376 par->hook_mask = 1 << ops->hooknum; in nft_match_set_mtchk_param()
378 par->hook_mask = 0; in nft_match_set_mtchk_param()
469 unsigned int hook_mask = 0; in nft_match_validate() local
477 hook_mask = 1 << ops->hooknum; in nft_match_validate()
478 if (!(hook_mask & match->hooks)) in nft_match_validate()
Dxt_physdev.c108 par->hook_mask & ((1 << NF_INET_LOCAL_OUT) | in physdev_mt_check()
113 if (par->hook_mask & (1 << NF_INET_LOCAL_OUT)) in physdev_mt_check()
Dxt_policy.c139 if (par->hook_mask & ((1 << NF_INET_PRE_ROUTING) | in policy_mt_check()
144 if (par->hook_mask & ((1 << NF_INET_POST_ROUTING) | in policy_mt_check()
Dxt_addrtype.c182 if (par->hook_mask & ((1 << NF_INET_PRE_ROUTING) | in addrtype_mt_checkentry_v1()
190 if (par->hook_mask & ((1 << NF_INET_POST_ROUTING) | in addrtype_mt_checkentry_v1()
Dx_tables.c388 if (par->match->hooks && (par->hook_mask & ~par->match->hooks) != 0) { in xt_check_match()
394 textify_hooks(used, sizeof(used), par->hook_mask, in xt_check_match()
724 if (par->target->hooks && (par->hook_mask & ~par->target->hooks) != 0) { in xt_check_target()
730 textify_hooks(used, sizeof(used), par->hook_mask, in xt_check_target()
1420 unsigned int hook_mask = table->valid_hooks; in xt_hook_link() local
1421 uint8_t i, num_hooks = hweight32(hook_mask); in xt_hook_link()
1430 for (i = 0, hooknum = 0; i < num_hooks && hook_mask != 0; in xt_hook_link()
1431 hook_mask >>= 1, ++hooknum) { in xt_hook_link()
1432 if (!(hook_mask & 1)) in xt_hook_link()
Dnf_tables_inet.c74 .hook_mask = (1 << NF_INET_LOCAL_IN) |
Dxt_TCPMSS.c273 (par->hook_mask & ~((1 << NF_INET_FORWARD) | in tcpmss_tg4_check()
298 (par->hook_mask & ~((1 << NF_INET_FORWARD) | in tcpmss_tg6_check()
Dnf_tables_netdev.c156 .hook_mask = (1 << NF_NETDEV_INGRESS),
Dxt_set.c504 !(par->hook_mask & (1 << NF_INET_FORWARD | in set_target_v3_checkentry()
Dnf_tables_api.c1369 if (!(type->hook_mask & (1 << hooknum))) in nf_tables_newchain()
/linux-4.4.14/net/bridge/netfilter/
Debt_dnat.c32 unsigned int hook_mask; in ebt_dnat_tg_check() local
37 hook_mask = par->hook_mask & ~(1 << NF_BR_NUMHOOKS); in ebt_dnat_tg_check()
39 (hook_mask & ~((1 << NF_BR_PRE_ROUTING) | in ebt_dnat_tg_check()
42 hook_mask & ~(1 << NF_BR_BROUTING))) in ebt_dnat_tg_check()
Debt_redirect.c39 unsigned int hook_mask; in ebt_redirect_tg_check() local
44 hook_mask = par->hook_mask & ~(1 << NF_BR_NUMHOOKS); in ebt_redirect_tg_check()
46 hook_mask & ~(1 << NF_BR_PRE_ROUTING)) && in ebt_redirect_tg_check()
48 hook_mask & ~(1 << NF_BR_BROUTING))) in ebt_redirect_tg_check()
Dnf_tables_bridge.c158 .hook_mask = (1 << NF_BR_PRE_ROUTING) |
Debtables.c707 mtpar.hook_mask = tgpar.hook_mask = hookmask; in ebt_check_entry()
/linux-4.4.14/include/linux/netfilter_bridge/
Debtables.h32 unsigned int hook_mask);
49 unsigned int hook_mask);
67 unsigned int hook_mask);
122 #define BASE_CHAIN (par->hook_mask & (1 << NF_BR_NUMHOOKS))
124 #define CLEAR_BASE_CHAIN_BIT (par->hook_mask &= ~(1 << NF_BR_NUMHOOKS))
/linux-4.4.14/net/ipv4/netfilter/
Dnft_chain_route_ipv4.c67 .hook_mask = (1 << NF_INET_LOCAL_OUT),
Dnft_chain_nat_ipv4.c74 .hook_mask = (1 << NF_INET_PRE_ROUTING) |
Dnf_tables_arp.c74 .hook_mask = (1 << NF_ARP_IN) |
Dnf_tables_ipv4.c95 .hook_mask = (1 << NF_INET_LOCAL_IN) |
Dip_tables.c641 .hook_mask = e->comefrom, in check_target()
675 mtpar.hook_mask = e->comefrom; in find_check_entry()
Darp_tables.c506 .hook_mask = e->comefrom, in check_target()
/linux-4.4.14/net/ipv6/netfilter/
Dnft_chain_nat_ipv6.c72 .hook_mask = (1 << NF_INET_PRE_ROUTING) |
Dnft_chain_route_ipv6.c65 .hook_mask = (1 << NF_INET_LOCAL_OUT),
Dnf_tables_ipv6.c94 .hook_mask = (1 << NF_INET_LOCAL_IN) |
Dip6_tables.c653 .hook_mask = e->comefrom, in check_target()
688 mtpar.hook_mask = e->comefrom; in find_check_entry()
/linux-4.4.14/include/linux/netfilter/
Dx_tables.h65 unsigned int hook_mask; member
96 unsigned int hook_mask; member
/linux-4.4.14/net/sched/
Dact_ipt.c49 par.hook_mask = hook; in ipt_init_target()
/linux-4.4.14/include/net/netfilter/
Dnf_tables.h781 unsigned int hook_mask; member