[INET]: annotate inet_ecn.h
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 8 Nov 2006 08:24:47 +0000 (00:24 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:21:20 +0000 (21:21 -0800)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_ecn.h

index 7849844a4911e2d1369deea46cfc87943ec0e89a..cadc0eab54faedee6c0c4bb17ed64b50eed14a0d 100644 (file)
@@ -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)
This page took 0.028936 seconds and 5 git commands to generate.