[IPV4]: ipv4_is_lbcast() misannotations
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 18 Mar 2008 05:48:46 +0000 (22:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Mar 2008 05:48:46 +0000 (22:48 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/in.h

index 70c6df882694b70c6ba372b9fedc21b35bce396c..4065313cd7eee7f3a287d3cd0629ffcb726041f1 100644 (file)
@@ -265,7 +265,7 @@ static inline bool ipv4_is_local_multicast(__be32 addr)
 static inline bool ipv4_is_lbcast(__be32 addr)
 {
        /* limited broadcast */
-       return addr == INADDR_BROADCAST;
+       return addr == htonl(INADDR_BROADCAST);
 }
 
 static inline bool ipv4_is_zeronet(__be32 addr)