/Linux-v5.10/net/netfilter/ |
D | core.c | 267 nf_hook_entry_head(struct net *net, int pf, unsigned int hooknum, in nf_hook_entry_head() argument 275 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_arp) <= hooknum)) in nf_hook_entry_head() 277 return net->nf.hooks_arp + hooknum; in nf_hook_entry_head() 281 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_bridge) <= hooknum)) in nf_hook_entry_head() 283 return net->nf.hooks_bridge + hooknum; in nf_hook_entry_head() 287 if (WARN_ON_ONCE(hooknum != NF_INET_INGRESS)) in nf_hook_entry_head() 296 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv4) <= hooknum)) in nf_hook_entry_head() 298 return net->nf.hooks_ipv4 + hooknum; in nf_hook_entry_head() 300 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv6) <= hooknum)) in nf_hook_entry_head() 302 return net->nf.hooks_ipv6 + hooknum; in nf_hook_entry_head() [all …]
|
D | nf_nat_redirect.c | 30 unsigned int hooknum) in nf_nat_redirect_ipv4() argument 37 WARN_ON(hooknum != NF_INET_PRE_ROUTING && in nf_nat_redirect_ipv4() 38 hooknum != NF_INET_LOCAL_OUT); in nf_nat_redirect_ipv4() 44 if (hooknum == NF_INET_LOCAL_OUT) { in nf_nat_redirect_ipv4() 82 unsigned int hooknum) in nf_nat_redirect_ipv6() argument 90 if (hooknum == NF_INET_LOCAL_OUT) { in nf_nat_redirect_ipv6()
|
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; \
|
D | nf_log_common.c | 151 unsigned int hooknum, const struct sk_buff *skb, in nf_log_dump_packet_common() argument 189 unsigned int hooknum, in nf_log_l2packet() argument 198 nf_log_packet(net, NFPROTO_IPV4, hooknum, skb, in, out, in nf_log_l2packet() 202 nf_log_packet(net, NFPROTO_IPV6, hooknum, skb, in, out, in nf_log_l2packet() 207 nf_log_packet(net, NFPROTO_ARP, hooknum, skb, in, out, in nf_log_l2packet()
|
D | nf_nat_core.c | 688 nf_nat_alloc_null_binding(struct nf_conn *ct, unsigned int hooknum) in nf_nat_alloc_null_binding() argument 690 return __nf_nat_alloc_null_binding(ct, HOOK2MANIP(hooknum)); in nf_nat_alloc_null_binding() 697 unsigned int hooknum, in nf_nat_packet() argument 700 enum nf_nat_manip_type mtype = HOOK2MANIP(hooknum); in nf_nat_packet() 1021 unsigned int hooknum = ops->hooknum; in nf_nat_register_fn() local 1031 if (orig_nat_ops[i].hooknum == hooknum) { in nf_nat_register_fn() 1032 hooknum = i; in nf_nat_register_fn() 1076 priv = nat_ops[hooknum].priv; in nf_nat_register_fn() 1097 int hooknum = ops->hooknum; in nf_nat_unregister_fn() local 1113 if (nat_ops[i].hooknum == hooknum) { in nf_nat_unregister_fn() [all …]
|
D | nf_nat_proto.c | 562 unsigned int hooknum) in nf_nat_icmp_reply_translation() argument 569 enum nf_nat_manip_type manip = HOOK2MANIP(hooknum); in nf_nat_icmp_reply_translation() 578 if (nf_ip_checksum(skb, hooknum, hdrlen, IPPROTO_ICMP)) in nf_nat_icmp_reply_translation() 741 .hooknum = NF_INET_PRE_ROUTING, 748 .hooknum = NF_INET_POST_ROUTING, 755 .hooknum = NF_INET_LOCAL_OUT, 762 .hooknum = NF_INET_LOCAL_IN, 784 unsigned int hooknum, in nf_nat_icmpv6_reply_translation() argument 792 enum nf_nat_manip_type manip = HOOK2MANIP(hooknum); in nf_nat_icmpv6_reply_translation() 800 if (nf_ip6_checksum(skb, hooknum, hdrlen, IPPROTO_ICMPV6)) in nf_nat_icmpv6_reply_translation() [all …]
|
D | nf_log_netdev.c | 16 unsigned int hooknum, in nf_log_netdev_packet() argument 23 nf_log_l2packet(net, pf, skb->protocol, hooknum, skb, in, out, in nf_log_netdev_packet()
|
D | nf_conntrack_proto.c | 210 .hooknum = NF_INET_PRE_ROUTING, 216 .hooknum = NF_INET_LOCAL_OUT, 222 .hooknum = NF_INET_POST_ROUTING, 228 .hooknum = NF_INET_LOCAL_IN, 405 .hooknum = NF_INET_PRE_ROUTING, 411 .hooknum = NF_INET_LOCAL_OUT, 417 .hooknum = NF_INET_POST_ROUTING, 423 .hooknum = NF_INET_LOCAL_IN,
|
D | nf_queue.c | 262 static struct nf_hook_entries *nf_hook_entries_head(const struct net *net, u8 pf, u8 hooknum) in nf_hook_entries_head() argument 267 return rcu_dereference(net->nf.hooks_bridge[hooknum]); in nf_hook_entries_head() 270 return rcu_dereference(net->nf.hooks_ipv4[hooknum]); in nf_hook_entries_head() 272 return rcu_dereference(net->nf.hooks_ipv6[hooknum]); in nf_hook_entries_head()
|
/Linux-v5.10/include/net/netfilter/ |
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);
|
D | nf_log.h | 41 unsigned int hooknum, 80 unsigned int hooknum, 90 unsigned int hooknum, 113 unsigned int hooknum, const struct sk_buff *skb, 120 unsigned int hooknum,
|
D | nf_nat_redirect.h | 11 unsigned int hooknum); 14 unsigned int hooknum);
|
/Linux-v5.10/net/netfilter/ipvs/ |
D | ip_vs_core.c | 709 static inline enum ip_defrag_users ip_vs_defrag_user(unsigned int hooknum) in ip_vs_defrag_user() argument 711 if (NF_INET_LOCAL_IN == hooknum) in ip_vs_defrag_user() 713 if (NF_INET_FORWARD == hooknum) in ip_vs_defrag_user() 733 struct sk_buff *skb, unsigned int hooknum) in ip_vs_route_me_harder() argument 738 if (NF_INET_LOCAL_IN == hooknum) in ip_vs_route_me_harder() 873 unsigned int hooknum) in handle_response_icmp() argument 901 if (ip_vs_route_me_harder(cp->ipvs, af, skb, hooknum)) in handle_response_icmp() 927 int *related, unsigned int hooknum) in ip_vs_out_icmp() argument 942 if (ip_vs_gather_frags(ipvs, skb, ip_vs_defrag_user(hooknum))) in ip_vs_out_icmp() 998 pp, ciph.len, ihl, hooknum); in ip_vs_out_icmp() [all …]
|
/Linux-v5.10/net/ipv6/netfilter/ |
D | nf_defrag_ipv6_hooks.c | 30 static enum ip6_defrag_users nf_ct6_defrag_user(unsigned int hooknum, in nf_ct6_defrag_user() argument 45 if (hooknum == NF_INET_PRE_ROUTING) in nf_ct6_defrag_user() 79 .hooknum = NF_INET_PRE_ROUTING, 85 .hooknum = NF_INET_LOCAL_OUT,
|
D | ip6table_nat.c | 42 .hooknum = NF_INET_PRE_ROUTING, 48 .hooknum = NF_INET_POST_ROUTING, 54 .hooknum = NF_INET_LOCAL_OUT, 60 .hooknum = NF_INET_LOCAL_IN,
|
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 60 if (hooknum == NF_INET_PRE_ROUTING || in nf_dup_ipv6() 61 hooknum == NF_INET_LOCAL_IN) { in nf_dup_ipv6()
|
D | nf_reject_ipv6.c | 263 unsigned char code, unsigned int hooknum) in nf_send_unreach6() argument 265 if (!reject6_csum_ok(skb_in, hooknum)) in nf_send_unreach6() 268 if (hooknum == NF_INET_LOCAL_OUT && skb_in->dev == NULL) in nf_send_unreach6() 271 if (hooknum == NF_INET_PRE_ROUTING && nf_reject6_fill_skb_dst(skb_in)) in nf_send_unreach6()
|
/Linux-v5.10/net/ipv4/netfilter/ |
D | nf_defrag_ipv4.c | 40 static enum ip_defrag_users nf_ct_defrag_user(unsigned int hooknum, in nf_ct_defrag_user() argument 55 if (hooknum == NF_INET_PRE_ROUTING) in nf_ct_defrag_user() 96 .hooknum = NF_INET_PRE_ROUTING, 102 .hooknum = NF_INET_LOCAL_OUT,
|
D | iptable_nat.c | 40 .hooknum = NF_INET_PRE_ROUTING, 46 .hooknum = NF_INET_POST_ROUTING, 52 .hooknum = NF_INET_LOCAL_OUT, 58 .hooknum = NF_INET_LOCAL_IN,
|
D | nf_dup_ipv4.c | 50 void nf_dup_ipv4(struct net *net, struct sk_buff *skb, unsigned int hooknum, in nf_dup_ipv4() argument 82 if (hooknum == NF_INET_PRE_ROUTING || in nf_dup_ipv4() 83 hooknum == NF_INET_LOCAL_IN) in nf_dup_ipv4()
|
D | nf_log_arp.c | 93 unsigned int hooknum, const struct sk_buff *skb, in nf_log_arp_packet() argument 110 nf_log_dump_packet_common(m, pf, hooknum, skb, in, out, loginfo, in nf_log_arp_packet()
|
/Linux-v5.10/net/bridge/netfilter/ |
D | ebtable_filter.c | 79 .hooknum = NF_BR_LOCAL_IN, 85 .hooknum = NF_BR_FORWARD, 91 .hooknum = NF_BR_LOCAL_OUT,
|
D | ebtable_nat.c | 79 .hooknum = NF_BR_LOCAL_OUT, 85 .hooknum = NF_BR_POST_ROUTING, 91 .hooknum = NF_BR_PRE_ROUTING,
|
D | nf_log_bridge.c | 17 unsigned int hooknum, in nf_log_bridge_packet() argument 24 nf_log_l2packet(net, pf, eth_hdr(skb)->h_proto, hooknum, skb, in nf_log_bridge_packet()
|
/Linux-v5.10/security/smack/ |
D | smack_netfilter.c | 62 .hooknum = NF_INET_LOCAL_OUT, 69 .hooknum = NF_INET_LOCAL_OUT,
|