I am currently trying to write a dissector for my custom protocol. The protocol as most protocols do, has different types of packets which are identified by the first 8 bits of the header. Now i want to display a different structure per each packet. I do realize that we can register multiple dissectors in the plugin.c as in the samples. However i wish to know how to transfer control to a different dissector per different packet once i have deciphered what type of packet it is from the header ? Do we have to return zero or null from one dissector for the next dissector to be called ?
asked 14 Jul '11, 23:13
retagged 15 Jul '11, 07:57
It's a pretty straightforward process, but it may not be obvious if your are just starting out. Here's one way to do it, using a dissector table. Say you have two dissectors,
Then, in your other dissectors (
You’ll probably wan’t to provide a subset of
answered 15 Jul ‘11, 07:40
edited 15 Jul ‘11, 07:57