mirror of https://github.com/mkerrisk/man-pages
getaddrinfo.3: Explain one use case for AI_ADDRCONFIG
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
bf68db183b
commit
2534ef153e
|
@ -385,6 +385,13 @@ IPv4 address configured, and IPv6 addresses are returned
|
||||||
only if the local system has at least one IPv6 address configured.
|
only if the local system has at least one IPv6 address configured.
|
||||||
The loopback address is not considered for this case as valid
|
The loopback address is not considered for this case as valid
|
||||||
as a configured address.
|
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
|
.PP
|
||||||
If
|
If
|
||||||
.I hints.ai_flags
|
.I hints.ai_flags
|
||||||
|
|
Loading…
Reference in New Issue