From: Guy Harris Date: Sat, 26 Aug 2017 00:17:34 +0000 (-0700) Subject: Nordic Semiconductor Bluetooth LE sniffer link-layer header type. X-Git-Tag: libpcap-1.9-bp~787 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/b006c7983b1f4e723c25a633270920e848e85d45 Nordic Semiconductor Bluetooth LE sniffer link-layer header type. --- diff --git a/pcap-common.c b/pcap-common.c index 281203c7..8a34ec85 100644 --- a/pcap-common.c +++ b/pcap-common.c @@ -1063,7 +1063,12 @@ */ #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 ce395de4..35d24b26 100644 --- 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 }; diff --git a/pcap/dlt.h b/pcap/dlt.h index 47809447..33b1d4e0 100644 --- a/pcap/dlt.h +++ b/pcap/dlt.h @@ -1337,6 +1337,10 @@ */ #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) @@ -1348,7 +1352,7 @@ #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