Wonderful. It works. Thanks Graham! On Thu, Feb 13, 2020 at 6:07 PM Graham Bloice <graham.blo...@trihedral.com> wrote:
> > On Thu, 13 Feb 2020 at 16:54, Juanjo Martin Carrascosa <jua...@rti.com> > wrote: > >> 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 >> >> > The endianess is set when adding it to the tree, e.g. tree:add_le(...) > > > -- > Graham Bloice > ___________________________________________________________________________ > 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-requ...@wireshark.org > ?subject=unsubscribe -- Juanjo Martin Principal Application Engineer EMEA Services Lead @ Professional Services Group Office: +34 958 27 88 62 jua...@rti.com www.rti.com
___________________________________________________________________________ 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-requ...@wireshark.org?subject=unsubscribe