LUA: tlv_tree:add "hex data sequence"
Hello,
One TLV has length 18... If I try to add to the display tree using:
f.tlvvalue_hex = ProtoField.uint32 ("myproto.tlvvalue_hex", "TLV Value", base.HEX)
tlv_tree:add (f.tlvvalue_hex, buffer(offset, tlvlen))
I get following [(Warning/Malformed) Trying to fetch an unsigned integer with length 18]
How can I just have an hex data sequence displayed instead ? Maybe leveraging on ByteArray ?
Thx!
Comments
this seems to do the trick...
However selecting such information does not get reflected in the raw packet hightlighted... :(
What I'm really looking after is to implement a kinda of payload concept like this:
payload_example
There the amount of selected data is arbitrary yet it still get highlighted.
Any idea ?