Wireshark-dev: Re: [Wireshark-dev] dissector registration
From: "Luis Ontanon" <luis.ontanon@xxxxxxxxx>
Date: Sun, 28 Jan 2007 20:36:47 +0100
does the foo protocol registers a protocol table (foo.port) in its
registration function?

(see packet.h:258)


On 1/28/07, Vladimir Zherdenovsky <Vladimir.Zherdenovsky@xxxxxxxxxxxxxx> wrote:



Hi,

I want to write a dissector to a "foo" protocol inside UDP that includes
another "goo" protocol inside. How can I register the low level (goo)
dissector?



Example proto_reg_handoff_foo:

dissector_add("udp.port", foo_udp_port, foo_handle);



Example proto_reg_handoff_goo:



the second dissector should work when foo.port = 200.



dissector_add("foo.port", 200, goo_handle);

But low level dissector doesn't work.

Thanks,

Vladimir
_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
http://www.wireshark.org/mailman/listinfo/wireshark-dev




--
This information is top security. When you have read it, destroy yourself.
-- Marshall McLuhan