diff options
author | Michal Labedzki <michal.labedzki@tieto.com> | 2014-11-16 13:20:04 +0100 |
---|---|---|
committer | Michal Labedzki <michal.labedzki@tieto.com> | 2014-12-15 14:25:53 +0000 |
commit | afacb1c0701a580e103bdc43894cdf1adc833c79 (patch) | |
tree | 2f23f7134a9a77ee7aad6052b5ce74add72edfbc /epan/dissectors/packet-ubertooth.c | |
parent | 79d6a157ba76cd294f11cf6f385cf8e610ccb13f (diff) |
Bluetooth: Fix CRC Init length in Ubertooth
Change-Id: If4292c85598e2449eff54d6680274edc3c3e4fa2
Reviewed-on: https://code.wireshark.org/review/5770
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
Diffstat (limited to 'epan/dissectors/packet-ubertooth.c')
-rw-r--r-- | epan/dissectors/packet-ubertooth.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-ubertooth.c b/epan/dissectors/packet-ubertooth.c index e274b1e990..9e324def9e 100644 --- a/epan/dissectors/packet-ubertooth.c +++ b/epan/dissectors/packet-ubertooth.c @@ -1221,9 +1221,9 @@ dissect_usb_rx_packet(proto_tree *main_tree, proto_tree *tree, packet_info *pinf offset += 4; break; case 1: /* CRC Init */ - proto_tree_add_item(sub_tree, hf_crc_init, tvb, offset, 4, ENC_LITTLE_ENDIAN); - col_append_fstr(pinfo->cinfo, COL_INFO, " 0x%04x", tvb_get_letohl(tvb, offset)); - offset += 4; + proto_tree_add_item(sub_tree, hf_crc_init, tvb, offset, 3, ENC_LITTLE_ENDIAN); + col_append_fstr(pinfo->cinfo, COL_INFO, " 0x%06x", tvb_get_letoh24(tvb, offset)); + offset += 3; break; case 2: /* Hop Interval */ p_item = proto_tree_add_item(sub_tree, hf_hop_interval, tvb, offset, 2, ENC_LITTLE_ENDIAN); @@ -2039,7 +2039,7 @@ proto_register_ubertooth(void) }, { &hf_crc_init, { "CRC Init", "ubertooth.crc_init", - FT_UINT32, BASE_HEX, NULL, 0x00, + FT_UINT24, BASE_HEX, NULL, 0x00, NULL, HFILL } }, { &hf_hop_interval, |