Ethereal-dev: Re: [Ethereal-dev] TCP stream over multiple packets dissector

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: alok <alokdube@xxxxxxxxxx>
Date: Thu, 25 Nov 2004 19:28:58 +0530


3) write a routine that, given a tvbuff that contains all of a single packet in your protocol and no extra data, will dissect that packet;

and then have the TCP dissector for your protocol call tcp_dissect_pdus(), handing it the length value, the "get packet length" routine, and the "dissect one PDU" routine. That routine will not only handle reassembly for you (as you ask for above), it'll also handle the case of multiple PDUs in your protocol within a *single* TCP segment.


it is not a single TCP segment.....it is more like "packet 1--ack_sent--packet 2".
the information is split across packet 1 and 2.
would this help here?

-thanks