Lucian Adrian Grijincu wrote: > I've gotten it down to this: > int getaddrinfo(const char *node, const char *service, > const struct addrinfo *hints, > struct addrinfo **res); > > getaddrinfo hates "::1" as a node parameter. > I've attached a tester for getaddrinfo (based on Ulrich Drepper's > http://people.redhat.com/drepper/userapi-ipv6.html ) >
<snip> > > If anyone's got a clue, please say so ... I'm kind of in the mists now :) > If not, when I get the time, I'll look into telnet's implementation to > see what they do to accept "::1" > See my email about it, message id <[EMAIL PROTECTED]> It boils down to a combination of ai_flags = AI_ADDRCONFIG and "::1" (loopback address). The test is wrong, it should expect a failure (with the current network_io code adding the AI_ADDRCONFIG flag). -- Davi Arnaut