summaryrefslogtreecommitdiffstats
path: root/include/net/inet_ecn.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-11-08 09:24:47 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 06:21:20 +0100
commit92d9ece7af9c84bfbd1ff640926fac5b573a09f7 (patch)
treec0a5e0dbe1dbc4fb179c5affcf2975d7b3b02646 /include/net/inet_ecn.h
parent[NET]: annotate dsfield.h (diff)
downloadlinux-92d9ece7af9c84bfbd1ff640926fac5b573a09f7.tar.xz
linux-92d9ece7af9c84bfbd1ff640926fac5b573a09f7.zip
[INET]: annotate inet_ecn.h
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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/inet_ecn.h b/include/net/inet_ecn.h
index 7849844a4911..cadc0eab54fa 100644
--- a/include/net/inet_ecn.h
+++ b/include/net/inet_ecn.h
@@ -95,13 +95,13 @@ static inline int IP6_ECN_set_ce(struct ipv6hdr *iph)
{
if (INET_ECN_is_not_ect(ipv6_get_dsfield(iph)))
return 0;
- *(u32*)iph |= htonl(INET_ECN_CE << 20);
+ *(__be32*)iph |= htonl(INET_ECN_CE << 20);
return 1;
}
static inline void IP6_ECN_clear(struct ipv6hdr *iph)
{
- *(u32*)iph &= ~htonl(INET_ECN_MASK << 20);
+ *(__be32*)iph &= ~htonl(INET_ECN_MASK << 20);
}
static inline void ipv6_copy_dscp(struct ipv6hdr *outer, struct ipv6hdr *inner)