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: Guy Harris <gharris@xxxxxxxxx>
Date: Mon, 22 Nov 2004 02:41:14 -0800
alok wrote:

This is the doc in the packet-tcp.h
now when I call the 1st routine as mentioned in 2, and i get the length and go on to call the dissect_pdu, will it take care that it should strip the data which corresponds to the get_pdu_len() part?

No, it will *not*. It is not supposed to; the header that includes the version and length information is considered part of the PDU. That information belongs in the protocol tree just as the rest of the PDU belongs there.