diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-01-17 14:18:54 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-01-17 14:18:54 +0000 |
commit | 172f98cb3774d33224cb5546e6efcd452b332afd (patch) | |
tree | 992ad376546c697b0d9239211356ad64e53ccb4c /epan/dissectors/packet-gsm_a_common.c | |
parent | 724abbcecdb5ae2cd47480f32c3fec63dc6c6baa (diff) |
Restore dissection of Mobile Identity(revert the code).
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35567 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-gsm_a_common.c')
-rw-r--r-- | epan/dissectors/packet-gsm_a_common.c | 7 |
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( |