* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: net.h,v 1.27 2001/01/09 21:58:41 bwelling Exp $ */
+/* $Id: net.h,v 1.28 2001/05/31 10:54:51 tale Exp $ */
#ifndef ISC_NET_H
#define ISC_NET_H 1
*
* It declares inet_aton(), inet_ntop(), and inet_pton().
*
- * It ensures that INADDR_ANY, IN6ADDR_ANY_INIT, in6addr_any, and
- * in6addr_loopback are available.
+ * It ensures that INADDR_LOOPBACK, INADDR_ANY, IN6ADDR_ANY_INIT,
+ * in6addr_any, and in6addr_loopback are available.
*
* It ensures that IN_MULTICAST() is available to check for multicast
* addresses.
#include <netinet6/in6.h> /* Required on BSD/OS for in6_pktinfo. */
#endif
+#ifndef ISC_PLATFORM_HAVEIPV6
+#include <isc/ipv6.h> /* Contractual promise. */
+#endif
+
#include <isc/lang.h>
#include <isc/types.h>
#define PF_INET6 AF_INET6
#endif
-#ifndef ISC_PLATFORM_HAVEIPV6
-#include <isc/ipv6.h> /* Contractual promise. */
+#ifndef INADDR_LOOPBACK
+#define INADDR_LOOPBACK 0x7f000001UL
#endif
#ifndef ISC_PLATFORM_HAVEIN6PKTINFO