commit | 7cbca67c073263c179f605bdbbdc565ab29d801d | [log] [tgz] |
---|---|---|
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | Tue Mar 25 09:37:42 2008 +0900 |
committer | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | Tue Mar 25 10:24:01 2008 +0900 |
tree | 124ce8c81f3e033790416d3d16bd23e2f7bfed07 | |
parent | 1d5d236d309ab90fa6aedf712f586b3595721373 [diff] [blame] |
[IPV6]: Support Source Address Selection API (RFC5014). Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index e7d8e74..3f68a6e 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c
@@ -546,7 +546,9 @@ override = 0; in6_ifa_put(ifp); } else { - if (ipv6_dev_get_saddr(dev, daddr, &tmpaddr)) + if (ipv6_dev_get_saddr(dev, daddr, + inet6_sk(dev->nd_net->ipv6.ndisc_sk)->srcprefs, + &tmpaddr)) return; src_addr = &tmpaddr; }