10#ifndef __PACKET_BLUETOOTH_H__
11#define __PACKET_BLUETOOTH_H__
14#include "packet-usb.h"
15#include "packet-ubertooth.h"
21#define PROTO_DATA_BLUETOOTH_SERVICE_UUID 0
23#define BLUETOOTH_DATA_SRC 0
24#define BLUETOOTH_DATA_DST 1
26#define HCI_H4_TYPE_CMD 0x01
27#define HCI_H4_TYPE_ACL 0x02
28#define HCI_H4_TYPE_SCO 0x03
29#define HCI_H4_TYPE_EVT 0x04
30#define HCI_H4_TYPE_ISO 0x05
32#define HCI_OGF_LINK_CONTROL 0x01
33#define HCI_OGF_LINK_POLICY 0x02
34#define HCI_OGF_HOST_CONTROLLER 0x03
35#define HCI_OGF_INFORMATIONAL 0x04
36#define HCI_OGF_STATUS 0x05
37#define HCI_OGF_TESTING 0x06
38#define HCI_OGF_LOW_ENERGY 0x08
39#define HCI_OGF_LOGO_TESTING 0x3e
40#define HCI_OGF_VENDOR_SPECIFIC 0x3f
42#define HCI_VENDOR_DEFAULT 0
44#define DID_VENDOR_ID_SOURCE_BLUETOOTH_SIG 1
45#define DID_VENDOR_ID_SOURCE_USB_FORUM 2
47#define ACCESS_ADDRESS_ADVERTISING 0x8e89bed6
49extern int proto_bluetooth;
53#define STATUS_SUCCESS 0x00
55#define UUID_GATT_PRIMARY_SERVICE_DECLARATION 0x2800
56#define UUID_GATT_SECONDARY_SERVICE_DECLARATION 0x2801
57#define UUID_GATT_INCLUDE_DECLARATION 0x2802
58#define UUID_GATT_CHARACTERISTIC_DECLARATION 0x2803
76#define HCI_INTERFACE_DEFAULT 0
77#define HCI_ADAPTER_DEFAULT 0
85} bt_protocol_data_type;
96 uint32_t interface_id;
98 uint32_t *adapter_disconnect_in_frame;
110 bt_protocol_data_type previous_protocol_data_type;
117 } previous_protocol_data;
121#define BT_LINK_TYPE_UNKNOWN 0
122#define BT_LINK_TYPE_ACL 1
123#define BT_LINK_TYPE_SCO 2
124#define BT_LINK_TYPE_LL 3
125#define BT_LINK_TYPE_ISO 4
128 uint32_t connect_in_frame;
129 uint32_t disconnect_in_frame;
134 uint32_t interface_id;
141 uint32_t bd_addr_oui;
148 uint32_t change_in_frame;
153 uint32_t change_in_frame;
158 uint32_t change_in_frame;
166#define ROLE_UNKNOWN 0
167#define ROLE_CENTRAL 1
168#define ROLE_PERIPHERAL 2
171 uint32_t interface_id;
177 uint32_t interface_id;
183 uint32_t interface_id;
188 uint16_t manufacturer;
189 uint16_t hci_revision;
190 uint16_t lmp_subversion;
191 uint32_t change_in_frame;
201enum bluetooth_device_type {
202 BLUETOOTH_DEVICE_BD_ADDR,
203 BLUETOOTH_DEVICE_NAME,
204 BLUETOOTH_DEVICE_LOCAL_ADAPTER,
205 BLUETOOTH_DEVICE_LOCAL_VERSION,
206 BLUETOOTH_DEVICE_REMOTE_VERSION,
207 BLUETOOTH_DEVICE_RESET,
208 BLUETOOTH_DEVICE_SCAN,
209 BLUETOOTH_DEVICE_VOICE_SETTING,
210 BLUETOOTH_DEVICE_AUTHENTICATION,
211 BLUETOOTH_DEVICE_ENCRYPTION,
212 BLUETOOTH_DEVICE_CLASS_OF_DEVICE,
213 BLUETOOTH_DEVICE_SIMPLE_PAIRING_MODE,
214 BLUETOOTH_DEVICE_PAGE_TIMEOUT,
215 BLUETOOTH_DEVICE_INQUIRY_MODE,
216 BLUETOOTH_DEVICE_MTUS,
217 BLUETOOTH_DEVICE_LE_MTU
221 uint32_t interface_id;
227 enum bluetooth_device_type type;
232 uint16_t hci_revision;
234 uint16_t lmp_subversion;
235 uint16_t manufacturer;
239 uint16_t lmp_subversion;
240 uint16_t manufacturer;
243 uint16_t page_timeout;
244 uint8_t authentication;
246 uint32_t class_of_device;
247 uint16_t voice_setting;
248 uint8_t simple_pairing_mode;
249 uint8_t inquiry_mode;
253 uint16_t acl_packets;
254 uint16_t sco_packets;
259 uint16_t acl_packets;
260 uint16_t iso_packets;
265enum bluetooth_hci_summary_type {
266 BLUETOOTH_HCI_SUMMARY_OPCODE,
267 BLUETOOTH_HCI_SUMMARY_EVENT_OPCODE,
268 BLUETOOTH_HCI_SUMMARY_EVENT,
269 BLUETOOTH_HCI_SUMMARY_SUBEVENT,
270 BLUETOOTH_HCI_SUMMARY_VENDOR_OPCODE,
271 BLUETOOTH_HCI_SUMMARY_VENDOR_EVENT_OPCODE,
272 BLUETOOTH_HCI_SUMMARY_VENDOR_EVENT,
273 BLUETOOTH_HCI_SUMMARY_STATUS,
274 BLUETOOTH_HCI_SUMMARY_STATUS_PENDING,
275 BLUETOOTH_HCI_SUMMARY_REASON,
276 BLUETOOTH_HCI_SUMMARY_HARDWARE_ERROR
280 uint32_t interface_id;
289 uint8_t hardware_error;
292 enum bluetooth_hci_summary_type type;
296 uint32_t interface_id;
303extern int bluetooth_device_tap;
304extern int bluetooth_hci_summary_tap;
314extern uint32_t bluetooth_max_disconnect_in_frame;
317 tvbuff_t *tvb,
int offset,
bool is_local_bd_addr,
318 uint32_t interface_id, uint32_t adapter_id, uint8_t *bdaddr);
320extern void bluetooth_unit_0p625_ms(
char *buf, uint32_t value);
321extern void bluetooth_unit_1p25_ms(
char *buf, uint32_t value);
322extern void bluetooth_unit_0p01_sec(
char *buf, uint32_t value);
323extern void bluetooth_unit_0p125_ms(
char *buf, uint32_t value);
329WS_DLL_PUBLIC
const value_string bluetooth_procedure_count_special[];
330WS_DLL_PUBLIC
const value_string bluetooth_not_supported_0x00_special[];
331WS_DLL_PUBLIC
const value_string bluetooth_not_used_0xff_special[];
333extern void save_local_device_name_from_eir_ad(
tvbuff_t *tvb,
int offset,
Definition packet-bluetooth.h:95
Definition packet-bluetooth.h:220
Definition packet-bluetooth.h:295
Definition packet-bluetooth.h:279
Definition packet-bluetooth.h:182
Definition packet-bluetooth.h:127
Definition packet-bluetooth.h:151
Definition packet-bluetooth.h:161
Definition packet-bluetooth.h:140
Definition packet-bluetooth.h:146
Definition packet-bluetooth.h:187
Definition packet-bluetooth.h:170
Definition packet-bluetooth.h:176
Definition packet_info.h:43
Definition packet-bluetooth.h:133
Definition packet-bluetooth.h:156
Definition packet-ubertooth.h:17
Definition packet-usb.h:141
Definition packet-bluetooth.h:195
Definition value_string.h:169
Definition value_string.h:25
Definition wmem_allocator.h:27
Definition wmem_tree-int.h:48
Definition tvbuff-int.h:35