[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1238100203-23454-1-git-send-email-steven@uplinklabs.net>
Date: Thu, 26 Mar 2009 13:43:23 -0700
From: Steven Noonan <steven@...inklabs.net>
To: linux-kernel@...r.kernel.org
Cc: Steven Noonan <steven@...inklabs.net>,
Pablo Neira Ayuso <pablo@...filter.org>
Subject: [PATCH] iptables: "cluster" match uses IPv6-specific code without ifdef
The symbol __ipv6_addr_type is only available with CONFIG_IPV6 or
CONFIG_IPV6_MODULE.
Cc: Pablo Neira Ayuso <pablo@...filter.org>
Signed-off-by: Steven Noonan <steven@...inklabs.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists