AI_ADDRCONFIG: skip loopback addresses, not loopback interfaces.
authorjca <jca@openbsd.org>
Tue, 5 May 2015 17:08:44 +0000 (17:08 +0000)
committerjca <jca@openbsd.org>
Tue, 5 May 2015 17:08:44 +0000 (17:08 +0000)
commitd6498094fb4253391e89919577d1c3aac74bfa7c
tree544525e31fcc3df1cd5c83020252ee37723dd50a
parent9c0437c0b2a6054060f2b58f712e717d29165d11
AI_ADDRCONFIG: skip loopback addresses, not loopback interfaces.

This is what RFC3493 suggests.  Fixes AI_ADDRCONFIG on setups where
global addresses are configured only on loopback interfaces.

Discussed with and ok eric@ gilles@
lib/libc/asr/getaddrinfo_async.c