]> The Tcpdump Group git mirrors - libpcap/commitdiff
Nordic Semiconductor Bluetooth LE sniffer link-layer header type.
authorGuy Harris <[email protected]>
Sat, 26 Aug 2017 00:17:34 +0000 (17:17 -0700)
committerGuy Harris <[email protected]>
Sat, 26 Aug 2017 00:17:34 +0000 (17:17 -0700)
pcap-common.c
pcap.c
pcap/dlt.h

index 281203c76f42b9635ba203fe8a2cdd7c28afc377..8a34ec858a7503c598f553983922bf723b533564 100644 (file)
  */
 #define LINKTYPE_VSOCK          271
 
-#define LINKTYPE_MATCHING_MAX  271             /* highest value in the "matching" range */
+/*
+ * Nordic Semiconductor Bluetooth LE sniffer.
+ */
+#define LINKTYPE_NORDIC_BLE    272
+
+#define LINKTYPE_MATCHING_MAX  272             /* highest value in the "matching" range */
 
 static struct linktype_map {
        int     dlt;
diff --git a/pcap.c b/pcap.c
index ce395de4e7d5f4ad7a6faac0263150b53c35663b..35d24b267b61fae3960d493b782542727b46b582 100644 (file)
--- a/pcap.c
+++ b/pcap.c
@@ -2094,6 +2094,7 @@ static struct dlt_choice dlt_choices[] = {
        DLT_CHOICE(SDLC, "IBM SDLC frames"),
        DLT_CHOICE(TI_LLN_SNIFFER, "TI LLN sniffer frames"),
        DLT_CHOICE(VSOCK, "Linux vsock"),
+       DLT_CHOICE(NORDIC_BLE, "Nordic Semiconductor Bluetooth LE sniffer frames"),
        DLT_CHOICE_SENTINEL
 };
 
index 47809447ce0dd52196a4228c2fa660bd816bdf02..33b1d4e0dc5c44833c1568e505e6d88d5fb7f318 100644 (file)
  */
 #define DLT_VSOCK               271
 
+/*
+ * Nordic Semiconductor Bluetooth LE sniffer.
+ */
+#define DLT_NORDIC_BLE         272
 
 /*
  * In case the code that includes this file (directly or indirectly)
 #ifdef DLT_MATCHING_MAX
 #undef DLT_MATCHING_MAX
 #endif
-#define DLT_MATCHING_MAX       271     /* highest value in the "matching" range */
+#define DLT_MATCHING_MAX       272     /* highest value in the "matching" range */
 
 /*
  * DLT and savefile link type values are split into a class and