aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gsm_ipa.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-gsm_ipa.c
parent532a98dc8c827471e143c81517b7ebb321400f84 (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-gsm_ipa.c')
-rw-r--r--epan/dissectors/packet-gsm_ipa.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gsm_ipa.c b/epan/dissectors/packet-gsm_ipa.c
index bb693bca52..50fd2e81b6 100644
--- a/epan/dissectors/packet-gsm_ipa.c
+++ b/epan/dissectors/packet-gsm_ipa.c
@@ -97,6 +97,7 @@ static int hf_ipa_osmo_ctrl_data = -1;
static int hf_ipaccess_msgtype = -1;
static int hf_ipaccess_attr_tag = -1;
static int hf_ipaccess_attr_string = -1;
+static int hf_ipaccess_attribute_unk = -1;
/* Initialize the subtree pointers */
static gint ett_ipa = -1;
@@ -198,8 +199,7 @@ dissect_ipa_attr(tvbuff_t *tvb, int base_offs, proto_tree *tree)
break;
default:
len = 0;
- proto_tree_add_text(tree, tvb, offset+1, 1,
- "unknown attribute type 0x%02x",
+ proto_tree_add_uint(tree, hf_ipaccess_attribute_unk, tvb, offset+1, 1,
attr_type);
break;
};
@@ -421,6 +421,11 @@ void proto_register_ipa(void)
FT_STRING, BASE_NONE, NULL, 0x0,
"String attribute", HFILL}
},
+ {&hf_ipaccess_attribute_unk,
+ {"Unknown attribute type", "ipaccess.attr_unk",
+ FT_UINT8, BASE_HEX, NULL, 0x0,
+ NULL, HFILL}
+ },
};
static gint *ett[] = {