Comment # 4
on bug 11413
from Daniel Starke
Changing the code to the following does not change the problem for the given
example trace.
do -- namespace
-- declare our protocol
proto = Proto("myProto", "My Protocol")
protoFrameSize = 480
protoMaxPayload = 54
function proto.dissector(buffer, pinfo, tree)
if ((pinfo.number - 2) % 3) < 2 then
tree:add(proto, buffer(0, buffer:len()), "incomplete: " ..
buffer:len())
pinfo.desegment_offset = 0 -- this does not work; it works if >0
pinfo.desegment_len = DESEGMENT_ONE_MORE_SEGMENT
else
tree:add(proto, buffer(0, buffer:len()), "complete: " .. buffer:len())
pinfo.desegment_len = 0
end
end
-- load the rtp.pt table
local rtpTable = DissectorTable.get("rtp.pt")
-- register our protocol to handle payload type ITU-T G.711 PCMA
rtpTable:add(8, proto)
end -- end of namespace
You are receiving this mail because:
- You are watching all bug changes.