aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-02-14 15:26:36 -0800
committerGuy Harris <guy@alum.mit.edu>2014-02-14 15:26:36 -0800
commit2a68b85923d6a32e882b6884ec1d4525bbe7014c (patch)
treeb2ec70e46c045a9d3cef7793eaa1118d18386ff3
parentc77ffc1b7374d7baa5a6fc0841eb0dd6a8e60fab (diff)
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.
-rw-r--r--pcap-common.c7
-rw-r--r--pcap/bpf.h7
2 files changed, 12 insertions, 2 deletions
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