Ethereal-dev: [ethereal-dev] dissector outline help

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

From: Frank Singleton <frank.singleton@xxxxxxxxxxxx>
Date: Mon, 22 May 2000 10:00:11 -0500
Hi,

I have written some dissectors for some layer on top of
TCP and it works ok. But now I wish to create another
protocol on top the one I have just written.

eg:

read some data, disply it ok
ok, now this octet and the reamining should
be a new protocol stack.

ie: I would appreciate if someone could outline
how to implement this. 
I tried running through the nfs on rpc case, but cant
seem to see whats going on.

Really I want to decode some data, and then when 
i hit an octet thats for a new protocol, call
the dissector for that protocol (and subsequent
higher protocols).

Some real or pseudo code would be great.

Is there a preferred way to handle this, or
must I replicate rpc-nfs code ??

Cheers / Frank..

-- 
EUS/GN/V/Z Frank Singleton    ASO Americas BSS
Office : +1 972 583 3251      ECN 800 33251  
Pager  : +1 800 651 1184      Email : eusfrsi@xxxxxxxxxxxxxxx 
Amateur Radio: VK3FCS/KM5WS   Email : frank.singleton@xxxxxxxxxxxx

Hardware: HP Omnibook 4150 running Redhat Linux 6.2 (2.2.14 kernel).