mirror of
https://github.com/apache/nuttx.git
synced 2026-08-08 22:17:18 +00: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:
parent
74ab7816a1
commit
fb7dcc3d89
1 changed files with 0 additions and 11 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue