mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 13:18:50 +08:00
tcp_input: fix a confusing variable name and a comment
It looks like a copy-and-paste mistake.
This commit is contained in:
parent
eb00e00e48
commit
7d82e7a7c4
1 changed files with 3 additions and 7 deletions
|
@ -419,17 +419,13 @@ found:
|
|||
(dev->d_len == 0 || dev->d_len == 1) &&
|
||||
conn->tx_unacked <= 0)
|
||||
{
|
||||
uint32_t ackseq;
|
||||
uint32_t seq;
|
||||
uint32_t rcvseq;
|
||||
|
||||
/* Get the sequence number of that has just been acknowledged by this
|
||||
* incoming packet.
|
||||
*/
|
||||
|
||||
ackseq = tcp_getsequence(tcp->seqno);
|
||||
seq = tcp_getsequence(tcp->seqno);
|
||||
rcvseq = tcp_getsequence(conn->rcvseq);
|
||||
|
||||
if (TCP_SEQ_LT(ackseq, rcvseq))
|
||||
if (TCP_SEQ_LT(seq, rcvseq))
|
||||
{
|
||||
/* Send a "normal" acknowledgment of the KeepAlive probe */
|
||||
|
||||
|
|
Loading…
Reference in a new issue