Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add USBPcap.

  • Loading branch information...
commit 8d691bf367c5fa873790350f9edc22269e52664b 1 parent ffa641b
Guy Harris authored March 27, 2013

Showing 2 changed files with 16 additions and 2 deletions. Show diff stats Hide diff stats

  1. 9  pcap-common.c
  2. 9  pcap/bpf.h
9  pcap-common.c
@@ -897,7 +897,14 @@
897 897
  */
898 898
 #define LINKTYPE_SCTP		248
899 899
 
900  
-#define LINKTYPE_MATCHING_MAX	248		/* highest value in the "matching" range */
  900
+/*
  901
+ * USB packets, beginning with a USBPcap header.
  902
+ *
  903
+ * Requested by Tomasz Mon <desowin@gmail.com>
  904
+ */
  905
+#define LINKTYPE_USBPCAP	249
  906
+
  907
+#define LINKTYPE_MATCHING_MAX	249		/* highest value in the "matching" range */
901 908
 
902 909
 static struct linktype_map {
903 910
 	int	dlt;
9  pcap/bpf.h
@@ -1189,7 +1189,14 @@ struct bpf_program {
1189 1189
  */
1190 1190
 #define DLT_SCTP		248
1191 1191
 
1192  
-#define DLT_MATCHING_MAX	248	/* highest value in the "matching" range */
  1192
+/*
  1193
+ * USB packets, beginning with a USBPcap header.
  1194
+ *
  1195
+ * Requested by Tomasz Mon <desowin@gmail.com>
  1196
+ */
  1197
+#define DLT_USBPCAP		249
  1198
+ 
  1199
+#define DLT_MATCHING_MAX	249	/* highest value in the "matching" range */
1193 1200
 
1194 1201
 /*
1195 1202
  * DLT and savefile link type values are split into a class and

0 notes on commit 8d691bf

Please sign in to comment.
Something went wrong with that request. Please try again.