diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-11-26 06:46:50 -0500 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-11-27 07:08:42 -0500 |
commit | b59eaf9e2871735ea7cc7e3dbf8bf83bddd786b9 (patch) | |
tree | e566e49ab6f1736c5e5ce600ca5c9741f6c694a0 /include/net | |
parent | 1b63d4b9b54cee6002757a8d20b537aa4037ae8f (diff) |
netfilter: combine IPv4 and IPv6 nf_nat_redirect code in one module
This resolves linking problems with CONFIG_IPV6=n:
net/built-in.o: In function `redirect_tg6':
xt_REDIRECT.c:(.text+0x6d021): undefined reference to `nf_nat_redirect_ipv6'
Reported-by: Andreas Ruprecht <rupran@einserver.de>
Reported-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/netfilter/ipv4/nf_nat_redirect.h | 9 | ||||
-rw-r--r-- | include/net/netfilter/ipv6/nf_nat_redirect.h | 8 | ||||
-rw-r--r-- | include/net/netfilter/nf_nat_redirect.h | 12 |
3 files changed, 12 insertions, 17 deletions
diff --git a/include/net/netfilter/ipv4/nf_nat_redirect.h b/include/net/netfilter/ipv4/nf_nat_redirect.h deleted file mode 100644 index 19e1df3a0a4d..000000000000 --- a/include/net/netfilter/ipv4/nf_nat_redirect.h +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | #ifndef _NF_NAT_REDIRECT_IPV4_H_ | ||
2 | #define _NF_NAT_REDIRECT_IPV4_H_ | ||
3 | |||
4 | unsigned int | ||
5 | nf_nat_redirect_ipv4(struct sk_buff *skb, | ||
6 | const struct nf_nat_ipv4_multi_range_compat *mr, | ||
7 | unsigned int hooknum); | ||
8 | |||
9 | #endif /* _NF_NAT_REDIRECT_IPV4_H_ */ | ||
diff --git a/include/net/netfilter/ipv6/nf_nat_redirect.h b/include/net/netfilter/ipv6/nf_nat_redirect.h deleted file mode 100644 index 1ebdffc461cc..000000000000 --- a/include/net/netfilter/ipv6/nf_nat_redirect.h +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | #ifndef _NF_NAT_REDIRECT_IPV6_H_ | ||
2 | #define _NF_NAT_REDIRECT_IPV6_H_ | ||
3 | |||
4 | unsigned int | ||
5 | nf_nat_redirect_ipv6(struct sk_buff *skb, const struct nf_nat_range *range, | ||
6 | unsigned int hooknum); | ||
7 | |||
8 | #endif /* _NF_NAT_REDIRECT_IPV6_H_ */ | ||
diff --git a/include/net/netfilter/nf_nat_redirect.h b/include/net/netfilter/nf_nat_redirect.h new file mode 100644 index 000000000000..73b729543309 --- /dev/null +++ b/include/net/netfilter/nf_nat_redirect.h | |||
@@ -0,0 +1,12 @@ | |||
1 | #ifndef _NF_NAT_REDIRECT_H_ | ||
2 | #define _NF_NAT_REDIRECT_H_ | ||
3 | |||
4 | unsigned int | ||
5 | nf_nat_redirect_ipv4(struct sk_buff *skb, | ||
6 | const struct nf_nat_ipv4_multi_range_compat *mr, | ||
7 | unsigned int hooknum); | ||
8 | unsigned int | ||
9 | nf_nat_redirect_ipv6(struct sk_buff *skb, const struct nf_nat_range *range, | ||
10 | unsigned int hooknum); | ||
11 | |||
12 | #endif /* _NF_NAT_REDIRECT_H_ */ | ||