Ethereal-dev: Re: [ethereal-dev] Dissect routines need to be told the size of the packet data

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

From: Laurent Deniel <deniel@xxxxxxxxxxx>
Date: Sun, 14 Feb 1999 11:57:27 +0100
Richard Sharpe wrote:
> 
> Hi,
> 
> It seems that there are situations where we need access to the length of
> the actual frame/packet data available.
> 
> This seems especially so if the user has not captured enough of the frame,
> we need to abort rather than try to keep decoding when there is no more
> data to decode.
> 

Yes, this is available in dissect routines via the (frame_data) fd->caplen
variable.

--
Laurent DENIEL            | E-mail: deniel@xxxxxxxxxxx
Paris, FRANCE             |         deniel@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
                          | WWW   : http://www.worldnet.fr/~deniel
    All above opinions are personal, unless stated otherwise.