aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2014-07-31 23:15:38 +0200
committerMartin Kaiser <wireshark@kaiser.cx>2014-08-06 19:44:58 +0000
commit083006b631c362c039c3d9e3628b7de2327b0783 (patch)
treeb6357b82a5add771138c9615ef381c23d1f7d900
parent7bf2f2edfd23f837f33cef298b2bc1505074b0ee (diff)
when a linux USB isochronous descriptor is selected,
highlight its data part as well Change-Id: Ia69ac6b1460245ffa44b6ad3b17f07948baf03d4 Reviewed-on: https://code.wireshark.org/review/3463 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Martin Kaiser <wireshark@kaiser.cx>
-rw-r--r--epan/dissectors/packet-usb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/dissectors/packet-usb.c b/epan/dissectors/packet-usb.c
index 323015f7b6..aa993ad756 100644
--- a/epan/dissectors/packet-usb.c
+++ b/epan/dissectors/packet-usb.c
@@ -3167,8 +3167,10 @@ dissect_linux_usb_iso_transfer(packet_info *pinfo _U_, proto_tree *urb_tree,
/* When the ISO status is OK and there is ISO data and this ISO data is
* fully captured then show this data.
*/
- if (!iso_status && iso_len && data_base + iso_off + iso_len <= tvb_captured_length(tvb))
+ if (!iso_status && iso_len && data_base + iso_off + iso_len <= tvb_captured_length(tvb)) {
proto_tree_add_item(iso_desc_tree, hf_usb_iso_data, tvb, data_base + iso_off, iso_len, ENC_NA);
+ proto_tree_set_appendix(iso_desc_tree, tvb, (gint)(data_base+iso_off), (gint)iso_len);
+ }
tvb_memcpy(tvb, (guint8 *)&iso_pad, offset, 4);
proto_tree_add_uint(iso_desc_tree, hf_usb_iso_pad, tvb, offset, 4, iso_pad);