User Guide
Lua Support in Wireshark
186
11.10.2.4. dissectortable:remove(pattern, dissector)
Remove a dissector from a table
11.10.2.4.1. Arguments
pattern The pattern to match (either an integer or a string depending on the table's type).
dissector The dissector to add (either an Proto or a Dissector).
11.10.2.5. dissectortable:try(pattern, tvb, pinfo, tree)
Try to call a dissector from a table
11.10.2.5.1. Arguments
pattern The pattern to be matched (either an integer or a string depending on the table's type).
tvb The buffer to dissect
pinfo The packet info
tree The tree on which to add the protocol items
11.10.2.6. dissectortable:get_dissector(pattern)
Try to obtain a dissector from a table.
11.10.2.6.1. Arguments
pattern The pattern to be matched (either an integer or a string depending on the table's type).
11.10.2.6.2. Returns
The dissector handle if found
nil if not found
11.10.3. Pref
A preference of a Protocol.
11.10.3.1. Pref.bool(label, default, descr)
Creates a boolean preference to be added to a Protocol's prefs table.
11.10.3.1.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