Wireshark-dev: Re: [Wireshark-dev] Question about plugin dissector in 1.6.0.
From: Chris Maynard <Christopher.Maynard@xxxxxxxxx>
Date: Wed, 22 Jun 2011 00:51:39 +0000 (UTC)
Huaqing Wang <whuaqing@...> writes:

> Hi, I met this error in wireshark-1.6.0:
> 
> 
> 11:32:38          Err  file packet.c: line 1531 (heur_dissector_add):
assertion failed: (sub_dissectors != NULL)
> Aborted
> 
> The thing I do is I make a directory called foo under plugins.
> and add  AUTHORS    CMakeLists.txt  foo.la    Makefile.am      Makefile.in    
moduleinfo.h      packet-foo.c  packet-foo.lo  plugin.lo
> ChangeLog  COPYING         Makefile  Makefile.common  Makefile.nmake
 moduleinfo.nmake  packet-foo.h  plugin.c       plugin.rc.in
> 
> Files to the directory. Made change to packet-foo.c according to developer's
guide.
> 
> I added foo to basically where gryphon appears in other files. 
> In foo I didn't use heur_dissector_add.
> 
> So why do I met that error, could someone help me about that?

Have you read through doc/README.plugins and doc/README.heuristic (and
doc/README.developer, of course)?