From fde0a3f89b9c42e9e4ef9aaf8e044e6b18c4978c Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 9 Feb 2005 03:38:25 +0000 Subject: [PATCH] 1812. [port] win32: IN6_IS_ADDR_UNSPECIFIED macro is incorrect. [RT #13453] --- CHANGES | 3 +++ lib/isc/win32/include/isc/ipv6.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 82bc02e06b..d2db06b255 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +1812. [port] win32: IN6_IS_ADDR_UNSPECIFIED macro is incorrect. + [RT #13453] + 1811. [placeholder] rt13547 1810. [placeholder] rt13212 diff --git a/lib/isc/win32/include/isc/ipv6.h b/lib/isc/win32/include/isc/ipv6.h index db07a5299e..5e485ed770 100644 --- a/lib/isc/win32/include/isc/ipv6.h +++ b/lib/isc/win32/include/isc/ipv6.h @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: ipv6.h,v 1.13 2004/04/19 04:16:55 marka Exp $ */ +/* $Id: ipv6.h,v 1.14 2005/02/09 03:38:25 marka Exp $ */ #ifndef ISC_IPV6_H #define ISC_IPV6_H 1 @@ -61,7 +61,7 @@ LIBISC_EXTERNAL_DATA extern const struct in6_addr isc_in6addr_loopback; * Unspecified */ #ifndef IN6_IS_ADDR_UNSPECIFIED -#define IN6_IS_ADDR_UNSPECIFIED(a) \ +#define IN6_IS_ADDR_UNSPECIFIED(a) (\ *((u_long *)((a)->s6_addr) ) == 0 && \ *((u_long *)((a)->s6_addr) + 1) == 0 && \ *((u_long *)((a)->s6_addr) + 2) == 0 && \