User Guide

Lua Support in Wireshark
190
severity (optional) One of PI_CHAT, PI_NOTE, PI_WARN, PI_ERROR
11.11.1.6. treeitem:add_expert_info([group], [severity], [text])
Sets the expert flags of the item and adds expert info to the packet.
11.11.1.6.1. Arguments
group (optional) One of PI_CHECKSUM, PI_SEQUENCE, PI_RESPONSE_CODE,
PI_REQUEST_CODE, PI_UNDECODED, PI_REASSEMBLE,
PI_MALFORMED or PI_DEBUG
severity (optional) One of PI_CHAT, PI_NOTE, PI_WARN, PI_ERROR
text (optional) The text for the expert info
11.11.1.7. treeitem:set_generated()
Marks the TreeItem as a generated field (with data infered but not contained in the packet).
11.11.1.8. treeitem:set_hidden()
Should not be used
11.11.1.9. treeitem:set_len(len)
Set TreeItem's length inside tvb, after it has already been created.
11.11.1.9.1. Arguments
len The length to be used.
11.12. Functions for handling packet data
11.12.1. ByteArray
11.12.1.1. ByteArray.new([hexbytes])
Creates a ByteArray Object
11.12.1.1.1. Arguments
hexbytes (optional) A string consisting of hexadecimal bytes like "00 B1 A2" or "1a2b3c4d"
11.12.1.1.2. Returns
The new ByteArray object.
11.12.1.2. bytearray:__concat(first, second)
Concatenate two ByteArrays