Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0d630cc0a6cb8ad544b5913a26ff1349ed7c8587 Commit: 0d630cc0a6cb8ad544b5913a26ff1349ed7c8587 Parent: 44f9a2fdc48ccb8bb510b6e1210bf15b3e10afdb Author: Gerrit Renker <[EMAIL PROTECTED]> AuthorDate: Thu Jan 4 12:25:16 2007 -0800 Committer: David S. Miller <[EMAIL PROTECTED]> CommitDate: Thu Jan 4 12:25:16 2007 -0800
[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 <[EMAIL PROTECTED]> Signed-off-by: David S. Miller <[EMAIL PROTECTED]> --- include/net/tcp.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/net/tcp.h b/include/net/tcp.h index b7d8317..cd8fa0c 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) - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html