desowin / usbpcap

USB packet capture for Windows
http://desowin.org/usbpcap
902 stars 170 forks source link

Support capturing Reset and Stall requests #74

Open desowin opened 5 years ago

desowin commented 5 years ago

URB_FUNCTION_SYNC_RESET_PIPE_AND_CLEAR_STALL, URB_FUNCTION_SYNC_RESET_PIPE and URB_FUNCTION_SYNC_CLEAR_STALL result in control transfers being sent to the device.

As USBPcap tries to present the data, a control transfer structure would have to be inserted manually into the buffer when above mentioned URBs happen. Actually, do not try to be too clever, as it is likely to cause more problems than benefits.