tcp_input: fix a confusing variable name and a comment

It looks like a copy-and-paste mistake.
This commit is contained in:
YAMAMOTO Takashi 2021-06-04 10:53:06 +09:00 committed by Xiang Xiao
parent eb00e00e48
commit 7d82e7a7c4

View File

@ -419,17 +419,13 @@ found:
(dev->d_len == 0 || dev->d_len == 1) && (dev->d_len == 0 || dev->d_len == 1) &&
conn->tx_unacked <= 0) conn->tx_unacked <= 0)
{ {
uint32_t ackseq; uint32_t seq;
uint32_t rcvseq; uint32_t rcvseq;
/* Get the sequence number of that has just been acknowledged by this seq = tcp_getsequence(tcp->seqno);
* incoming packet.
*/
ackseq = tcp_getsequence(tcp->seqno);
rcvseq = tcp_getsequence(conn->rcvseq); 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 */ /* Send a "normal" acknowledgment of the KeepAlive probe */