public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iptables: "cluster" match uses IPv6-specific code without ifdef
@ 2009-03-26 20:43 Steven Noonan
  2009-03-27  9:19 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 6+ messages in thread
From: Steven Noonan @ 2009-03-26 20:43 UTC (permalink / raw)
  To: linux-kernel; +Cc: Steven Noonan, Pablo Neira Ayuso

The symbol __ipv6_addr_type is only available with CONFIG_IPV6 or
CONFIG_IPV6_MODULE.

Cc: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
---
 net/netfilter/xt_cluster.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/netfilter/xt_cluster.c b/net/netfilter/xt_cluster.c
index ad5bd89..38091f3 100644
--- a/net/netfilter/xt_cluster.c
+++ b/net/netfilter/xt_cluster.c
@@ -66,10 +66,12 @@ xt_cluster_is_multicast_addr(const struct sk_buff *skb, u_int8_t family)
 	case NFPROTO_IPV4:
 		is_multicast = ipv4_is_multicast(ip_hdr(skb)->daddr);
 		break;
+#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
 	case NFPROTO_IPV6:
 		is_multicast = ipv6_addr_type(&ipv6_hdr(skb)->daddr) &
 						IPV6_ADDR_MULTICAST;
 		break;
+#endif
 	default:
 		WARN_ON(1);
 		break;
-- 
1.6.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-03-29 18:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-26 20:43 [PATCH] iptables: "cluster" match uses IPv6-specific code without ifdef Steven Noonan
2009-03-27  9:19 ` Pablo Neira Ayuso
2009-03-27  9:29   ` Patrick McHardy
2009-03-27 12:47     ` Pablo Neira Ayuso
2009-03-27 12:50       ` Patrick McHardy
2009-03-29 11:49         ` Harald Welte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox