User Guide
Lua Support in Wireshark
179
11.10.3.5.1. Arguments
label The Label (text in the right side of the preference input) for this preference
default The default value for this preference
descr A description of what this preference is
range The range
max The maximum value
11.10.3.6. Pref.statictext(label, descr)
Creates a static text preference to be added to a Protocol's prefs table.
11.10.3.6.1. Arguments
label The static text
descr The static text description
11.10.4. Prefs
The table of preferences of a protocol
11.10.4.1. prefs:__newindex(name, pref)
Creates a new preference
11.10.4.1.1. Arguments
name The abbreviation of this preference
pref A valid but still unassigned Pref object
11.10.4.1.2. Errors
• Unknow Pref type
11.10.4.2. prefs:__index(name)
Get the value of a preference setting
11.10.4.2.1. Arguments
name The abbreviation of this preference
11.10.4.2.2. Returns
The current value of the preference
11.10.4.2.3. Errors
• Unknow Pref type