Ethereal-users: Re: [Ethereal-users] TCP port dissection

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: Thu, 8 Jul 2004 02:31:00 -0700
On Wed, Jul 07, 2004 at 04:19:01PM -0400, Michael_Klamut@xxxxxxxxxxxxxxx wrote:
> Is there a way to simply dissect ports under the TCP protocol
> for user developed applications? For example, if somebody
> wrote an application which always uses TCP port 29000,
> how can you break it out according to port number?

If you've written code to dissect the protocol, it's easy to write code
in the initialization routine for that dissector to make it use TCP port
29000 - see, for example, packet-telnet.c.

If you're asking whether there's a way to write simple code to dissect
packets, that depends on the protocol - there are some protocols, for
example, where you might be able to just cut-and-paste an existing
dissector.