Permalink
Browse files

Add USBPcap.

  • Loading branch information...
1 parent ffa641b commit 8d691bf367c5fa873790350f9edc22269e52664b @guyharris guyharris committed Mar 27, 2013
Showing with 16 additions and 2 deletions.
  1. +8 −1 pcap-common.c
  2. +8 −1 pcap/bpf.h
View
@@ -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 <desowin@gmail.com>
+ */
+#define LINKTYPE_USBPCAP 249
+
+#define LINKTYPE_MATCHING_MAX 249 /* highest value in the "matching" range */
static struct linktype_map {
int dlt;
View
@@ -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 <desowin@gmail.com>
+ */
+#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

0 comments on commit 8d691bf

Please sign in to comment.