Ethereal-users: Re: [Ethereal-users] Re: tethereal filters on one adapter, not on another

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Thu, 25 Nov 2004 14:47:36 -0800
Paul Wozney wrote:
Further analysis shows that perhaps eth0 is not working as expected.

# tethereal -D
1. eth1
2. any (Pseudo-device that captures on all interfaces)
3. lo

eth0 does not even show up here!


The SIOCGIFCONF ioctl on Linux doesn't report interfaces that have no IP address. With older versions of libpcap, Ethereal and Tethereal have to enumerate the interfaces themselves; they do that with SIOCGIFCONF. With newer versions of libpcap, they use the libpcap API to enumerate interfaces, and the implementation of that API on Linux also scans /proc/net/dev; we should probably have the Ethereal/Tethereal code do so as well on systems with /proc/net/dev.