User Guide
Lua Support in Wireshark
187
11.10.3.2. Pref.uint(label, default, descr)
Creates an (unsigned) integer preference to be added to a Protocol's prefs table.
11.10.3.2.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
11.10.3.3. Pref.string(label, default, descr)
Creates a string preference to be added to a Protocol's prefs table.
11.10.3.3.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
11.10.3.4. Pref.enum(label, default, descr, enum, radio)
Creates an enum preference to be added to a Protocol's prefs table.
11.10.3.4.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
enum A enum table
radio Radio button (true) or Combobox (false)
11.10.3.5. Pref.range(label, default, descr, max)
Creates a range preference to be added to a Protocol's prefs table.
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, e.g., "53", "10-30", or "10-30,53,55,100-120"
descr A description of what this preference is
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.