Ethereal-dev: Re: [Ethereal-dev] adding a plugin to ethereal

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

From: Guy Harris <[email protected]>
Date: Fri, 23 Jul 2004 01:58:05 -0700
On Fri, Jul 23, 2004 at 03:53:17AM -0500, Enrico Budianto wrote:
> I'm new this mailing list and I need to add a new dissector to ethereal for 
> a project. I was suggested to do it as a plugin.
> I'm using MSVC++ version 6 to compile the dissector and I'm having problem 
> with it. Maybe someone that has done this can give me some pointers.
> A few questions:
> 1. Do I need to include plugin_api.c in my source file?


You include "plugins/plugin_api.h" and "plugin/plugin_api_defs.h"; see
some of the plugins in the Ethereal source.

> 2. Do I need to define PLUGINS_NEED_ADDRESS_TABLE?

No.  It's defined for you when building on Windows.

> 3. What do I need to do with those files generated by Python (Xplugin.... 
> files)?