[IPV6]: order addresses by scope
authorBrian Haley <brian.haley@hp.com>
Mon, 10 Jul 2006 22:25:51 +0000 (15:25 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 12 Jul 2006 20:58:37 +0000 (13:58 -0700)
commite55ffac6011731c455856072cb23aa20bd55c367
tree0ee05b521586b74398023ee083c5f9efbc8bf271
parent155dbfd8846bf165bb036c4492ad121c8b059f1d
[IPV6]: order addresses by scope

If IPv6 addresses are ordered by scope, then ipv6_dev_get_saddr() can
break-out of the device addr_list for() loop when the candidate source
address scope is less than the destination address scope.

Signed-off-by: Brian Haley <brian.haley@hp.com>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c