sctp: fix IPv6 source address output routing with IPsec
Subsystems (2)
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.
Signed-off-by Wei Yongjun <[email protected]>
--- net/sctp/ipv6.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
net/sctp/ipv6.c +1 -0
@@ -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