diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2006-06-22 01:42:13 -0700 |
---|---|---|
committer | Chris Wright <chrisw@sous-sol.org> | 2006-06-29 17:17:16 -0700 |
commit | e778d0ec93ec97fb851b8e0bd5e1488f083baa6a (patch) | |
tree | 39005d650c615ae51810a92bed2bb0c9d1e78c36 | |
parent | ac16ac4c1202baff72f889f3904ca480bea93d76 (diff) | |
download | lwn-e778d0ec93ec97fb851b8e0bd5e1488f083baa6a.tar.gz lwn-e778d0ec93ec97fb851b8e0bd5e1488f083baa6a.zip |
[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: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
-rw-r--r-- | net/ipv6/addrconf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 6b361fc3e14d..4da664538f52 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -1075,6 +1075,9 @@ int ipv6_dev_get_saddr(struct net_device *daddr_dev, if (hiscore.attrs & IPV6_SADDR_SCORE_PRIVACY) continue; } +#else + if (hiscore.rule < 7) + hiscore.rule++; #endif /* Rule 8: Use longest matching prefix */ if (hiscore.rule < 8) { |