/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() 286 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv4) <= hooknum)) in nf_hook_entry_head() 288 return net->nf.hooks_ipv4 + hooknum; in nf_hook_entry_head() 290 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv6) <= hooknum)) in nf_hook_entry_head() 292 return net->nf.hooks_ipv6 + hooknum; in nf_hook_entry_head() 299 if (hooknum == NF_NETDEV_INGRESS) { in nf_hook_entry_head() [all …]
|
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()
|
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() 758 .hooknum = NF_INET_PRE_ROUTING, 765 .hooknum = NF_INET_POST_ROUTING, 772 .hooknum = NF_INET_LOCAL_OUT, 779 .hooknum = NF_INET_LOCAL_IN, 801 unsigned int hooknum, in nf_nat_icmpv6_reply_translation() argument 809 enum nf_nat_manip_type manip = HOOK2MANIP(hooknum); in nf_nat_icmpv6_reply_translation() 817 if (nf_ip6_checksum(skb, hooknum, hdrlen, IPPROTO_ICMPV6)) in nf_nat_icmpv6_reply_translation() [all …]
|
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_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_queue.c | 286 static struct nf_hook_entries *nf_hook_entries_head(const struct net *net, u8 pf, u8 hooknum) in nf_hook_entries_head() argument 291 return rcu_dereference(net->nf.hooks_bridge[hooknum]); in nf_hook_entries_head() 294 return rcu_dereference(net->nf.hooks_ipv4[hooknum]); in nf_hook_entries_head() 296 return rcu_dereference(net->nf.hooks_ipv6[hooknum]); in nf_hook_entries_head()
|
D | xt_quota2.c | 79 static void quota2_log(unsigned int hooknum, in quota2_log() argument 112 pm->hook = hooknum; in quota2_log() 125 static void quota2_log(unsigned int hooknum, in quota2_log() argument
|
D | nf_log.c | 218 unsigned int hooknum, in nf_log_packet() argument 239 logger->logfn(net, pf, hooknum, skb, in, out, loginfo, prefix); in nf_log_packet() 247 unsigned int hooknum, in nf_log_trace() argument 263 logger->logfn(net, pf, hooknum, skb, in, out, loginfo, prefix); in nf_log_trace()
|
D | nfnetlink_osf.c | 198 int hooknum, struct net_device *in, struct net_device *out, in nf_osf_match() argument 235 nf_log_packet(net, family, hooknum, skb, in nf_osf_match() 249 nf_log_packet(net, family, hooknum, skb, in, out, NULL, in nf_osf_match()
|
/net/netfilter/ipvs/ |
D | ip_vs_core.c | 715 static inline enum ip_defrag_users ip_vs_defrag_user(unsigned int hooknum) in ip_vs_defrag_user() argument 717 if (NF_INET_LOCAL_IN == hooknum) in ip_vs_defrag_user() 719 if (NF_INET_FORWARD == hooknum) in ip_vs_defrag_user() 739 struct sk_buff *skb, unsigned int hooknum) in ip_vs_route_me_harder() argument 744 if (NF_INET_LOCAL_IN == hooknum) in ip_vs_route_me_harder() 879 unsigned int hooknum) in handle_response_icmp() argument 907 if (ip_vs_route_me_harder(cp->ipvs, af, skb, hooknum)) in handle_response_icmp() 934 int *related, unsigned int hooknum) in ip_vs_out_icmp() argument 949 if (ip_vs_gather_frags(ipvs, skb, ip_vs_defrag_user(hooknum))) in ip_vs_out_icmp() 1005 pp, ciph.len, ihl, hooknum); in ip_vs_out_icmp() [all …]
|
/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 | 240 unsigned char code, unsigned int hooknum) in nf_send_unreach6() argument 242 if (!reject6_csum_ok(skb_in, hooknum)) in nf_send_unreach6() 245 if (hooknum == NF_INET_LOCAL_OUT && skb_in->dev == NULL) in nf_send_unreach6()
|
/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()
|
/net/bridge/netfilter/ |
D | ebtable_filter.c | 71 .hooknum = NF_BR_LOCAL_IN, 77 .hooknum = NF_BR_FORWARD, 83 .hooknum = NF_BR_LOCAL_OUT,
|
D | ebtable_nat.c | 71 .hooknum = NF_BR_LOCAL_OUT, 77 .hooknum = NF_BR_POST_ROUTING, 83 .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()
|
/net/sched/ |
D | act_ct.c | 226 int hooknum, err = NF_ACCEPT; in ct_nat_execute() local 230 hooknum = NF_INET_LOCAL_IN; /* Source NAT */ in ct_nat_execute() 232 hooknum = NF_INET_LOCAL_OUT; /* Destination NAT */ in ct_nat_execute() 240 hooknum)) in ct_nat_execute() 253 hooknum, in ct_nat_execute() 272 : nf_nat_alloc_null_binding(ct, hooknum); in ct_nat_execute() 287 err = nf_nat_packet(ct, ctinfo, hooknum, skb); in ct_nat_execute()
|