]> The Tcpdump Group git mirrors - libpcap/commitdiff
Add {DLT,LINKTYPE}_BLUETOOTH_LINUX_MONITOR for BlueZ.
authorGuy Harris <[email protected]>
Fri, 14 Feb 2014 23:26:36 +0000 (15:26 -0800)
committerGuy Harris <[email protected]>
Fri, 14 Feb 2014 23:26:36 +0000 (15:26 -0800)
This is a new link-layer header type for the Bluetooth Linux Monitor in
the BlueZ Bluetooth stack.

pcap-common.c
pcap/bpf.h

index 632b1b64c018480b830a81d5c211ebb54d1a9a03..aaa22c758f5a65673f0d1ab6ed1a64cc690d9a42 100644 (file)
  */
 #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;
index 51cd0dd4bb94779645152efe05f1d13a80fc91c7..e2efecad4f7cfb93e9ea13ed59b73710aacbceb1 100644 (file)
@@ -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