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
@ -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 */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user