1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

ipv4_is_zeronet() and ipv4_is_loopback() expect an address in network

order, but IN_ZERONET and IN_LOOPBACK expect it in host order.

Submitted by:	Tao Liu <Tao.Liu@isilon.com>
MFC after:	1 week
Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Mark Johnston 2015-08-07 18:30:11 +00:00
parent de93252622
commit 8811063172
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286418

View File

@ -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_ */