support list for Wireshark wireshark-dev@wireshark.org
Subject: Re: [Wireshark-dev] What do you use to get a boolean
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
To: Developer support list for Wireshark wireshark-dev@wireshark.org
Subject: Re: [Wireshark-dev] What do you use to get a boolean
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
in my mind.
Hal.
From: Stephen Fisher [EMAIL PROTECTED]
Reply-To: Developer support list for Wireshark
wireshark-dev@wireshark.org
To: Developer support list for Wireshark wireshark-dev@wireshark.org
Subject: Re: [Wireshark-dev] What do you use to get a boolean
Date: Wed, 21 Feb 2007 23:25
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
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