diff options
author | sperreault <sperreault@cvs.openbsd.org> | 2014-04-28 21:39:00 +0000 |
---|---|---|
committer | sperreault <sperreault@cvs.openbsd.org> | 2014-04-28 21:39:00 +0000 |
commit | 69373aca66169526f7c1d2e37f012a5c0e3abaf7 (patch) | |
tree | 85d52f2d236a389673e08a9b857f081af54e7d19 /distrib | |
parent | 1c6bc079ab33d7b342870c7cdf6a9e344ff5936f (diff) |
Implement AI_ADDRCONFIG
This is a getaddrinfo() flag that is defined thusly in RFC 3493:
If the AI_ADDRCONFIG flag is specified, IPv4 addresses shall be
returned only if an IPv4 address is configured on the local system,
and IPv6 addresses shall be returned only if an IPv6 address is
configured on the local system. The loopback address is not
considered for this case as valid as a configured address.
For example, when using the DNS, a query for AAAA records should
occur only if the node has at least one IPv6 address configured
(other than IPv6 loopback) and a query for A records should occur
only if the node has at least one IPv4 address configured (other
than the IPv4 loopback).
The flag is set by default when hints is NULL.
ok Eric Faurot, Jason McIntyre
Diffstat (limited to 'distrib')
0 files changed, 0 insertions, 0 deletions