Ethereal-dev: Re: [Ethereal-dev] how to call function "dissect_snmp_pdu" in a plugin 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: Tue, 05 Oct 2004 01:22:45 -0700
Liu Chunfang-CCL083 wrote:

I'm developing a plugin in which I need to call function "dissect_snmp_pdu".

I.e., the protocol you're dissecting has packets in it with SNMP syntax (just as the ATM ILMI protocol uses packets with SNMP syntax)?

Do I need to add this function name to epan\libethereal.def ?

Yes, and you need to arrange that your plugin link with libethereal.lib.

Is this the only way?

The other ways are

	1) don't use Windows

and

	2) add "dissect_snmp_pdu()" to the plugin API.

I assume you can't just do 1).

2) isn't any easier - in fact, it's more complicated - and we really want to deprecate the plugin API mechanism.