Wireshark-dev: Re: [Wireshark-dev] usb dissecotr: register_dissector question

From: "ronnie sahlberg" <ronniesahlberg@xxxxxxxxx>
Date: Sun, 15 Oct 2006 20:00:17 +0000
yes

On 10/15/06, Joerg Mayer <jmayer@xxxxxxxxx> wrote:
When looking at the dissector, I wondered whether the following patch
would be ok/appropriate:

Index: epan/dissectors/packet-usb.c
===================================================================
--- epan/dissectors/packet-usb.c       (revision 19541)
+++ epan/dissectors/packet-usb.c       (working copy)
@@ -556,7 +556,7 @@
     proto_register_field_array(proto_usb, hf, array_length(hf));
     proto_register_subtree_array(usb_subtrees, array_length(usb_subtrees));

-    register_dissector("eth", dissect_usb, proto_usb);
+    register_dissector("usb", dissect_usb, proto_usb);
 }

 void



 ciao
    Joerg

--
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.
_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
http://www.wireshark.org/mailman/listinfo/wireshark-dev