summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-gmr1_common.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2014-08-07 08:36:30 -0400
committerAnders Broman <a.broman58@gmail.com>2014-08-08 05:51:52 +0000
commita22b7075f84b8faf83a3ef05e45ea6d922c5001f (patch)
tree519e874bc10d1231b0dd9632dd91dabbb11502ef /epan/dissectors/packet-gmr1_common.c
parent532a98dc8c827471e143c81517b7ebb321400f84 (diff)
downloadwireshark-a22b7075f84b8faf83a3ef05e45ea6d922c5001f.tar.gz
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-gmr1_common.c')
-rw-r--r--epan/dissectors/packet-gmr1_common.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/epan/dissectors/packet-gmr1_common.c b/epan/dissectors/packet-gmr1_common.c
index a792d611c3..4952a2872f 100644
--- a/epan/dissectors/packet-gmr1_common.c
+++ b/epan/dissectors/packet-gmr1_common.c
@@ -105,6 +105,7 @@ static int hf_com_cm2_cm3_presence = -1;
static int hf_com_cm2_spare4 = -1;
static int hf_com_cm2_a5_3 = -1;
static int hf_com_cm2_a5_2_gmr1 = -1;
+static int hf_com_spare_nibble = -1;
/* [1] 11.5.1.6 - Mobile Earth Station Classmark 2 */
static const value_string com_cm2_revision_vals[] = {
@@ -229,7 +230,7 @@ GMR1_IE_FUNC(gmr1_ie_com_cm2)
/* [1] 11.5.1.8 - Spare Half Octet */
GMR1_IE_FUNC(gmr1_ie_com_spare_nibble)
{
- proto_tree_add_text(tree, tvb, offset, 1, "Spare Half Octet");
+ proto_tree_add_item(tree, hf_com_spare_nibble, tvb, offset, 1, ENC_NA);
return 1;
}
@@ -360,6 +361,11 @@ proto_register_gmr1_common(void)
FT_UINT8, BASE_DEC, VALS(com_cm2_a5_2_gmr1_vals), 0x01,
NULL, HFILL }
},
+ { &hf_com_spare_nibble,
+ { "Spare Half Octet", "gmr1.common.spare_nibble",
+ FT_UINT8, BASE_HEX, NULL, 0x0,
+ NULL, HFILL }
+ },
};
/* Register the protocol name and field description */