[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ai_flags in calls to getaddrinfo

From: Lars Ingebrigtsen
Subject: Re: ai_flags in calls to getaddrinfo
Date: Sat, 02 Jan 2021 06:40:09 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> If they don't specify the protocol version, they get back either/both
>> ipv6/ipv4 now (depending on the system), don't they?
> On that system, I get only the IPv4 address if I don't use AI_ALL and
> AI_V4MAPPED.  If I do use the two flags, I get both IPv4 and IPv6
> addresses.

But the IPv6 addresses you get are presumably just the
ipv4-remapped-to-ipv6 addresses?  If so, that's another reason not to
use AI_V4MAPPED -- Robin explained in another message how those aren't
that useful.

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

[Prev in Thread] Current Thread [Next in Thread]