]>
Commit | Line | Data |
---|---|---|
a5bec829 AM |
1 | diff -urN libpcap-1.6.1.org/pcap-bt-monitor-linux.c libpcap-1.6.1/pcap-bt-monitor-linux.c |
2 | --- libpcap-1.6.1.org/pcap-bt-monitor-linux.c 2014-07-03 00:12:49.000000000 +0200 | |
3 | +++ libpcap-1.6.1/pcap-bt-monitor-linux.c 2014-07-20 16:53:44.000000000 +0200 | |
4 | @@ -39,7 +39,6 @@ | |
5 | ||
6 | #include <bluetooth/bluetooth.h> | |
7 | #include <bluetooth/hci.h> | |
8 | -#include <bluetooth/mgmt.h> | |
9 | ||
10 | #include "pcap/bluetooth.h" | |
11 | #include "pcap-int.h" | |
12 | @@ -47,6 +46,16 @@ | |
13 | #define BT_CONTROL_SIZE 32 | |
14 | #define INTERFACE_NAME "bluetooth-monitor" | |
15 | ||
16 | +#ifndef MGMT_HDR_SIZE | |
17 | +#define MGMT_HDR_SIZE 6 | |
18 | + | |
19 | +struct mgmt_hdr { | |
20 | + uint16_t opcode; | |
21 | + uint16_t index; | |
22 | + uint16_t len; | |
23 | +} __packed; | |
24 | +#endif | |
25 | + | |
26 | int | |
27 | bt_monitor_findalldevs(pcap_if_t **alldevsp, char *err_str) | |
28 | { |