[ntp:questions] ntp client ipv6 support

John Hasler jhasler at newsguy.com
Sat Jun 18 01:45:41 UTC 2011

Rick Jones wrote:
> I may be parsing your sentence incorrectly...

You are.

> ...but my reading of the manpage is that one may set AI_NUMERICHOST,
> in which case node must be an IP address, but that is not the same
> thing as saying that if node is an IP address that AI_NUMERICHOST must
> be set.

If you set the flag node must be an IP number.  If you don't set it
getaddrinfo() will figure out for itself what node is (which, IMHO,
makes getaddrinfo() too clever by half).  Note that there seems to be no
flag to assert that node is a hostname.
John Hasler 
jhasler at newsguy.com
Dancing Horse Hill
Elmwood, WI USA

More information about the questions mailing list