Wireshark-dev: Re: [Wireshark-dev] [PATCH] USB: show unknown descriptors

From: "ronnie sahlberg" <ronniesahlberg@xxxxxxxxx>
Date: Mon, 26 Mar 2007 02:18:27 +0000
On 3/26/07, Charles Lepple <clepple@xxxxxxxxx> wrote:
On 3/25/07, ronnie sahlberg

> The usb dissector is currently divided into two files
> packet-usb.c and packet-usb-masstorage.c
> My idea was to have packet-usb.c only contain the core part of the
> protocol (and maybe also the HUB stuff)  while all other classes are
> pushed out into its own specific file as far as possible.

Makes sense. Some of the type IDs still have to go into packet-usb.c,
of course, but I can start another file for packet-usb-hid.c.

There are currently two "hooks" where an external dissector can attach
to packet-usb.c.
One is for BULK packets and the other is for URB_CONTROL/URB_SUBMIT/type==class

These two are selected by the interfaceClass seen for that <device>.<endpoint>

These are the only two hooks right now since they were the only ones i
needed in order to get MASSTORAGE working.

Since it is very easy to add additional such hooks just tell me which
ones you need for HID and I can add them.

best regards
ronnie sahlberg