[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

(fwd) [6bone] glibc fix -> here <-

This glibc patch was posted to the 6bone mailing list today.  It allows
the resolver to do the right thing WRT reverse lookups.  The standard
resolver will only resolve ip6.arpa addresses, but there is only an
ip6.int reverse delegation for the 6bone, and there seems to be some
question as to whether or not ip6.arpa will ever get used.

I don't know if this will ever get used, or if it's worth it for us to
put up special builds of glibc on the IPv6 repository...  But it might
be useful to somebody.


-- forwarded message --
From: "Todd T. Fries" <todd@fries.net>
Message-ID: <mit.lcs.mail.6bone/20020729143418.GA13170@fries.net>
Reply-To: todd@fries.net
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.28i
X-Operating-System: OpenBSD goober.mrleng.com 3.1 GENERIC
X-PGP-Fingerprint: B6 3B 70 46 BC 0F 8C DD  14 D4 C7 D1 47 F6 23 FA
X-URL: http://todd.fries.net
X-Tra-Email: todd@fries.net, toddf@acm.org, todd@openbsd.org, toddfries@yahoo.com
X-Im: toddfries@AIM, toddfries@Yahoo, 115268457@ICQ, {toddfries,fr[1i]es}@*.irc.fries.net
Subject: [6bone] glibc fix -> here <-
Sender: usenet@lcs.mit.edu
Errors-To: 6bone-admin@mailman.isi.edu
X-Beenthere: 6bone@mailman.isi.edu
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:6bone-request@mailman.isi.edu?subject=help>
List-Archive: <http://mailman.isi.edu/pipermail/6bone/>
Date: Mon, 29 Jul 2002 09:34:19 -0500
Approved: usenet@lcs.mit.edu
Distribution: local
Newsgroups: mit.lcs.mail.6bone
Organization: LCS Mail/News Gateway <usenet@lcs.mit.edu>
Path: traf.lcs.mit.edu!listgate.lcs.mit.edu!mail-to-news
X-Mail-Path: gamma.isi.edu!gamma.isi.edu[]!tnt.isi.edu!root@adsl-64-217-3-234.dsl.okcyok.swbell.net!goober.mrleng.com[UNTRUSTED]!UNKNOWN
X-Original-Sender: 6bone-admin@mailman.isi.edu
X-Original-To: 6bone@ISI.EDU
Lines: 40
Xref: traf.lcs.mit.edu mit.lcs.mail.6bone:2291

Home net is down, apoligies for mailing the list, but here's your glibc
fix adapted from KAME/NetBSD/OpenBSD applied against the latest tarball of
glibc I could find (2.2.5):

--- ChangeLog.orig	Mon Jul 29 09:32:36 2002
+++ ChangeLog	Mon Jul 29 09:34:07 2002
@@ -1,3 +1,8 @@
+2002-06-29  Todd Fries <todd@openbsd.org>
+	* resolv/gethnamaddr.c: try ip6.int if ip6.arpa fails; code adapted
+	from KAME/NetBSD/OpenBSD libc.
 2002-01-18  Andreas Schwab  <schwab@suse.de>
 	* sysdeps/unix/sysv/linux/configure.in

--- gethnamaddr.c.orig	Fri Oct 26 18:49:48 2001
+++ gethnamaddr.c	Mon Jul 29 09:28:10 2002
@@ -696,6 +696,11 @@
 	n = res_nquery(&_res, qbuf, C_IN, T_PTR, (u_char *)buf.buf, sizeof buf.buf);
+	if (n < 0 && af == AF_INET6) {
+		strcpy(qp, "ip6.int");
+		n = res_nquery(&_res, qbuf, C_IN, T_PTR, (u_char *)buf.buf, sizeof buf.buf);
+	}
 	if (n < 0) {
 		dprintf("res_nquery failed (%d)\n", n);
 		if (errno == ECONNREFUSED)
Todd Fries .. todd@fries.net

(last updated $ToddFries: signature.p,v 1.2 2002/03/19 15:10:18 todd Exp $)

6bone mailing list
-- end of forwarded message --

Noah Meyerhans
Computer Resource Services, MIT Laboratory for Computer Science

To UNSUBSCRIBE, email to debian-ipv6-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: