aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-usb.h
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-11-29 13:59:36 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-11-29 13:59:36 +0000
commit21abe5567c897cc3fb0f8db3de12130da954a7ad (patch)
treecdf7e8dcf8c20d6aab90212adf82fa83da09cc27 /epan/dissectors/packet-usb.h
parent910097ffb6dcfd9b3461971655402fe5bcd6d50a (diff)
From Michal Labedzki:
USB: Add support for vendor_id/product_id, bus_id/device_address and class/subclass/protocol tables USB subdissectors can be decoded by class/subclass/protocol. If fail try vendor_id/product_id. bus_id/device_address is intented to use by DecodeBy, so user can decode specified device as need. Part of: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5032 svn path=/trunk/; revision=46283
Diffstat (limited to 'epan/dissectors/packet-usb.h')
-rw-r--r--epan/dissectors/packet-usb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/dissectors/packet-usb.h b/epan/dissectors/packet-usb.h
index 29efb4435d..b7a6dbb9e3 100644
--- a/epan/dissectors/packet-usb.h
+++ b/epan/dissectors/packet-usb.h
@@ -89,6 +89,13 @@ 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
* properly.