[ntp:questions] ntp client ipv6 support

Danny Mayer mayer at ntp.org
Sun Jun 19 18:58:25 UTC 2011


On 6/17/2011 9:45 PM, John Hasler wrote:
> 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.

The fact that this issue came up at all indicates that getaddrinfo() is
not doing this on at least some platforms. The rest of the discussion is
just that. We fixed the problem to avoid the issue.

Danny



More information about the questions mailing list