diff options
author | Michal Labedzki <michal.labedzki@tieto.com> | 2015-10-24 13:50:38 +0200 |
---|---|---|
committer | Michal Labedzki <michal.labedzki@tieto.com> | 2015-11-20 16:01:40 +0000 |
commit | d0d694039c9f55d39237b6e7a93af13eadab77df (patch) | |
tree | 35c15de4d74579bafe0b1c64a5588f251e07e40c /epan/dissectors/packet-bthci_cmd.c | |
parent | 18d0c94644654b1b308aa26de3e4d06208cacdbc (diff) | |
download | wireshark-d0d694039c9f55d39237b6e7a93af13eadab77df.tar.gz |
Bluetooth: EIR/AD: Add URI item support
In CSSv6 there is one new item: URI (UTF-8)
Change-Id: Iafa7b563aa96a016c7178eceef28edd3a1df5dc4
Reviewed-on: https://code.wireshark.org/review/11980
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
Diffstat (limited to 'epan/dissectors/packet-bthci_cmd.c')
-rw-r--r-- | epan/dissectors/packet-bthci_cmd.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/epan/dissectors/packet-bthci_cmd.c b/epan/dissectors/packet-bthci_cmd.c index 0126064dae..496e654f5e 100644 --- a/epan/dissectors/packet-bthci_cmd.c +++ b/epan/dissectors/packet-bthci_cmd.c @@ -431,6 +431,7 @@ static gint hf_btcommon_eir_ad_oob_flags_address_type = -1; static gint hf_btcommon_eir_ad_oob_flags_reserved = -1; static gint hf_btcommon_eir_ad_connection_interval_min = -1; static gint hf_btcommon_eir_ad_connection_interval_max = -1; +static gint hf_btcommon_eir_ad_uri = -1; static gint hf_btcommon_cod_class_of_device = -1; static gint hf_btcommon_cod_format_type = -1; static gint hf_btcommon_cod_major_service_class_information = -1; @@ -5170,12 +5171,19 @@ dissect_eir_ad_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, bluetoo break; case 0x22: /* LE Secure Connections Confirmation Value" */ proto_tree_add_item(entry_tree, hf_btcommon_eir_ad_le_secure_confirmation_value, tvb, offset, 16, ENC_NA); + offset += 16; break; case 0x23: /* LE Secure Connections Random Value" */ proto_tree_add_item(entry_tree, hf_btcommon_eir_ad_le_secure_random_value, tvb, offset, 16, ENC_NA); + offset += 16; break; + case 0x24: /* URI */ + proto_tree_add_item(entry_tree, hf_btcommon_eir_ad_uri, tvb, offset, length, ENC_UTF_8 | ENC_NA); + offset += length; + + break; case 0x3D: /* 3D Information Data */ proto_tree_add_item(entry_tree, hf_btcommon_eir_ad_3ds_factory_test_mode, tvb, offset, 1, ENC_NA); proto_tree_add_item(entry_tree, hf_btcommon_eir_ad_3ds_reserved, tvb, offset, 1, ENC_NA); @@ -5738,6 +5746,11 @@ proto_register_btcommon(void) FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, + { &hf_btcommon_eir_ad_uri, + {"URI", "btcommon.eir_ad.entry.uri", + FT_STRING, BASE_NONE, NULL, 0x0, + NULL, HFILL} + }, { &hf_btcommon_cod_class_of_device, { "Class of Device", "btcommon.cod.class_of_device", FT_UINT24, BASE_HEX, NULL, 0x0, |