aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorGerrit Renker <gerrit@erg.abdn.ac.uk>2007-01-04 15:25:16 -0500
committerDavid S. Miller <davem@davemloft.net>2007-01-04 15:25:16 -0500
commit0d630cc0a6cb8ad544b5913a26ff1349ed7c8587 (patch)
treeb57945e7c6fa865dcf549822b6888b88cbc0c820 /include/net
parent44f9a2fdc48ccb8bb510b6e1210bf15b3e10afdb (diff)
[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 <gerrit@erg.abdn.ac.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/tcp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index b7d8317f22ac..cd8fa0c858ae 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -242,7 +242,7 @@ extern int tcp_memory_pressure;
242 242
243static inline int before(__u32 seq1, __u32 seq2) 243static inline int before(__u32 seq1, __u32 seq2)
244{ 244{
245 return (__s32)(seq2-seq1) > 0; 245 return (__s32)(seq1-seq2) < 0;
246} 246}
247#define after(seq2, seq1) before(seq1, seq2) 247#define after(seq2, seq1) before(seq1, seq2)
248 248