aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-03-03 07:44:34 -0500
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-03-04 01:18:23 -0500
commit5e5f3f0f801321078c897a5de0b4b4304f234da0 (patch)
tree58e6b37134328183eb3c0a49852c52c0368da21c /net/sctp
parent8082c37cdc31fb0ed178d9d706bf7568ada0edd9 (diff)
[IPV6] ADDRCONF: Convert ipv6_get_saddr() to ipv6_dev_get_saddr().
Since most users of ipv6_get_saddr() pass non-NULL as dst argument, use ipv6_dev_get_saddr() directly. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'net/sctp')
-rw-r--r--net/sctp/ipv6.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c
index 87f940587d5f..3e4878800b36 100644
--- a/net/sctp/ipv6.c
+++ b/net/sctp/ipv6.c
@@ -313,7 +313,8 @@ static void sctp_v6_get_saddr(struct sctp_association *asoc,
313 __FUNCTION__, asoc, dst, NIP6(daddr->v6.sin6_addr)); 313 __FUNCTION__, asoc, dst, NIP6(daddr->v6.sin6_addr));
314 314
315 if (!asoc) { 315 if (!asoc) {
316 ipv6_get_saddr(dst, &daddr->v6.sin6_addr,&saddr->v6.sin6_addr); 316 ipv6_dev_get_saddr(dst ? ip6_dst_idev(dst)->dev : NULL,
317 &daddr->v6.sin6_addr, &saddr->v6.sin6_addr);
317 SCTP_DEBUG_PRINTK("saddr from ipv6_get_saddr: " NIP6_FMT "\n", 318 SCTP_DEBUG_PRINTK("saddr from ipv6_get_saddr: " NIP6_FMT "\n",
318 NIP6(saddr->v6.sin6_addr)); 319 NIP6(saddr->v6.sin6_addr));
319 return; 320 return;