Commit 8ac7545d authored by YOSHIFUJI Hideaki's avatar YOSHIFUJI Hideaki Committed by Greg Kroah-Hartman

[PATCH] IPV6 ADDRCONF: Fix default source address selection without CONFIG_IPV6_PRIVACY

We need to update hiscore.rule even if we don't enable CONFIG_IPV6_PRIVACY,
because we have more less significant rule; longest match.
Signed-off-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarChris Wright <chrisw@sous-sol.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 1d3688b6
...@@ -1065,6 +1065,9 @@ int ipv6_dev_get_saddr(struct net_device *daddr_dev, ...@@ -1065,6 +1065,9 @@ int ipv6_dev_get_saddr(struct net_device *daddr_dev,
if (hiscore.attrs & IPV6_SADDR_SCORE_PRIVACY) if (hiscore.attrs & IPV6_SADDR_SCORE_PRIVACY)
continue; continue;
} }
#else
if (hiscore.rule < 7)
hiscore.rule++;
#endif #endif
/* Rule 8: Use longest matching prefix */ /* Rule 8: Use longest matching prefix */
if (hiscore.rule < 8) { if (hiscore.rule < 8) {
......
Markdown is supported
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