cdp: fix item length

reported by check_typed_proto_items.py
packet-cdp.c:298 proto_tree_add_item called for hf_cdp_ttl  -  item type is FT_UINT16 but call has len  1
packet-cdp.c:1225 proto_tree_add_item called for hf_cdp_nrgyz_tlvtype  -  item type is FT_UINT16 but call has len  4
This commit is contained in:
Alexis La Goutte 2020-11-01 20:57:29 +01:00
parent bf4622c05a
commit 7530c337b5
1 changed files with 2 additions and 2 deletions

View File

@ -1299,7 +1299,7 @@ proto_register_cdp(void)
NULL, HFILL }},
{ &hf_cdp_ttl,
{ "TTL", "cdp.ttl", FT_UINT16, BASE_DEC|BASE_UNIT_STRING, &units_second_seconds, 0x0,
{ "TTL", "cdp.ttl", FT_UINT8, BASE_DEC|BASE_UNIT_STRING, &units_second_seconds, 0x0,
NULL, HFILL }},
{ &hf_cdp_checksum,
@ -1319,7 +1319,7 @@ proto_register_cdp(void)
NULL, HFILL }},
{ &hf_cdp_nrgyz_tlvtype,
{ "TLV Type", "cdp.nrgyz.tlv.type", FT_UINT16, BASE_HEX, VALS(type_nrgyz_vals), 0x0,
{ "TLV Type", "cdp.nrgyz.tlv.type", FT_UINT32, BASE_HEX, VALS(type_nrgyz_vals), 0x0,
NULL, HFILL }},
{ &hf_cdp_nrgyz_tlvlength,