projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
624f54b
)
[IPV6]: Implement appropriate dummy rule 4 in ipv6_dev_get_saddr().
author
YOSHIFUJI Hideaki
<yoshfuji@linux-ipv6.org>
Tue, 29 Nov 2005 06:27:11 +0000
(22:27 -0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 29 Nov 2005 06:27:11 +0000
(22:27 -0800)
Ensure to update hiscore.rule in dummy rule 4 in ipv6_dev_get_saddr().
Pointed out by Yan Zheng <yanzheng@21cn.com>.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c
patch
|
blob
|
history
diff --git
a/net/ipv6/addrconf.c
b/net/ipv6/addrconf.c
index a16064ba0caf2bee3bcc87ffa111811d44927d60..76ff9f4fe89d7258895df5bc32857f64d6d603cf 100644
(file)
--- a/
net/ipv6/addrconf.c
+++ b/
net/ipv6/addrconf.c
@@
-985,6
+985,8
@@
int ipv6_dev_get_saddr(struct net_device *daddr_dev,
}
/* Rule 4: Prefer home address -- not implemented yet */
+ if (hiscore.rule < 4)
+ hiscore.rule++;
/* Rule 5: Prefer outgoing interface */
if (hiscore.rule < 5) {