]> The Tcpdump Group git mirrors - libpcap/commitdiff
Add a LINKTYPE_ value for DLT_WIRESHARK_UPPER_PDU.
authorGuy Harris <[email protected]>
Mon, 1 Jul 2013 17:58:55 +0000 (10:58 -0700)
committerGuy Harris <[email protected]>
Mon, 1 Jul 2013 17:58:55 +0000 (10:58 -0700)
They have the same numerical value, as with all newly-added link-layer
header types.

pcap-common.c
pcap/bpf.h

index fdd3c0cc28081abb99713bf1a812f6fea8d594e6..404e3a860d73bd5d426150782c0169f1f782963e 100644 (file)
  */
 #define LINKTYPE_BLUETOOTH_LE_LL       251
 
-#define LINKTYPE_MATCHING_MAX  251             /* highest value in the "matching" range */
+/*
+ * Link-layer header type for upper-protocol layer PDU saves from wireshark.
+ * 
+ * the actual contents are determined by two TAGs stored with each
+ * packet:
+ *   EXP_PDU_TAG_LINKTYPE          the link type (DLT value) of the
+ *                                original packet.
+ *
+ *   EXP_PDU_TAG_PROTO_NAME        the name of the wireshark dissector
+ *                                that can make sense of the data stored.
+ */
+#define LINKTYPE_WIRESHARK_UPPER_PDU   252
+
+#define LINKTYPE_MATCHING_MAX  252             /* highest value in the "matching" range */
 
 static struct linktype_map {
        int     dlt;
index 2608d5f29f603cd5654b34a76abc635fceba29e6..51d4116d9a1c040d1dd04c83ac2b092fe701ca5b 100644 (file)
@@ -1224,7 +1224,6 @@ struct bpf_program {
  */
 #define DLT_WIRESHARK_UPPER_PDU        252
 
-
 #define DLT_MATCHING_MAX       252     /* highest value in the "matching" range */
 
 /*