From fb7dcc3d894020a098b2ca45649cef30ca0e836f Mon Sep 17 00:00:00 2001 From: wenquan1 Date: Wed, 24 Sep 2025 13:40:18 +0800 Subject: [PATCH] net/tcp: fix error check of OTW ACK sequence of zero-window probe ack Due to illegal sndseq_max increase when send zero-window probe or keealive probe Signed-off-by: wenquan1 --- net/tcp/tcp_timer.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/net/tcp/tcp_timer.c b/net/tcp/tcp_timer.c index d732a4e3af3..61929735827 100644 --- a/net/tcp/tcp_timer.c +++ b/net/tcp/tcp_timer.c @@ -711,11 +711,6 @@ void tcp_timer(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn) { tcp_xmit_probe(dev, conn); -#ifdef CONFIG_NET_TCP_WRITE_BUFFERS - /* Increment the un-ACKed sequence number */ - - conn->sndseq_max++; -#endif /* Update for the next probe */ conn->keeptimer = conn->keepintvl; @@ -757,12 +752,6 @@ void tcp_timer(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn) { tcp_xmit_probe(dev, conn); -#ifdef CONFIG_NET_TCP_WRITE_BUFFERS - /* Increment the un-ACKed sequence number */ - - conn->sndseq_max++; -#endif - /* Update for the next probe */ conn->nrtx++;