10 #ifndef __PACKET_BLUETOOTH_H__ 11 #define __PACKET_BLUETOOTH_H__ 17 #include <epan/wmem/wmem.h> 19 #include "packet-usb.h" 20 #include "packet-ubertooth.h" 22 #define PROTO_DATA_BLUETOOTH_SERVICE_UUID 0 24 #define BLUETOOTH_DATA_SRC 0 25 #define BLUETOOTH_DATA_DST 1 27 #define HCI_H4_TYPE_CMD 0x01 28 #define HCI_H4_TYPE_ACL 0x02 29 #define HCI_H4_TYPE_SCO 0x03 30 #define HCI_H4_TYPE_EVT 0x04 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 49 extern 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;
97 guint32 *adapter_disconnect_in_frame;
107 bt_protocol_data_type previous_protocol_data_type;
114 } previous_protocol_data;
119 guint32 connect_in_frame;
120 guint32 disconnect_in_frame;
124 guint32 interface_id;
138 guint32 change_in_frame;
143 guint32 change_in_frame;
146 #define ROLE_UNKNOWN 0 147 #define ROLE_MASTER 1 151 guint32 interface_id;
157 guint32 interface_id;
163 guint32 interface_id;
168 guint16 manufacturer;
169 guint16 hci_revision;
170 guint16 lmp_subversion;
171 guint32 change_in_frame;
181 enum bluetooth_device_type {
182 BLUETOOTH_DEVICE_BD_ADDR,
183 BLUETOOTH_DEVICE_NAME,
184 BLUETOOTH_DEVICE_LOCAL_ADAPTER,
185 BLUETOOTH_DEVICE_LOCAL_VERSION,
186 BLUETOOTH_DEVICE_REMOTE_VERSION,
187 BLUETOOTH_DEVICE_RESET,
188 BLUETOOTH_DEVICE_SCAN,
189 BLUETOOTH_DEVICE_VOICE_SETTING,
190 BLUETOOTH_DEVICE_AUTHENTICATION,
191 BLUETOOTH_DEVICE_ENCRYPTION,
192 BLUETOOTH_DEVICE_CLASS_OF_DEVICE,
193 BLUETOOTH_DEVICE_SIMPLE_PAIRING_MODE,
194 BLUETOOTH_DEVICE_PAGE_TIMEOUT,
195 BLUETOOTH_DEVICE_INQUIRY_MODE,
196 BLUETOOTH_DEVICE_MTUS,
197 BLUETOOTH_DEVICE_LE_MTU
201 guint32 interface_id;
205 gboolean has_bd_addr;
207 enum bluetooth_device_type type;
212 guint16 hci_revision;
214 guint16 lmp_subversion;
215 guint16 manufacturer;
219 guint16 lmp_subversion;
220 guint16 manufacturer;
223 guint16 page_timeout;
224 guint8 authentication;
226 guint32 class_of_device;
227 guint16 voice_setting;
228 guint8 simple_pairing_mode;
243 enum bluetooth_hci_summary_type {
244 BLUETOOTH_HCI_SUMMARY_OPCODE,
245 BLUETOOTH_HCI_SUMMARY_EVENT_OPCODE,
246 BLUETOOTH_HCI_SUMMARY_EVENT,
247 BLUETOOTH_HCI_SUMMARY_SUBEVENT,
248 BLUETOOTH_HCI_SUMMARY_VENDOR_OPCODE,
249 BLUETOOTH_HCI_SUMMARY_VENDOR_EVENT_OPCODE,
250 BLUETOOTH_HCI_SUMMARY_VENDOR_EVENT,
251 BLUETOOTH_HCI_SUMMARY_STATUS,
252 BLUETOOTH_HCI_SUMMARY_STATUS_PENDING,
253 BLUETOOTH_HCI_SUMMARY_REASON,
254 BLUETOOTH_HCI_SUMMARY_HARDWARE_ERROR
258 guint32 interface_id;
267 guint8 hardware_error;
270 enum bluetooth_hci_summary_type type;
274 guint32 interface_id;
281 extern int bluetooth_device_tap;
282 extern int bluetooth_hci_summary_tap;
292 extern guint32 max_disconnect_in_frame;
295 tvbuff_t *tvb, gint offset, gboolean is_local_bd_addr,
296 guint32 interface_id, guint32 adapter_id, guint8 *bdaddr);
302 extern void save_local_device_name_from_eir_ad(
tvbuff_t *tvb, gint offset,
Definition: wmem_tree-int.h:47
Definition: packet-bluetooth.h:200
Definition: packet-bluetooth.h:162
Definition: packet-bluetooth.h:118
Definition: packet_info.h:44
Definition: packet-bluetooth.h:123
Definition: packet-bluetooth.h:130
Definition: packet-bluetooth.h:150
Definition: packet-ubertooth.h:17
Definition: packet-bluetooth.h:94
Definition: tvbuff-int.h:35
Definition: packet-bluetooth.h:136
Definition: packet-bluetooth.h:273
Definition: packet-bluetooth.h:175
Definition: packet-bluetooth.h:257
Definition: packet-bluetooth.h:141
Definition: packet-bluetooth.h:156
Definition: packet-usb.h:86
Definition: value_string.h:24
Definition: value_string.h:164
Definition: packet-bluetooth.h:167