This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: AI_V4MAPPED/AI_ALL


On Sat, Mar 29, Ulrich Drepper wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Thorsten Kukuk wrote:
> 
> > POSIX and rfc2553 mentions AI_V4MAPPED and AI_ALL as flags for
> > getaddrinfo(), but we removed them from the public header because
> > we don't want people to use them. What where the reasons for this?
> 
> The RFCs are changed far too frequently for my taste.  I'm not positive
> about adding anything not already in POSIX unless it's really proven to
> be stable and not changed in a couple of months.

Ok, AI_V4MAPPED and AI_ALL are specified in POSIX, rfc2553 and
rfc3493. So I doubt that it will be changed in the near future
again, I think something specified in POSIX should be stable 
enought to include in glibc.

I append a patch which adds both defines to resolv/netdb.h and
implements it in getaddrinfo(). (Looking at the ugly getaddrinfo
code, it seems we really need a new, clean implementation :( ).

  Thorsten

-- 
Thorsten Kukuk       http://www.suse.de/~kukuk/        kukuk at suse dot de
SuSE Linux AG        Deutschherrnstr. 15-19        D-90429 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B

Attachment: getaddrinfo.v4mapped.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]