[Openvpn-devel] getaddrinfo() confusion / way forward?

2014-04-06 Thread Gert Doering
Hiya, I'm wondering if one of you can share insight here - I've been debugging OpenVPN (-master) on OpenSolaris, which failed in building sockets, due to getaddrinfo() returning "ai_protocol = 0" for everything - while the OpenVPN socket code relies on ai_protocol being IPPROTO_UDP or IPPROTO_TCP

Re: [Openvpn-devel] getaddrinfo() confusion / way forward?

2014-04-06 Thread Gert Doering
Hi, On Sun, Apr 06, 2014 at 10:35:49AM +0200, Gert Doering wrote: > One possible approach would be to add this hack to the end of > openvpn_getaddrinfo(): A slightly simpler version of this could go to the beginning of create_socket() (--> no ai_next chain walking needed, etc.). Patch attached.