From Michal Labedzki via
authoreapache <eapache@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 7 Jan 2014 22:42:50 +0000 (22:42 +0000)
committereapache <eapache@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 7 Jan 2014 22:42:50 +0000 (22:42 +0000)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9610

USB: Update Standard Descriptor Type numbers to 3.1 Specification

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@54636 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-usb.c

index 7593676bada01b9f6a9a338cdcad7a5bb6d1750b..4cc5d78484364b3b389e557ca1f422b21b4a04d2 100644 (file)
@@ -518,6 +518,8 @@ extern value_string_ext ext_usb_com_subclass_vals;
 /* XXX - move into HID dissector */
 #define USB_DT_RPIPE                          34
 
+/* There are only Standard Descriptor Types, Class-specific types are
+   provided by "usb.descriptor" descriptors table*/
 static const value_string std_descriptor_type_vals[] = {
     {USB_DT_DEVICE,                         "DEVICE"},
     {USB_DT_CONFIG,                         "CONFIGURATION"},
@@ -525,11 +527,15 @@ static const value_string std_descriptor_type_vals[] = {
     {USB_DT_INTERFACE,                      "INTERFACE"},
     {USB_DT_ENDPOINT,                       "ENDPOINT"},
     {USB_DT_DEVICE_QUALIFIER,               "DEVICE QUALIFIER"},
-    {USB_DT_OTHER_SPEED_CONFIG,             "OTHER_SPEED CONFIG"},
+    {USB_DT_OTHER_SPEED_CONFIG,             "OTHER SPEED CONFIG"},
     {USB_DT_INTERFACE_POWER,                "INTERFACE POWER"},
     {USB_DT_OTG,                            "OTG"},
     {USB_DT_DEBUG,                          "DEBUG"},
     {USB_DT_INTERFACE_ASSOCIATION,          "INTERFACE ASSOCIATION"},
+    { 0x0F,                                 "BOS"},
+    { 0x10,                                 "DEVICE CAPABILITY"},
+    { 0x30,                                 "SUPERSPEED USB ENDPOINT COMPANION"},
+    { 0x31,                                 "SUPERSPEED PLUS ISOCHRONOUS ENDPOINT COMPANION"},
     {0,NULL}
 };
 static value_string_ext std_descriptor_type_vals_ext =