Wireshark-dev: [Wireshark-dev] Question about plugin dissector in 1.6.0.
From: Huaqing Wang <whuaqing@xxxxxxxxx>
Date: Tue, 21 Jun 2011 11:53:25 -0400
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?

Thanks a lot.

Michael