- Subject: [PATCH next] sctp: fix IPv6 source address output routing with IPsec
- From: Wei Yongjun <yjwei@xxxxxxxxxxxxxx>
- Date: Wed, 28 Jul 2010 11:35:20 +0800
- User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100528 Thunderbird/3.0.5
When do IPv6 source address output routing, the fl.proto
is missing, with IPsec different router will be return.
This patch fixed it.
Signed-off-by: Wei Yongjun <yjwei@xxxxxxxxxxxxxx>
---
net/sctp/ipv6.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c
index d4db450..0fbc4e2 100644
--- a/net/sctp/ipv6.c
+++ b/net/sctp/ipv6.c
@@ -286,6 +286,7 @@ static void sctp_v6_get_dst(struct sctp_transport *t, union sctp_addr *saddr,
memset(fl, 0, sizeof(fl));
ipv6_addr_copy(&fl->fl6_dst, &daddr->v6.sin6_addr);
fl->fl_ip_dport = daddr->v6.sin6_port;
+ fl->proto = IPPROTO_SCTP;
if (ipv6_addr_type(&daddr->v6.sin6_addr) & IPV6_ADDR_LINKLOCAL)
fl->oif = daddr->v6.sin6_scope_id;
--
1.6.5.2
--
To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux OMAP]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Free Online Dating]
[Linux Kernel]
[Linux SCSI]
[XFree86]