summaryrefslogtreecommitdiffstats
path: root/include/net/netfilter
diff options
context:
space:
mode:
authorArturo Borrero2014-10-17 12:37:52 +0200
committerPablo Neira Ayuso2014-10-27 22:48:10 +0100
commit9de920eddb74bf67f1d6af603acc5ed05dcd35e9 (patch)
tree096dea317cc6ee9d5de3b29b081e8a4968c51de0 /include/net/netfilter
parentnetfilter: refactor NAT redirect IPv4 to use it from nf_tables (diff)
downloadkernel-qcow2-linux-9de920eddb74bf67f1d6af603acc5ed05dcd35e9.tar.gz
kernel-qcow2-linux-9de920eddb74bf67f1d6af603acc5ed05dcd35e9.tar.xz
kernel-qcow2-linux-9de920eddb74bf67f1d6af603acc5ed05dcd35e9.zip
netfilter: refactor NAT redirect IPv6 code to use it from nf_tables
This patch refactors the IPv6 code so it can be usable both from xt and nf_tables. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netfilter')
-rw-r--r--include/net/netfilter/ipv6/nf_nat_redirect.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/netfilter/ipv6/nf_nat_redirect.h b/include/net/netfilter/ipv6/nf_nat_redirect.h
new file mode 100644
index 000000000000..1ebdffc461cc
--- /dev/null
+++ b/include/net/netfilter/ipv6/nf_nat_redirect.h
@@ -0,0 +1,8 @@
+#ifndef _NF_NAT_REDIRECT_IPV6_H_
+#define _NF_NAT_REDIRECT_IPV6_H_
+
+unsigned int
+nf_nat_redirect_ipv6(struct sk_buff *skb, const struct nf_nat_range *range,
+ unsigned int hooknum);
+
+#endif /* _NF_NAT_REDIRECT_IPV6_H_ */