From: Gerrit Renker Date: Thu, 4 Jan 2007 20:25:16 +0000 (-0800) Subject: [TCP]: Use old definition of before X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0d630cc0a6cb8ad544b5913a26ff1349ed7c8587;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [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: Gerrit Renker Signed-off-by: David S. Miller --- diff --git a/include/net/tcp.h b/include/net/tcp.h index b7d8317f22a..cd8fa0c858a 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -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)