MFC r286418:
ipv4_is_zeronet() and ipv4_is_loopback() expect an address in network order, but IN_ZERONET and IN_LOOPBACK expect it in host order.
This commit is contained in:
parent
4cb94d4d86
commit
a8dcf1a4e5
@ -37,7 +37,7 @@
|
||||
#include <netinet/in.h>
|
||||
#include <asm/byteorder.h>
|
||||
|
||||
#define ipv4_is_zeronet IN_ZERONET
|
||||
#define ipv4_is_loopback IN_LOOPBACK
|
||||
#define ipv4_is_zeronet(be) IN_ZERONET(ntohl(be))
|
||||
#define ipv4_is_loopback(be) IN_LOOPBACK(ntohl(be))
|
||||
|
||||
#endif /* _LINUX_IN_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user