Ethereal-dev: Re: [Ethereal-dev] prioritizing dissectors

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

From: Paolo Abeni <paolo.abeni@xxxxxxxx>
Date: Thu, 16 Feb 2006 18:46:14 +0100
Yair Konfino wrote:

Is there a way to overcome this problem?

Can I prioritize my plug-in against other dissectors?

I had the same problem. It can be solved with some nasty hack. In your plugin_reg_handoff:

   dissector_handle = find_dissector(<core ethereal dissector name>);
   if (dissector_handle)
   {
       dissector_delete("tcp.port", <dissector port>, dissector_handle);
   }
// here add your dissector

see here for the full source of the solution:

http://sourceforge.net/project/showfiles.php?group_id=155260

ciao,

Paolo




--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
DA NON PERDERE: Prova gratis per 15 giorni DVDNet Rent e ricevi a casa tua i migliori film!
* Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=4634&d=16-2