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
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
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
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
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_
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.