From: Andreas Gustafsson Date: Thu, 22 Nov 2001 00:22:02 +0000 (+0000) Subject: pullup: X-Git-Tag: v9.2.0~3 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=887c9d05c285d872f9da7207775986e7f8686001;p=thirdparty%2Fbind9.git pullup: 1133. [bug] IN6_IS_ADDR_LOOPBACK was not portably defined on platforms without IN6_IS_ADDR_LOOPBACK. [RT #2106] --- diff --git a/CHANGES b/CHANGES index 00155018d14..639a196c9cf 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ +1133. [bug] IN6_IS_ADDR_LOOPBACK was not portably defined on + platforms without IN6_IS_ADDR_LOOPBACK. [RT #2106] --- 9.2.0rc10 released --- diff --git a/lib/isc/unix/include/isc/net.h b/lib/isc/unix/include/isc/net.h index b26b0c0abf4..23a041b68c5 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.31.2.1 2001/11/02 00:20:09 marka Exp $ */ +/* $Id: net.h,v 1.31.2.2 2001/11/22 00:22:02 gson 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