aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bluetooth.h
diff options
context:
space:
mode:
authorMichal Labedzki <michal.labedzki@tieto.com>2014-12-29 09:45:40 +0100
committerMichal Labedzki <michal.labedzki@tieto.com>2015-01-10 15:36:22 +0000
commitf343710ee2c94221190a729eb21536b15c6c304b (patch)
treefdca9a07a0b72157d053891ff8d5c264cbce2440 /epan/dissectors/packet-bluetooth.h
parent55df238efd77a3d1787a8adc1d5c81d05469bcc8 (diff)
Bluetooth: HCI: Detect Vendor by "Read Local Version Information"
There is information about manufacturer of Bluetooth chip. Also try to detect if that "permament" info is not changed, if so informs user about this rare event (probably there is an issue) Change-Id: I1fa748a67ad7943e61d4445d240f0578b94560fc Reviewed-on: https://code.wireshark.org/review/6408 Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com> Tested-by: Michal Labedzki <michal.labedzki@tieto.com>
Diffstat (limited to 'epan/dissectors/packet-bluetooth.h')
-rw-r--r--epan/dissectors/packet-bluetooth.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/epan/dissectors/packet-bluetooth.h b/epan/dissectors/packet-bluetooth.h
index a2785bebc8..1d89e65584 100644
--- a/epan/dissectors/packet-bluetooth.h
+++ b/epan/dissectors/packet-bluetooth.h
@@ -86,6 +86,7 @@ extern value_string_ext bthci_evt_evt_code_vals_ext;
extern const value_string bluetooth_address_type_vals[];
+#define STATUS_SUCCESS 0x00
/* We support Bluetooth over various interfaces, interface_id and adapter_id
is used to decode further payload. Case: there is a host. Host has X
@@ -124,6 +125,7 @@ typedef struct _bluetooth_data_t {
wmem_tree_t *bdaddr_to_role;
wmem_tree_t *localhost_bdaddr;
wmem_tree_t *localhost_name;
+ wmem_tree_t *hci_vendors;
union {
void *data;
@@ -182,6 +184,13 @@ typedef struct _bluetooth_tap_data_t {
guint32 adapter_id;
} bluetooth_tap_data_t;
+typedef struct _hci_vendor_data_t {
+ guint16 manufacturer;
+ guint16 hci_revision;
+ guint16 lmp_subversion;
+ guint32 change_in_frame;
+ struct _hci_vendor_data_t *previous;
+} hci_vendor_data_t;
extern value_string_ext bluetooth_uuid_vals_ext;
extern value_string_ext bluetooth_company_id_vals_ext;