aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gsm_a_common.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2011-01-17 14:18:54 +0000
committerAnders Broman <anders.broman@ericsson.com>2011-01-17 14:18:54 +0000
commitfe7213590bccb2f5bdbb7781e6faebd3432b909c (patch)
tree992ad376546c697b0d9239211356ad64e53ccb4c /epan/dissectors/packet-gsm_a_common.c
parent71d02b545542421b6c187136bee60f8b4ddec31e (diff)
Restore dissection of Mobile Identity(revert the code).
svn path=/trunk/; revision=35567
Diffstat (limited to 'epan/dissectors/packet-gsm_a_common.c')
-rw-r--r--epan/dissectors/packet-gsm_a_common.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/epan/dissectors/packet-gsm_a_common.c b/epan/dissectors/packet-gsm_a_common.c
index 3e776036da..c66bae7c9f 100644
--- a/epan/dissectors/packet-gsm_a_common.c
+++ b/epan/dissectors/packet-gsm_a_common.c
@@ -1974,12 +1974,17 @@ de_mid(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len, gchar *add_st
a_bigbuf[0] = Dgt1_9_bcd.out[(oct & 0xf0) >> 4];
curr_offset++;
+ poctets = tvb_get_ephemeral_string(tvb, curr_offset, len - (curr_offset - offset));
+
+ my_dgt_tbcd_unpack(&a_bigbuf[1], poctets, len - (curr_offset - offset),
+ &Dgt1_9_bcd);
+
proto_tree_add_string_format(tree,
((oct & 0x07) == 3) ? hf_gsm_a_imeisv : hf_gsm_a_imsi,
tvb, curr_offset - 1, len - (curr_offset - offset) + 1,
a_bigbuf,
"BCD Digits: %s",
- tvb_bcd_dig_to_ep_str(tvb, curr_offset - 1, -1, NULL, TRUE));
+ a_bigbuf);
if (sccp_assoc && ! sccp_assoc->calling_party) {
sccp_assoc->calling_party = se_strdup_printf(