On 2/25/07, Pete Zaitcev <[EMAIL PROTECTED]> wrote:
> On Sat, 24 Feb 2007 22:55:28 -0500, "Jon Smirl" <[EMAIL PROTECTED]> wrote:
>
> > For example, as far as I can tell there is no info in the capture
> > packet stream describing the attached devices unless I so something
> > like "lsusb -v" while data is being captured. [...]
>
> True, the intent was that the tool would collect this information
> from sysfs, and so it wasn't necessary to encode it into the trace.
> Who knew that people would glue usbmon with Wireshark. But of course
> Wireshark does not have infrastructure for this, because it's not
> a USB specific tool.


Wireshark already has the infrastructure for this in the session
tracking code. When you find a descriptor in the session, you can
decode it and add the data to the session state.
Packets that occur after the descriptor can access the descriptor data
out of the session state. This allows you to implement things like USB
class specific decoders.

Someone has already implemented this for tracking USB classes and has
implemented a USB mass storage decoder. I want to expand it to track
the device ID as well as class so that I can implement device specific
decoders. The Wireshark code that is in CVS doesn't work right for the
usbmon formatted data.

This descriptor data has to go into the capture stream somehow. If I
email you a capture file you aren't going to have the same devices
attached to your PC.

Simplest solution would be to have libpcap make usb calls to enumerate
the descriptors for everything on the bus when it first attaches to
the bus. The data from the calls will get exported via usbmon and end
up in the capture stream. Without this data there is no way to
implement class or device specific decoders.

-- 
Jon Smirl
[EMAIL PROTECTED]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to