]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Set mcast_hops to IPV6_DEFAULT_MCASTHOPS when -1 was given.
authorLi Wei <lw@cn.fujitsu.com>
Sun, 27 Nov 2011 21:33:34 +0000 (21:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Nov 2011 23:09:13 +0000 (18:09 -0500)
commitdd2ae21842b8093b55475b83e182115bb28a91ac
tree8b31067a05b221efa900bb333aa58c7fbaffc854
parent3160f87c477d17aef5473afb51e500ab4050d33d
ipv6: Set mcast_hops to IPV6_DEFAULT_MCASTHOPS when -1 was given.

We need to set np->mcast_hops to it's default value at this moment
otherwise when we use it and found it's value is -1, the logic to
get default hop limit doesn't take multicast into account and will
return wrong hop limit(IPV6_DEFAULT_HOPLIMIT) which is for unicast.

Signed-off-by: Li Wei <lw@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ipv6_sockglue.c