Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d630cc0 authored by Gerrit Renker's avatar Gerrit Renker Committed by David S. Miller
Browse files

[TCP]: Use old definition of before



This reverts the new (unambiguous) definition of the TCP `before'
relation. As pointed out in an example by Herbert Xu, there is 
existing code which implicitly requires the old definition in order
to work correctly.

Signed-off-by: default avatarGerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 44f9a2fd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -242,7 +242,7 @@ extern int tcp_memory_pressure;

static inline int before(__u32 seq1, __u32 seq2)
{
        return (__s32)(seq2-seq1) > 0;
        return (__s32)(seq1-seq2) < 0;
}
#define after(seq2, seq1) 	before(seq1, seq2)