ipv6 route: Prefer outgoing interface with source address assigned.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Wed, 2 Jul 2008 09:30:18 +0000 (18:30 +0900)
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Thu, 3 Jul 2008 08:51:56 +0000 (17:51 +0900)
commitb3593aa92d215aa159cf4cb973c003d309ac2956
treee588e699dcb38c80a15bb9c7aa606994e82b134b
parent1536d399cd49e2fcfa6095a6c3e2a35b163f5125
ipv6 route: Prefer outgoing interface with source address assigned.

Outgoing interface is selected by the route decision if unspecified.
Let's prefer routes via interface(s) with the address assigned if we
have multiple routes with same cost.
With help from Naohiro Ooiwa <nooiwa@miraclelinux.com>.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
net/ipv6/route.c