Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] lua decoder accessing info from layers above

From: Fulko Hew <fulko.hew@xxxxxxxxx>
Date: Mon, 12 Oct 2020 19:59:46 -0400

I'm trying to update/improve someone else's decoder written in Lua.
It's for a simple UDP (and TCP) based protocol.
But I need to be able to get access to the upper layer
to be able to decode it easily.

Can someone provide an example of how to determine if the higher layer was UDP or TCP?

Thanks
Fulko