From 881106317225f1ee9004c3df2261cd044dd9a492 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Fri, 7 Aug 2015 18:30:11 +0000 Subject: [PATCH] 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 MFC after: 1 week Sponsored by: EMC / Isilon Storage Division --- sys/ofed/include/linux/in.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/ofed/include/linux/in.h b/sys/ofed/include/linux/in.h index d3e8add794ea..102563f2abb5 100644 --- a/sys/ofed/include/linux/in.h +++ b/sys/ofed/include/linux/in.h @@ -37,7 +37,7 @@ #include #include -#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_ */