aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ranap.c
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2014-08-19 15:36:33 +0200
committerAnders Broman <a.broman58@gmail.com>2014-08-19 13:46:00 +0000
commit50413192e378ae7a7e05aa69a0da8226ff80e235 (patch)
tree8ce13e0718d7033b039b6de4813b4debf64179e4 /epan/dissectors/packet-ranap.c
parent7cc8b7c16f9a86555efc82c30e1f641e165394c4 (diff)
Use the E212 function to dissect IMSI correct the filter Id string in
E212. Change-Id: I203502b39d4ef216282d305f90c930aca84241bf Reviewed-on: https://code.wireshark.org/review/3718 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-ranap.c')
-rw-r--r--epan/dissectors/packet-ranap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-ranap.c b/epan/dissectors/packet-ranap.c
index e93a16c8c4..1ca6c2bdd0 100644
--- a/epan/dissectors/packet-ranap.c
+++ b/epan/dissectors/packet-ranap.c
@@ -4771,18 +4771,18 @@ dissect_ranap_IMSI(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, prot
if(!imsi_tvb)
return offset;
+ /* Hide the octet string default printout */
+ PROTO_ITEM_SET_HIDDEN(actx->created_item);
+ digit_str = dissect_e212_imsi(imsi_tvb, actx->pinfo, tree, 0, tvb_reported_length(imsi_tvb), FALSE);
+
if ( actx->pinfo->sccp_info
&& actx->pinfo->sccp_info->data.co.assoc
&& ! actx->pinfo->sccp_info->data.co.assoc->calling_party ) {
- guint len = tvb_length(imsi_tvb);
- guint8* bytes = (guint8 *)tvb_memdup(wmem_packet_scope(),imsi_tvb,0,len);
-
actx->pinfo->sccp_info->data.co.assoc->calling_party =
- wmem_strdup_printf(wmem_file_scope(), "IMSI: %s", bytes_to_ep_str(bytes, len) );
+ wmem_strdup_printf(wmem_file_scope(), "IMSI: %s", digit_str );
}
- digit_str = unpack_digits(imsi_tvb, 0);
- proto_tree_add_string(tree, hf_ranap_imsi_digits, imsi_tvb, 0, -1, digit_str);
+
return offset;