Ethereal-dev: Re: [ethereal-dev] Find parent of current tree

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Thu, 12 Aug 1999 11:22:35 -0700 (PDT)
> What I want --
>     .
>     .
>     |
>     + ------ SMB
>     |        |
>     |        +---- data
>     |
>    +---- SMB Mailslot

To get that, "dissect_smb()" should, when it sees a mailslot operation,
pass to "dissect_smb_mailslot()" (or whatever it's called), as the
"proto_tree *" argument, "tree" - i.e., the "proto_tree" argument it was
handed - rather than "ti", the tree created by

          ti = proto_tree_add_item(tree, proto_smb, offset,
	    END_OF_FRAME, NULL);

or "smb_tree", as created by

	smb_tree = proto_item_add_subtree(ti, ETT_SMB);

That's the way the other protocols get things they call to hang stuff
from the top level.