Wireshark - 1.0 Betriebsanweisung

Seite von 284
desc (optional)
description of the field
10.4.6.6.24.2. Returns
a protofield item to be added to a ProtoFieldArray
10.4.6.7. Non Method Functions
10.4.6.7.1. register_postdissector(proto)
make a protocol (with a dissector) a postdissector. It will be called for every frame after dissection
10.4.6.7.1.1. Arguments
proto
the protocol to be used as postdissector
10.4.7. Adding information to the dissection tree
10.4.7.1. TreeItem
TreeItems represent information in the packet-details pane. A root TreeItem is passed to dissectors
as first argument.
10.4.7.1.1. 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.
10.4.7.1.1.1. Returns
The child item
10.4.7.1.2. treeitem:add_le()
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.
10.4.7.1.2.1. Returns
The child item
10.4.7.1.3. treeitem:set_text(text)
sets the text of the label
10.4.7.1.3.1. Arguments
text
The text to be used.
10.4.7.1.4. treeitem:append_text(text)
appends text to the label
10.4.7.1.4.1. Arguments
Lua Support in Wireshark
222