From 2ba2846ced48f8549e3afe5d528ad618e64df9d3 Mon Sep 17 00:00:00 2001 From: GAEHWILER Reto Date: Tue, 3 Mar 2020 09:15:18 -0600 Subject: [PATCH] net/tcp/tcp_input.c: Fix of faulty TCP sequence increments Sequence numbers must not be incremented in the case of retransmitted packets --- net/tcp/tcp_input.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/net/tcp/tcp_input.c b/net/tcp/tcp_input.c index 1b86e7dfbc..3daf251293 100644 --- a/net/tcp/tcp_input.c +++ b/net/tcp/tcp_input.c @@ -430,16 +430,7 @@ found: if (ackseq < rcvseq) { - if (dev->d_len > 0) - { - /* 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 */ + /* Send a "normal" acknowledgment of the KeepAlive probe */ tcp_send(dev, conn, TCP_ACK, tcpiplen); return;