Dissector that decodes payload on another layer
Hi,
the dissector for ASTERIX packet-asterix.c in Wireshark dissects data that is sent via network. Until now, we have only seen these data sent over UDP and that is how the dissector works. There is a line in the dissector
dissector_add_uint_with_preference ("udp.port", ASTERIX_PORT, asterix_handle);
that defines that data is sent via UDP and dissector dissects it.
Now, I got a request to decode the same data being sent over MAC/LLC. The data are the same only the way, how they are sent is different.
How can I make the dissector to be able to decode also the MAC/LLC payload, too? All data dissecting code should stay the same. I guess I need to add something like this:
dissector_add_uint_with_preference ("llc.dsap", ???, asterix_handle);
but that is surely not enough, and I don't know how can that be done. I tried to add dissector_add similar to the one shown and some more stuff, but all I got was core dump at Wireshark start. I got some sample traffic for debugging, now I need to make Wireshark to decode it. S sample of a similar decoder, where I could see how that should be done, would be a perfect guidance.
Regards Marko
If you could share a packet of your sample traffic we could have a look.
The sample traffic is here https://drive.google.com/file/d/1JR-2.... The data is the same as for UDP. In MAC/LLC Control Field is set to 0x03.