Ethereal-dev: Re: [Ethereal-dev] How to register dissector only on UDP source port?

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

From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Tue, 11 Oct 2005 12:36:03 +0200 (CEST)
Why not create two heuristic dissectors? If these payloads are very
different they should be able to tell if it's for them and return TRUE.

On Tue, 11 Oct 2005 Lars2B@xxxxxxxxxxxxxxxx wrote:

> Hi list,
>
> I have to dissect some protocols on top of  UDP and I wondered how to
> configure a dissector to be applied only for a source or destination
> port number. Depending on pinfo->destport, I can switch to different
> dissecting functions within one packet-dissector, but I'd like to split
> it up into two separate dissectors as the payload differs a lot.
>
> Thanks,
>
> Lars