]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-common.c
Add a LINKTYPE_ value for DLT_WIRESHARK_UPPER_PDU.
[libpcap] / pcap-common.c
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;