Skip to content

Commit

Permalink
[TCP]: Use old definition of before
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gerrit Renker authored and David S. Miller committed Jan 4, 2007
1 parent 44f9a2f commit 0d630cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/tcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 0d630cc

Please sign in to comment.