Ethereal-dev: RE: [Ethereal-dev] Questions on dfilter processing

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

From: Biot Olivier <Olivier.Biot@xxxxxxxxxxx>
Date: Wed, 10 Dec 2003 00:06:11 +0100
| From: Gilbert Ramirez
| 
| On Tue, 2003-12-09 at 16:17, Biot Olivier wrote:
| > Hi Gilbert,
| > 
| > I added temporary debugging to semcheck.c, sttype-test.c 
| and I realized that
| > dfw_semcheck() is called 115 times for one trace I have, although
| > colorfilters are disabled (I removed the file). I counted 
| the occurrences of
| > dfw_semcheck() with a static guint. Some sample output:
| 
| I added some printf()'s and ran ethereal. The 113 calls to
| dfilter_compile() come from packet-ncp2222.c upon initialization of
| ethereal. The NCP dissector uses dfilters internally.
| 
| When the user applies a dfilter, dfilter_compile (and 
| dfw_semcheck) are
| called only once.
| 
| So, this appears not to be a bug.

OK that's good news. I just checked in a patched semcheck.c with optional
debug logging, should we want to inspect this again.

Regards,

Olivier