Commit a74d2cb8 authored by Jon Grimm's avatar Jon Grimm Committed by Sridhar Samudrala

[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.
parent 845ddb44
...@@ -194,6 +194,9 @@ struct dst_entry *sctp_v6_get_dst(struct sctp_association *asoc, ...@@ -194,6 +194,9 @@ struct dst_entry *sctp_v6_get_dst(struct sctp_association *asoc,
memset(&fl, 0, sizeof(fl)); memset(&fl, 0, sizeof(fl));
ipv6_addr_copy(&fl.fl6_dst, &daddr->v6.sin6_addr); 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 ", SCTP_DEBUG_PRINTK("%s: DST=%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x ",
__FUNCTION__, NIP6(fl.fl6_dst)); __FUNCTION__, NIP6(fl.fl6_dst));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment