set protocol to USBHID for get descriptor request and response

if they're dealing with HID descriptors

Change-Id: Ia529fe373653ddf18e05e8ad148a2f5b5686fa95
Reviewed-on: https://code.wireshark.org/review/7010
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
This commit is contained in:
Martin Kaiser 2015-02-07 19:58:40 +01:00
parent 5457865be3
commit 4282304a57
1 changed files with 2 additions and 0 deletions

View File

@ -1331,6 +1331,8 @@ dissect_usb_hid_control_std_intf(tvbuff_t *tvb, packet_info *pinfo,
/* XXX - can we do some plausibility checks here? */
col_set_str(pinfo->cinfo, COL_PROTOCOL, "USBHID");
/* we can't use usb_conv_info->is_request since usb_conv_info
was replaced with the interface conversation */
if (usb_trans_info->request_in == pinfo->fd->num) {