4 #.IMPORT ../gsm_map/gsm_map-exp.cnf
18 SubscriberEquipmentNumber
19 SubscriberEquipmentType
23 # 6.4 If these are needed MBMS asn1 should be added.
28 CAMELInformationPDP_PDU
30 GPRSCallEventRecord_PDU
35 &id ObjectIdentifierType
39 &id ObjectIdentifierType
43 IPBinaryAddress/iPBinV6Address iPBinV6Address_choice
45 IPBinaryAddress/iPBinV6Address ABBREV=iPBinV6Address_choice
53 #.FN_PARS ManagementExtension/identifier FN_VARIANT = _str VAL_PTR = &obj_id
55 #.FN_BODY ManagementExtension/information
58 ext_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_gprscdr_managementextension_information, NULL, "Information");
60 offset=call_ber_oid_callback(obj_id, tvb, offset, actx->pinfo, ext_tree, NULL);
62 proto_tree_add_expert(ext_tree, actx->pinfo, &ei_gprscdr_not_dissected, tvb, offset, -1);
68 const char *date_str, *tz_str, *iso_str;
70 /* TimeStamp should be length of nine octets. */
71 len = tvb_reported_length(tvb);
74 expert_add_info_format(actx->pinfo, tree, &ei_gprscdr_timestamp_wrong_format,
75 "Expected nine octets; got %u octets", len);
80 /* The contents of this field are a compact form of the UTCTime format
81 * containing local time plus an offset to universal time. Binary coded
82 * decimal encoding is employed for the digits to reduce the storage and
83 * transmission overhead
84 * e.g. YYMMDDhhmmssShhmm
86 * YY = Year 00 to 99 BCD encoded
87 * MM = Month 01 to 12 BCD encoded
88 * DD = Day 01 to 31 BCD encoded
89 * hh = hour 00 to 23 BCD encoded
90 * mm = minute 00 to 59 BCD encoded
91 * ss = second 00 to 59 BCD encoded
92 * S = Sign 0 = "+", "-" ASCII encoded
93 * hh = hour 00 to 23 BCD encoded
94 * mm = minute 00 to 59 BCD encoded
96 date_str = tvb_bcd_dig_to_str_be(actx->pinfo->pool, tvb, 0, 6, NULL, false);
97 tz_str = tvb_bcd_dig_to_str_be(actx->pinfo->pool, tvb, 7, 2, NULL, false);
99 /* Format result as iso8601 format: YYYYMMDDhhmmss+hhmm.
100 * Field contains only last two digits of year and assume start from 2000 year.
102 iso_str = wmem_strdup_printf(actx->pinfo->pool, "20%s%s%s",
103 date_str, /* YYMMDDhhmmss */
104 tvb_get_string_enc(actx->pinfo->pool, tvb, 6, 1, ENC_ASCII | ENC_NA), /* TZ sign */
105 tz_str); /* TZ hhmm */
107 if (!iso8601_to_nstime(&ts, iso_str, ISO8601_DATETIME_BASIC))
109 expert_add_info_format(actx->pinfo, tree, &ei_gprscdr_timestamp_wrong_format,
110 "TimeStamp invalid format: %s", iso_str);
116 proto_tree_add_time(tree, hf_index, tvb, offset, len, &ts);
119 #.FN_BODY MSTimeZone VAL_PTR = ¶meter_tvb
122 * 1.Octet: Time Zone and 2. Octet: Daylight saving time, see TS 29.060 [75]
124 tvbuff_t *parameter_tvb;
133 data = tvb_get_uint8(parameter_tvb, 0);
134 sign = (data & 0x08) ? '-' : '+';
135 data = (data >> 4) + (data & 0x07) * 10;
137 data2 = tvb_get_uint8(tvb, 1) & 0x3;
139 proto_item_append_text(actx->created_item, " (GMT %%c %%d hours %%d minutes %%s)",
143 val_to_str_const(data2, gprscdr_daylight_saving_time_vals, "Unknown")
146 #.FN_BODY PLMN-Id VAL_PTR = ¶meter_tvb
147 tvbuff_t *parameter_tvb;
155 subtree = proto_item_add_subtree(actx->created_item, ett_gprscdr_plmn_id);
156 dissect_e212_mcc_mnc(parameter_tvb, actx->pinfo, subtree, 0, E212_NONE, true);
158 #.FN_BODY QoSInformation
160 /* This octet string is a 1:1 copy of the contents (i.e. starting with octet 4) of the
161 * Quality of Service (QoS) Profile information element specified in 29.060, ch7.7.34.
165 header_field_info *hfi;
166 hfi = proto_registrar_get_nth(hf_index);
168 offset = decode_qos_umts(tvb, 0, actx->pinfo, tree, hfi->name, 0);
170 #.FN_BODY EPCQoSInformation/aRP
171 proto_tree *ext_tree_arp;
175 * 8.86 Allocation/Retention Priority (ARP)
179 length = tvb_reported_length(tvb);
180 ext_tree_arp = proto_tree_add_subtree(tree, tvb, 0, length, ett_gprscdr_eps_qos_arp, NULL, "aRP");
182 dissect_gtpv2_arp(tvb, actx->pinfo, ext_tree_arp, NULL, length, 0, 0, NULL);
187 #.FN_BODY GGSNPDPRecord/userLocationInformation
189 offset = dissect_gprscdr_uli(tvb, actx, tree, 1);
191 #.FN_BODY GGSNPDPRecordV750/userLocationInformation
193 offset = dissect_gprscdr_uli(tvb, actx, tree, 1);
195 #.FN_BODY EGSNPDPRecord/userLocationInformation
197 offset = dissect_gprscdr_uli(tvb, actx, tree, 1);
199 #.FN_BODY EGSNPDPRecordV750/userLocationInformation
201 offset = dissect_gprscdr_uli(tvb, actx, tree, 1);
203 #.FN_BODY ChangeOfCharConditionV651/userLocationInformation
205 offset = dissect_gprscdr_uli(tvb, actx, tree, 1);
207 #.FN_BODY ChangeOfServiceConditionV750/userLocationInformation
209 offset = dissect_gprscdr_uli(tvb, actx, tree, 1);
211 #.FN_BODY SGWRecord/userLocationInformation
213 offset = dissect_gprscdr_uli(tvb, actx, tree, 2);
215 #.FN_BODY SGWRecord/lastUserLocationInformation
217 offset = dissect_gprscdr_uli(tvb, actx, tree, 2);
219 #.FN_BODY PGWRecord/userLocationInformation
221 offset = dissect_gprscdr_uli(tvb, actx, tree, 2);
223 #.FN_BODY PGWRecord/lastUserLocationInformation
225 offset = dissect_gprscdr_uli(tvb, actx, tree, 2);
227 #.FN_BODY ChangeOfCharCondition/userLocationInformation
229 offset = dissect_gprscdr_uli(tvb, actx, tree, 2);
231 #.FN_BODY ChangeOfServiceCondition/userLocationInformation
233 offset = dissect_gprscdr_uli(tvb, actx, tree, 2);
235 #.FN_BODY RelatedChangeOfCharCondition/userLocationInformation
237 offset = dissect_gprscdr_uli(tvb, actx, tree, 2);
239 #.FN_BODY RelatedChangeOfServiceCondition/userLocationInformation
241 offset = dissect_gprscdr_uli(tvb, actx, tree, 2);
244 proto_tree *ext_tree_pdp_pdn_type;
247 length = tvb_reported_length(tvb);
255 ext_tree_pdp_pdn_type = proto_tree_add_subtree(tree, tvb, 0, length, ett_gprscdr_pdp_pdn_type, NULL, "pDNType");
256 dissect_gtpv2_pdn_type(tvb, actx->pinfo, ext_tree_pdp_pdn_type, NULL, length, 0, 0, NULL);
262 * 7.7.27 End User Address
265 ext_tree_pdp_pdn_type = proto_tree_add_subtree(tree, tvb, 0, length, ett_gprscdr_pdp_pdn_type, NULL, "pDPType");
266 offset = de_sm_pdp_addr(tvb, ext_tree_pdp_pdn_type, actx->pinfo, 0, length, NULL, 0);
270 #.FN_BODY GPRSRecord VAL_PTR = &branch_taken
272 int branch_taken, t_offset = offset;
277 if(branch_taken == -1){
278 get_ber_identifier(tvb, t_offset, NULL, NULL, &tag);
279 item = proto_tree_add_uint(tree, hf_index, tvb, t_offset, 1, tag);
280 dissect_ber_identifier(actx->pinfo, tree, tvb, t_offset, NULL, NULL, &tag);
281 expert_add_info_format(actx->pinfo, item, &ei_gprscdr_choice_not_found,
282 "Record type(BER choice) not found: %%u", tag);
285 IPBinV4Address TYPE = FT_IPv4 DISPLAY = BASE_NONE
286 IPBinV6Address TYPE = FT_IPv6 DISPLAY = BASE_NONE
287 RATType TYPE = FT_UINT32 DISPLAY = BASE_DEC STRINGS = VALS(gprscdr_rat_type_vals)
288 EPCQoSInformation/maxRequestedBandwithUL TYPE = FT_UINT32 DISPLAY = BASE_DEC
289 EPCQoSInformation/maxRequestedBandwithDL TYPE = FT_UINT32 DISPLAY = BASE_DEC
290 EPCQoSInformation/guaranteedBitrateUL TYPE = FT_UINT32 DISPLAY = BASE_DEC
291 EPCQoSInformation/guaranteedBitrateDL TYPE = FT_UINT32 DISPLAY = BASE_DEC
292 EPCQoSInformation/aPNAggregateMaxBitrateUL TYPE = FT_UINT32 DISPLAY = BASE_DEC
293 EPCQoSInformation/aPNAggregateMaxBitrateDL TYPE = FT_UINT32 DISPLAY = BASE_DEC
294 EPCQoSInformation/extendedMaxRequestedBWUL TYPE = FT_UINT32 DISPLAY = BASE_DEC
295 EPCQoSInformation/extendedMaxRequestedBWDL TYPE = FT_UINT32 DISPLAY = BASE_DEC
296 EPCQoSInformation/extendedGBRUL TYPE = FT_UINT32 DISPLAY = BASE_DEC
297 EPCQoSInformation/extendedGBRDL TYPE = FT_UINT32 DISPLAY = BASE_DEC
298 EPCQoSInformation/extendedAPNAMBRUL TYPE = FT_UINT32 DISPLAY = BASE_DEC
299 EPCQoSInformation/extendedAPNAMBRDL TYPE = FT_UINT32 DISPLAY = BASE_DEC
300 CSGId TYPE = FT_UINT32 DISPLAY = BASE_DEC
301 RatingGroupId TYPE = FT_UINT32 DISPLAY = BASE_DEC
302 TimeStamp TYPE = FT_ABSOLUTE_TIME DISPLAY = ABSOLUTE_TIME_LOCAL
306 # Editor modelines - https://www.wireshark.org/tools/modelines.html
311 # indent-tabs-mode: nil
314 # vi: set shiftwidth=2 tabstop=8 expandtab:
315 # :indentSize=2:tabSize=8:noTabs=true: