From a74d2cb8d9defbd18d191956042b2a945b2cf395 Mon Sep 17 00:00:00 2001 From: Jon Grimm Date: Wed, 16 Jul 2003 23:05:27 -0500 Subject: [SCTP] Fix v6 linklocal address send not getting routed to correct i/f. User specified scope_id, but we didn't fill this in to our request down to v6 routing, so the ICMPv6 neighbor sol. went out the wrong i/f. --- net/sctp/ipv6.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'net') diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c index 9bce347a4510..2372eb9ea148 100644 --- a/net/sctp/ipv6.c +++ b/net/sctp/ipv6.c @@ -194,6 +194,9 @@ struct dst_entry *sctp_v6_get_dst(struct sctp_association *asoc, memset(&fl, 0, sizeof(fl)); ipv6_addr_copy(&fl.fl6_dst, &daddr->v6.sin6_addr); + if (ipv6_addr_type(&daddr->v6.sin6_addr) & IPV6_ADDR_LINKLOCAL) + fl.oif = daddr->v6.sin6_scope_id; + SCTP_DEBUG_PRINTK("%s: DST=%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x ", __FUNCTION__, NIP6(fl.fl6_dst)); -- cgit v1.2.3