From: David S. Miller Date: Tue, 4 May 2010 06:42:27 +0000 (-0700) Subject: ipv6: Fix default multicast hops setting. X-Git-Tag: v2.6.34-rc7~20^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f935aa9e99d6ec74a50871c120e6b21de7256efb;p=platform%2Fkernel%2Flinux-exynos.git ipv6: Fix default multicast hops setting. As per RFC 3493 the default multicast hops setting for a socket should be "1" just like ipv4. Ironically we have a IPV6_DEFAULT_MCASTHOPS macro it just wasn't being used. Reported-by: Elliot Hughes Signed-off-by: David S. Miller --- diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index 3192aa0..3f9e86b 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c @@ -200,7 +200,7 @@ lookup_protocol: inet_sk(sk)->pinet6 = np = inet6_sk_generic(sk); np->hop_limit = -1; - np->mcast_hops = -1; + np->mcast_hops = IPV6_DEFAULT_MCASTHOPS; np->mc_loop = 1; np->pmtudisc = IPV6_PMTUDISC_WANT; np->ipv6only = net->ipv6.sysctl.bindv6only;