forked from osmocom/wireshark
Use some FT_BYTE "BASE"s in isis dissectors.
Change-Id: I59acb37250f6248e985482e4b972250e295fd638 Reviewed-on: https://code.wireshark.org/review/15469 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
0cadb330dd
commit
886e2bfbb9
|
@ -429,7 +429,7 @@ isis_dissect_nlpid_clv(tvbuff_t *tvb, proto_tree *tree, int hf_nlpid, int offset
|
|||
if ( !tree ) return; /* nothing to do! */
|
||||
|
||||
if (length <= 0) {
|
||||
proto_tree_add_bytes_format_value(tree, hf_nlpid, tvb, offset, length, NULL, "--none--");
|
||||
proto_tree_add_item(tree, hf_nlpid, tvb, offset, length, ENC_NA);
|
||||
} else {
|
||||
first = TRUE;
|
||||
ti = proto_tree_add_bytes_format(tree, hf_nlpid, tvb, offset, length, NULL, "NLPID(s): ");
|
||||
|
|
|
@ -1416,7 +1416,7 @@ proto_register_isis_hello(void)
|
|||
{ &hf_isis_hello_area_address, { "Area address", "isis.hello.area_address", FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }},
|
||||
{ &hf_isis_hello_instance_identifier, { "Instance Identifier", "isis.hello.iid", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
||||
{ &hf_isis_hello_supported_itid, { "Supported ITID", "isis.hello.supported_itid", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
|
||||
{ &hf_isis_hello_clv_nlpid, { "NLPID", "isis.hello.clv_nlpid", FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }},
|
||||
{ &hf_isis_hello_clv_nlpid, { "NLPID", "isis.hello.clv_nlpid", FT_BYTES, BASE_NONE|BASE_ALLOW_ZERO, NULL, 0x0, NULL, HFILL }},
|
||||
{ &hf_isis_hello_clv_ip_authentication, { "NLPID", "isis.hello.clv_ip_authentication", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL }},
|
||||
{ &hf_isis_hello_authentication, { "Authentication", "isis.hello.clv_authentication", FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }},
|
||||
{ &hf_isis_hello_mtid, { "Topology ID", "isis.hello.mtid", FT_UINT16, BASE_DEC|BASE_RANGE_STRING, RVALS(mtid_strings), 0xfff, NULL, HFILL }},
|
||||
|
|
|
@ -1724,7 +1724,6 @@ dissect_isis_lsp_clv_mt_cap_spb_instance(tvbuff_t *tvb, packet_info *pinfo,
|
|||
else {
|
||||
proto_tree *subtree, *ti;
|
||||
int subofs = offset;
|
||||
const guint8 *cist_root_identifier = tvb_get_ptr (tvb, subofs + CIST_ROOT_ID_OFFSET, CIST_ROOT_ID_LEN);
|
||||
guint8 num_trees = tvb_get_guint8(tvb, subofs + NUM_TREES_OFFSET);
|
||||
|
||||
/*************************/
|
||||
|
@ -1732,11 +1731,7 @@ dissect_isis_lsp_clv_mt_cap_spb_instance(tvbuff_t *tvb, packet_info *pinfo,
|
|||
"SPB Instance: Type: 0x%02x, Length: %d", subtype, sublen);
|
||||
|
||||
/*************************/
|
||||
proto_tree_add_bytes_format_value( subtree, hf_isis_lsp_mt_cap_spb_instance_cist_root_identifier, tvb, subofs + CIST_ROOT_ID_OFFSET, CIST_ROOT_ID_LEN,
|
||||
cist_root_identifier, "%08x-%08x-%08x-%08x-%08x-%08x-%08x-%08x",
|
||||
cist_root_identifier[0], cist_root_identifier[1], cist_root_identifier[2],
|
||||
cist_root_identifier[3], cist_root_identifier[4], cist_root_identifier[5],
|
||||
cist_root_identifier[6], cist_root_identifier[7]);
|
||||
proto_tree_add_item(subtree, hf_isis_lsp_mt_cap_spb_instance_cist_root_identifier, tvb, subofs + CIST_ROOT_ID_OFFSET, CIST_ROOT_ID_LEN, ENC_NA);
|
||||
proto_tree_add_item(subtree, hf_isis_lsp_mt_cap_spb_instance_cist_external_root_path_cost, tvb, subofs + CIST_EXT_ROOT_PATH_COST_OFFSET, CIST_EXT_ROOT_PATH_COST_LEN, ENC_BIG_ENDIAN);
|
||||
proto_tree_add_item(subtree, hf_isis_lsp_mt_cap_spb_instance_bridge_priority, tvb, subofs + BRIDGE_PRI_OFFSET, BRIDGE_PRI_LEN, ENC_BIG_ENDIAN);
|
||||
|
||||
|
@ -4406,7 +4401,7 @@ proto_register_isis_lsp(void)
|
|||
},
|
||||
{ &hf_isis_lsp_mt_cap_spb_instance_cist_root_identifier,
|
||||
{ "CIST Root Identifier", "isis.lsp.mt_cap_spb_instance.cist_root_identifier",
|
||||
FT_BYTES, BASE_NONE, NULL, 0x0,
|
||||
FT_BYTES, SEP_DASH, NULL, 0x0,
|
||||
NULL, HFILL }
|
||||
},
|
||||
{ &hf_isis_lsp_mt_cap_spb_instance_cist_external_root_path_cost,
|
||||
|
@ -4816,7 +4811,7 @@ proto_register_isis_lsp(void)
|
|||
},
|
||||
{ &hf_isis_lsp_clv_nlpid,
|
||||
{ "NLPID", "isis.lsp.clv_nlpid",
|
||||
FT_BYTES, BASE_NONE, NULL, 0x0,
|
||||
FT_BYTES, BASE_NONE|BASE_ALLOW_ZERO, NULL, 0x0,
|
||||
NULL, HFILL }
|
||||
},
|
||||
{ &hf_isis_lsp_ip_authentication,
|
||||
|
|
Loading…
Reference in New Issue