Ethereal-dev: Re: [Ethereal-dev] Patch to packet-frame.c for Mate access

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

From: Lars Roland <lars.roland@xxxxxxx>
Date: Mon, 29 Nov 2004 17:29:04 +0100
LEGO schrieb:
Hi,


Could send me the sources of the plugin. I will test it.


I'm in the middle a deep change in how MATE works, so right now MATE
is broken...  However the last version I released uses the same API
calls the new version will.

The last version is attached to this posting:

http://www.ethereal.com/lists/ethereal-dev/200411/msg00242.html


Did you ever build that with MSVC???
The include statements in packet-mate.c are in wrong order. config.h has to come first in all files, then "plugins/plugin_api.h" and "moduleinfo.h", then other, and at last "plugins/plugin_api_defs.h"
And makefile.nmake is an unmodified copy from megaco plugin.


And at the end of the file plugin_init()
has to start with:
G_MODULE_EXPORT void
plugin_init(plugin_address_table_t *pat
#ifndef PLUGINS_NEED_ADDRESS_TABLE
			_U_
#endif
			){
	/* initialise the table of pointers needed in Win32 DLLs */
	plugin_address_table_init(pat);
...


Linux is smart and does not need this stuff, but Windows needs it.

BTW, I get tons of errors when compiling mate_util.c, starting at Line 262 with missing ";". Might be a MSVCism.

Regards,
Lars