net/tcp/tcp_input.c: Fix of faulty TCP sequence increments

Sequence numbers must not be incremented in the case of retransmitted packets
This commit is contained in:
GAEHWILER Reto 2020-03-03 09:15:18 -06:00 committed by Gregory Nutt
parent f3490e42c3
commit 2ba2846ced
1 changed files with 1 additions and 10 deletions

View File

@ -430,16 +430,7 @@ found:
if (ackseq < rcvseq) if (ackseq < rcvseq)
{ {
if (dev->d_len > 0) /* Send a "normal" acknowledgment of the KeepAlive probe */
{
/* Increment the received sequence number (perhaps including the
* discarded dummy byte in the probe).
*/
net_incr32(conn->rcvseq, dev->d_len);
}
/* And send a "normal" acknowledgment of the KeepAlive probe */
tcp_send(dev, conn, TCP_ACK, tcpiplen); tcp_send(dev, conn, TCP_ACK, tcpiplen);
return; return;