Don't set the ECT codepoint on retransmitted packets during SACK loss

recovery. This is required by RFC 3168.

Submitted by:		Richard Scheffenegger
Reviewed by:		rgrimes@, tuexen@, Cheng Cui
MFC after:		1 week
Differential Revision:	https://reviews.freebsd.org/D23118
This commit is contained in:
Michael Tuexen 2020-01-25 13:34:29 +00:00
parent a2d59694be
commit 47e2c17c12
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357115
2 changed files with 2 additions and 0 deletions

View File

@ -1162,6 +1162,7 @@ tcp_output(struct tcpcb *tp)
* Ignore pure ack packets, retransmissions and window probes.
*/
if (len > 0 && SEQ_GEQ(tp->snd_nxt, tp->snd_max) &&
(sack_rxmit == 0) &&
!((tp->t_flags & TF_FORCEDATA) && len == 1)) {
#ifdef INET6
if (isipv6)

View File

@ -9477,6 +9477,7 @@ rack_output(struct tcpcb *tp)
* retransmissions and window probes.
*/
if (len > 0 && SEQ_GEQ(tp->snd_nxt, tp->snd_max) &&
(sack_rxmit == 0) &&
!((tp->t_flags & TF_FORCEDATA) && len == 1)) {
#ifdef INET6
if (isipv6)