Wireshark - 1.9 User Guide

Page of 255
Lua Support in Wireshark
190
mask (optional)
The bitmask to be used.
descr (optional)
The description of the field.
11.10.6.1.2. Returns
The newly created ProtoField object
11.10.6.2. ProtoField.uint8(abbr, [name], [base], [valuestring],
[mask], [desc])
11.10.6.2.1. Arguments
abbr
Abbreviated name of the field (the string used in filters)
name (optional)
Actual name of the field (the string that appears in the tree)
base (optional)
One of base.DEC, base.HEX or base.OCT
valuestring (optional)
A table containing the text that corresponds to the values
mask (optional)
Integer mask of this field
desc (optional)
Description of the field
11.10.6.2.2. Returns
A protofield item to be added to a ProtoFieldArray
11.10.6.3. ProtoField.uint16(abbr, [name], [base], [valuestring],
[mask], [desc])
11.10.6.3.1. Arguments
abbr
Abbreviated name of the field (the string used in filters)
name (optional)
Actual name of the field (the string that appears in the tree)
base (optional)
One of base.DEC, base.HEX or base.OCT
valuestring (optional)
A table containing the text that corresponds to the values
mask (optional)
Integer mask of this field
desc (optional)
Description of the field
11.10.6.3.2. Returns
A protofield item to be added to a ProtoFieldArray
11.10.6.4. ProtoField.uint24(abbr, [name], [base], [valuestring],
[mask], [desc])
11.10.6.4.1. Arguments
abbr
Abbreviated name of the field (the string used in filters)