aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/asn1/gsm_map/gsm_map.cnf
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2021-03-30 21:39:49 -0400
committerJohn Thacker <johnthacker@gmail.com>2021-03-30 21:48:00 -0400
commit68ba60774f8e055da60352cb710e02817546ca52 (patch)
tree78ff93a2dfa2766372e88a6eaaa08c9660954220 /epan/dissectors/asn1/gsm_map/gsm_map.cnf
parentf29563b8609b75530f78d4a47211b877bdbc8602 (diff)
Prettify and standardize LAC, RAC, SAC, TAC in several ASN.1 dissectors
The LAC, RAC, SAC, and TAC tend to be defined in ASN.1 as OCTET STRINGS of lengths 1, 2, or 3. It generally makes sense to dissect them as FT_UINT[8,16,24], as appropriate, with BASE_DEC_HEX instead of as FT_BYTES, so standardize on that. See commit d6f91a7ca421caa7787c1539bca61f943923fa9c for similar work for S1AP.
Diffstat (limited to 'epan/dissectors/asn1/gsm_map/gsm_map.cnf')
-rw-r--r--epan/dissectors/asn1/gsm_map/gsm_map.cnf9
1 files changed, 9 insertions, 0 deletions
diff --git a/epan/dissectors/asn1/gsm_map/gsm_map.cnf b/epan/dissectors/asn1/gsm_map/gsm_map.cnf
index 654e229aa5..2064549460 100644
--- a/epan/dissectors/asn1/gsm_map/gsm_map.cnf
+++ b/epan/dissectors/asn1/gsm_map/gsm_map.cnf
@@ -1192,6 +1192,15 @@ MAP interfaces
subtree = proto_item_add_subtree(actx->created_item, ett_gsm_map_GeodeticInformation);
dissect_isup_calling_geodetic_location_parameter(parameter_tvb, actx->pinfo, subtree, NULL);
+#.TYPE_ATTR
+LAC TYPE = FT_UINT16 DISPLAY = BASE_DEC_HEX
+#.FN_BODY LAC VAL_PTR = &parameter_tvb HF_INDEX = -1
+ tvbuff_t *parameter_tvb = NULL;
+%(DEFAULT_BODY)s
+ if (parameter_tvb) {
+ actx->created_item = proto_tree_add_item(tree, hf_index, parameter_tvb, 0, 2, ENC_BIG_ENDIAN);
+ }
+
# Make dissector table for V3 messages
#.REGISTER