Ethereal-dev: Re: [Ethereal-dev] Adding Dissector

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Wed, 01 Feb 2006 10:17:57 -0800
Jasim Tariq wrote:

Can I just add a dissector to ethereal instead of adding it as a plugin?

Given that Ethereal is supplied in source form, yes, you could do that. You'd put the source in the "epan/dissectors" directory, and update "epan/dissectors/Makefile.common" to include its ".c" file in the list of protocol dissectors. The "register" and "register handoff" routines are done a bit differently for built-in dissectors; see the dissector files in "epan/dissector" to see how that's done.