diff options
Diffstat (limited to 'epan/dissectors/packet-gsm_ipa.c')
-rw-r--r-- | epan/dissectors/packet-gsm_ipa.c | 9 |
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[] = { |