User Guide
name The abbreviation of this preference
10.4.6.4.2.2. Returns
the current value of the preference
10.4.6.4.2.3. Errors
• unknow Pref type
10.4.6.5. Proto
A new protocol in wireshark. Protocols have more uses, the main one is to dissect a protocol. But
they can be just dummies used to register preferences for other purposes.
10.4.6.5.1. Proto.new(name, desc)
10.4.6.5.1.1. Arguments
name The name of the protocol
desc A Long Text description of the protocol (usually lowercase)
10.4.6.5.1.2. Returns
The newly created protocol
10.4.6.5.2. proto.dissector
the protocol's dissector, a function you define
10.4.6.5.3. proto.fields
the Fields Table of this dissector
10.4.6.5.4. proto.get_prefs
the preferences of this dissector
10.4.6.5.5. proto.init
the init routine of this dissector, a function you define
10.4.6.5.6. proto.name
the name given to this dissector
10.4.6.6. ProtoField
* A Protocol field (to be used when adding items to the dissection tree)
10.4.6.6.1. ProtoField.new(name, abbr, type, [valuestring], [base], [mask],
[descr])
Creates a new field to be used in a protocol.
10.4.6.6.1.1. Arguments
Lua Support in Wireshark
214