Ethereal-dev: Re: [ethereal-dev] Multiple Dissectors

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

Date: Fri, 7 Jul 2000 12:39:52 +0100

> > The WTP dissector could, if it chose, hand the payload to
> > "dissect_http()" if run on a day of the month that's even and hand it to
> > "dissect_bgp()" if run on a day of the month that's odd; doing something
> > that bizarre is "supported" (even though it's silly), because there's no
> > rigid fixed mechanism that Ethereal requires all dissectors to use to
> > hand off payload to the next dissector.
> 
> In which case the WTP dissector can hand off to WSP. I wasn't sure 
> whether it was possible to do this.

We are beginning to round in a sort of triangular circle.

It is essential that the WTP dissector be prepared to hand off
to something because a WTP packet is little more than a couple
of bytes of flags and some optional data (or payload). In respect
of the capture files that I am looking at, the payload is always
a WSP packet (or message, because WSP can be fragmented).

It is a fact that the the 'how' of how to do this can be answered
in that wtp.c can hand off (as Guy would say, to any dissector
or other machanism) in just the same way as packet-udp.c can.

I can only assume that the documentation is not clear on this,
but it is obvious once you start to think about it & start to play
with the code.

Ben.