Wireshark-bugs: [Wireshark-bugs] [Bug 5490] USB endpoint direction is displayed wrongly
Date: Sat, 11 Dec 2010 09:20:11 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5490

Márton Németh <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #5601|                            |review_for_checkin?
               Flag|                            |

--- Comment #1 from Márton Németh <[email protected]> 2010-12-11 09:20:09 PST ---
Created an attachment (id=5601)
 --> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=5601)
cleanup USB endpoint direction display

There are two fileds reported from the kernel by
linux/drivers/usb/mon/mon_bin.c: the xfer_type and the epnum. The xfer_type is
at offset 9 and the epnum is at offset 10. The xfer_type only contains the four
possible transfer types: PIPE_CONTROL, PIPE_ISOCHRONOUS, PIPE_BULK and
PIPE_INTERRUPT (see xfer_to_pipe[] in mon_bin.c). The epnum field contains the
direction at the most significant bit and the lower 7 bits contain the endpoint
value itself.

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=drivers/usb/mon/mon_bin.c;h=c436e1e2c3b6274f0fdcdb699ec1fd10a9b2273f;hb=HEAD

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.