lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #51447] Sequence number comparisons invoke implementat


From: Valery Ushakov
Subject: [lwip-devel] [bug #51447] Sequence number comparisons invoke implementation-defined behavior
Date: Tue, 29 Jan 2019 07:20:07 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0

Follow-up Comment #13, bug #51447 (project lwip):

It's a bug, but it's not a bug in TCP_SEQ_BETWEEN.

TCP_SEQ_BETWEEN(test, low, high) answers the question: if I start with "low"
and keep incrementing it (modulo 2^32), will I hit "test" before I hit "high"
(i'm ignoring "or equals" for brevity)?  For the numbers given the correct
answer is true and the macro correctly returns true.

The bug is that the wrong question is asked, tcplen probably needs more
checks, I haven't looked.

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?51447>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

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