getaddrinfo.3: Explain one use case for AI_ADDRCONFIG

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-11-08 14:24:57 +13:00
parent bf68db183b
commit 2534ef153e
1 changed files with 7 additions and 0 deletions

View File

@ -385,6 +385,13 @@ IPv4 address configured, and IPv6 addresses are returned
only if the local system has at least one IPv6 address configured.
The loopback address is not considered for this case as valid
as a configured address.
This flag is useful on, for example,
IPv4-only systems, to ensure that
.BR getaddrinfo ()
does not return IPv6 socket addresses that would always fail in
.BR connect (2)
or
.BR bind (2).
.PP
If
.I hints.ai_flags