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
return false

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

It should be something like:"proto_flag: " .. buffer(length-3,1):uint())