Ethereal-dev: Re: [ethereal-dev] Plugin Questions

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

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Mon, 8 May 2000 10:32:42 -0700
On Mon, May 08, 2000 at 05:03:18PM +0200, Gerrit Gehnen wrote:
> The "other dissector" is another PLC-protocol ontop of COTP.

Does it run atop COTP atop full CLNP, or just atop the inactive subset?

> What we *really* need, is to extend this scheme to the plugin-mechanism.
> From the technical point of view no problem, because the
> plugin-mechanism
> uses a list already. We have simply to modify a single
> line (code from packet-tcp - pseudo-diff, because I don't have a real 
> diff at hand):

	...

> The drawback is, that *all* plugins are required to return a TRUE/FALSE
> pair for the result of the dissection.

That's one way of doing it - but another way might be to allow plugins
not to have "protocol", "filter_string" or "dissector" values, with
plugins lacking those values calling "dissector_add()" or
"heur_dissector_add()" in their "plugin_init()" routine, registering
their dissector, or dissectors, as appropriate.