"serverMime-Version: 1.0

Richard Laager rlaager at wiktel.com
Wed Apr 3 20:57:13 UTC 2019


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


More information about the devel mailing list