Jaap Keuter wrote: > These includes won't work on my Debian box: > +#include <pcap/bpf.h> > +#include <pcap/usb.h> > > Dependancy on pcap shouldn't be there. All is done via wiretap and if > these are needed for defines or header sizes, they'll have to be included > via #include <pcap.h>
Actually, they should be independently defined by the Wireshark dissector; that's what we do for the Linux cooked capture header. It's not as if the header defined by <pcap/usb.h> is ever going to change - any change to the header would mean that you'd have two different header formats in files with the *same* magic number and the *same* DLT_ value, which means that *any* program reading those files would fail to correctly dissect some files. I.e., the dissector shouldn't include <pcap.h>, <pcap/bpf.h>, or <pcap/usb.h>. _______________________________________________ Wireshark-dev mailing list [email protected] http://www.wireshark.org/mailman/listinfo/wireshark-dev
