Wireshark-dev: Re: [Wireshark-dev] What do you use to get a boolean
From: Stephen Fisher <stephentfisher@xxxxxxxxx>
Date: Wed, 21 Feb 2007 23:25:44 -0800
On Mon, Feb 12, 2007 at 06:15:43AM -0900, Hal Lander wrote:
> It does look like the value you pass to
> proto_tree_add_boolean(tree, id, tvb, start, length, value);
> is not a 1 or a 0 it is the raw data byte containing the boolean at the 
> position defined by the mask.
> 
> If I am correct this makes the documentation a bit missleading.

As Guy said, you have to do the masking yourself.  What part of the 
documentation did you find misleading?  I ask so that we can take a look 
at improving it.


Steve