]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorAndreas Gustafsson <source@isc.org>
Thu, 22 Nov 2001 00:22:02 +0000 (00:22 +0000)
committerAndreas Gustafsson <source@isc.org>
Thu, 22 Nov 2001 00:22:02 +0000 (00:22 +0000)
1133.   [bug]           IN6_IS_ADDR_LOOPBACK was not portably defined on
                        platforms without IN6_IS_ADDR_LOOPBACK. [RT #2106]

CHANGES
lib/isc/unix/include/isc/net.h

diff --git a/CHANGES b/CHANGES
index 00155018d142599cd5e19c211272006c86d07588..639a196c9cf818fbae33748d29c578cb716d19d1 100644 (file)
--- 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 ---
 
index b26b0c0abf448b30fb7f036a0d49afb0d37883c7..23a041b68c5992f55c247dbcc64cded7c056eb64 100644 (file)
@@ -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
 #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