Ethereal-dev: Re: [Ethereal-dev] Introducing additional capture-stop capabilities

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: Tue, 4 Dec 2001 00:27:15 -0800
On Mon, Dec 03, 2001 at 11:33:45PM -0800, Guy Harris wrote:
> > Further, it is now possible to write the capture data to a set of files in
> > ringbuffer style instead of using just one file. This allows the user to do
> > an 'endless' capture without filling up the harddisk. The ringbuffer just
> > works,
> > if real time capturing is disabled. Ringbuffer capturing just creates a
> > configurable
> > number of dump files. To view the content of the files, each of them must be
> > opened manually. The created dump files have a time stamp as part of their
> > name.
> 
> I haven't checked that in yet - it doesn't seem to be working correctly;
> the capture files I see when I stop the capture are extremely short
> (shorter than they should be).  I'll look at that.

The problem was that I'd changed "wtap_get_bytes_written()" *not* to
reset the "bytes written" count (I wouldn't expect that behavior from a
"get" routine), but hadn't added any mechanisms to reset the count.  I
did so, and it works.

I've checked that in.