Functions for writing protocols


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.

function

description

Proto.new(name, desc)

Creates a new protocol

proto.dissector

The protocol's dissector

proto.fields

The Fields Table of this dissector

proto.prefs

The preferences of this dissector

proto.prefs_changed

The preferences changed routine of this dissector

proto.init

The init routine of this dissector

proto.name

The name given to this dissector

proto.description

The description given to this dissector


Proto.new(name, desc)


ProtoField

A Protocol field (to be used when adding items to the dissection tree)


ProtoField.new(name, abbr, type, [voidstring], [base], [mask], [descr])

LuaAPI/Proto (last edited 2013-10-17 07:06:33 by WeiHuang)