On 3/12/08, Mirek Zajic <za...@nextsoft.cz> wrote: > > Just noticed that openvpn has: openvpn_gettimeofday() which works also > > for WIN32... Maybe use this one? > > > > > > openvpn_time works fine, why to change?
I remember you used gettimeofday in previous versions... I missed the openvpn_gettimeofday() availability... Maybe the protocol do require more precise timing... I truly don't know. > > >> + msg_buf[sb_offset + 5] = (unsigned char)((*msg_bufpos & 0xff00) >> > >> 8); > >> > > > > always & such with 0xff. > > > > Please explain, I don't understand msg_buf[sb_offset + 5] = (unsigned char)((*msg_bufpos >> 8) & 0xff); > Some Microsoft compilers doesn't support long long, but they support > __int64. The same is with LL/Ui64 postfix. I think that this is correct. > But I'm not sure about the location. Maybe that it should be placed in > some common header (common.h?) for further usage by other modules. This is James call... But currently OpenVPN cannot be compiled on these compilers anyway... So adding these macros is not required. Anyway... This is about as far as I can help. Alon.