diff --git a/CHANGES b/CHANGES index 9180d87f7c..e623a1b523 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +1133. [bug] IN6_IS_ADDR_LOOPBACK not portably defined on platforms + without IN6_IS_ADDR_LOOPBACK. [RT #2106] + 1132. [func] Improve UPDATE prerequisite failure diagnotic messages. 1131. [bug] The match-destinations view option did not work with diff --git a/lib/isc/unix/include/isc/net.h b/lib/isc/unix/include/isc/net.h index 2497d5ae17..152cbdeb4f 100644 --- a/lib/isc/unix/include/isc/net.h +++ b/lib/isc/unix/include/isc/net.h @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: net.h,v 1.32 2001/11/01 22:39:29 gson Exp $ */ +/* $Id: net.h,v 1.33 2001/11/21 13:06:20 marka Exp $ */ #ifndef ISC_NET_H #define ISC_NET_H 1 @@ -138,7 +138,8 @@ #endif #ifndef IN6_IS_ADDR_LOOPBACK -#define IN6_IS_ADDR_LOOPBACK(a) IN6_IS_ADDR_EQUAL(a, &in6addr_loopback) +#define IN6_IS_ADDR_LOOPBACK(x) \ + (memcmp((x)->s6_addr, in6addr_loopback.s6_addr, 16) == 0) #endif #endif