On 2/27/07, Pete Zaitcev <[EMAIL PROTECTED]> wrote:
> On Tue, 27 Feb 2007 13:47:41 -0500, "Jon Smirl" <[EMAIL PROTECTED]> wrote:
>
> > This is the structure being returned:
> >[...]
>
> You are confusing the usbmon's API with the "packet format" which
> Paolo manufactured for Wireshark's internal consumption. In his case,
> he has to present some kind of stream of packets. In my case, the model
> is that of tapping into internal API. Think about 'E' events,
> for example. There may be more types in the future (e.g. 'U' for
> unlinks, if we decide that we want those). Naturally, an attempt
> to stuff the usbmon's output into the packet paradigm leaves some lint.
>
> >  If that is the case then the flag_setup field is
> > redundant with the type field and can be eliminated. I would then make
> > the setup[8] presence variable depending on the packet type.
>
> And would I want to do that? Currently, an application can
> determine if a setup packet is present by examining the flag.
> Why waste the code on this if kernel has already examined all
> necessary fields?
>
> > The protocol can be further compressed by not including these fields:
> > xfer_type,  epnum,  devnum,  busnum in completion/error packets.
>
> I'm not interested in variable length structures if the benefit is
> just a couple of bytes. If Paolo wants to waste cycles on compressing
> this internally only to let dissectors to waste more cycles on parsing,
> I am not stopping him. But this is certainly not anything I plan on
> doing.

I'm writing code to undo all of this in Wireshark and turn it back
into a standard USB packet stream. I have to add code to suppress
these unwanted fields since they have been copied into the packet
data.

But it might be better to leave the kernel interface alone and fix all
of this in libpcap. I'd like the stream to contain the minimum
required information and then let Wireshark compute fields from the
minimal data if necessary.

>
> Greetings,
> -- Pete
>


-- 
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