diff options
author | Michael Mann <mmann78@netscape.net> | 2014-08-07 08:36:30 -0400 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-08-08 05:51:52 +0000 |
commit | a22b7075f84b8faf83a3ef05e45ea6d922c5001f (patch) | |
tree | 519e874bc10d1231b0dd9632dd91dabbb11502ef /epan/dissectors/packet-fcsb3.c | |
parent | 532a98dc8c827471e143c81517b7ebb321400f84 (diff) |
Eliminate proto_tree_add_text from some dissectors.
Change-Id: I6f1710a093fc548c718defa9b40ab68877ede977
Reviewed-on: https://code.wireshark.org/review/3470
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-fcsb3.c')
-rw-r--r-- | epan/dissectors/packet-fcsb3.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/epan/dissectors/packet-fcsb3.c b/epan/dissectors/packet-fcsb3.c index fe6e94fab8..afd6dafcf5 100644 --- a/epan/dissectors/packet-fcsb3.c +++ b/epan/dissectors/packet-fcsb3.c @@ -105,6 +105,7 @@ static int hf_sbccs_dib_ctlparam_ro = -1; static int hf_sbccs_dib_linkctlinfo = -1; static int hf_sbccs_dib_linkctlinfo_ctcconn = -1; static int hf_sbccs_dib_linkctlinfo_ecrcg = -1; +static int hf_sbccs_logical_path = -1; /* Initialize the subtree pointers */ static gint ett_fc_sbccs = -1; @@ -800,8 +801,8 @@ static void dissect_fc_sbccs_dib_link_hdr (tvbuff_t *tvb, packet_info *pinfo, offset += 16; while (i < link_payload_len) { - proto_tree_add_text (tree, tvb, offset, 4, - "Logical Paths %d-%d: %s", + proto_tree_add_bytes_format(tree, hf_sbccs_logical_path, tvb, offset, 4, + NULL, "Logical Paths %d-%d: %s", i*8, ((i+4)*8) - 1, tvb_bytes_to_ep_str_punct (tvb, offset, 4, ':')); i += 4; @@ -1254,6 +1255,11 @@ proto_register_fcsbccs (void) { "Enhanced CRC Generation", "fcsb3.linkctlinfo.ecrcg", FT_BOOLEAN, 16, TFS(&tfs_supported_not_supported), 0x01, NULL, HFILL}}, + + { &hf_sbccs_logical_path, + { "Logical Path", "fcsb3.logical_path", + FT_BYTES, BASE_NONE, NULL, 0x0, + NULL, HFILL}}, }; |