Re: [Openvpn-devel] [patch] OpenVPN 2.1_rc7, multihome and 64 bit

2008-05-08 Thread Tim Davies
I've just tested this and it seems to work well. Thanks. James Yonan wrote: Tim Davies wrote: After attempting to use OpenVPN 2.1_rc7 on a 64 bit Centos 5 platform, I came across a peculiar error when enabling multihome. Basically no UDP packets were allowed to send due to an incorrect size

Re: [Openvpn-devel] [patch] OpenVPN 2.1_rc7, multihome and 64 bit

2008-05-08 Thread James Yonan
Tim Davies wrote: After attempting to use OpenVPN 2.1_rc7 on a 64 bit Centos 5 platform, I came across a peculiar error when enabling multihome. Basically no UDP packets were allowed to send due to an incorrect size being set. The problem seems to be in socket.c, where sizeof(opi) is incorrec

Re: [Openvpn-devel] [patch] OpenVPN 2.1_rc7, multihome and 64 bit

2008-05-01 Thread Marko Rauhamaa
James Yonan : > Marko Rauhamaa wrote: > > Yes, although gcc is allergic to #pragma's. [...] > > gcc does support #pragma pack: Yes, but: GCC supports several types of pragmas, primarily in order to compile code originally written for other compilers. Note that in general we do not reco

Re: [Openvpn-devel] [patch] OpenVPN 2.1_rc7, multihome and 64 bit

2008-05-01 Thread James Yonan
Marko Rauhamaa wrote: James Yonan : Interesting. I wonder if a better solution might be to bracket the struct openvpn_pktinfo definition with #pragma pack(1) ... #pragma pack() Yes, although gcc is allergic to #pragma's. The gcc way of expressing it is: struct __attribut

Re: [Openvpn-devel] [patch] OpenVPN 2.1_rc7, multihome and 64 bit

2008-04-30 Thread Marko Rauhamaa
James Yonan : > Interesting. I wonder if a better solution might be to bracket the > struct openvpn_pktinfo definition with > > #pragma pack(1) > ... > #pragma pack() Yes, although gcc is allergic to #pragma's. The gcc way of expressing it is: struct __attribute__ ((__packed__)) my_

Re: [Openvpn-devel] [patch] OpenVPN 2.1_rc7, multihome and 64 bit

2008-04-30 Thread James Yonan
Interesting. I wonder if a better solution might be to bracket the struct openvpn_pktinfo definition with #pragma pack(1) ... #pragma pack() James Tim Davies wrote: After attempting to use OpenVPN 2.1_rc7 on a 64 bit Centos 5 platform, I came across a peculiar error when enabling multihome.