Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44924
b: refs/heads/master
c: 9a036b9
h: refs/heads/master
v: v3
  • Loading branch information
Gerrit Renker authored and David S. Miller committed Dec 22, 2006
1 parent 599ce61 commit f0ff8e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f8a5fb80e63aab63de81169ab749d73e7509e3f
refs/heads/master: 9a036b9c33f74c989c4c8ac0abe05e0ed88f1f25
9 changes: 2 additions & 7 deletions trunk/include/net/tcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,14 +242,9 @@ extern int tcp_memory_pressure;

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

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

#define after(seq2, seq1) before(seq1, seq2)

/* is s2<=s1<=s3 ? */
static inline int between(__u32 seq1, __u32 seq2, __u32 seq3)
Expand Down

0 comments on commit f0ff8e4

Please sign in to comment.