tcpdump mailing list archives
Re: adding new devices to libpcap
From: Guy Harris <guy () netapp com>
Date: Mon, 13 Jan 2003 12:43:42 -0800
On Tue, Jan 14, 2003 at 09:28:11AM +1300, Sean Irvine wrote:
So far our options appear to be:
(a) Modify pcap-linux.c to include support for our
device. This would mean it would be possible to
simultaneously use our device and eth0. However,
there will be a performance penalty deciding
which device is to be read from each packet.
Unless the performance penalty makes the difference between "capture is possible" and "capture is impossible", I'd vote for that, as you don't have to have, for example, two versions of various applications linked against different libraries (or multiple switchable versions of a libpcap shared library, or something such as that). Don't forget to have "pcap_findalldevs()" include your device. However, if it would be possible to have drivers for your device on other OSes, and to make them have the same API on those other OSes, you might want to have a "pcap-xxx.c" with routines that "pcap-linux.c" calls, so that "pcap-bpf.c" or whatever could also call them. (This all brings to mind the network pods available for Sniffers.) - This is the TCPDUMP workers list. It is archived at http://www.tcpdump.org/lists/workers/index.html To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe
Current thread:
- adding new devices to libpcap Sean Irvine (Jan 13)
- Re: adding new devices to libpcap Guy Harris (Jan 13)
- Re: adding new devices to libpcap Guy Harris (Jan 13)
- Re: adding new devices to libpcap Michael Richardson (Jan 13)
- Re: adding new devices to libpcap Guy Harris (Jan 13)
- Re: adding new devices to libpcap Stephen Donnelly (Jan 13)
- Re: adding new devices to libpcap Guy Harris (Jan 13)
