This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- trivial protocol example | |
-- inspired by http://wiki.wireshark.org/Lua/Dissectors | |
-- declare our protocol | |
trivial_proto = Proto("trivial","Trivial Protocol") | |
-- create a function to dissect it | |
function trivial_proto.dissector(buffer,pinfo,tree) | |
local trivial_pdu_len = 4 | |
pinfo.cols.protocol = "TRIVIAL" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- trivial protocol example | |
-- inspired by http://wiki.wireshark.org/Lua/Dissectors | |
-- declare our protocol | |
trivial_proto = Proto("trivial","Trivial Protocol") | |
-- create a function to dissect it | |
function trivial_proto.dissector(buffer,pinfo,tree) | |
local offset = pinfo.desegment_offset or 0 | |
local trivial_pdu_len = 4 |