]> git.hungrycats.org Git - linux/commit
[INET]: Fix ECN encapsulation.
authorHideaki Yoshifuji <yoshfuji@linux-ipv6.o0rg>
Tue, 5 Oct 2004 15:00:08 +0000 (08:00 -0700)
committerDavid S. Miller <davem@nuts.davemloft.net>
Tue, 5 Oct 2004 15:00:08 +0000 (08:00 -0700)
commita31f1aebfdd7235cdca6e7a362085d915d51cd65
tree0e444a2b7c9f71c99716f62c6f9a60f641dec283
parenta1b4d745f98b015a08f18ae9eabeeaac58ce8c00
[INET]: Fix ECN encapsulation.

We broke ECN encapsulation in tunnels recently.
Without this patch, even though encapusulated (inner) packet is
'not-ECN', encapusulating (outer) packet is sent with 'ECT(0)' set.
This is wrong and should be 'not-ECN.'
This patch fixes up.

From RFC3168:
   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.

Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_ecn.h