Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You forgot a critical line of code:

if type == 0xae12 then  return true end
return false

Should be:

if type == 0xae12 then
    my_trailer_proto.dissector(buffer, pinfo, tree)
    return true
end
return false

You also have another bug. This line is an error:

pinfo.cols.info:set("proto_flag: " .. proto_flag)

It should be something like:

pinfo.cols.info:set("proto_flag: " .. buffer(length-3,1):uint())