Wireshark mailing list archives

Help with Bit Fields


From: Alex Lindberg <alindber () yahoo com>
Date: Fri, 2 Mar 2012 15:14:32 -0800 (PST)

I have a bit oriented message defined:

<Base> <NumBits> <bits....>

Where Base defines a base value and NumBits determines the number of bits following (in byte groups).  Each bit defines 
the state of the item # Base+Bit Number.

I want to create a display that will  have the Item Number when the tree is expanded like so, as an example, if the 
base is 11 then the 4th bit is item 14 so the output should be:

...1 .... = Item 14 ON

How can this be done?

Thanks a always.
Alex Lindberg

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: