Merge "master" into "next".
[sliver-openvswitch.git] / datapath / linux-2.6 / compat-2.6 / include / linux / in.h
1 #ifndef __LINUX_IN_WRAPPER_H
2 #define __LINUX_IN_WRAPPER_H 1
3
4 #include_next <linux/in.h>
5
6 #ifndef HAVE_IPV4_IS_MULTICAST
7
8 static inline bool ipv4_is_multicast(__be32 addr)
9 {
10         return (addr & htonl(0xf0000000)) == htonl(0xe0000000);
11 }
12
13 #endif /* !HAVE_IPV4_IS_MULTICAST */
14
15 #endif