Ethereal-dev: Re: [Ethereal-dev] Changes in the filter GUI

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

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Mon, 26 Jan 2004 20:15:17 +0100
Biot Olivier wrote:

Very nice!
:-)

However there's still a built-in hard-coded limit on the size of a filter
string. Try for instance filtering out a dozen of TCP streams, and your
filter string will be truncated at some point, resulting in a dfilter
compile error. Maybe we want to get rid of the fixed-length buffer and go to
a dynamically allocated buffer (this may require the creation of an own text
input widget, capturing keyboard input events and reallocating a new buffer
whenever the previous buffer is full)?


Sorry, I tried exactly the thing you'd mentioned and it all worked well.

After I had a look at the GUI code, I don't think the problem is in that part.

The text entry will limit to 2047 in GTK1 and G_MAXUSHORT (65535?) in GTK2, so this shouldn't be a problem.

Regards, ULFL