tcpdump mailing list archives

Re: [PATCH] enable sniff on USB ports on linux


From: Guy Harris <guy () alum mit edu>
Date: Thu, 28 Sep 2006 13:17:17 -0700

abeni wrote:

An USB pseudo header is prepended to the captured URB to give
additional information on URB (type, sender, ecc.).

That pseudo-header is currently in a separate GPL'ed pcap-usb.h header:

1) The rest of libpcap is licensed under the Berkeley license, with some of it under the four-clause Berkeley license, which isn't compatible with the GPL:

                http://www.gnu.org/licenses/license-list.html#GPLIncompatibleLicenses

I don't know what would be required to go to the 3-clause Berkeley license.

2) Should we have separate header files for pseudo-headers defined by libpcap, or should we put them in pcap.h?

The licensing issue also applies to pcap-usb.c.

I used linktype DLT_USER0 for usb devices, but I suppose that should
be changed to something new/different.

Yes.  We should define DLT_USB in pcap-bpf.h.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: