aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bluetooth.h
diff options
context:
space:
mode:
authorMichal Labedzki <michal.labedzki@tieto.com>2014-12-31 10:52:28 +0100
committerMichal Labedzki <michal.labedzki@tieto.com>2015-02-03 06:45:07 +0000
commit8ba3d6fbe668748097ce2dc4b8203a1c80b81be0 (patch)
treebe7113f4a4c07663bd4b125a72bfc8f76b3f2ea9 /epan/dissectors/packet-bluetooth.h
parent33f1256e00d4d91a7726fee0847144d4b6ba088b (diff)
Bluetooth: ATT: Dissect GATT level
ATT dissector is now able to decode GATT level fields. This is results of added request-response tracking/share information. Change-Id: I41ac622a38916a7a20f625fa30ac72d7812446c6 Reviewed-on: https://code.wireshark.org/review/6904 Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
Diffstat (limited to 'epan/dissectors/packet-bluetooth.h')
-rw-r--r--epan/dissectors/packet-bluetooth.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/epan/dissectors/packet-bluetooth.h b/epan/dissectors/packet-bluetooth.h
index 1d89e65584..234a25b09e 100644
--- a/epan/dissectors/packet-bluetooth.h
+++ b/epan/dissectors/packet-bluetooth.h
@@ -88,6 +88,11 @@ extern const value_string bluetooth_address_type_vals[];
#define STATUS_SUCCESS 0x00
+#define UUID_GATT_PRIMARY_SERVICE_DECLARATION 0x2800
+#define UUID_GATT_SECONDARY_SERVICE_DECLARATION 0x2801
+#define UUID_GATT_INCLUDE_DECLARATION 0x2802
+#define UUID_GATT_CHARACTERISTIC_DECLARATION 0x2803
+
/* 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
interfaces. Each interface has Y adapter. Each adapter has ACL handle or
@@ -192,6 +197,20 @@ typedef struct _hci_vendor_data_t {
struct _hci_vendor_data_t *previous;
} hci_vendor_data_t;
+typedef struct _uuid_t {
+ guint16 bt_uuid;
+ guint8 size;
+ guint8 data[16];
+} uuid_t;
+
+typedef struct _custom_uuid_t {
+ const guint8 uuid[16];
+ const guint8 size;
+ const gchar *name;
+} custom_uuid_t;
+
+extern const custom_uuid_t custom_uuid[];
+
extern value_string_ext bluetooth_uuid_vals_ext;
extern value_string_ext bluetooth_company_id_vals_ext;
extern guint32 max_disconnect_in_frame;
@@ -199,6 +218,9 @@ extern guint32 max_disconnect_in_frame;
extern gint dissect_bd_addr(gint hf_bd_addr, proto_tree *tree, tvbuff_t *tvb,
gint offset, guint8 *bdaddr);
+extern uuid_t get_uuid(tvbuff_t *tvb, gint offset, gint size);
+extern gchar *print_uuid(uuid_t *uuid);
+
extern void save_local_device_name_from_eir_ad(tvbuff_t *tvb, gint offset,
packet_info *pinfo, guint8 size, bluetooth_data_t *bluetooth_data);