Wireshark-users: [Wireshark-users] Dictionary.xml - Bit mapping of AVP value
From: main tain <maintest@xxxxxxxxxxx>
Date: Mon, 1 Nov 2010 14:40:05 +0000
Hi,

How can I map each bit of the value of an AVP to a boolean field?

I have an Unsigned32 AVP on diameter trace which I can get wireshark to dissect, but instead of presenting me the value of the AVP I would like to have a list of features mapped to each bit of the value. Similar to what you get with the TCP flags.

Example:

If the value is 18 hex, I would like to have:

0---   ----   = Feature 0 = Off
-0--   ----   = Feature 1 = Off
--0-   ----   = Feature 2 = Off
---1   ----   = Feature 3 = On
----   1---   = Feature 4 = On
----   -0--   = Feature 5 = Off
----   --0-   = Feature 6 = Off
----   ---0   = Feature 7 = Off

Thanks in advance,
Martin