From 9af49506fad893bff3444ea0408e97d97893833b Mon Sep 17 00:00:00 2001 From: etxrab Date: Sat, 11 Feb 2012 16:59:38 +0000 Subject: [PATCH] From Steve Magnani: USB: support filtering of isochronous packets via usb.bInterfaceClass. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6824 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40973 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-usb.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/epan/dissectors/packet-usb.c b/epan/dissectors/packet-usb.c index f74a64689e..696ec682a1 100644 --- a/epan/dissectors/packet-usb.c +++ b/epan/dissectors/packet-usb.c @@ -2210,6 +2210,11 @@ dissect_linux_usb_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent, break; case URB_ISOCHRONOUS: { + guint32 iso_numdesc = 0; + proto_item *ti = NULL; + ti=proto_tree_add_uint(tree, hf_usb_bInterfaceClass, tvb, offset, 0, usb_conv_info->interfaceClass); + PROTO_ITEM_SET_GENERATED(ti); + /* All fields which belong to Linux usbmon headers are in host-endian * byte order. The fields coming from the USB communication are in little * endian format (see usb_20.pdf, chapter 8.1 Byte/Bit ordering). @@ -2218,10 +2223,8 @@ dissect_linux_usb_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent, * than packet was captured then the necessary swapping happens in * wiretap/pcap-common.c, pcap_process_linux_usb_pseudoheader(). */ - guint32 iso_numdesc = 0; if (setup_flag == 0) { - proto_item *ti = NULL; proto_tree *setup_tree = NULL; int type_2; -- 2.34.1