User Guide
Lua Support in Wireshark
198
11.10.6.27. ProtoField.bool(abbr, [name], [desc])
11.10.6.27.1. Arguments
abbr Abbreviated name of the field (the string used in filters)
name (optional) Actual name of the field (the string that appears in the tree)
desc (optional) Description of the field
11.10.6.27.2. Returns
A protofield item to be added to a ProtoFieldArray
11.10.6.28. protofield:__tostring()
Returns a string with info about a protofield (for debugging purposes)
11.10.7. Non Method Functions
11.10.7.1. register_postdissector(proto)
Make a protocol (with a dissector) a postdissector. It will be called for every frame after dissection
11.10.7.1.1. Arguments
proto the protocol to be used as postdissector
11.11. Adding information to the dissection
tree
11.11.1. TreeItem
TreeItems represent information in the packet-details pane. A root TreeItem is passed to dissectors as first
argument.
11.11.1.1. treeitem:add_packet_field()
Adds an child item to a given item, returning the child. tree_item:add_packet_field([proto_field],
[tvbrange], [encoding], ...)
11.11.1.2. treeitem:add()
Adds an child item to a given item, returning the child. tree_item:add([proto_field | proto], [tvbrange],
[label], ...) if the proto_field represents a numeric value (int, uint or float) is to be treated as a Big Endian
(network order) Value.
11.11.1.2.1. Returns
The child item