Skip to contentSkip to conversation

sctp: fix IPv6 source address output routing with IPsec

PATCH New Wei Yongjun 1 participant 1 message Jul 28, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sctp: fix IPv6 source address output routing with IPsec

When do IPv6 source address output routing, the fl.proto is missing, with IPsec different router will be return. This patch fixed it.

---
 net/sctp/ipv6.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
net/sctp/ipv6.c +1 -0
index d4db450..0fbc4e2 100644
@@ -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;
 
Signature · 1 line
1.6.5.2