Wireshark-dev: Re: [Wireshark-dev] proto_tree_add_? for adding a calculated value and bitfield
From: Stephen Fisher <[email protected]>
Date: Thu, 23 Nov 2006 11:35:05 -0800
On Thu, Nov 23, 2006 at 01:05:28PM +0100, Martin Peylo wrote:

> I'd like to fix a bug in the TIPC dissector. The header size is given 
> in 4-byte units. So the actual size is (4*hdr_size).
> What function can I use for that if I also want to see the bitfield 
> like when using proto_tree_add_item()? I don't find that when looking 
> at the documentation.

I'm not familiar with the TIPC dissector so I need some clarification on 
what you're trying to acomplish.  Is there a bitfield there already?  
Are you tryin to just display the number above the bitfield as 4*<value 
of hdr_size)?  A sample capture might help me see what you're referring 
to :)