Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Aug 2015 23:52:54 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r287229 - stable/10/sys/ofed/include/linux
Message-ID:  <201508272352.t7RNqshh017924@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Thu Aug 27 23:52:53 2015
New Revision: 287229
URL: https://svnweb.freebsd.org/changeset/base/287229

Log:
  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.

Modified:
  stable/10/sys/ofed/include/linux/in.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/ofed/include/linux/in.h
==============================================================================
--- stable/10/sys/ofed/include/linux/in.h	Thu Aug 27 23:46:45 2015	(r287228)
+++ stable/10/sys/ofed/include/linux/in.h	Thu Aug 27 23:52:53 2015	(r287229)
@@ -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?201508272352.t7RNqshh017924>