Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 21556: /trunk/epan/ /trunk/epan/: pr

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Tue, 24 Apr 2007 21:43:01 +0200
On Tue, Apr 24, 2007 at 07:24:15PM +0000, etxrab@xxxxxxxxxxxxx wrote:
>  Add a new proto function proto_tree_add_bits() which adds bits to the tree
>  starting at the bit offset given for the number of bits indicated which wll also return
>  the value of the bits.
>  Experimental and for review, documentation to be updated.

OK, I didn't really understand the log message, but when I looked at
proto.c patch, things got clearer.
And here's the feedback:
- what's your motivation behind that patch? (just curious)
- In your patch you mixed to things: tvb_get_bits and a
  proto_tree_add_bits. Pease don't do that. It makes this function
  behave differently from all other proto_tree_add_ functions. Also, the
  tvb_get_ function is missing. If you *really* think that mixing these
  two functions makes sense, then all existing functions (and their
  uses) should be modified to behave similarly, just to stay consistent.

   ciao
      Joerg

-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.