User Guide
Lua Support in Wireshark
189
11.10.5.2. proto.dissector
The protocol's dissector, a function you define
11.10.5.3. proto.fields
The Fields Table of this dissector
11.10.5.4. proto.prefs
The preferences of this dissector
11.10.5.5. proto.init
The init routine of this dissector, a function you define
11.10.5.6. proto.name
The name given to this dissector
11.10.5.7. proto.description
The description given to this dissector
11.10.6. ProtoField
A Protocol field (to be used when adding items to the dissection tree)
11.10.6.1. ProtoField.new(name, abbr, type, [voidstring], [base],
[mask], [descr])
Creates a new field to be used in a protocol.
11.10.6.1.1. Arguments
name Actual name of the field (the string that appears in the tree).
abbr Filter name of the field (the string that is used in filters).
type Field Type: one of ftypes.NONE, ftypes.PROTOCOL,
ftypes.BOOLEAN, ftypes.UINT8, ftypes.UINT16, ftypes.UINT24,
ftypes.UINT32, ftypes.UINT64, ftypes.INT8, ftypes.INT16
ftypes.INT24, ftypes.INT32, ftypes.INT64, ftypes.FLOAT,
ftypes.DOUBLE, ftypes.ABSOLUTE_TIME
ftypes.RELATIVE_TIME, ftypes.STRING, ftypes.STRINGZ,
ftypes.UINT_STRING, ftypes.ETHER, ftypes.BYTES
ftypes.UINT_BYTES, ftypes.IPv4, ftypes.IPv6, ftypes.IPXNET,
ftypes.FRAMENUM, ftypes.PCRE, ftypes.GUID ftypes.OID,
ftypes.EUI64
voidstring (optional) A VoidString object.
base (optional) The representation: one of base.NONE, base.DEC, base.HEX,
base.OCT, base.DEC_HEX, base.HEX_DEC