aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-usb.h
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2015-01-19 08:02:26 +0100
committerMartin Kaiser <wireshark@kaiser.cx>2015-02-07 18:19:59 +0000
commit8bf65168ad52137315e215309ddb7559e21504af (patch)
tree9bae64d234143838f890c2877a426f415bd5015f /epan/dissectors/packet-usb.h
parent540347850fce692b8789220344b0a8978dd82e62 (diff)
dissect a get descriptor request and response for the HID report descriptor
treat those two messages as class-specific control messages, handle them inside the USB HID dissector Change-Id: I42d201df4a8fdb94c947b6118c0b50945c306423 Reviewed-on: https://code.wireshark.org/review/7006 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Martin Kaiser <wireshark@kaiser.cx>
Diffstat (limited to 'epan/dissectors/packet-usb.h')
-rw-r--r--epan/dissectors/packet-usb.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/epan/dissectors/packet-usb.h b/epan/dissectors/packet-usb.h
index 840cdc95af..76983d6645 100644
--- a/epan/dissectors/packet-usb.h
+++ b/epan/dissectors/packet-usb.h
@@ -203,6 +203,22 @@ typedef struct _usb_tap_data_t {
#define ENDPOINT_TYPE_BULK 2
#define ENDPOINT_TYPE_INTERRUPT 3
+
+#define USB_SETUP_GET_STATUS 0
+#define USB_SETUP_CLEAR_FEATURE 1
+#define USB_SETUP_SET_FEATURE 3
+#define USB_SETUP_SET_ADDRESS 5
+#define USB_SETUP_GET_DESCRIPTOR 6
+#define USB_SETUP_SET_DESCRIPTOR 7
+#define USB_SETUP_GET_CONFIGURATION 8
+#define USB_SETUP_SET_CONFIGURATION 9
+#define USB_SETUP_GET_INTERFACE 10
+#define USB_SETUP_SET_INTERFACE 11
+#define USB_SETUP_SYNCH_FRAME 12
+#define USB_SETUP_SET_SEL 48
+#define USB_SETUP_SET_ISOCH_DELAY 49
+
+
/* 9.6.6 */
extern const true_false_string tfs_endpoint_direction;