aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ilp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2020-04-26 16:33:20 -0700
committerGuy Harris <gharris@sonic.net>2020-04-27 01:53:09 +0000
commit524baee94fd8fab0ce4ba212ef35f39e81a386c0 (patch)
treeb024d4b5d739ad69a84c6fd6f9ac8d951263ad08 /epan/dissectors/packet-ilp.c
parent94556ca7a2502f820e2884550b153d06997b9384 (diff)
Add string encoding values for various BCD encodings, and use them.
Add some ENC_ values for various flavors of packed BCD, and use that instead of explicitly calling tvb_bcd_dig_to_wmem_packet_str() and adding the result. Change-Id: I07511d9d09c9231b610c121cd6ffb3b16fb017a9 Reviewed-on: https://code.wireshark.org/review/36952 Reviewed-by: Guy Harris <gharris@sonic.net>
Diffstat (limited to 'epan/dissectors/packet-ilp.c')
-rw-r--r--epan/dissectors/packet-ilp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ilp.c b/epan/dissectors/packet-ilp.c
index 771277a3a6..9254519287 100644
--- a/epan/dissectors/packet-ilp.c
+++ b/epan/dissectors/packet-ilp.c
@@ -848,7 +848,7 @@ dissect_ilp_T_mdn(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto
proto_tree *subtree;
subtree = proto_item_add_subtree(actx->created_item, ett_ilp_setid);
- proto_tree_add_string(subtree, hf_ilp_mobile_directory_number, mdn_tvb, 0, 8, tvb_bcd_dig_to_wmem_packet_str(mdn_tvb, 0, 8, NULL, FALSE));
+ proto_tree_add_item(subtree, hf_ilp_mobile_directory_number, mdn_tvb, 0, 8, ENC_BCD_DIGITS_0_9);
}