Ethereal-dev: Re: [Ethereal-dev] UDP dissector with unknown port

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: Fri, 3 Oct 2003 15:23:42 -0700
On Fri, Oct 03, 2003 at 10:34:53PM +0200, Erwin Rol wrote:
> How should i register a dissector for a protocol that sits inside UDP
> packets but doesn't have a fixed port number ? 

Either:

	1) make it a heuristic dissector, which checks the packet's
	   contents to see whether it looks like a packet for the
	   protocol, and dissects it and returns TRUE if it is and
	   returns FALSE without dissecting anything or modifying any
	   columes if it isn't

or

	2) make the port number a protocol preference.