On Jul 5, 2014, at 5:39 PM, Guy Harris <g...@alum.mit.edu> wrote:

> On Jul 5, 2014, at 5:02 PM, Michael Richardson <m...@sandelman.ca> wrote:
> 
>> It appears that on Linux there is no way to build libpcap without USB
>> support.  There is no --disable-usb that I can see in ./configure, and
>> it appears that if you don't have the right headers, you just fail.
>> (Or did I miss something?)
> 
> The configure script should probably check for the necessary headers, and 
> build the USB printer only if they're present.

s/printer/pcap module/ - I was thinking tcpdump, not libpcap.

pcap-usb-linux.c includes what should be standard Linux headers, plus including 
some headers under #ifdefs set by configure.

However, it assumes that, for example, struct usbdevfs_ctrltransfer will always 
be defined, even if <linux/usbdevice_fs.h> doesn't exist.  That probably needs 
to be fixed; I'll look at that.

For other structures and #defines, pcap-usb-linux.c has its own versions; this 
makes me a little nervous - I'll have to see whether the authors of the code 
had a reason why 1) they had to do that and 2) it was safe to do that.
_______________________________________________
tcpdump-workers mailing list
tcpdump-workers@lists.tcpdump.org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers

Reply via email to