Explorar o código

Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6

Linus Torvalds %!s(int64=20) %!d(string=hai) anos
pai
achega
d70aa5e4b5
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      net/ipv6/addrconf.c

+ 2 - 0
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) {