lwip-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-members] TCP sequence number of by one? or comment incorrect?


From: Leon Woestenberg
Subject: [lwip-members] TCP sequence number of by one? or comment incorrect?
Date: Wed, 20 Oct 2004 19:07:56 +0200
User-agent: Mozilla Thunderbird 0.7.1 (Windows/20040626)

Hello,

the comment does not match the code in this spot:

It reads "above rcv_nxt" but it does "greater than or equal to".

   /* The sequence number must be within the window (above rcv_nxt
      and below rcv_nxt + rcv_wnd) in order to be further
      processed. */
   /*if (TCP_SEQ_GEQ(seqno, pcb->rcv_nxt) &&
     TCP_SEQ_LT(seqno, pcb->rcv_nxt + pcb->rcv_wnd)) {*/
if(TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, pcb->rcv_nxt + pcb->rcv_wnd - 1)){
     if (pcb->rcv_nxt == seqno) {


This was also the case in the old code (between comments).

Is the code, or is the comment correct?

Regards,

Leon.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]