> On 7 сент. 2015 г., at 9:36, Lukas Tribus <luky...@hotmail.com> wrote: > > > > Best would be to strace this, but this is Freebsd amd64, > so that doesn't work. Can you trace the syscalls with > the strace equivalent at least?
It fails that way: socket(PF_INET,SOCK_DGRAM,17) = 4 (0x4) connect(4,{ AF_INET 8.8.8.8:53 },128) ERR#22 'Invalid argument' 3rd argument for connect() looks wrong for ipv4: ERRORS The connect() system call fails if: [EINVAL] The namelen argument is not a valid length for the address family.