This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: one more bug in getaddrinfo()
- To: Arkadiusz Miskiewicz <misiek@misiek.eu.org>
- Subject: Re: one more bug in getaddrinfo()
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 03 Sep 1999 00:36:08 -0700
- Cc: GNU libc testers <libc-alpha@sourceware.cygnus.com>
- References: <19990902123413.B403@admin.misiek.eu.org>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
Arkadiusz Miskiewicz <misiek@misiek.eu.org> writes:
> ./getadd> getaddrinfo() from glibc returns only one address per family while
> getaddrinfo() from bind returns all available addresses, so glibc
> implementation is buggy.
That's a very strange reasoning. There is no wording in the internet
draft specifying that all names must be returned.
Anyhow, the current implementation already tries to return all names.
I don't know why it does not work and since DNS reports only one
address (and certainly no IPv6 address I cannot test it).
The getaddrinfo() implementation uses gethostbyname2(). Can you
please try to see what this function returns for IPv4? If this leads
to the correct result please step though the getaddrinfo() function
with a debugger. It is straightforward.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------