ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] Passing information to a sub dissector

From: Jérôme HAMM <jerome.hamm@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 16 Feb 2022 19:13:56 +0100
Hi

What is the return value of the main dissector function (the one that gets registered with register_dissector) supposed to be? What is supposed to be in its void* data parameter? (I checked the doc but didn't find an answer)

Is there a standard way to pass data to a sub-dissector (for example, two sftp streams could be opened in the same ssh session, how do I tell the subdissector with which "conversation" it should work)?

Cheers