On Wed, Apr 23, 2014 at 08:09:06AM -0400, Simon Perreault wrote:
> (I sent this diff to ??ric Faurot on the 12th, but received no reply.)
> 
> Tech,
> 
> While everyone's having fun removing code from OpenSSL, I decided to add
> some to libasr. I implemented AI_ADDRCONFIG, a getaddrinfo() flag defined in
> RFC 2553/3493. Basically, it tells getaddrinfo() to skip IPvX lookups when
> there are no IPvX addresses configured on any interface. It is present on
> most other OSes. Tons of software out there have to play Autoconf games to
> cope with its absence (which, on OpenBSD, predates libasr if I'm not
> mistaken).
> 
> Noteworthy:
> 
> - I call getifaddrs() from getaddrinfo_run_async(). This should not block,
> so no need to change the state machine.
> 
> - I added AI_ADDRCONFIG to the default hints, like glibc does, and as was
> specified in RFC 2553. (RFC 3493 says nothing about default flags.)
> 
> ok? comments?

Great! I had been asking Eric about this.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to