]> The Tcpdump Group git mirrors - libpcap/commitdiff
Add USBPcap.
authorGuy Harris <[email protected]>
Wed, 27 Mar 2013 19:21:15 +0000 (12:21 -0700)
committerGuy Harris <[email protected]>
Wed, 27 Mar 2013 19:21:15 +0000 (12:21 -0700)
pcap-common.c
pcap/bpf.h

index bd18c64acbec8d57a90bd7e2ae32a6717c6d1bb7..7d35e6f7fb710f1a7ac1e8deea8fd3eebf2fb20b 100644 (file)
  */
 #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 <[email protected]>
+ */
+#define LINKTYPE_USBPCAP       249
+
+#define LINKTYPE_MATCHING_MAX  249             /* highest value in the "matching" range */
 
 static struct linktype_map {
        int     dlt;
index 8576bbdbd02ccb96b43c2fbc4c8f10a3b6c58b68..04060e237ca4d0ee99669d7f8198faf1d3ed5a2c 100644 (file)
@@ -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 <[email protected]>
+ */
+#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