forked from osmocom/wireshark
Bluetooth: ATT: Use proto_tree_add_new_bytes for UUID128
Change-Id: I018b3e125bcbb6908276dd2b3b9f66def9aa745b Reviewed-on: https://code.wireshark.org/review/6907 Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Tested-by: Michal Labedzki <michal.labedzki@tieto.com> Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
This commit is contained in:
parent
617c733b9f
commit
13f6bce802
|
@ -1178,8 +1178,9 @@ get_uuid(tvbuff_t *tvb, gint offset, gint size)
|
|||
{
|
||||
uuid_t uuid;
|
||||
|
||||
uuid.bt_uuid = 0;
|
||||
|
||||
if (size != 2 && size != 16) {
|
||||
uuid.bt_uuid = 0;
|
||||
uuid.size = 0;
|
||||
|
||||
return uuid;
|
||||
|
|
|
@ -1662,8 +1662,8 @@ dissect_handle_uint(proto_tree *tree, packet_info *pinfo, gint hf,
|
|||
|
||||
if (local_uuid.size == 2)
|
||||
sub_item = proto_tree_add_uint(sub_tree, hf_btatt_uuid16, tvb, 0, 0, local_uuid.bt_uuid);
|
||||
/* else
|
||||
sub_item = proto_tree_add_bytes(sub_tree, hf_btatt_uuid128, tvb, 0, 16, uuid.data);*/
|
||||
else
|
||||
sub_item = proto_tree_add_new_bytes(sub_tree, hf_btatt_uuid128, tvb, 0, 0, local_uuid.data, 16);
|
||||
|
||||
|
||||
PROTO_ITEM_SET_GENERATED(sub_item);
|
||||
|
|
Loading…
Reference in New Issue