Home
last modified time | relevance | path

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

/openbmc/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.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) |
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.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()
H A 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()
357 unsigned int hook_mask = 0; in nft_target_validate() local
381 hook_mask = 1 << ops->hooknum; in nft_target_validate()
382 if (target->hooks && !(hook_mask & target->hooks)) in nft_target_validate()
478 par->hook_mask = 1 << ops->hooknum; in nft_match_set_mtchk_param()
480 par->hook_mask = 0; in nft_match_set_mtchk_param()
618 unsigned int hook_mask = 0; in nft_match_validate() local
642 hook_mask = 1 << ops->hooknum; in nft_match_validate()
643 if (match->hooks && !(hook_mask & match->hooks)) in nft_match_validate()
H A 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()
H A 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()
H A 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()
H A 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()
H A Dxt_physdev.c105 par->hook_mask & (1 << NF_INET_LOCAL_OUT)) { in physdev_mt_check()
H A Dnft_flow_offload.c385 unsigned int hook_mask = (1 << NF_INET_FORWARD); in nft_flow_offload_validate() local
392 return nft_chain_validate_hooks(ctx->chain, hook_mask); in nft_flow_offload_validate()
H A Dxt_set.c469 (par->hook_mask & ~(1 << NF_INET_FORWARD | in set_target_v3_checkentry()
H A Dnf_tables_api.c2279 if (hook->num >= NFT_MAX_HOOKS || !(type->hook_mask & (1 << hook->num))) in nft_chain_parse_hook()
/openbmc/linux/net/bridge/netfilter/
H A 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()
H A 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()
H A Debtables.c737 mtpar.hook_mask = tgpar.hook_mask = hookmask; in ebt_check_entry()
/openbmc/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))
/openbmc/linux/include/linux/netfilter/
H A Dx_tables.h98 unsigned int hook_mask; member
129 unsigned int hook_mask; member
/openbmc/linux/net/sched/
H A Dem_ipt.c52 mtpar.hook_mask = 1 << im->hook; in check_match()
H A Dact_ipt.c52 par.hook_mask = 1 << hook; in ipt_init_target()
/openbmc/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.c397 .hook_mask = e->comefrom, in check_target()
/openbmc/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()
/openbmc/linux/include/net/netfilter/
H A Dnf_tables.h1130 * @hook_mask: mask of valid hooks
1140 unsigned int hook_mask;
1137 unsigned int hook_mask; global() member