Skip to content
Commit 2a38e6d5 authored by Li Wei's avatar Li Wei Committed by David S. Miller
Browse files

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: default avatarLi Wei <lw@cn.fujitsu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5cac98dd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment