I\'ve written a dissector in Lua for my custom protocol:
local myproto = Proto("MyProto", "My Custom Pr