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

2011-08-11 Thread Heiko Hund
On Wednesday 10 August 2011 22:36:47 Gert Doering wrote: > 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 t

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

2011-08-11 Thread Gert Doering
Hi, On Wed, Aug 10, 2011 at 11:40:28PM +0300, Alon Bar-Lev wrote: > I think this should be done by autoconf. > And hand added into win32 for MSVC. Any sort of conditional code here is causing more pain than just using the 8-bit accessors in a straightforward way with no #ifdefs. gert -- USENET

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

[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