emacs-devel
[Top][All Lists]
Advanced

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

Re: ai_flags in calls to getaddrinfo


From: Eli Zaretskii
Subject: Re: ai_flags in calls to getaddrinfo
Date: Fri, 01 Jan 2021 14:50:32 +0200

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: emacs-devel@gnu.org
> Date: Fri, 01 Jan 2021 11:59:37 +0100
> 
> I think that when the user asks for ipv6 explicitly, they should get
> back ipv6 (or get nothing/a failure).  If the user has specified the
> protocol, it's presumably because they really want that protocol.

But isn't the return value a valid IPv6 address when using AI_V4MAPPED?

> 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.



reply via email to

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