Ethereal-dev: Re: [ethereal-dev] 0.8.6: display bug

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

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Mon, 10 Apr 2000 11:44:01 -0700
On Mon, Apr 10, 2000 at 04:37:25PM +0300, Santeri Paavolainen wrote:
> Two packets, and their display in the details window:
> 
>     Flags: 0x06
>         .0.. = Don't fragment: Set
>         ..0. = More fragments: Set
> 
>     Flags: 0x00
>         .0.. = Don't fragment: Not set
>         ..0. = More fragments: Not set
> 
> Ahem... (quick diff between 0.8.4 and 0.8.6 packet.c and packet-ip.c
> didn't show me any obvious change in at least the bitfield manipulation
> routines and their use)

Gilbert, is this a result of the issue mentioned here?

Date: Fri, 07 Apr 2000 05:07:05 -0500
From: Gilbert Ramirez <gram@xxxxxxxxxx>
Subject: Re: [ethereal-dev] new release soon
To: Ben Fowler <wapdev@xxxxxxxxxxxx>
Cc: ethereal-dev@xxxxxxxx

On Thu, Apr 06, 2000 at 06:32:48AM +0100, Ben Fowler wrote:
> I am working on an 'issue' that I have that the FT_BOOLEAN type is
> not working as I expect (the bitmask parameter seems to be ignored),
> but I don't know if there is an ugly head here.
> 
> Ben.

Yeah, that one wouldn't be an "ugly head issue", since that behavior
(bug? feature? :-) is old, not new.

In proto.c, proto_tree_set_uint() takes into account the bitmask.
proto_tree_set_boolean() does not.

The functions that then deal with numbers and bitmasks always
test hfinfo->bitshift, so if we were to set the bitmask in
proto_tree_set_boolean(), we might be lucky enough that it would just
automatically work. :)

--gilbert