User Guide

Lua Support in Wireshark
188
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
11.10.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.
11.10.5.1. Proto.new(name, desc)
11.10.5.1.1. Arguments
name The name of the protocol
desc A Long Text description of the protocol (usually lowercase)
11.10.5.1.2. Returns
The newly created protocol