TreeItems represent information in the packet-details pane. A root TreeItem is passed to dissectors as the third argument.
Adds an child item to a given item, returning the child. tree_item:add_packet_field([proto_field], [tvbrange], [encoding], ...)
Adds a child item to this tree item, returning the new child TreeItem. if the protofield represents a numeric value (int, uint or float), then it's treated as a Big Endian (network order) value. This function has a complicated form: 'treeitem:add(protofield, [tvbrange,] [[value], label]])', such that if the second argument is a tvbrange, and a third argument is given, it's a value; but if the second argument is a non-tvbrange type, then it is the value (as opposed to filling that argument with 'nil', which is invalid for this function).
The ProtoField field or Proto protocol object to add to the tree.
The TvbRange of bytes in the packet this tree item covers/represents.
The field's value, instead of the ProtoField/Proto one.
One or more strings to use for the tree item label, instead of the ProtoField/Proto one.
Adds a child item to this tree item, returning the new child TreeItem. if the protofield represents a numeric value (int, uint or float), then it's treated as a Little Endian value. This function has a complicated form: 'treeitem:add_le(protofield, [tvbrange,] [[value], label]])', such that if the second argument is a tvbrange, and a third argument is given, it's a value; but if the second argument is a non-tvbrange type, then it is the value (as opposed to filling that argument with 'nil', which is invalid for this function).
The ProtoField field or Proto protocol object to add to the tree.
The TvbRange of bytes in the packet this tree item covers/represents.
The field's value, instead of the ProtoField/Proto one.
One or more strings to use for the tree item label, instead of the ProtoField/Proto one.
Sets the text of the label
Appends text to the label
Sets the expert flags of the item.
Sets the expert flags of the item and adds expert info to the packet.
Marks the TreeItem as a generated field (with data infered but not contained in the packet).