DECT-NWK: Fix hf types for bitfields

Bitfields are neither allowed to be of type FT_NONE or FT_UINT_BYTES.
This commit fixes this for padding fields (being max 7 bits of zeroes,
thus FT_UINT8) and one field currently named as FT_UINT_BYTES that can
just be represented as FT_BYTES
This commit is contained in:
Bernhard Dick 2022-12-27 16:33:52 +01:00 committed by Martin Mathieson
parent 1d6cf2f513
commit 4a0d7e9bbb
1 changed files with 4 additions and 4 deletions

View File

@ -3093,7 +3093,7 @@ void proto_register_dect_nwk(void)
{ "ARD", "dect_nwk.s.ie.fixed_identity.ard", FT_UINT64, BASE_HEX, NULL, 0x0, NULL, HFILL }
},
{ &hf_dect_nwk_s_ie_fixed_identity_padding,
{ "Padding", "dect_nwk.s.ie.fixed_identity.padding", FT_NONE, BASE_NONE,
{ "Padding", "dect_nwk.s.ie.fixed_identity.padding", FT_UINT8, BASE_HEX,
NULL, 0x0, NULL, HFILL
}
},
@ -3189,10 +3189,10 @@ void proto_register_dect_nwk(void)
}
},
{ &hf_dect_nwk_s_ie_nwk_assigned_identity_value,
{ "Value", "dect_nwk.s.ie.nwk_assigned_identity.value", FT_UINT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }
{ "Value", "dect_nwk.s.ie.nwk_assigned_identity.value", FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }
},
{ &hf_dect_nwk_s_ie_nwk_assigned_identity_padding,
{ "Padding", "dect_nwk.s.ie.nwk_assigned_identity.padding", FT_NONE, BASE_NONE,
{ "Padding", "dect_nwk.s.ie.nwk_assigned_identity.padding", FT_UINT8, BASE_HEX,
NULL, 0x0, NULL, HFILL
}
},
@ -3257,7 +3257,7 @@ void proto_register_dect_nwk(void)
NULL, 0, "Credit Card ACount Number", HFILL }
},
{ &hf_dect_nwk_s_ie_portable_identity_padding,
{ "Padding", "dect_nwk.s.ie.portable_identity.padding", FT_NONE, BASE_NONE,
{ "Padding", "dect_nwk.s.ie.portable_identity.padding", FT_UINT8, BASE_HEX,
NULL, 0x0, NULL, HFILL
}
},