11.11. Adding information to the dissection tree
From Wireshark
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 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.
Adds (and returns) 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 Little Endian Value.
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).