Re: [Openvpn-devel] [PATCH 2/2] don't use struct in6_addr s6_addr32 member anymore

2011-08-10 Thread Alon Bar-Lev
Hello, I think this should be done by autoconf. And hand added into win32 for MSVC. Alon. On Wed, Aug 10, 2011 at 3:55 PM, Heiko Hund wrote: > The s6_addr32 member of struct in6_addr is not available when building > for WIN32. To work around this, a local union is defined that allows > accessing

Re: [Openvpn-devel] [PATCH 2/2] don't use struct in6_addr s6_addr32 member anymore

2011-08-10 Thread Gert Doering
Hi, On Wed, Aug 10, 2011 at 12:55:08PM +, Heiko Hund wrote: > The s6_addr32 member of struct in6_addr is not available when building > for WIN32. To work around this, a local union is defined that allows > accessing 32 bit chunks of the IPv6 address passed to add_in6_addr(). NAK, that's massi

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 *) (a))[1] == ((__const uint3

Re: [Openvpn-devel] [PATCH 0/2] fix building for WIN32

2011-08-10 Thread Gert Doering
Hi, On Wed, Aug 10, 2011 at 12:55:06PM +, Heiko Hund wrote: > struct in6_addr.s6_addr32 are not available there. I've sent a fix for that one to the list some two months ago, but it's stuck somewhere in the commit queue... gert -- USENET is *not* the non-clickable part of WWW!

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] == ((__const uint32_t *) (b))[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] == ((__const uint32_t *) (b))

[Openvpn-devel] [PATCH 0/2] fix building for WIN32

2011-08-10 Thread Heiko Hund
Hi, git master currently fails when cross compiling for WIN32 in Debian testing. Two IPv6 related things were introduced in commits 512cda46b0f65f388e24436cd28d44bdc90fe985 and 8335caf929f21b317a0243a12285e1f04361db25 that are incompatible with Windows. IN6_ARE_ADDR_EQUAL and struct in6_addr

[Openvpn-devel] [PATCH 2/2] don't use struct in6_addr s6_addr32 member anymore

2011-08-10 Thread Heiko Hund
The s6_addr32 member of struct in6_addr is not available when building for WIN32. To work around this, a local union is defined that allows accessing 32 bit chunks of the IPv6 address passed to add_in6_addr(). Signed-off-by: Heiko Hund --- socket.c | 16 +++- 1 files changed, 7 ins

[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 b/win32.h index d0ecc85..907aa