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.

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_