3015. [port] win32: fix IN6_IS_ADDR_LINKLOCAL and
IN6_IS_ADDR_SITELOCAL macros. [RT #22724]
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
3015. [port] win32: fix IN6_IS_ADDR_LINKLOCAL and
|
||||
IN6_IS_ADDR_SITELOCAL macros. [RT #22724]
|
||||
|
||||
3014. [bug] Fix the zonechecks system test to match expected
|
||||
behaviour for 9.6 and to fail on error. [RT #22905]
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: ipv6.h,v 1.19 2007/06/18 23:47:49 tbox Exp $ */
|
||||
/* $Id: ipv6.h,v 1.19.332.1 2011/02/03 08:19:40 marka Exp $ */
|
||||
|
||||
#ifndef ISC_IPV6_H
|
||||
#define ISC_IPV6_H 1
|
||||
@@ -111,14 +111,14 @@ LIBISC_EXTERNAL_DATA extern const struct in6_addr isc_in6addr_loopback;
|
||||
*/
|
||||
#ifndef IN6_IS_ADDR_LINKLOCAL
|
||||
#define IN6_IS_ADDR_LINKLOCAL(a) (\
|
||||
(*((u_long *)((a)->s6_addr) ) == 0xfe) && \
|
||||
((*((u_long *)((a)->s6_addr) + 1) & 0xc0) == 0x80))
|
||||
((a)->s6_addr[0] == 0xfe) && \
|
||||
(((a)->s6_addr[1] & 0xc0) == 0x80))
|
||||
#endif
|
||||
|
||||
#ifndef IN6_IS_ADDR_SITELOCAL
|
||||
#define IN6_IS_ADDR_SITELOCAL(a) (\
|
||||
(*((u_long *)((a)->s6_addr) ) == 0xfe) && \
|
||||
((*((u_long *)((a)->s6_addr) + 1) & 0xc0) == 0xc0))
|
||||
((a)->s6_addr[0] == 0xfe) && \
|
||||
(((a)->s6_addr[1] & 0xc0) == 0xc0))
|
||||
#endif
|
||||
|
||||
#endif /* ISC_IPV6_H */
|
||||
|
||||
Reference in New Issue
Block a user