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:
parent
f3490e42c3
commit
2ba2846ced
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue