Re: [Openvpn-devel] [PATCH 1/2] define IN6_ARE_ADDR_EQUAL macro for WIN32

2011-08-11 Thread Gert Doering
Hi, On Thu, Aug 11, 2011 at 07:00:31AM +, Heiko Hund wrote: > +#ifdef USE_PF_INET6 > + > +/* MSVC headers do not define this macro, so do it here */ > +#ifndef IN6_ARE_ADDR_EQUAL > +#define IN6_ARE_ADDR_EQUAL(a,b) \ > + (memcmp ((const void*)(a), (const void*)(b), sizeof (struct in6_addr))

[Openvpn-devel] [PATCH 1/2] define IN6_ARE_ADDR_EQUAL macro for WIN32

2011-08-11 Thread Heiko Hund
Windows headers do not define the IN6_ARE_ADDR_EQUAL macro. It needs to be defined locally when building for WIN32 with IPv6 enabled. Signed-off-by: Heiko Hund --- win32.h | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/win32.h b/win32.h

Re: [Openvpn-devel] [PATCH 1/2] define IN6_ARE_ADDR_EQUAL macro for WIN32

2011-08-10 Thread Gert Doering
Hi, On Wed, Aug 10, 2011 at 03:47:36PM +0200, Gisle Vanem wrote: > "Heiko Hund" wrote: > > > +#ifndef IN6_ARE_ADDR_EQUAL > > +#define IN6_ARE_ADDR_EQUAL(a,b) \ > > +__const uint32_t *) (a))[0] == ((__const uint32_t *) (b))[0]) \ > > + && (((__const uint32_t *)

Re: [Openvpn-devel] [PATCH 1/2] define IN6_ARE_ADDR_EQUAL macro for WIN32

2011-08-10 Thread Heiko Hund
On Wednesday 10 August 2011 15:47:36 Gisle Vanem wrote: > "Heiko Hund" wrote: > > +#ifndef IN6_ARE_ADDR_EQUAL > > +#define IN6_ARE_ADDR_EQUAL(a,b) \ > > +__const uint32_t *) (a))[0] == ((__const uint32_t *) (b))[0]) \ > > + && (((__const uint32_t *) (a))[1] ==

Re: [Openvpn-devel] [PATCH 1/2] define IN6_ARE_ADDR_EQUAL macro for WIN32

2011-08-10 Thread Gisle Vanem
"Heiko Hund" wrote: +#ifndef IN6_ARE_ADDR_EQUAL +#define IN6_ARE_ADDR_EQUAL(a,b) \ +__const uint32_t *) (a))[0] == ((__const uint32_t *) (b))[0]) \ + && (((__const uint32_t *) (a))[1] == ((__const uint32_t *) (b))[1]) \ + && (((__const uint32_t *) (a))[2] ==

[Openvpn-devel] [PATCH 1/2] define IN6_ARE_ADDR_EQUAL macro for WIN32

2011-08-10 Thread Heiko Hund
Windows headers do not define the IN6_ARE_ADDR_EQUAL macro. It needs to be defined locally when building for WIN32 with IPv6 enabled. Signed-off-by: Heiko Hund --- win32.h | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/win32.h