Ethereal-dev: Re: [Ethereal-dev] Capture dialog ringbuffer behaviour

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, 29 Feb 2004 00:18:07 -0800
On Thu, Feb 26, 2004 at 10:40:14AM +0100, Ulf Lamping wrote:
> The "Number of files" field should be always active, and the range
> should be between 1 and 1024 (currently: 0-1024).
> The condition "Number of files > 1" now switches between using a
> single file or the ring buffer implementation. 

So what selects the "Multiple files" mode, as opposed to the "Single
file" mode or the "Ring buffer" mode?

In "Multiple files" mode, the only reasonable "Number of files" value
would be "infinity" - any other value would imply that it'd write no
more than that number of files.

Perhaps, instead:

	if none of the "Next capture file every ..." options are
	checked, Ethereal runs in single file mode;

	if one of the "Next capture file every ..." options is checked,
	then:

		if "Use ring buffer" isn't checked, Ethereal runs in
		"Multiple files" mode, and "Number of files" is grayed
		out;

		if "Use ring buffer" is checked, Ethereal runs in "Ring
		buffer" mode, and "Number of files" is active - and
		should probably have a range between 2 and 1024.