From: YOSHIFUJI Hideaki Date: Tue, 29 Nov 2005 06:27:11 +0000 (-0800) Subject: [IPV6]: Implement appropriate dummy rule 4 in ipv6_dev_get_saddr(). X-Git-Tag: v2.6.15-rc4~4^2~24^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=220bbd748335f73aafb472a97716762a42cb0d58;p=linux-2.6 [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 . Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index a16064ba0c..76ff9f4fe8 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, } /* Rule 4: Prefer home address -- not implemented yet */ + if (hiscore.rule < 4) + hiscore.rule++; /* Rule 5: Prefer outgoing interface */ if (hiscore.rule < 5) {