Ethereal-dev: Re: [Ethereal-dev] file.c strangeness

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: Sun, 11 Aug 2002 10:51:37 -0700
On Sun, Aug 11, 2002 at 03:42:06PM +1000, Ronnie Sahlberg wrote:
> In file.c  read_packet()
> there is encapsulated  by the prencence of cf->rfcode
> a few lines wich will do a dissection run.
> 
> Is this for something like read-filters or such?

Yes.  "rf" stands for "Read Filter".

> Well the problem is that when this dissection run is made, the packet has
> not been added to the packet list
> yet and thus pinfo->fd->num is 0 (or undefined?)
> This will break quite a few of ethereals features since lots of stuff needs
> pinfo->fd->num to
> have a meaningful value.
> 
> Is it really used or should it be removed?

I don't know whether any people use read filters either in Ethereal
(specified in the "Open Capture File" dialog box or a "-R" command-line
option) or in Tethereal (specified with a "-R" command-line option).