projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
102128e
)
[IPV6] ADDRCONF: Fix default source address selection without CONFIG_IPV6_PRIVACY
author
YOSHIFUJI Hideaki
<yoshfuji@linux-ipv6.org>
Thu, 22 Jun 2006 08:41:18 +0000
(
01:41
-0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Fri, 23 Jun 2006 09:07:24 +0000
(
02:07
-0700)
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>
net/ipv6/addrconf.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/addrconf.c
b/net/ipv6/addrconf.c
index 6b361fc3e14d5585f67bee423b562337d5b5e496..4da664538f5204dd47f0299ada575435d719a3ca 100644
(file)
--- 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) {