On 4/3/19 3:12 PM, Hal Murray via devel wrote:
> The parser sets things up with IF_UNSPEC, IF_INET, or IF_INET6 and a name.  
> Those get passed to getaddrinfo  (the name gets checked for :port, default is 
> 123)  It uses the first answer for KE, ignoring any others.

This sounds correct. getaddrinfo() handles the sorting, subject to the
operating system defaults and administrator overrides (in e.g.
/etc/gai.conf). So IPv6 should be being preferred, by default. And then
you're allowing -4 and -6 to override IF_UNSPEC to IF_INET or IF_INET6,
respectively.

-- 
Richard
_______________________________________________
devel mailing list
devel@ntpsec.org
http://lists.ntpsec.org/mailman/listinfo/devel

Reply via email to