This bug was introduced in the latest release of libpcap. I checked the version
before 0.9.8 and the bug was not present.
It seems that in pcap-linux.c in activate_new the wrong socket is being
created. Before the socket is created I set device variable to null if it is
set to 'any' and that
* Added header-guard.
* Include IP6_misc.h unconditionally (why treat MingW specially?)
--gv
--- CVS-Latest/pcap-stdinc.h Mon Oct 06 14:27:32 2008
+++ pcap-stdinc.hThu Feb 12 21:25:34 2009
@@ -30,6 +30,8 @@
*
* @(#) $Header: /tcpdump/master/libpcap/pcap-stdinc.h,v 1.11 2008-10-06
* nametoaddr.c with DECNETLIB defined needs netdnet/dnetdb.h
included. And which again needs sys/types.h.
* Remove IP6_misc.h since it's already included in pcap-stdinc.h
(ref. my patch to this file).
--gv
--- CVS-Latest/nametoaddr.cWed Feb 06 09:21:30 2008
+++ nametoaddr.c Mon