Ethereal-dev: Re: [Ethereal-dev] installing plug-ins

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Mon, 5 Nov 2001 15:17:38 -0800 (PST)
> I downloaded Version 0.8.18 and installed the RPM's on my redhad linux
> machine (version 7.1.)  I also downloaded the source code and build a
> plugin, but I can't see to get ethereal to see the plug-in.

For which version of Ethereal did you download the source code?  0.8.18?
There's no guarantee that a plugin built for one release of Ethereal
will work on another.

I'd also suggest that you un-install the 0.8.18 RPM, get rid of the
0.8.18 source and get 0.8.20 source if you have 0.8.18 source, build
Ethereal from source, build your plugin from the 0.8.20 source
directory, install Ethereal and the plugins, and try again.

If it still doesn't work, make sure your plugin:

	exports a string named "version" a (character array, *not*
	a character pointer, i.e.

		G_MODULE_EXPORT const gchar version[] = VERSION;

	*N*O*T*

		G_MODULE_EXPORT const gchar version* = VERSION;
		
	);

	exports a function named "plugin_init()" which calls
	"plugin_address_table_init()" and also registers the protocol
	with the Ethereal core (either by itself or by calling another
	routine in your plugin that does so);

	exports a function named "plugin_reg_handoff()" that registers
	the dissector (so that it's used for a particular TCP or UDP
	port, or a particular Ethernet type, or whatever).