Functions for writing dissectors


Dissector

function

description

Dissector.get(name)

Obtains a dissector reference by name

dissector:call(tvb, pinfo, tree)

Calls a dissector against a given packet (or part of it)


Dissector.get(name)


dissector:call(tvb, pinfo, tree)


DissectorTable

function

description

DissectorTable.new(tablename, [uiname], [type], [base])

Creates a new DissectorTable for your dissector's use

DissectorTable.get(tablename)

Obtains a reference to an existing dissector table

dissectortable:add(pattern, dissector)

Adds a dissector to a table

dissectortable:remove(pattern, dissector)

Removes a dissector from a table

dissectortable:try(pattern, tvb, pinfo, tree)

Tries to call a dissector from a table

dissectortable:get_dissector(pattern)

Tries to obtain a dissector from a table


DissectorTable.new(tablename, [uiname], [type], [base])


DissectorTable.get(tablename)


dissectortable:add(pattern, dissector)


dissectortable:remove(pattern, dissector)


dissectortable:try(pattern, tvb, pinfo, tree)


dissectortable:get_dissector(pattern)

LuaAPI/Dissector (last edited 2013-10-17 07:06:48 by WeiHuang)