Wireshark-bugs: [Wireshark-bugs] [Bug 7136] HIP dissector: HIT_SUITE_LIST parameter from HIPv2
Date: Wed, 18 Apr 2012 02:52:49 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7136

--- Comment #3 from Francisco Vidal Meca <fvidalmeca@xxxxxxxxx> 2012-04-18 02:52:49 PDT ---
Hi Alexis,

Thanks for the quick response, I did try to apply a 0xF0 bitmask to the
specified field, but the problem is that even ignoring the 4 low order bits of
the field I still have to get the value only from the four higher order bits.

E.g. HIT Suite ID 1 in the message looks like 0x10 , then applying the bitmask
0xF0 I get rid of the non-important data, but then I need to get the value "1"
of that byte instead of the 0x10.

Initial value (0x10) -> Bitmask 0xF0 -> Value 0x10 -> 4 Bits shift -> Value
0x01

The way that is applyied right now is to map the value 0x10 to the ID value "1"
but it shows up 16 since the bit shifting is not done. Tried to make a
workaround but didn't make it.

Best Regards,
Francisco

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.