|
Message-ID: <CAF4BF-QBsRx2nKrpQMhs-eFqPUskf+jeV_LJ-KdCGOw=JwUBkw@mail.gmail.com> Date: Tue, 10 Jul 2018 19:30:05 -0400 From: Christopher Friedt <chrisfriedt@...il.com> To: musl@...ts.openwall.com Subject: Re: getaddrinfo(3) / AI_ADDRCONFIG On Tue, Jul 10, 2018 at 7:21 PM Christopher Friedt <chrisfriedt@...il.com> wrote: > test.c, output, strace log, and ifconfig -a output here: > > https://pastebin.com/UmJi02px So it's definitely returning an IPv4 socket (which Thrift throws away in favour of the IPv6 socket). Since no adapter has the IPv6 address returned, bind(2) would fail on a subsequent call. After applying the patch [1] to musl, # ./test -v struct addrinfo { ai_flags: 0 ai_family: 2 ai_socktype: 1 ai_protocol: 6 ai_addrlen: 16 ai_addr: family: 2 addr: 127.0.0.1 port: 0 ai_canonname: localhost ai_next: 0 } [1] https://patch-diff.githubusercontent.com/raw/cfriedt/musl/pull/1.diff
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.