diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-03 09:55:35 +0100 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-11-05 23:11:26 +0100 |
commit | 95026cd242bd4188a036f2eba20994113ed5a5d7 (patch) | |
tree | 11749f0f1da68ccc251ead87c9d899ae9b7f7694 /include/net/inet_ecn.h | |
parent | [IPX]: Annotate and fix IPX checksum (diff) | |
download | linux-95026cd242bd4188a036f2eba20994113ed5a5d7.tar.xz linux-95026cd242bd4188a036f2eba20994113ed5a5d7.zip |
[IPV6]: Fix ECN bug on big-endian
__constant_htons(2<<4) is not a replacement for
htonl(2<<20).
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inet_ecn.h')
-rw-r--r-- | include/net/inet_ecn.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/inet_ecn.h b/include/net/inet_ecn.h index d599c6bfbb86..7849844a4911 100644 --- a/include/net/inet_ecn.h +++ b/include/net/inet_ecn.h @@ -48,7 +48,7 @@ static inline __u8 INET_ECN_encapsulate(__u8 outer, __u8 inner) #define IP6_ECN_flow_xmit(sk, label) do { \ if (INET_ECN_is_capable(inet_sk(sk)->tos)) \ - (label) |= __constant_htons(INET_ECN_ECT_0 << 4); \ + (label) |= htonl(INET_ECN_ECT_0 << 20); \ } while (0) static inline int IP_ECN_set_ce(struct iphdr *iph) |