]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: add tos reflection in TCP reset and ack
authorWei Wang <weiwan@google.com>
Tue, 8 Sep 2020 21:29:02 +0000 (14:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Sep 2020 03:20:55 +0000 (20:20 -0700)
commitb93fdc4f433e9b60927c1184cc1a6d246e8a528a
tree28bc95eee99af85851032a38ea07bb19a7781c51
parentc244f5c7576fce297fb3285b1e6e1dda8ac63f6d
ipv6: add tos reflection in TCP reset and ack

Currently, ipv6 stack does not do any TOS reflection. To make the
behavior consistent with v4 stack, this commit adds TOS reflection in
tcp_v6_reqsk_send_ack() and tcp_v6_send_reset(). We clear the lower
2-bit ECN value of the received TOS in compliance with RFC 3168 6.1.5
robustness principles.

Signed-off-by: Wei Wang <weiwan@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/tcp_ipv6.c