lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Thank you. I got an answer from a Wireshark Lua developer. The key was

tree:add_packet_field(pf_mgi_header, tvbuf:range(0,4), ENC_EBCDIC)
local mgi_header = tvbuf:range(0,4)
local info_mgi_header = mgi_header:string(ENC_EBCDIC)

Now I can do stuff with info_mgi_header. Those two reference URLs you included will still be handy.

Jerry


On Mon, Oct 24, 2016 at 7:45 AM, Thomas Buergel <Thomas.Buergel@varian.com> wrote:
Not sure I understand everything right, and the Wireshark API is a bit confusing at times... but why are you trying to handle this field as string? From my reading it's 1 byte, starting at offset 19 of your buffer.