On Thu, Apr 30, 2015 at 03:53:44PM +0200, gilles chehade wrote:
> 
>     - skip loopback addresses, not loopback interfaces
> 

This will particularly interest FreeBSD "jail" users, however we would
like as many of you as possible to confirm that this doesn't introduce
a regression of any kind, even if the diff is so ridiculously small...

Summary:

In some situations, you want to avoid resolving addresses that you are
not able to reach anyways. An example of this is OpenSMTPD which wants
to resolve the MX addresses of a domain, but does not care in the IPv6
addresses of a MX if it doesn't have a local IPv6 address itself.

To allow this getaddrinfo_async() supports an AI_ADDRCONFIG hint which
instructs it to only lookup address families for which we have at very
least one address configured (there are special cases, i know).

The problem is that you most likely have 127.0.0.1 and ::1 set up on a
loopback interface so the code bypassed interfaces that were marked as
a ... loopback interface.

Unfortunately while this works for most people, FreeBSD jail users are
impacted because a common setup is to have a loopback interface with a
routage address configured. The interface is skipped, asr detects that
no address exists for any address family and disables lookups.

This version introduce a slighly different logic where it doesn't skip
the loopback interface but rather skip loopback addresses.

This should have absolutely no impact on most people, while unbreaking
lookups in jails using a loopback interface.

Please test no matter what you're using and confirm that it works, the
minor stable release of libasr is waiting for feedback.


-- 
Gilles Chehade

https://www.poolp.org                                          @poolpOrg

-- 
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to