Wireshark-bugs: [Wireshark-bugs] [Bug 5649] Bug fix: Incorrect presentation of Domain Identifier

Date: Thu, 3 Feb 2011 14:51:58 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5649

--- Comment #3 from Jaap Keuter <jaap.keuter@xxxxxxxxx> 2011-02-03 23:51:58 CET ---
(In reply to comment #2)
> Hi,
> 
> Why does not directly modify the bitmask of the header field?
> 
>                  { &hf_hip_tlv_host_di_type,
>                    { "Domain Identifier Type", "hip.tlv.host_domain_id_type",
> -                    FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL }},
> +                    FT_UINT8, BASE_DEC, NULL, 0xF000, NULL, HFILL }},

Don't forget:

                { &hf_hip_tlv_host_di_len,
                  { "Domain Identifier Length",
"hip.tlv.host_domain_id_length",
-                   FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
+                   FT_UINT16, BASE_DEC, NULL, 0x0FFF, NULL, HFILL }},

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