Dan Geist <[email protected]> writes:
> I'm not sure I agree with that behavior (from a client/peer use-case
> perspective). Wouldn't it make more sense to only use the stack that's
> actually available? That's how it works with DNS typically: If
> ghostbyname yields an A and AAAA record, applications don't attempt to
> use the AAAA record if there is no ipv6 stack configured, right?

There is no reliable way for an application to tell whether IPv6 is
supported.  Standard procedure is to use getaddrinfo(), iterate over the
results, try to bind or connect to each address (depending on whether
you're a server or a client) and ignore any failures as long as at least
one address works.

DES
-- 
Dag-Erling Smørgrav - [email protected]
_______________________________________________
pool mailing list
[email protected]
http://lists.ntp.org/listinfo/pool

Reply via email to