Message ID | 1568068639-6511-3-git-send-email-dave.taht@gmail.com |
---|---|
State | RFC |
Delegated to: | David Miller |
Headers | show |
Series | more IPv4 unicast extensions | expand |
diff --git a/include/linux/in.h b/include/linux/in.h index 8665842a3589..6e4f37e5bf51 100644 --- a/include/linux/in.h +++ b/include/linux/in.h @@ -37,7 +37,9 @@ static inline int proto_ports_offset(int proto) static inline bool ipv4_is_loopback(__be32 addr) { - return (addr & htonl(0xff000000)) == htonl(0x7f000000); + if((addr & htonl(0xff000000)) == htonl(0x7f000000)) + return( addr & htonl(0x00ff0000)) == 0; + return 0; } static inline bool ipv4_is_multicast(__be32 addr)