summaryrefslogtreecommitdiffstats
path: root/include/net/netfilter/nf_nat_redirect.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/netfilter/nf_nat_redirect.h')
-rw-r--r--include/net/netfilter/nf_nat_redirect.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_nat_redirect.h b/include/net/netfilter/nf_nat_redirect.h
new file mode 100644
index 000000000..279380de9
--- /dev/null
+++ b/include/net/netfilter/nf_nat_redirect.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _NF_NAT_REDIRECT_H_
+#define _NF_NAT_REDIRECT_H_
+
+#include <linux/skbuff.h>
+#include <uapi/linux/netfilter/nf_nat.h>
+
+unsigned int
+nf_nat_redirect_ipv4(struct sk_buff *skb, const struct nf_nat_range2 *range,
+ unsigned int hooknum);
+unsigned int
+nf_nat_redirect_ipv6(struct sk_buff *skb, const struct nf_nat_range2 *range,
+ unsigned int hooknum);
+
+#endif /* _NF_NAT_REDIRECT_H_ */