On Wed, Feb 14, 2001 at 01:41:18PM +0100, Guillaume Le Malet wrote:
>
> Hi
> Im still trying to integrate my packet-dissector to ethereal:
> now that the compilation of the packet-*.c is ok I've got a new error
> in dfilter.c line 106: "assertion failed".
> And I really dont know which file to modify. So if you've got
> an idea please mail me.
>
> Thanks.
You're working against Ethereal 0.8.15 or below, right?
Much has changed in the dfilter code since then.
However, the assertion does tell you something.
Look at epan/dfilter.c on line 106. Ethereal is asserting
because you have a duplicate abbreviation for some field.
You should have seen a message print out right before the
assertion happened indicating which symbol was duplicated.
If you're compiling on Windows, you'll have to use tethereal
in order to see this message, as ethereal.exe is a GUI
program and has no access to the console.
(Hmmm... it might be nice to provide our own g_message(),
g_print(), and g_error() routines for Windows GUI programs...)
In the current dfilter code (in CVS), duplicate symbols
are allowed. So you'll need to determine if your case is truly
an error of duplication, or not. If you really do want duplicate
abbreviations for your fields (and in most cases, you don't), then
you'll need to compile against the CVS code, not 0.8.15.
--gilbert