aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gsm_a_gm.c
diff options
context:
space:
mode:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2011-01-19 06:43:28 +0000
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2011-01-19 06:43:28 +0000
commit07e2a4541ef78df9c49636398665af1e41dba277 (patch)
tree7ef7d634ac239f977624b455770ad0321d747a17 /epan/dissectors/packet-gsm_a_gm.c
parent1e176505a7bcd70c5dfdf19268ea5c3b9fcd5af5 (diff)
Add the RAI value to "add_string"
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35579 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-gsm_a_gm.c')
-rw-r--r--epan/dissectors/packet-gsm_a_gm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/dissectors/packet-gsm_a_gm.c b/epan/dissectors/packet-gsm_a_gm.c
index 49d4066111..d14df010fd 100644
--- a/epan/dissectors/packet-gsm_a_gm.c
+++ b/epan/dissectors/packet-gsm_a_gm.c
@@ -2457,6 +2457,14 @@ de_gmm_rai(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len _U_, gchar
proto_tree_add_item(subtree, hf_gsm_a_gm_rac, tvb, curr_offset+5, 1, FALSE);
curr_offset+=6;
+ if (add_string)
+ {
+ if (add_string[0] == '\0')
+ {
+ g_snprintf(add_string, string_len, " - RAI: %x-%x-%u-%u", mcc,mnc,lac,rac);
+ }
+ }
+
/* no length check possible */