Ethereal-dev: Re: [Ethereal-dev] help on dissector_add

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

From: Kiss Gyula <gkiss@xxxxxxxxxxx>
Date: Tue, 10 Jan 2006 17:34:34 +0100 (CET)
Thanks for your value info for understanding the problem, however this 
still doens't work to me. I tried with "llc.dsap" now but nothing 
happened. I mean that my dissect_abcd() function is not called. (I have 
a capture to test with)

Why isn't my code linked on llc?

Thanks for your time and attention anyway,
best regards,


Gilbert Ramirez <gram@xxxxxxxxxxxxxxx> írta:

> The "dissector table" name space is distinct from the "display filter
> variable" namespace. Sometimes the names are the same, but they 
are
> not required to be the same.
> 
> Looking at packet-llc.c, the two calls to "register_dissector_table"
> register the names "llc.dsap" and "ll.cxid_dsap" (looking at latest
> SVN):
> 
> /* subdissector code */
>     subdissector_table = register_dissector_table("llc.dsap",
>       "LLC SAP", FT_UINT8, BASE_HEX);
>     xid_subdissector_table = register_dissector_table("llc.xid_dsap",
>       "LLC XID SAP", FT_UINT8, BASE_HEX);
> 
> --gilbert
> 
> On 1/10/06, Kiss Gyula <gkiss@xxxxxxxxxxx> wrote:
> > Hi ethereal devs,
> >
> > I have a problem with the following function call:
> >
> > dissector_add( "llc.pid",  0x0088,  abcd_handle );
> >
> > It causes an assertion fail in packet.c at line 672 (I use 0.10.12)
> > I dont understand why it fails, because "llc.pid" works fine as filter.
> > Besides the entire plugin works well if I change this line 
like "tcp.port"
> > or ethertype.
> >
> > I also tried "llc_cisco.pid", however though it started without 
assertion
> > failure, but simply didn't work.
> >
> > Can someone please help me what I do/think wrong?
> >
> > Thank you very much any response,
> >
> >
> > > > _______________________________________________
> > Ethereal-dev mailing list
> > Ethereal-dev@xxxxxxxxxxxx
> > http://www.ethereal.com/mailman/listinfo/ethereal-dev
> >
> >
> 

________________________________________________________________________
A hat lúzer újra együtt! Üvegtigris 2: január 19-től a mozikban!
http://www.uvegtigris.hu