diff options
author | Michael Mann <mmann78@netscape.net> | 2013-11-12 13:46:51 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2013-11-12 13:46:51 +0000 |
commit | 76bfa2ce1af4867baf4f6990ac233d04a1b3af23 (patch) | |
tree | c665d826554ef5c3256b9a9b3fdc1fc9841ae56c /epan/dissectors/packet-usb.h | |
parent | 2b729ba554b5b5681f2304d0a51b63d3b250a9c0 (diff) |
Remove usb_conv_info_t from packet_info and pass the data directly into the subdissectors. Bug 9413 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9413)
svn path=/trunk/; revision=53274
Diffstat (limited to 'epan/dissectors/packet-usb.h')
-rw-r--r-- | epan/dissectors/packet-usb.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/epan/dissectors/packet-usb.h b/epan/dissectors/packet-usb.h index 16d52148be..19d0afbeab 100644 --- a/epan/dissectors/packet-usb.h +++ b/epan/dissectors/packet-usb.h @@ -79,14 +79,21 @@ typedef struct _usb_trans_info_t { /* Conversation Structure * there is one such structure for each device/endpoint conversation */ struct _usb_conv_info_t { + guint16 bus_id; + guint8 device_address; + guint8 endpoint; + gint direction; + guint16 interfaceClass; /* Interface Descriptor - class */ guint16 interfaceSubclass; /* Interface Descriptor - subclass */ guint16 interfaceProtocol; /* Interface Descriptor - protocol */ guint8 interfaceNum; /* Most recent interface number */ + guint16 deviceVendor; /* Device Descriptor - USB Vendor ID */ guint32 deviceProduct; /* Device Descriptor - USB Product ID - MSBs only for encoding unknown */ wmem_tree_t *transactions; usb_trans_info_t *usb_trans_info; /* pointer to the current transaction */ + void *class_data; /* private class/id decode data */ }; @@ -98,12 +105,6 @@ typedef struct _usb_tap_data_t { usb_trans_info_t *trans_info; } usb_tap_data_t; -typedef struct _usb_data_t { - guint16 bus_id; - guint8 device_address; - guint8 endpoint; - gint direction; -} usb_data_t; /* This is the endpoint number used for "no endpoint" or the fake endpoint * for the host side since we need two endpoints to manage conversations |