User Guide
Lua Support in Wireshark
176
11.10.1.1. Dissector.get(name)
Obtains a dissector reference by name
11.10.1.1.1. Arguments
name The name of the dissector
11.10.1.1.2. Returns
The Dissector reference
11.10.1.2. dissector:call(tvb, pinfo, tree)
Calls a dissector against a given packet (or part of it)
11.10.1.2.1. Arguments
tvb The buffer to dissect
pinfo The packet info
tree The tree on which to add the protocol items
11.10.2. DissectorTable
A table of subdissectors of a particular protocol (e.g. TCP subdissectors like http, smtp, sip are added to
table "tcp.port"). Useful to add more dissectors to a table so that they appear in the Decode As... dialog.
11.10.2.1. DissectorTable.new(tablename, [uiname], [type], [base])
Creates a new DissectorTable for your dissector's use.
11.10.2.1.1. Arguments
tablename The short name of the table.
uiname (optional) The name of the table in the User Interface (defaults to the name given).
type (optional) Either FT_UINT* or FT_STRING (defaults to FT_UINT32)
base (optional) Either BASE_NONE, BASE_DEC, BASE_HEX, BASE_OCT,
BASE_DEC_HEX or BASE_HEX_DEC (defaults to BASE_DEC)
11.10.2.1.2. Returns
The newly created DissectorTable
11.10.2.2. DissectorTable.get(tablename)
Obtain a reference to an existing dissector table.
11.10.2.2.1. Arguments
tablename The short name of the table.