Wireshark mailing list archives
Re: How to get calling dissector
From: Uli Heilmeier <zeugs () heilmeier eu>
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 <uh () heilmeier eu <mailto:uh () heilmeier eu>> wrote: Hi all, TL,DR: How does a dissector know which dissector called it?
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- How to get calling dissector Uli Heilmeier (Jan 29)
- Re: How to get calling dissector Roland Knall (Jan 29)
- Re: How to get calling dissector Uli Heilmeier (Jan 29)
- Re: How to get calling dissector Shai Shapira (Jan 30)
- Re: How to get calling dissector Uli Heilmeier (Jan 30)
- Re: How to get calling dissector Uli Heilmeier (Jan 29)
- Re: How to get calling dissector Roland Knall (Jan 29)