|
@@ -299,7 +299,8 @@ static inline int sctp_v6_addr_match_len(union sctp_addr *s1,
|
|
|
/* Fills in the source address(saddr) based on the destination address(daddr)
|
|
|
* and asoc's bind address list.
|
|
|
*/
|
|
|
-static void sctp_v6_get_saddr(struct sctp_association *asoc,
|
|
|
+static void sctp_v6_get_saddr(struct sctp_sock *sk,
|
|
|
+ struct sctp_association *asoc,
|
|
|
struct dst_entry *dst,
|
|
|
union sctp_addr *daddr,
|
|
|
union sctp_addr *saddr)
|
|
@@ -318,7 +319,7 @@ static void sctp_v6_get_saddr(struct sctp_association *asoc,
|
|
|
if (!asoc) {
|
|
|
ipv6_dev_get_saddr(dst ? ip6_dst_idev(dst)->dev : NULL,
|
|
|
&daddr->v6.sin6_addr,
|
|
|
- inet6_sk(asoc->base.sk)->srcprefs,
|
|
|
+ inet6_sk(&sk->inet.sk)->srcprefs,
|
|
|
&saddr->v6.sin6_addr);
|
|
|
SCTP_DEBUG_PRINTK("saddr from ipv6_get_saddr: " NIP6_FMT "\n",
|
|
|
NIP6(saddr->v6.sin6_addr));
|