Wireshark-dev: Re: [Wireshark-dev] What do you use to get a boolean
From: "Hal Lander" <hal_lander@xxxxxxxxxxx>
Date: Mon, 12 Feb 2007 05:33:05 -0900
I have not got as far as getting the value of the boolean, I was was looking for a function to extract it.

I am also not sure if 'value' really is the value of the boolean or the value of the byte containing the boolean (along with other data)?

Hal





From: Jeff Morriss <jeff.morriss@xxxxxxxxxxx>
Reply-To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx>
To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx>
Subject: Re: [Wireshark-dev] What do you use to get a boolean
Date: Mon, 12 Feb 2007 22:05:09 +0800



Hal Lander wrote:
> Wireshark has a field type FT_BOOLEAN.
> It lets you add the boolean to the tree using
> proto_tree_add_boolean(tree, id, tvb, start, length, value);
> and is supposed to do all the bit shifting for you to extract the single bit
> 0 or 1.
>
> I thought it might also provide some way for me to test the bit value?

Actually the last 'value' is, well, the value of the boolean (on the
system running Wireshark).  You must have already pulled out 'value'
using one of the tvb functions (and bit shifted it, if necessary).

_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
http://www.wireshark.org/mailman/listinfo/wireshark-dev

_________________________________________________________________
FREE online classifieds from Windows Live Expo – buy and sell with people you know http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://expo.live.com?s_cid=Hotmail_tagline_12/06