From louie@uu.net  Tue Feb 29 14:32:06 2000
Return-Path: <louie@uu.net>
Received: from sayshell.iad.eng.us.uu.net (sayshell.iad.eng.us.uu.net [153.39.153.76])
	by hub.freebsd.org (Postfix) with ESMTP
	id AA68F37B855; Tue, 29 Feb 2000 14:32:01 -0800 (PST)
	(envelope-from louie@uu.net)
Received: (from louie@localhost)
	by sayshell.iad.eng.us.uu.net (8.9.3/8.9.3) id RAA00846;
	Tue, 29 Feb 2000 17:31:47 -0500 (EST)
	(envelope-from louie)
Message-Id: <200002292231.RAA00846@sayshell.iad.eng.us.uu.net>
Date: Tue, 29 Feb 2000 17:31:47 -0500 (EST)
From: Louis Mamakos <louie@uu.net>
Reply-To: louie@uu.net
To: FreeBSD-gnats-submit@freebsd.org, current@freebsd.org
Subject: tcpdump and IPv6 poor interaction
X-Send-Pr-Version: 3.2

>Number:         17083
>Category:       bin
>Synopsis:       tcpdump vs. IPv6 bug
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    fenner
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 29 14:40:00 PST 2000
>Closed-Date:    Sat Mar 4 15:58:01 PST 2000
>Last-Modified:  Sat Mar  4 15:58:45 PST 2000
>Originator:     Louis Mamakos
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
UUNET
>Environment:

FreeBSD-current as-of 29 Feb 2000, IPv6 configured

>Description:

If a host has both A and AAAA records in the DNS, then tcpdump will
complain that you're trying to apply the 'ip' modifier to an ip6
host.	Curiously, the reverse also breaks:

>How-To-Repeat:

	# tcpdump ip host whizzo.transsys.com
	tcpdump: 'ip' modifier applied to ip6 host

	# tcpdump ip6 host whizzo.transsys.com
	tcpdump: 'ip6' modifier applied to ip host


>Fix:

or at least a work-around

	tcpdump ip and host whizzo.transsys.com

but this is ugly and not backwards compatible.



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->fenner 
Responsible-Changed-By: fenner 
Responsible-Changed-When: Wed Mar 1 05:54:46 PST 2000 
Responsible-Changed-Why:  
fenner is tcpdump.org liasion 
State-Changed-From-To: open->closed 
State-Changed-By: fenner 
State-Changed-When: Sat Mar 4 15:58:01 PST 2000 
State-Changed-Why:  
Fixed at tcpdump.org and imported in rev 1.8 of contrib/libpcap/gencode.c 
(it was actually a libpcap bug, but who's counting?) =) 
>Unformatted:
