summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorArturo Borrero <arturo.borrero.glez@gmail.com>2014-10-16 12:23:29 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-10-27 22:47:06 +0100
commit8b13eddfdf04cbfa561725cfc42d6868fe896f56 (patch)
treea54fcd289d9acb1566a841f66045127227c84d25 /include
parentb8901ac319768cdd3afa060787503e0c405f9607 (diff)
downloadlinux-stable-8b13eddfdf04cbfa561725cfc42d6868fe896f56.tar.gz
linux-stable-8b13eddfdf04cbfa561725cfc42d6868fe896f56.tar.bz2
linux-stable-8b13eddfdf04cbfa561725cfc42d6868fe896f56.zip
netfilter: refactor NAT redirect IPv4 to use it from nf_tables
This patch refactors the IPv4 code so it can be usable both from xt and nf_tables. A similar patch follows-up to handle IPv6. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/netfilter/ipv4/nf_nat_redirect.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/netfilter/ipv4/nf_nat_redirect.h b/include/net/netfilter/ipv4/nf_nat_redirect.h
new file mode 100644
index 000000000000..19e1df3a0a4d
--- /dev/null
+++ b/include/net/netfilter/ipv4/nf_nat_redirect.h
@@ -0,0 +1,9 @@
+#ifndef _NF_NAT_REDIRECT_IPV4_H_
+#define _NF_NAT_REDIRECT_IPV4_H_
+
+unsigned int
+nf_nat_redirect_ipv4(struct sk_buff *skb,
+ const struct nf_nat_ipv4_multi_range_compat *mr,
+ unsigned int hooknum);
+
+#endif /* _NF_NAT_REDIRECT_IPV4_H_ */