diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/in.h | 5 | ||||
-rw-r--r-- | include/net/addrconf.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/in.h b/include/linux/in.h index 27d8a5ae9f75..70c6df882694 100644 --- a/include/linux/in.h +++ b/include/linux/in.h | |||
@@ -262,9 +262,10 @@ static inline bool ipv4_is_local_multicast(__be32 addr) | |||
262 | return (addr & htonl(0xffffff00)) == htonl(0xe0000000); | 262 | return (addr & htonl(0xffffff00)) == htonl(0xe0000000); |
263 | } | 263 | } |
264 | 264 | ||
265 | static inline bool ipv4_is_badclass(__be32 addr) | 265 | static inline bool ipv4_is_lbcast(__be32 addr) |
266 | { | 266 | { |
267 | return (addr & htonl(0xf0000000)) == htonl(0xf0000000); | 267 | /* limited broadcast */ |
268 | return addr == INADDR_BROADCAST; | ||
268 | } | 269 | } |
269 | 270 | ||
270 | static inline bool ipv4_is_zeronet(__be32 addr) | 271 | static inline bool ipv4_is_zeronet(__be32 addr) |
diff --git a/include/net/addrconf.h b/include/net/addrconf.h index 8b1509bfc695..496503c03846 100644 --- a/include/net/addrconf.h +++ b/include/net/addrconf.h | |||
@@ -262,7 +262,7 @@ static inline int ipv6_isatap_eui64(u8 *eui, __be32 addr) | |||
262 | ipv4_is_private_172(addr) || ipv4_is_test_192(addr) || | 262 | ipv4_is_private_172(addr) || ipv4_is_test_192(addr) || |
263 | ipv4_is_anycast_6to4(addr) || ipv4_is_private_192(addr) || | 263 | ipv4_is_anycast_6to4(addr) || ipv4_is_private_192(addr) || |
264 | ipv4_is_test_198(addr) || ipv4_is_multicast(addr) || | 264 | ipv4_is_test_198(addr) || ipv4_is_multicast(addr) || |
265 | ipv4_is_badclass(addr)) ? 0x00 : 0x02; | 265 | ipv4_is_lbcast(addr)) ? 0x00 : 0x02; |
266 | eui[1] = 0; | 266 | eui[1] = 0; |
267 | eui[2] = 0x5E; | 267 | eui[2] = 0x5E; |
268 | eui[3] = 0xFE; | 268 | eui[3] = 0xFE; |