| /linux/include/net/netfilter/ |
| H A D | nf_nat.h | 19 #define HOOK2MANIP(hooknum) ((hooknum) != NF_INET_POST_ROUTING && \ argument 20 (hooknum) != NF_INET_LOCAL_IN) 44 unsigned int hooknum); 57 static inline bool nf_nat_oif_changed(unsigned int hooknum, in nf_nat_oif_changed() argument 63 return nat && nat->masq_index && hooknum == NF_INET_POST_ROUTING && in nf_nat_oif_changed() 77 unsigned int hooknum, struct sk_buff *skb); 88 unsigned int hooknum); 92 unsigned int hooknum, unsigned int hdrlen);
|
| H A D | nf_log.h | 41 unsigned int hooknum, 82 unsigned int hooknum, 92 unsigned int hooknum,
|
| H A D | nf_nat_redirect.h | 10 unsigned int hooknum); 13 unsigned int hooknum);
|
| H A D | nf_nat_masquerade.h | 9 nf_nat_masquerade_ipv4(struct sk_buff *skb, unsigned int hooknum,
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | netfilter_link_attach.c | 11 __u32 hooknum; member 22 { .pf = NFPROTO_IPV4, .hooknum = 42, .name = "invalid-hooknum", }, 31 .hooknum = NF_INET_POST_ROUTING, 39 .hooknum = NF_INET_FORWARD, 61 ASSERT_EQ(info.netfilter.hooknum, nf_expected.hooknum, "info nf hooknum"); in verify_netfilter_link_info() 89 X(opts, hooknum, i); in test_netfilter_link_attach()
|
| /linux/net/netfilter/ |
| H A D | nf_nat_redirect.c | 51 unsigned int hooknum) in nf_nat_redirect_ipv4() argument 55 WARN_ON(hooknum != NF_INET_PRE_ROUTING && in nf_nat_redirect_ipv4() 56 hooknum != NF_INET_LOCAL_OUT); in nf_nat_redirect_ipv4() 59 if (hooknum == NF_INET_LOCAL_OUT) { in nf_nat_redirect_ipv4() 105 unsigned int hooknum) in nf_nat_redirect_ipv6() argument 109 if (hooknum == NF_INET_LOCAL_OUT) { in nf_nat_redirect_ipv6()
|
| H A D | xt_repldata.h | 20 unsigned int bytes = 0, hooknum = 0, i = 0; \ 38 for (; hook_mask != 0; hook_mask >>= 1, ++hooknum) { \ 41 tbl->repl.hook_entry[hooknum] = bytes; \ 42 tbl->repl.underflow[hooknum] = bytes; \
|
| H A D | nf_bpf_link.c | 147 nf_link->hook_ops.pf, nf_link->hook_ops.hooknum, in bpf_nf_link_show_info() 158 info->netfilter.hooknum = nf_link->hook_ops.hooknum; in bpf_nf_link_fill_link_info() 187 if (attr->link_create.netfilter.hooknum >= NF_INET_NUMHOOKS) in bpf_nf_check_pf_and_hooks() 237 link->hook_ops.hooknum = attr->link_create.netfilter.hooknum; in bpf_nf_link_attach()
|
| H A D | nf_log.c | 239 unsigned int hooknum, in nf_log_packet() argument 260 logger->logfn(net, pf, hooknum, skb, in, out, loginfo, prefix); in nf_log_packet() 268 unsigned int hooknum, in nf_log_trace() argument 284 logger->logfn(net, pf, hooknum, skb, in, out, loginfo, prefix); in nf_log_trace()
|
| H A D | nfnetlink_osf.c | 187 int hooknum, struct net_device *in, struct net_device *out, in nf_osf_match() argument 224 nf_log_packet(net, family, hooknum, skb, in nf_osf_match() 238 nf_log_packet(net, family, hooknum, skb, in, out, NULL, in nf_osf_match()
|
| H A D | nfnetlink_log.c | 462 unsigned int hooknum, in __build_packet_message() argument 483 pmsg.hook = hooknum; in __build_packet_message() 602 if (hooknum <= NF_INET_FORWARD) { in __build_packet_message() 690 unsigned int hooknum, in nfulnl_log_packet() argument 810 hooknum, in, out, prefix, plen, in nfulnl_log_packet()
|
| H A D | nf_tables_api.c | 133 u8 hooknum; in nft_chain_vstate_valid() local 139 hooknum = base_chain->ops.hooknum; in nft_chain_vstate_valid() 144 chain->vstate.hook_mask[type] & BIT(hooknum)) in nft_chain_vstate_valid() 411 if (nft_base_chain_netdev(table->family, basechain->ops.hooknum)) in nf_tables_register_hook() 434 if (nft_base_chain_netdev(table->family, basechain->ops.hooknum)) in __nf_tables_unregister_hook() 1958 if (nla_put_be32(skb, NFTA_HOOK_HOOKNUM, htonl(ops->hooknum))) in nft_dump_basechain_hook() 1963 if (nft_base_chain_netdev(family, ops->hooknum)) { in nft_dump_basechain_hook() 2272 if (nft_base_chain_netdev(table->family, basechain->ops.hooknum)) { in nf_tables_chain_destroy() 2495 if (hook->num != basechain->ops.hooknum) in nft_chain_parse_hook() 2587 ops->hooknum = hook->num; in nft_basechain_hook_init() [all …]
|
| /linux/net/ipv6/netfilter/ |
| H A D | nf_defrag_ipv6_hooks.c | 31 static enum ip6_defrag_users nf_ct6_defrag_user(unsigned int hooknum, in nf_ct6_defrag_user() argument 46 if (hooknum == NF_INET_PRE_ROUTING) in nf_ct6_defrag_user() 80 .hooknum = NF_INET_PRE_ROUTING, 86 .hooknum = NF_INET_LOCAL_OUT,
|
| H A D | ip6table_nat.c | 38 .hooknum = NF_INET_PRE_ROUTING, 44 .hooknum = NF_INET_POST_ROUTING, 50 .hooknum = NF_INET_LOCAL_OUT, 56 .hooknum = NF_INET_LOCAL_IN,
|
| H A D | nf_dup_ipv6.c | 47 void nf_dup_ipv6(struct net *net, struct sk_buff *skb, unsigned int hooknum, in nf_dup_ipv6() argument 61 if (hooknum == NF_INET_PRE_ROUTING || in nf_dup_ipv6() 62 hooknum == NF_INET_LOCAL_IN) { in nf_dup_ipv6()
|
| /linux/net/ipv4/netfilter/ |
| H A D | iptable_nat.c | 36 .hooknum = NF_INET_PRE_ROUTING, 42 .hooknum = NF_INET_POST_ROUTING, 48 .hooknum = NF_INET_LOCAL_OUT, 54 .hooknum = NF_INET_LOCAL_IN,
|
| H A D | nf_defrag_ipv4.c | 41 static enum ip_defrag_users nf_ct_defrag_user(unsigned int hooknum, in nf_ct_defrag_user() argument 56 if (hooknum == NF_INET_PRE_ROUTING) in nf_ct_defrag_user() 97 .hooknum = NF_INET_PRE_ROUTING, 103 .hooknum = NF_INET_LOCAL_OUT,
|
| /linux/net/bridge/netfilter/ |
| H A D | ebtable_nat.c | 57 .hooknum = NF_BR_LOCAL_OUT, 63 .hooknum = NF_BR_POST_ROUTING, 69 .hooknum = NF_BR_PRE_ROUTING,
|
| H A D | ebtable_filter.c | 57 .hooknum = NF_BR_LOCAL_IN, 63 .hooknum = NF_BR_FORWARD, 69 .hooknum = NF_BR_LOCAL_OUT,
|
| H A D | ebtable_broute.c | 89 .hooknum = NF_BR_PRE_ROUTING,
|
| /linux/security/smack/ |
| H A D | smack_netfilter.c | 42 .hooknum = NF_INET_LOCAL_OUT, 49 .hooknum = NF_INET_LOCAL_OUT,
|
| /linux/include/net/netfilter/ipv6/ |
| H A D | nf_dup_ipv6.h | 7 void nf_dup_ipv6(struct net *net, struct sk_buff *skb, unsigned int hooknum,
|
| /linux/include/net/netfilter/ipv4/ |
| H A D | nf_dup_ipv4.h | 8 void nf_dup_ipv4(struct net *net, struct sk_buff *skb, unsigned int hooknum,
|
| /linux/drivers/net/ipvlan/ |
| H A D | ipvlan_l3s.c | 121 .hooknum = NF_INET_LOCAL_IN, 128 .hooknum = NF_INET_LOCAL_IN,
|
| /linux/include/linux/netfilter/ |
| H A D | nfnetlink_osf.h | 30 int hooknum, struct net_device *in, struct net_device *out,
|