On Mon, Mar 19, 2001 at 11:19:47PM -0500, Dan Dentinger wrote:
> I am having trouble getting the pcap library to use any other device than
> /dev/bpf0 on my machine. I need it to use /dev/bpf1
Why?
Why does it matter which particular device is being used?
The devices don't correspond to particular network interfaces, for
example.
The way the libpcap library works on BSD systems is that it tries each
of the BPF devices it can find until it finds one that's not in use, and
it then uses that one. There is no mechanism in libpcap to specify that
a particular BPF device should be used, and there isn't *supposed* to be
one - libpcap is supposed to provide a platform-independent mechanism
for using the very different packet-capture mechanisms on different
OSes.
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe