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


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: getaddrinfo and AF_UNSPEC w/ IPv4/6 messes up ai_canonname?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pekka Savola wrote:
1) with PF_INET, this does not happen (CNAME entry is returned, not
addresses -- at least as far as I could see): thus the current behaviour
does not seem the same between address families.
I don't really know what you mean. For PF_INET no IPv6 addresses are returned so you cannot mean this. The code used is the same if PF_INET or PF_UNSPEC is used and so numeric addresses would also be returned if the internal gethstbyaddr calll fails.

 2) (not really motivation, but still..) e.g. BSD libc does not return
addresses (the test works as "expected"); I haven't checked other
implementations.
That's indeed no motivation. But you could do one thing: look at the entire list of records returned on a BSD system. Is the one you expect really the only one? Or is it just a matter of ordering.

- -- - ---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9aT+U2ijCOnn/RHQRAu3CAJ9sUIq1W/FIVy0QxZtvVGmo5+gIdQCfdEhF
lrywOnmw5PPrWmTgZubyOOU=
=0D3o
-----END PGP SIGNATURE-----


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