diff options
author | David S. Miller <davem@davemloft.net> | 2010-05-04 10:42:27 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-04 10:42:27 +0400 |
commit | f935aa9e99d6ec74a50871c120e6b21de7256efb (patch) | |
tree | 556229f3c69b2cc01f954266c286e7721d19276f /net | |
parent | 1827d2e943eeb5cba0662f3e6edc342d6bd65ae6 (diff) | |
download | linux-f935aa9e99d6ec74a50871c120e6b21de7256efb.tar.xz |
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 <enh@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/af_inet6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index 3192aa02ba5d..3f9e86b15e0d 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; |