From owner-freebsd-bugs@FreeBSD.ORG Fri May 9 23:30:14 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5593A37B401 for ; Fri, 9 May 2003 23:30:14 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C28A543FBD for ; Fri, 9 May 2003 23:30:12 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h4A6UCUp086432 for ; Fri, 9 May 2003 23:30:12 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h4A6UCWl086431; Fri, 9 May 2003 23:30:12 -0700 (PDT) Resent-Date: Fri, 9 May 2003 23:30:12 -0700 (PDT) Resent-Message-Id: <200305100630.h4A6UCWl086431@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Martin Birgmeier Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28FD637B401 for ; Fri, 9 May 2003 23:28:32 -0700 (PDT) Received: from email04.aon.at (WARSL401PIP5.highway.telekom.at [195.3.96.90]) by mx1.FreeBSD.org (Postfix) with SMTP id 7E7D543FAF for ; Fri, 9 May 2003 23:28:30 -0700 (PDT) (envelope-from martin@email.aon.at) Received: (qmail 242078 invoked from network); 10 May 2003 06:28:27 -0000 Received: from m032p003.adsl.highway.telekom.at (HELO gandalf.xyzzy) ([62.47.171.227]) (envelope-sender ) by qmail4rs.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 10 May 2003 06:28:27 -0000 Received: from gandalf.xyzzy (localhost.xyzzy [127.0.0.1]) by gandalf.xyzzy (8.12.8p1/8.12.8) with ESMTP id h4A6SGUg000908; Sat, 10 May 2003 08:28:16 +0200 (CEST) (envelope-from martin@gandalf.xyzzy) Received: (from martin@localhost) by gandalf.xyzzy (8.12.8p1/8.12.8/Submit) id h4A6SEAN000907; Sat, 10 May 2003 08:28:14 +0200 (CEST) Message-Id: <200305100628.h4A6SEAN000907@gandalf.xyzzy> Date: Sat, 10 May 2003 08:28:14 +0200 (CEST) From: Martin Birgmeier To: FreeBSD-gnats-submit@FreeBSD.org, martin@gandalf.xyzzy X-Send-Pr-Version: 3.113 Subject: bin/52021: typos in dig & nslookup sources prevent correct IPv6 address lookup X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Martin Birgmeier List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 May 2003 06:30:14 -0000 >Number: 52021 >Category: bin >Synopsis: typos in dig & nslookup sources prevent correct IPv6 address lookup >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 09 23:30:12 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Martin Birgmeier >Release: FreeBSD 4.8-RELEASE i386 >Organization: MBi at home >Environment: System: FreeBSD gandalf.xyzzy 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Sat Apr 5 13:16:25 CEST 2003 root@gandalf.xyzzy:/d/6s4e/OBJ/FreeBSD/RELENG_4_8_0_RELEASE/src/sys/GANDALF i386 >Description: typos in dig & nslookup sources prevent correct IPv6 address lookup >How-To-Repeat: run the command nslookup -debug fec0:0:0:4d42::6 and observe the debugging output to find that the query is mangled >Fix: use the following patch: ============================== cut here ============================== *** contrib/bind/bin/dig/dig.c.ORIG Sun Jul 7 10:19:12 2002 --- contrib/bind/bin/dig/dig.c Fri May 9 23:32:54 2003 *************** *** 1799,1805 **** in6->s6_addr[6] & 0x0f, (in6->s6_addr[6] >> 4) & 0x0f, in6->s6_addr[5] & 0x0f, (in6->s6_addr[5] >> 4) & 0x0f, in6->s6_addr[4] & 0x0f, (in6->s6_addr[4] >> 4) & 0x0f, ! in6->s6_addr[6] & 0x0f, (in6->s6_addr[3] >> 4) & 0x0f, in6->s6_addr[2] & 0x0f, (in6->s6_addr[2] >> 4) & 0x0f, in6->s6_addr[1] & 0x0f, (in6->s6_addr[1] >> 4) & 0x0f, in6->s6_addr[0] & 0x0f, (in6->s6_addr[0] >> 4) & 0x0f); --- 1799,1805 ---- in6->s6_addr[6] & 0x0f, (in6->s6_addr[6] >> 4) & 0x0f, in6->s6_addr[5] & 0x0f, (in6->s6_addr[5] >> 4) & 0x0f, in6->s6_addr[4] & 0x0f, (in6->s6_addr[4] >> 4) & 0x0f, ! in6->s6_addr[3] & 0x0f, (in6->s6_addr[3] >> 4) & 0x0f, in6->s6_addr[2] & 0x0f, (in6->s6_addr[2] >> 4) & 0x0f, in6->s6_addr[1] & 0x0f, (in6->s6_addr[1] >> 4) & 0x0f, in6->s6_addr[0] & 0x0f, (in6->s6_addr[0] >> 4) & 0x0f); *** contrib/bind/bin/nslookup/getinfo.c.ORIG Fri May 9 23:33:56 2003 --- contrib/bind/bin/nslookup/getinfo.c Fri May 9 23:33:57 2003 *************** *** 945,951 **** p[9] & 0xf, (p[9] >> 4) & 0xf, p[8] & 0xf, (p[8] >> 4) & 0xf, p[7] & 0xf, (p[7] >> 4) & 0xf, ! p[6] & 0xf, (p[4] >> 4) & 0xf, p[5] & 0xf, (p[5] >> 4) & 0xf, p[4] & 0xf, (p[4] >> 4) & 0xf, p[3] & 0xf, (p[3] >> 4) & 0xf, --- 945,951 ---- p[9] & 0xf, (p[9] >> 4) & 0xf, p[8] & 0xf, (p[8] >> 4) & 0xf, p[7] & 0xf, (p[7] >> 4) & 0xf, ! p[6] & 0xf, (p[6] >> 4) & 0xf, p[5] & 0xf, (p[5] >> 4) & 0xf, p[4] & 0xf, (p[4] >> 4) & 0xf, p[3] & 0xf, (p[3] >> 4) & 0xf, *************** *** 965,971 **** p[9] & 0xf, (p[9] >> 4) & 0xf, p[8] & 0xf, (p[8] >> 4) & 0xf, p[7] & 0xf, (p[7] >> 4) & 0xf, ! p[6] & 0xf, (p[4] >> 4) & 0xf, p[5] & 0xf, (p[5] >> 4) & 0xf, p[4] & 0xf, (p[4] >> 4) & 0xf, p[3] & 0xf, (p[3] >> 4) & 0xf, --- 965,971 ---- p[9] & 0xf, (p[9] >> 4) & 0xf, p[8] & 0xf, (p[8] >> 4) & 0xf, p[7] & 0xf, (p[7] >> 4) & 0xf, ! p[6] & 0xf, (p[6] >> 4) & 0xf, p[5] & 0xf, (p[5] >> 4) & 0xf, p[4] & 0xf, (p[4] >> 4) & 0xf, p[3] & 0xf, (p[3] >> 4) & 0xf, ============================== cut here ============================== >Release-Note: >Audit-Trail: >Unformatted: