From: Guy Harris Date: Wed, 27 Mar 2013 19:21:15 +0000 (-0700) Subject: Add USBPcap. X-Git-Tag: libpcap-1.5.0~88 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/8d691bf367c5fa873790350f9edc22269e52664b Add USBPcap. --- diff --git a/pcap-common.c b/pcap-common.c index bd18c64a..7d35e6f7 100644 --- a/pcap-common.c +++ b/pcap-common.c @@ -897,7 +897,14 @@ */ #define LINKTYPE_SCTP 248 -#define LINKTYPE_MATCHING_MAX 248 /* highest value in the "matching" range */ +/* + * USB packets, beginning with a USBPcap header. + * + * Requested by Tomasz Mon + */ +#define LINKTYPE_USBPCAP 249 + +#define LINKTYPE_MATCHING_MAX 249 /* highest value in the "matching" range */ static struct linktype_map { int dlt; diff --git a/pcap/bpf.h b/pcap/bpf.h index 8576bbdb..04060e23 100644 --- a/pcap/bpf.h +++ b/pcap/bpf.h @@ -1189,7 +1189,14 @@ struct bpf_program { */ #define DLT_SCTP 248 -#define DLT_MATCHING_MAX 248 /* highest value in the "matching" range */ +/* + * USB packets, beginning with a USBPcap header. + * + * Requested by Tomasz Mon + */ +#define DLT_USBPCAP 249 + +#define DLT_MATCHING_MAX 249 /* highest value in the "matching" range */ /* * DLT and savefile link type values are split into a class and