Bug 17083

Summary: tcpdump vs. IPv6 bug
Product: Base System Reporter: Louis Mamakos <louie>
Component: binAssignee: Bill Fenner <fenner>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   

Description Louis Mamakos 2000-02-29 22:40:00 UTC
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:

Fix: 

or at least a work-around

	tcpdump ip and host whizzo.transsys.com

but this is ugly and not backwards compatible.
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
Comment 1 Bill Fenner freebsd_committer freebsd_triage 2000-03-01 13:54:46 UTC
Responsible Changed
From-To: freebsd-bugs->fenner

fenner is tcpdump.org liasion 
Comment 2 Bill Fenner freebsd_committer freebsd_triage 2000-03-04 23:58:01 UTC
State Changed
From-To: open->closed

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?) =)