mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:26:54 +08:00
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 <wenquan1@xiaomi.com>
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user