From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9492 invoked by alias); 31 Mar 2003 07:18:37 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 9475 invoked from network); 31 Mar 2003 07:18:36 -0000 Received: from unknown (HELO Cantor.suse.de) (213.95.15.193) by sources.redhat.com with SMTP; 31 Mar 2003 07:18:36 -0000 Received: from Hermes.suse.de (Hermes.suse.de [213.95.15.136]) by Cantor.suse.de (Postfix) with ESMTP id 74ED614514; Mon, 31 Mar 2003 09:18:36 +0200 (MEST) Date: Mon, 31 Mar 2003 09:46:00 -0000 From: Thorsten Kukuk To: Roland McGrath Cc: libc-hacker@sources.redhat.com Subject: Re: AI_V4MAPPED/AI_ALL Message-ID: <20030331071836.GA5335@suse.de> References: <20030330201138.GA25740@suse.de> <200303302208.h2UM8Vq32648@magilla.sf.frob.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline In-Reply-To: <200303302208.h2UM8Vq32648@magilla.sf.frob.com> User-Agent: Mutt/1.4i Organization: SuSE Linux AG, Nuernberg, Germany X-SW-Source: 2003-03/txt/msg00146.txt.bz2 --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2188 On Sun, Mar 30, Roland McGrath wrote: > > 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=20 > > enought to include in glibc. >=20 > Agreed. I'm not sure the RFCs always indicate a stable interface, but > what's in 1003.1-2001 we definitely want to implement and these are there. >=20 > Can you add a test case that is broken by the current code and fixed by > your patch? We can add an xtests case that requires some particular DNS > zone data to do the test. At least for forward zone data, I can set up a > glibc-test.gnu.org subdomain with test data if needed. I can write a test on basis of my current test program for this. All I need is a hostname with only one IPv4 address and one with a IPv4 and a IPv6 address. I can also add test cases for more flags, but than reverse lookup must work, too. > > 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 :( ). >=20 > Definitely true. It was close to the top of my list before you fixed the > AF_UNSPEC behavior. I can probably find time before the next release to = do > the rewrite. If you have any list of known issues with the current > implementation (aside from its internal structure), and especially if we > can soup up the tests to cover more details, that would be a help. There is a new flag AI_NUMERICSERV which is not supported and it seems to me that return codes are wrong in most cases, too. The WIDE project seems to have some tests for getaddrinfo, too. But they expect that you have an entry for localhost with "::1" and "127.0.0.1" in /etc/hosts. But maybe we can change this and add this tests, too? Thorsten --=20 Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de SuSE Linux AG Deutschherrnstr. 15-19 D-90429 Nuernberg --------------------------------------------------------------------=20=20= =20=20 Key fingerprint =3D A368 676B 5E1B 3E46 CFCE 2D97 F8FD 4E23 56C6 FB4B --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature Content-Disposition: inline Content-length: 240 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Weitere Infos: siehe http://www.gnupg.org iD8DBQE+h+vM+P1OI1bG+0sRArc2AJ9IZhfVKhs/p7gnEntf/OTfrvcxiwCfeStv Kt17IWcADvYn2QERGLrFd+I= =3JlN -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0--