Re: [evolution-patches] [PATCH] Only use ipv6 address if ipv6 interface is available



On Fri, 2003-10-17 at 15:50, Jeremy Katz wrote:
> Based on comments from Ulrich -- when using IPv6, you want to use the
> AI_ADDRCONFIG flag in the hints argument to getaddrinfo() to avoid
> connecting to an IPv6 address if you don't have an IPv6 interface
> configured. 

What is the purpose of the additional call to getaddrinfo without
AI_ADDRCONFIG? It seems like if the first call fails, the second call
would either also fail or would return an address that was guaranteed to
be unusable.

-- Dan



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