Ethereal-dev: Re: [ethereal-dev] How do I quickly add search fields for SMB

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

From: Gilbert Ramirez <gramirez@xxxxxxxxxx>
Date: Mon, 31 Jul 2000 13:58:10 -0500
On Sun, 30 Jul 2000 11:57:39 Richard Sharpe wrote:
> 
> Hi,
> 
> I want to add a search field for the SMB commands that are booleans:
> 
>    smb.cmd.negprot  and etc.
> 
> How do I quickly add all these booleans?
> 
> Do I have to have hf_smb_cmd_negprot variables and set them up
> appropriately?
> 

Yep. And of course, you have to use your variable when adding to the
proto_tree;
instead of using proto_tree_add_text(), use one of the other
proto_tree_add_*()
calls.

--gilbert