aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2005-11-29 01:27:11 -0500
committerDavid S. Miller <davem@davemloft.net>2005-11-29 01:27:11 -0500
commit220bbd748335f73aafb472a97716762a42cb0d58 (patch)
tree7bbcf26661ba53bb6c782dff0b8afee7bc417f27 /net
parent624f54be206adf970cd8eece16446b027913e533 (diff)
[IPV6]: Implement appropriate dummy rule 4 in ipv6_dev_get_saddr().
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>
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/addrconf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index a16064ba0caf..76ff9f4fe89d 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -985,6 +985,8 @@ int ipv6_dev_get_saddr(struct net_device *daddr_dev,
985 } 985 }
986 986
987 /* Rule 4: Prefer home address -- not implemented yet */ 987 /* Rule 4: Prefer home address -- not implemented yet */
988 if (hiscore.rule < 4)
989 hiscore.rule++;
988 990
989 /* Rule 5: Prefer outgoing interface */ 991 /* Rule 5: Prefer outgoing interface */
990 if (hiscore.rule < 5) { 992 if (hiscore.rule < 5) {