aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/gsm_map/gsm_map.cnf
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2012-08-21 15:14:50 +0000
committerPascal Quantin <pascal.quantin@gmail.com>2012-08-21 15:14:50 +0000
commitf2fbb79c49419553c9992ec17db663008d6d5ead (patch)
treecb6b25709c3d06781e02b4cf8997c9636454e5c6 /asn1/gsm_map/gsm_map.cnf
parent9f3c1253f78c826fff0c04e6c5a1668d3e1499f6 (diff)
Add dissection of locationInformation IE in Ericsson proprietary extension
svn path=/trunk/; revision=44605
Diffstat (limited to 'asn1/gsm_map/gsm_map.cnf')
-rw-r--r--asn1/gsm_map/gsm_map.cnf25
1 files changed, 25 insertions, 0 deletions
diff --git a/asn1/gsm_map/gsm_map.cnf b/asn1/gsm_map/gsm_map.cnf
index 6ad0b24955..703147289b 100644
--- a/asn1/gsm_map/gsm_map.cnf
+++ b/asn1/gsm_map/gsm_map.cnf
@@ -915,6 +915,31 @@ if (!actx->value_ptr)
if ((na == 3) && (np==1))/*International Number & E164*/
dissect_e164_cc(tvb, tree, 1, TRUE);
+#.FN_BODY EnhancedCheckIMEI-Arg/locationInformation VAL_PTR = &parameter_tvb
+ tvbuff_t *parameter_tvb;
+ proto_tree *subtree;
+ guint8 rat;
+%(DEFAULT_BODY)s
+ if (parameter_tvb) {
+ subtree = proto_item_add_subtree(actx->created_item, ett_gsm_map_ericsson_locationInformation);
+ rat = tvb_get_guint8(parameter_tvb, 0);
+ proto_tree_add_uint(subtree, hf_gsm_map_ericsson_locationInformation_rat, parameter_tvb, 0, 1, rat);
+ switch (rat) {
+ case 0:
+ /* GSM */
+ proto_tree_add_item(subtree, hf_gsm_map_ericsson_locationInformation_lac, parameter_tvb, 1, 2, ENC_BIG_ENDIAN);
+ proto_tree_add_item(subtree, hf_gsm_map_ericsson_locationInformation_ci, parameter_tvb, 3, 2, ENC_BIG_ENDIAN);
+ break;
+ case 1:
+ /* UMTS */
+ proto_tree_add_item(subtree, hf_gsm_map_ericsson_locationInformation_lac, parameter_tvb, 1, 2, ENC_BIG_ENDIAN);
+ proto_tree_add_item(subtree, hf_gsm_map_ericsson_locationInformation_sac, parameter_tvb, 3, 2, ENC_BIG_ENDIAN);
+ break;
+ default:
+ break;
+ }
+ }
+
#----------------------------------------------------------------------------------------
#.TYPE_ATTR
SS-Code TYPE = FT_UINT8 DISPLAY = BASE_DEC STRINGS = VALS(ssCode_vals)