Ethereal-dev: Re: [Ethereal-dev] question regarding protocol dissector as plugin under etherea

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Tue, 7 Oct 2003 14:48:15 -0700

On Oct 7, 2003, at 9:28 AM, Parul Singla wrote:

I'm using Redhat 8.0 on VmWare. I don't know wuts going wrong..!

Neither do I, because I'm using Mac OS X, with the appropriate tweaks to various files for the new plugin and, after putting the plugin source in a new "plugins/xxx-subiss" subdirectory, along with the appropriate Makefiles, I did a make and a make install, and everything works.

When I ran it, it printed

	Calling to register the Athena's protocol

and

	Calling proto_reg_handoff_xxx()

If it's not printing "Calling to register the Athena's protocol" when you run it, it will not register the protocol.

I've attached a patch with the tweaks, and a tarball with the source in the "plugins/xxx-subiss" directory stuff.

I'm doing this from the current CVS version, but it should work with standard 0.9.15 source as well.

Could you also
explain me the purpose of following..? why is tcp or udp port being used..?

So that packets sent to or from that TCP port are dissected as the protocol in question.

None of that has anything to do with registering the protocol, and none of it is necessary for your protocol to show up in the "Edit > Protocols" list. It's registering the dissector for that protocol so that it's called from the dissectors for *other* protocols.

Attachment: patch
Description: Binary data

Attachment: plugin-xxx-subiss.tar.gz
Description: GNU Zip compressed data