Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266914
b: refs/heads/master
c: b5d9c9c
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Oct 22, 2011
1 parent 9ce4489 commit 5f2c061
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: 2c67e9acb65da96ae1b0ba93ec04af7142533bef
refs/heads/master: b5d9c9c281395f0967c8d93f42e8b0b8175b5180
8 changes: 8 additions & 0 deletions trunk/include/net/inet_ecn.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ static inline int INET_ECN_is_capable(__u8 dsfield)
return dsfield & INET_ECN_ECT_0;
}

/*
* RFC 3168 9.1.1
* The full-functionality option for ECN encapsulation is to copy the
* ECN codepoint of the inside header to the outside header on
* encapsulation if the inside header is not-ECT or ECT, and to set the
* ECN codepoint of the outside header to ECT(0) if the ECN codepoint of
* the inside header is CE.
*/
static inline __u8 INET_ECN_encapsulate(__u8 outer, __u8 inner)
{
outer &= ~INET_ECN_MASK;
Expand Down

0 comments on commit 5f2c061

Please sign in to comment.