Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 2003 08:28:14 +0200 (CEST)
From:      Martin Birgmeier <nobody@nowhere.org>
To:        FreeBSD-gnats-submit@FreeBSD.org, martin@gandalf.xyzzy
Subject:   bin/52021: typos in dig & nslookup sources prevent correct IPv6 address lookup
Message-ID:  <200305100628.h4A6SEAN000907@gandalf.xyzzy>
Resent-Message-ID: <200305100630.h4A6UCWl086431@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305100628.h4A6SEAN000907>