Date: Fri, 7 Aug 2015 18:30:12 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r286418 - head/sys/ofed/include/linux Message-ID: <201508071830.t77IUCpi080131@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Fri Aug 7 18:30:11 2015 New Revision: 286418 URL: https://svnweb.freebsd.org/changeset/base/286418 Log: 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 Modified: head/sys/ofed/include/linux/in.h Modified: head/sys/ofed/include/linux/in.h ============================================================================== --- head/sys/ofed/include/linux/in.h Fri Aug 7 17:22:37 2015 (r286417) +++ head/sys/ofed/include/linux/in.h Fri Aug 7 18:30:11 2015 (r286418) @@ -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_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508071830.t77IUCpi080131>