From: Guy Harris Date: Fri, 14 Feb 2014 23:26:36 +0000 (-0800) Subject: Add {DLT,LINKTYPE}_BLUETOOTH_LINUX_MONITOR for BlueZ. X-Git-Tag: libpcap-1.6.0-bp~51 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/2a68b85923d6a32e882b6884ec1d4525bbe7014c Add {DLT,LINKTYPE}_BLUETOOTH_LINUX_MONITOR for BlueZ. This is a new link-layer header type for the Bluetooth Linux Monitor in the BlueZ Bluetooth stack. --- diff --git a/pcap-common.c b/pcap-common.c index 632b1b64..aaa22c75 100644 --- a/pcap-common.c +++ b/pcap-common.c @@ -938,7 +938,12 @@ */ #define LINKTYPE_NETLINK 253 -#define LINKTYPE_MATCHING_MAX 253 /* highest value in the "matching" range */ +/* + * Bluetooth Linux Monitor headers for the BlueZ stack. + */ +#define LINKTYPE_BLUETOOTH_LINUX_MONITOR 254 + +#define LINKTYPE_MATCHING_MAX 254 /* highest value in the "matching" range */ static struct linktype_map { int dlt; diff --git a/pcap/bpf.h b/pcap/bpf.h index 51cd0dd4..e2efecad 100644 --- a/pcap/bpf.h +++ b/pcap/bpf.h @@ -1227,7 +1227,12 @@ struct bpf_program { */ #define DLT_NETLINK 253 -#define DLT_MATCHING_MAX 253 /* highest value in the "matching" range */ +/* + * Bluetooth Linux Monitor headers for the BlueZ stack. + */ +#define DLT_BLUETOOTH_LINUX_MONITOR 254 + +#define DLT_MATCHING_MAX 254 /* highest value in the "matching" range */ /* * DLT and savefile link type values are split into a class and