Wireshark-dev: [Wireshark-dev] Question on tcp_dissect_pdus

From: Martin Dubuc <martind1111@xxxxxxxxx>
Date: Thu, 19 Sep 2024 08:46:07 -0400
I am writing a dissector that uses tcp_dissect_pdus to reassemble messages that span multiple packets. The get_pdu_length function reads the first four bytes of the first packet, which specifies the message length and returns this value.

I have noticed that in cases where I would not get all packets for a message before the capture file ends, I will not get a chance to dissect this partial message. Is there a way that the dissect_pdu function be called even though we have not received the expected message length when we reach end of capture file so that we could at least dissect what has been received before end of capture file?

Martin