Messages in this thread Patch in this message | | | From | Steven Noonan <> | Subject | [PATCH] iptables: "cluster" match uses IPv6-specific code without ifdef | Date | Thu, 26 Mar 2009 13:43:23 -0700 |
| |
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
| |