Skip to content
Snippets Groups Projects
Commit 15d9e5e4 authored by Avi Kivity's avatar Avi Kivity
Browse files

bsd: add comparison operators to tcp_seq


Add comparison operators that use modulo arithmetic to order sequence
numbers, and use them to replace SEQ_LT() and friends, increasing code
readability.

As a consequence std::min() and std::max() can be used instead of SEQ_MIN()
and SEQ_MAX().

Signed-off-by: default avatarAvi Kivity <avi@cloudius-systems.com>
parent 07cad895
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment