Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33614
b: refs/heads/master
c: 837d107
h: refs/heads/master
v: v3
  • Loading branch information
Ian McDonald authored and David S. Miller committed Aug 27, 2006
1 parent 336fd94 commit 1cb6f64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e6bccd357343e98db9e1fd0d487f4f924e1a7921
refs/heads/master: 837d107cd101fbf734e9ea2bbb5c7336a329e432
8 changes: 8 additions & 0 deletions trunk/net/dccp/dccp.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ static inline u64 max48(const u64 seq1, const u64 seq2)
return after48(seq1, seq2) ? seq1 : seq2;
}

/* is seq1 next seqno after seq2 */
static inline int follows48(const u64 seq1, const u64 seq2)
{
int diff = (seq1 & 0xFFFF) - (seq2 & 0xFFFF);

return diff==1;
}

enum {
DCCP_MIB_NUM = 0,
DCCP_MIB_ACTIVEOPENS, /* ActiveOpens */
Expand Down

0 comments on commit 1cb6f64

Please sign in to comment.