Ethereal-dev: Re: [ethereal-dev] SMB decoding and generating decoders

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

From: guy@xxxxxxxxxx (Guy Harris)
Date: Thu, 20 May 1999 00:32:29 -0700 (PDT)
> Note that, currently, Ethereal remembers the offset in the file of the
> data for each packet, and, when you click on a packet,
> "packet_list_select_cb()" seeks to that offset and reads the packet data
> into "cf.fh".  There's currently no mechanism for keeping data for more
> than one packet in memory.

That could presumably be done as part of Gilbert's

> The main problem I see is not keeping track of which packets form a
> logical transmission, but grouping the data in each of those packets
> together so that the dissect() routines as they are written won't have
> to be changed. The dissect() routines grab the data from the u_char
> pd[] array, so the easiest solution is to copy all the data from the group
> of packets into one buffer so that the data from one packet would be
> adjacent to the data of the next packet.

suggestion - i.e., read all of the packets into the buffer.