[IPV6]: Support Source Address Selection API (RFC5014).
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
This commit is contained in:
@@ -920,7 +920,9 @@ static int ip6_dst_lookup_tail(struct sock *sk,
|
||||
|
||||
if (ipv6_addr_any(&fl->fl6_src)) {
|
||||
err = ipv6_dev_get_saddr(ip6_dst_idev(*dst)->dev,
|
||||
&fl->fl6_dst, &fl->fl6_src);
|
||||
&fl->fl6_dst,
|
||||
sk ? inet6_sk(sk)->srcprefs : 0,
|
||||
&fl->fl6_src);
|
||||
if (err)
|
||||
goto out_err_release;
|
||||
}
|
||||
|
Reference in New Issue
Block a user