diff options
author | Bill Meier <wmeier@newsguy.com> | 2013-09-17 18:55:17 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2013-09-17 18:55:17 +0000 |
commit | 73162842932eb2c124e4e5de5cc7184201a4f0f3 (patch) | |
tree | 3838bb28bbfc803ccafdab2272465ef5c0d0d19e /epan | |
parent | 72f8ca4895349e404a2983ba34f330f102814662 (diff) |
Reference 'BACnetVendorIdentifiers' value_string using
an extended value string.
svn path=/trunk/; revision=52124
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-bacapp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-bacapp.c b/epan/dissectors/packet-bacapp.c index f82facaa2c..63bd1bc674 100644 --- a/epan/dissectors/packet-bacapp.c +++ b/epan/dissectors/packet-bacapp.c @@ -4733,6 +4733,7 @@ BACnetVendorIdentifiers [] = { { 694, "Contec Co., Ltd." }, { 0, NULL } }; +static value_string_ext BACnetVendorIdentifiers_ext = VALUE_STRING_EXT_INIT(BACnetVendorIdentifiers); static int proto_bacapp = -1; static int hf_bacapp_type = -1; @@ -7227,7 +7228,7 @@ fVendorIdentifier (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint of ti = proto_tree_add_text(tree, tvb, offset, lvt+tag_len, "%s: %s (%u)", label, - val_to_str_const(val,BACnetVendorIdentifiers,"Unknown Vendor"), + val_to_str_ext_const(val,&BACnetVendorIdentifiers_ext,"Unknown Vendor"), val); else ti = proto_tree_add_text(tree, tvb, offset, lvt+tag_len, @@ -11129,7 +11130,7 @@ proto_register_bacapp(void) }, { &hf_BACnetVendorIdentifier, { "Vendor Identifier", "bacapp.vendor_identifier", - FT_UINT16, BASE_DEC, VALS(BACnetVendorIdentifiers), 0, NULL, HFILL } + FT_UINT16, BASE_DEC|BASE_EXT_STRING, &BACnetVendorIdentifiers_ext, 0, NULL, HFILL } }, { &hf_BACnetRestartReason, { "Restart Reason", "bacapp.restart_reason", |