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

2022-02-17 Thread Triton Circonflexe
Hello, > > What is the return value of the main dissector function (the one that gets > > registered with register_dissector) supposed to be? Basically, the length of the decoded PDUs. In many (most?) cases, this is also the length of the packet that was injected into the dissector but there are

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

2022-02-17 Thread Richard Sharpe
On Thu, Feb 17, 2022 at 8:54 AM Jérôme HAMM wrote: > > Hi > > What is the return value of the main dissector function (the one that gets > registered with register_dissector) supposed to be? I don't know :-) > What is supposed to be in its void* data parameter? (I checked the doc but > didn't

[Wireshark-dev] Passing information to a sub dissector

2022-02-17 Thread Jérôme HAMM
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 exampl