sctp: Fix ECN markings for IPv6
Commit e9df2e8fd8
("[IPV6]: Use
appropriate sock tclass setting for routing lookup.") also changed the
way that ECN capable transports mark this capability in IPv6. As a
result, SCTP was not marking ECN capablity because the traffic class
was never set. This patch brings back the markings for IPv6 traffic.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
8b750ce54b
commit
b9031d9d87
@@ -727,6 +727,11 @@ static void sctp_v6_seq_dump_addr(struct seq_file *seq, union sctp_addr *addr)
|
||||
seq_printf(seq, NIP6_FMT " ", NIP6(addr->v6.sin6_addr));
|
||||
}
|
||||
|
||||
static void sctp_v6_ecn_capable(struct sock *sk)
|
||||
{
|
||||
inet6_sk(sk)->tclass |= INET_ECN_ECT_0;
|
||||
}
|
||||
|
||||
/* Initialize a PF_INET6 socket msg_name. */
|
||||
static void sctp_inet6_msgname(char *msgname, int *addr_len)
|
||||
{
|
||||
@@ -997,6 +1002,7 @@ static struct sctp_af sctp_af_inet6 = {
|
||||
.skb_iif = sctp_v6_skb_iif,
|
||||
.is_ce = sctp_v6_is_ce,
|
||||
.seq_dump_addr = sctp_v6_seq_dump_addr,
|
||||
.ecn_capable = sctp_v6_ecn_capable,
|
||||
.net_header_len = sizeof(struct ipv6hdr),
|
||||
.sockaddr_len = sizeof(struct sockaddr_in6),
|
||||
#ifdef CONFIG_COMPAT
|
||||
|
Reference in New Issue
Block a user