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 dissector question

From: Juanjo Martin Carrascosa <juanjo@xxxxxxx>
Date: Thu, 13 Feb 2020 17:53:25 +0100
Hi dev team,

I am writing a Lua dissector. The 4 bytes in my packet encode a little endian uint32. But the following lines decode it as big endian:

local device_status      = ProtoField.new   ("Device Status", "status.device_status", ftypes.UINT32)
...
tree:add(device_status, tvbuf:range(4,4))

How can I fix this?

Regards,
Juanjo Martin