Wireshark Lua dissector reassembly - dissector not called with previous Tvb's data -
i trying write lua dissector data comes in payload of protocol. each packet contains serial data. data needs processed cr-delimited ( 0x0d / \r ) packets, these don't line protocol packets. i'm having problem dissector function not called left on data last time if report don't have enough data parse. for example, have following protocol packets: 1: 01 02 03 0d 2: 11 12 13 3: 21 22 23 24 0d then have 2 dissectable sequences: 01 02 03 0d (the first packet), 11 12 13 21 22 23 24 0d (packet 2 , packet 3). my strategy to: work though each packet, looking offset of \r if not found: set desegment_offset = 0 set desegment_len = desegment_one_more_segment (since don't know how data left) return nil , try again next packet if found in middle: set desegment_offset offset of newline, next packet can tail data set desegment_len = desegment_one_more_segment (since don't know how data left) don't return if found @ end, leave desegmentatio...