Re: freeaddrinfo2 changes. - Mailing list pgsql-hackers

From Tom Lane
Subject Re: freeaddrinfo2 changes.
Date
Msg-id 18560.1055179509@sss.pgh.pa.us
Whole thread Raw
In response to Re: freeaddrinfo2 changes.  (Kurt Roeckx <Q@ping.be>)
List pgsql-hackers
Kurt Roeckx <Q@ping.be> writes:
>> If this is broken then it's probably not the only problem --- we rely on
>> sa.sa_family in other places.

> sa.sa_family is not the problem itself, the problem is that if
> you use getaddrinfo with AF_UNSPEC, you can get more than replies
> with more than 1 address family. You will get atleast AF_INET,
> AF_INET6 if they exist for what you request, and maybe AF_UNIX or
> even others.

Oh, I see --- the problem is to tell the difference between an AF_UNIX
addrinfo built by getaddrinfo_unix and one returned by the system's
getaddrinfo.  Okay.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Kurt Roeckx
Date:
Subject: Re: freeaddrinfo2 changes.
Next
From: Josh Berkus
Date:
Subject: Re: Proposal to Re-Order Postgresql.Conf, part II