Wireshark-dev: Re: [Wireshark-dev] How to get calling dissector
From: Uli Heilmeier <[email protected]>
Date: Mon, 29 Jan 2018 20:26:03 +0100
Thanks a lot Roland.

Now that I know what to look for packet-sip.c gives a nice example.

Cheers
Uli

Am 29.01.18 um 18:03 schrieb Roland Knall:
> Short answer: packet_info->layers should get you the list of protocols called before yours. If you iterate, you should
> see the other protocols before yours. In packet.c:754 you see the code adding to the list. 
> 
> Not sure though, how stable that interface is. It is pretty in-depth for span, so you should be save to use it, but not
> sure, if it is official, or if there is another way.
> 
> cheers
> Roland
> 
> On Sun, Jan 28, 2018 at 10:59 PM, Uli Heilmeier <[email protected] <mailto:[email protected]>> wrote:
> 
>     Hi all,
> 
>     TL,DR:
>     How does a dissector know which dissector called it?
>