Wireshark mailing list archives

Re: USB dissection


From: Stephen Fisher <steve () stephen-fisher com>
Date: Wed, 16 Dec 2009 13:13:01 -0700


On Dec 13, 2009, at 12:15 AM, paul () wsh sbrk co uk wrote:

I'm new to wireshark dissectors and am writing a USB dissector that  
is working quite well.
However, it's working because it's the only device on the chosen  
bus. What I'd like to
do is activate my dissector for a given vendor id/product id. At the  
moment my dissector
is a child of usb.bulk which doesn't contain USB descriptors. Since  
there aren't that many
examples of USB dissectors, could anyone explain how I do this?

I don't have much experience with these, but I think a dissector table  
tied to the vendor / product id would be the right way to go here.   
You could then have your USB dissector register with the table's  
values.  The main USB dissector would need to be modified too.


Steve

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: