Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

packet-gsm_a_common.h
1 /* packet-gsm_a_common.h
2 *
3 * Reference [3]
4 * Mobile radio interface Layer 3 specification;
5 * Core network protocols;
6 * Stage 3
7 * (3GPP TS 24.008 version 4.7.0 Release 4)
8 * (ETSI TS 124 008 V6.8.0 (2005-03))
9 *
10 * Reference [5]
11 * Point-to-Point (PP) Short Message Service (SMS)
12 * support on mobile radio interface
13 * (3GPP TS 24.011 version 4.1.1 Release 4)
14 *
15 * Reference [7]
16 * Mobile radio interface Layer 3 specification;
17 * Core network protocols;
18 * Stage 3
19 * (3GPP TS 24.008 version 5.9.0 Release 5)
20 *
21 * Reference [8]
22 * Mobile radio interface Layer 3 specification;
23 * Core network protocols;
24 * Stage 3
25 * (3GPP TS 24.008 version 6.7.0 Release 6)
26 * (3GPP TS 24.008 version 6.8.0 Release 6)
27 *
28 * Reference [9]
29 * Digital cellular telecommunications system (Phase 2+);
30 * Group Call Control (GCC) protocol
31 * (GSM 04.68 version 8.1.0 Release 1999)
32 *
33 * Reference [10]
34 * Digital cellular telecommunications system (Phase 2+);
35 * Broadcast Call Control (BCC) protocol
36 * (3GPP TS 44.069 version 11.0.0 Release 11)
37 *
38 * Reference [11]
39 * Mobile radio interface Layer 3 specification;
40 * Core network protocols;
41 * Stage 3
42 * (3GPP TS 24.008 version 13.7.0 Release 13)
43 *
44 * Reference [12]
45 * Mobile radio interface Layer 3 specification;
46 * Core network protocols;
47 * Stage 3
48 * (3GPP TS 24.008 version 14.4.0 Release 14)
49 *
50 * Reference [13]
51 * Mobile radio interface Layer 3 specification;
52 * Core network protocols;
53 * Stage 3
54 * (3GPP TS 24.008 version 15.1.0 Release 15)
55 *
56 * Copyright 2003, Michael Lum <mlum [AT] telostech.com>,
57 * In association with Telos Technology Inc.
58 *
59 * Added Dissection of Group Call Control (GCC) protocol.
60 * Added Dissection of Broadcast Call Control (BCC) protocol.
61 * Copyright 2015, Michail Koreshkov <michail.koreshkov [at] zte.com.cn
62 *
63 * Wireshark - Network traffic analyzer
64 * By Gerald Combs <gerald@wireshark.org>
65 * Copyright 1998 Gerald Combs
66 *
67 * SPDX-License-Identifier: GPL-2.0-or-later
68 */
69 #ifndef __PACKET_GSM_A_COMMON_H__
70 #define __PACKET_GSM_A_COMMON_H__
71
72 #include <epan/proto.h>
73
74 #include "packet-sccp.h"
75 #include "packet-e212.h"
76 #include "ws_symbol_export.h"
77
78 /* PROTOTYPES/FORWARDS */
79 typedef guint16 (*elem_fcn)(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
80 typedef void (*msg_fcn)(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len);
81
82 /* globals needed as a result of spltting the packet-gsm_a.c into several files
83 * until further restructuring can take place to make them more modular
84 */
85
86 /* common PD values */
87 extern const value_string protocol_discriminator_vals[];
88 extern const value_string gsm_a_pd_short_str_vals[];
89
90 extern guint16 de_cld_party_bcd_num(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
91
92 /* Needed to share the packet-gsm_a_common.c functions */
93 extern value_string_ext gsm_bssmap_elem_strings_ext;
94 extern gint ett_gsm_bssmap_elem[];
95 extern elem_fcn bssmap_elem_fcn[];
96 extern int hf_gsm_a_bssmap_elem_id;
97
98 extern value_string_ext gsm_dtap_elem_strings_ext;
99 extern gint ett_gsm_dtap_elem[];
100 extern elem_fcn dtap_elem_fcn[];
101 extern int hf_gsm_a_dtap_elem_id;
102
103 extern value_string_ext gsm_rp_elem_strings_ext;
104 extern gint ett_gsm_rp_elem[];
105 extern elem_fcn rp_elem_fcn[];
106 extern int hf_gsm_a_rp_elem_id;
107
108 extern value_string_ext gsm_rr_elem_strings_ext;
109 extern gint ett_gsm_rr_elem[];
110 extern elem_fcn rr_elem_fcn[];
111 extern int hf_gsm_a_rr_elem_id;
112 extern void get_rr_msg_params(guint8 oct, const gchar **msg_str, int *ett_tree, int *hf_idx, msg_fcn *msg_fcn);
113
114 extern value_string_ext gsm_common_elem_strings_ext;
115 extern gint ett_gsm_common_elem[];
116 extern elem_fcn common_elem_fcn[];
117 extern int hf_gsm_a_common_elem_id;
118
119 extern value_string_ext gsm_gm_elem_strings_ext;
120 extern gint ett_gsm_gm_elem[];
121 extern elem_fcn gm_elem_fcn[];
122 extern int hf_gsm_a_gm_elem_id;
123 extern void get_gmm_msg_params(guint8 oct, const gchar **msg_str, int *ett_tree, int *hf_idx, msg_fcn *msg_fcn);
124 extern void get_sm_msg_params(guint8 oct, const gchar **msg_str, int *ett_tree, int *hf_idx, msg_fcn *msg_fcn);
125
126 extern value_string_ext gsm_bsslap_elem_strings_ext;
127 extern gint ett_gsm_bsslap_elem[];
128 extern elem_fcn bsslap_elem_fcn[];
129 extern int hf_gsm_a_bsslap_elem_id;
130
131 extern value_string_ext gsm_bssmap_le_elem_strings_ext;
132 extern gint ett_gsm_bssmap_le_elem[];
133 extern elem_fcn bssmap_le_elem_fcn[];
134 extern int hf_gsm_bssmap_le_elem_id;
135
136 extern value_string_ext nas_eps_common_elem_strings_ext;
137 extern gint ett_nas_eps_common_elem[];
138 extern elem_fcn nas_eps_common_elem_fcn[];
139 extern int hf_nas_eps_common_elem_id;
140
141 extern value_string_ext nas_emm_elem_strings_ext;
142 extern gint ett_nas_eps_emm_elem[];
143 extern elem_fcn emm_elem_fcn[];
144 extern int hf_nas_eps_emm_elem_id;
145
146 extern value_string_ext nas_esm_elem_strings_ext;
147 extern gint ett_nas_eps_esm_elem[];
148 extern elem_fcn esm_elem_fcn[];
149 extern int hf_nas_eps_esm_elem_id;
150
151 extern value_string_ext sgsap_elem_strings_ext;
152 extern gint ett_sgsap_elem[];
153 extern elem_fcn sgsap_elem_fcn[];
154 extern int hf_sgsap_elem_id;
155
156 extern value_string_ext bssgp_elem_strings_ext;
157 extern gint ett_bssgp_elem[];
158 extern elem_fcn bssgp_elem_fcn[];
159 extern int hf_bssgp_elem_id;
160
161 extern value_string_ext gmr1_ie_common_strings_ext;
162 extern elem_fcn gmr1_ie_common_func[];
163 extern gint ett_gmr1_ie_common[];
164
165 extern value_string_ext gmr1_ie_rr_strings_ext;
166 extern elem_fcn gmr1_ie_rr_func[];
167 extern gint ett_gmr1_ie_rr[];
168
169 extern value_string_ext nas_5gs_common_elem_strings_ext;
170 extern gint ett_nas_5gs_common_elem[];
171 extern elem_fcn nas_5gs_common_elem_fcn[];
172 extern int hf_nas_5gs_common_elem_id;
173
174 extern value_string_ext nas_5gs_mm_elem_strings_ext;
175 extern gint ett_nas_5gs_mm_elem[];
176 extern elem_fcn nas_5gs_mm_elem_fcn[];
177 extern int hf_nas_5gs_mm_elem_id;
178
179 extern value_string_ext nas_5gs_sm_elem_strings_ext;
180 extern gint ett_nas_5gs_sm_elem[];
181 extern elem_fcn nas_5gs_sm_elem_fcn[];
182 extern int hf_nas_5gs_sm_elem_id;
183
184 extern sccp_assoc_info_t* sccp_assoc;
185
186 extern int gsm_a_tap;
187 extern packet_info *gsm_a_dtap_pinfo;
188
189 /* TS 23 032 */
190 void dissect_geographical_description(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
191 guint16 dissect_description_of_velocity(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
192
193
194 /* common field values */
195 extern int hf_gsm_a_extension;
196 extern int hf_gsm_a_tmsi;
197 extern int hf_gsm_a_L3_protocol_discriminator;
198 extern int hf_gsm_a_call_prio;
199 extern int hf_gsm_a_b8spare;
200 extern int hf_gsm_a_skip_ind;
201 extern int hf_gsm_a_rr_chnl_needed_ch1;
202 extern int hf_gsm_a_rr_t3212;
203 extern int hf_gsm_a_gm_rac;
204 extern int hf_gsm_a_spare_bits;
205 extern int hf_gsm_a_lac;
206
207 /* flags for the packet-gsm_a_common routines */
208 #define GSM_A_PDU_TYPE_BSSMAP 0 /* BSSAP_PDU_TYPE_BSSMAP i.e. 0 - until split complete at least! */
209 #define GSM_A_PDU_TYPE_DTAP 1 /* BSSAP_PDU_TYPE_DTAP i.e. 1 - until split complete at least! */
210 #define GSM_A_PDU_TYPE_RP 2
211 #define GSM_A_PDU_TYPE_RR 3
212 #define GSM_A_PDU_TYPE_COMMON 4
213 #define GSM_A_PDU_TYPE_GM 5
214 #define GSM_A_PDU_TYPE_BSSLAP 6
215 #define GSM_A_PDU_TYPE_SACCH 7
216 #define GSM_PDU_TYPE_BSSMAP_LE 8
217 #define NAS_PDU_TYPE_COMMON 9
218 #define NAS_PDU_TYPE_EMM 10
219 #define NAS_PDU_TYPE_ESM 11
220 #define SGSAP_PDU_TYPE 12
221 #define BSSGP_PDU_TYPE 13
222 #define GMR1_IE_COMMON 14
223 #define GMR1_IE_RR 15
224 #define NAS_5GS_PDU_TYPE_COMMON 16
225 #define NAS_5GS_PDU_TYPE_MM 17
226 #define NAS_5GS_PDU_TYPE_SM 18
227
228 extern const char* get_gsm_a_msg_string(int pdu_type, int idx);
229
230 /*
231 * this should be set on a per message basis, if possible
232 */
233 #define IS_UPLINK_FALSE 0
234 #define IS_UPLINK_TRUE 1
235 #define IS_UPLINK_UNKNOWN 2
236
237 /* Defines for handling half octet mandatory V IEs
238 * Named LEFT and RIGHT (as displayed) because the GSM definitions and our internal representation
239 * have the bits numbered in opposite senses
240 */
241 #define LEFT_NIBBLE (2)
242 #define RIGHT_NIBBLE (1)
243
244 /* FUNCTIONS */
245
246 /* ELEMENT FUNCTIONS */
247 #define EXTRANEOUS_DATA_CHECK(edc_len, edc_max_len, pinfo, ei) \
248 if ((edc_len) > (edc_max_len)) \
249 { \
250 proto_tree_add_expert(tree, pinfo, ei, tvb, curr_offset, (edc_len) - (edc_max_len)); \
251 curr_offset += ((edc_len) - (edc_max_len)); \
252 }
253
254 #define NO_MORE_DATA_CHECK(nmdc_len) \
255 if ((nmdc_len) <= (curr_offset - offset)) return(nmdc_len);
256
257 #define SET_ELEM_VARS(SEV_pdu_type, SEV_elem_names_ext, SEV_elem_ett, SEV_elem_funcs, ei_unknown) \
258 switch (SEV_pdu_type) \
259 { \
260 case GSM_A_PDU_TYPE_BSSMAP: \
261 SEV_elem_names_ext = gsm_bssmap_elem_strings_ext; \
262 SEV_elem_ett = ett_gsm_bssmap_elem; \
263 SEV_elem_funcs = bssmap_elem_fcn; \
264 break; \
265 case GSM_A_PDU_TYPE_DTAP: \
266 SEV_elem_names_ext = gsm_dtap_elem_strings_ext; \
267 SEV_elem_ett = ett_gsm_dtap_elem; \
268 SEV_elem_funcs = dtap_elem_fcn; \
269 break; \
270 case GSM_A_PDU_TYPE_RP: \
271 SEV_elem_names_ext = gsm_rp_elem_strings_ext; \
272 SEV_elem_ett = ett_gsm_rp_elem; \
273 SEV_elem_funcs = rp_elem_fcn; \
274 break; \
275 case GSM_A_PDU_TYPE_RR: \
276 SEV_elem_names_ext = gsm_rr_elem_strings_ext; \
277 SEV_elem_ett = ett_gsm_rr_elem; \
278 SEV_elem_funcs = rr_elem_fcn; \
279 break; \
280 case GSM_A_PDU_TYPE_COMMON: \
281 SEV_elem_names_ext = gsm_common_elem_strings_ext; \
282 SEV_elem_ett = ett_gsm_common_elem; \
283 SEV_elem_funcs = common_elem_fcn; \
284 break; \
285 case GSM_A_PDU_TYPE_GM: \
286 SEV_elem_names_ext = gsm_gm_elem_strings_ext; \
287 SEV_elem_ett = ett_gsm_gm_elem; \
288 SEV_elem_funcs = gm_elem_fcn; \
289 break; \
290 case GSM_A_PDU_TYPE_BSSLAP: \
291 SEV_elem_names_ext = gsm_bsslap_elem_strings_ext; \
292 SEV_elem_ett = ett_gsm_bsslap_elem; \
293 SEV_elem_funcs = bsslap_elem_fcn; \
294 break; \
295 case GSM_PDU_TYPE_BSSMAP_LE: \
296 SEV_elem_names_ext = gsm_bssmap_le_elem_strings_ext; \
297 SEV_elem_ett = ett_gsm_bssmap_le_elem; \
298 SEV_elem_funcs = bssmap_le_elem_fcn; \
299 break; \
300 case NAS_PDU_TYPE_COMMON: \
301 SEV_elem_names_ext = nas_eps_common_elem_strings_ext; \
302 SEV_elem_ett = ett_nas_eps_common_elem; \
303 SEV_elem_funcs = nas_eps_common_elem_fcn; \
304 break; \
305 case NAS_PDU_TYPE_EMM: \
306 SEV_elem_names_ext = nas_emm_elem_strings_ext; \
307 SEV_elem_ett = ett_nas_eps_emm_elem; \
308 SEV_elem_funcs = emm_elem_fcn; \
309 break; \
310 case NAS_PDU_TYPE_ESM: \
311 SEV_elem_names_ext = nas_esm_elem_strings_ext; \
312 SEV_elem_ett = ett_nas_eps_esm_elem; \
313 SEV_elem_funcs = esm_elem_fcn; \
314 break; \
315 case SGSAP_PDU_TYPE: \
316 SEV_elem_names_ext = sgsap_elem_strings_ext; \
317 SEV_elem_ett = ett_sgsap_elem; \
318 SEV_elem_funcs = sgsap_elem_fcn; \
319 break; \
320 case BSSGP_PDU_TYPE: \
321 SEV_elem_names_ext = bssgp_elem_strings_ext; \
322 SEV_elem_ett = ett_bssgp_elem; \
323 SEV_elem_funcs = bssgp_elem_fcn; \
324 break; \
325 case GMR1_IE_COMMON: \
326 SEV_elem_names_ext = gmr1_ie_common_strings_ext; \
327 SEV_elem_ett = ett_gmr1_ie_common; \
328 SEV_elem_funcs = gmr1_ie_common_func; \
329 break; \
330 case GMR1_IE_RR: \
331 SEV_elem_names_ext = gmr1_ie_rr_strings_ext; \
332 SEV_elem_ett = ett_gmr1_ie_rr; \
333 SEV_elem_funcs = gmr1_ie_rr_func; \
334 break; \
335 case NAS_5GS_PDU_TYPE_COMMON: \
336 SEV_elem_names_ext = nas_5gs_common_elem_strings_ext; \
337 SEV_elem_ett = ett_nas_5gs_common_elem; \
338 SEV_elem_funcs = nas_5gs_common_elem_fcn; \
339 break; \
340 case NAS_5GS_PDU_TYPE_MM: \
341 SEV_elem_names_ext = nas_5gs_mm_elem_strings_ext; \
342 SEV_elem_ett = ett_nas_5gs_mm_elem; \
343 SEV_elem_funcs = nas_5gs_mm_elem_fcn; \
344 break; \
345 case NAS_5GS_PDU_TYPE_SM: \
346 SEV_elem_names_ext = nas_5gs_sm_elem_strings_ext; \
347 SEV_elem_ett = ett_nas_5gs_sm_elem; \
348 SEV_elem_funcs = nas_5gs_sm_elem_fcn; \
349 break; \
350 default: \
351 proto_tree_add_expert_format(tree, pinfo, ei_unknown, \
352 tvb, curr_offset, -1, \
353 "Unknown PDU type (%u) gsm_a_common", SEV_pdu_type); \
354 return(consumed); \
355 }
356
357 /*
358 * Type Length Value (TLV) element dissector
359 */
360 WS_DLL_PUBLIC guint16 elem_tlv(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 iei, gint pdu_type, int idx, guint32 offset, guint len, const gchar *name_add);
361
362 /*
363 * Type Extendable Length Value (TLVE) element dissector
364 */
365 guint16 elem_telv(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 iei, gint pdu_type, int idx, guint32 offset, guint len, const gchar *name_add);
366
367 /*
368 * Type Length Value (TLV-E) element dissector
369 */
370 guint16 elem_tlv_e(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 iei, gint pdu_type, int idx, guint32 offset, guint len, const gchar *name_add);
371
372 /*
373 * Type Value (TV) element dissector
374 *
375 * Length cannot be used in these functions, big problem if a element dissector
376 * is not defined for these.
377 */
378 WS_DLL_PUBLIC guint16 elem_tv(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 iei, gint pdu_type, int idx, guint32 offset, const gchar *name_add);
379
380 /*
381 * Type Value (TV) element dissector
382 * Where top half nibble is IEI and bottom half nibble is value.
383 *
384 * Length cannot be used in these functions, big problem if a element dissector
385 * is not defined for these.
386 */
387 WS_DLL_PUBLIC guint16 elem_tv_short(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 iei, gint pdu_type, int idx, guint32 offset, const gchar *name_add);
388
389 /*
390 * Type (T) element dissector
391 */
392 WS_DLL_PUBLIC guint16 elem_t(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 iei, gint pdu_type, int idx, guint32 offset, const gchar *name_add);
393
394 /*
395 * Length Value (LV) element dissector
396 */
397 WS_DLL_PUBLIC guint16 elem_lv(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, gint pdu_type, int idx, guint32 offset, guint len, const gchar *name_add);
398
399 /*
400 * Length Value (LV-E) element dissector
401 */
402 guint16 elem_lv_e(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, gint pdu_type, int idx, guint32 offset, guint len, const gchar *name_add);
403
404 /*
405 * Value (V) element dissector
406 *
407 * Length cannot be used in these functions, big problem if a element dissector
408 * is not defined for these.
409 */
410 WS_DLL_PUBLIC guint16 elem_v(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, gint pdu_type, int idx, guint32 offset, const gchar *name_add);
411
412 /*
413 * Short Value (V_SHORT) element dissector
414 *
415 * nibble used in this functions to indicate left or right nibble of the octet
416 * This is expected to be used right nibble first, as the tables of 24.008.
417 */
418 WS_DLL_PUBLIC guint16 elem_v_short(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, gint pdu_type, int idx, guint32 offset, guint32 nibble);
419
420
421 /* XXX: Most (if not all) the functions which make use of the following macros have the variables 'consumed',
422 * 'curr_offset', and 'cur_len' declared as *unsigned*. This means that the 'if (curr_len <= 0)' statement
423 * originally at the end of each of the macros would always be FALSE since an unsigned cannot be less than 0.
424 * I've chosen to change the statement to 'if ((signed)curr_len <= 0)'. (Although this may be a bit of a
425 * hack, it seems simpler than changing declarations to signed in all the places these macros are used).
426 * Is there a better approach ?
427 */
428
429 #define ELEM_MAND_TLV(EMT_iei, EMT_pdu_type, EMT_elem_idx, EMT_elem_name_addition, ei_mandatory) \
430 {\
431 if (((signed)curr_len > 0) && \
432 ((consumed = elem_tlv(tvb, tree, pinfo, (guint8) EMT_iei, EMT_pdu_type, EMT_elem_idx, curr_offset, curr_len, EMT_elem_name_addition)) > 0)) \
433 { \
434 curr_offset += consumed; \
435 curr_len -= consumed; \
436 } \
437 else \
438 { \
439 proto_tree_add_expert_format(tree, pinfo, &ei_mandatory, \
440 tvb, curr_offset, 0, \
441 "Missing Mandatory element (0x%02x) %s%s, rest of dissection is suspect", \
442 EMT_iei, \
443 get_gsm_a_msg_string(EMT_pdu_type, EMT_elem_idx), \
444 /* coverity[array_null] */ \
445 (EMT_elem_name_addition == NULL) ? "" : EMT_elem_name_addition \
446 ); \
447 } \
448 }
449 /* This is a version where the length field can be one or two octets depending
450 * if the extension bit is set or not (TS 48.016 p 10.1.2).
451 * 8 7 6 5 4 3 2 1
452 * octet 2 0/1 ext length
453 * octet 2a length
454 */
455 #define ELEM_MAND_TELV(EMT_iei, EMT_pdu_type, EMT_elem_idx, EMT_elem_name_addition, ei_mandatory) \
456 {\
457 if (((signed)curr_len > 0) && \
458 ((consumed = elem_telv(tvb, tree, pinfo, (guint8) EMT_iei, EMT_pdu_type, EMT_elem_idx, curr_offset, curr_len, EMT_elem_name_addition)) > 0)) \
459 { \
460 curr_offset += consumed; \
461 curr_len -= consumed; \
462 } \
463 else \
464 { \
465 proto_tree_add_expert_format(tree, pinfo, &ei_mandatory, \
466 tvb, curr_offset, 0, \
467 "Missing Mandatory element (0x%02x) %s%s, rest of dissection is suspect", \
468 EMT_iei, \
469 get_gsm_a_msg_string(EMT_pdu_type, EMT_elem_idx), \
470 /* coverity[array_null] */ \
471 (EMT_elem_name_addition == NULL) ? "" : EMT_elem_name_addition \
472 ); \
473 } \
474 }
475
476 #define ELEM_MAND_TLV_E(EMT_iei, EMT_pdu_type, EMT_elem_idx, EMT_elem_name_addition, ei_mandatory) \
477 {\
478 if (((signed)curr_len > 0) && \
479 ((consumed = elem_tlv_e(tvb, tree, pinfo, (guint8) EMT_iei, EMT_pdu_type, EMT_elem_idx, curr_offset, curr_len, EMT_elem_name_addition)) > 0)) \
480 { \
481 curr_offset += consumed; \
482 curr_len -= consumed; \
483 } \
484 else \
485 { \
486 proto_tree_add_expert_format(tree, pinfo, &ei_mandatory, \
487 tvb, curr_offset, 0, \
488 "Missing Mandatory element (0x%02x) %s%s, rest of dissection is suspect", \
489 EMT_iei, \
490 get_gsm_a_msg_string(EMT_pdu_type, EMT_elem_idx), \
491 /* coverity[array_null] */ \
492 (EMT_elem_name_addition == NULL) ? "" : EMT_elem_name_addition \
493 ); \
494 } \
495 }
496 #define ELEM_OPT_TLV(EOT_iei, EOT_pdu_type, EOT_elem_idx, EOT_elem_name_addition) \
497 {\
498 if ((signed)curr_len <= 0) return; \
499 if ((consumed = elem_tlv(tvb, tree, pinfo, (guint8) EOT_iei, EOT_pdu_type, EOT_elem_idx, curr_offset, curr_len, EOT_elem_name_addition)) > 0) \
500 { \
501 curr_offset += consumed; \
502 curr_len -= consumed; \
503 } \
504 }
505
506 #define ELEM_OPT_TELV(EOT_iei, EOT_pdu_type, EOT_elem_idx, EOT_elem_name_addition) \
507 {\
508 if ((signed)curr_len <= 0) return; \
509 if ((consumed = elem_telv(tvb, tree, pinfo, (guint8) EOT_iei, EOT_pdu_type, EOT_elem_idx, curr_offset, curr_len, EOT_elem_name_addition)) > 0) \
510 { \
511 curr_offset += consumed; \
512 curr_len -= consumed; \
513 } \
514 }
515
516 #define ELEM_OPT_TLV_E(EOT_iei, EOT_pdu_type, EOT_elem_idx, EOT_elem_name_addition) \
517 {\
518 if ((signed)curr_len <= 0) return; \
519 if ((consumed = elem_tlv_e(tvb, tree, pinfo, (guint8) EOT_iei, EOT_pdu_type, EOT_elem_idx, curr_offset, curr_len, EOT_elem_name_addition)) > 0) \
520 { \
521 curr_offset += consumed; \
522 curr_len -= consumed; \
523 } \
524 }
525
526 #define ELEM_MAND_TV(EMT_iei, EMT_pdu_type, EMT_elem_idx, EMT_elem_name_addition, ei_mandatory) \
527 {\
528 if (((signed)curr_len > 0) && \
529 ((consumed = elem_tv(tvb, tree, pinfo, (guint8) EMT_iei, EMT_pdu_type, EMT_elem_idx, curr_offset, EMT_elem_name_addition)) > 0)) \
530 { \
531 curr_offset += consumed; \
532 curr_len -= consumed; \
533 } \
534 else \
535 { \
536 proto_tree_add_expert_format(tree, pinfo, &ei_mandatory,\
537 tvb, curr_offset, 0, \
538 "Missing Mandatory element (0x%02x) %s%s, rest of dissection is suspect", \
539 EMT_iei, \
540 get_gsm_a_msg_string(EMT_pdu_type, EMT_elem_idx), \
541 /* coverity[array_null] */ \
542 (EMT_elem_name_addition == NULL) ? "" : EMT_elem_name_addition \
543 ); \
544 } \
545 }
546
547 #define ELEM_OPT_TV(EOT_iei, EOT_pdu_type, EOT_elem_idx, EOT_elem_name_addition) \
548 {\
549 if ((signed)curr_len <= 0) return; \
550 if ((consumed = elem_tv(tvb, tree, pinfo, (guint8) EOT_iei, EOT_pdu_type, EOT_elem_idx, curr_offset, EOT_elem_name_addition)) > 0) \
551 { \
552 curr_offset += consumed; \
553 curr_len -= consumed; \
554 } \
555 }
556
557 #define ELEM_OPT_TV_SHORT(EOT_iei, EOT_pdu_type, EOT_elem_idx, EOT_elem_name_addition) \
558 {\
559 if ((signed)curr_len <= 0) return; \
560 if ((consumed = elem_tv_short(tvb, tree, pinfo, EOT_iei, EOT_pdu_type, EOT_elem_idx, curr_offset, EOT_elem_name_addition)) > 0) \
561 { \
562 curr_offset += consumed; \
563 curr_len -= consumed; \
564 } \
565 }
566
567 #define ELEM_OPT_T(EOT_iei, EOT_pdu_type, EOT_elem_idx, EOT_elem_name_addition) \
568 {\
569 if ((signed)curr_len <= 0) return; \
570 if ((consumed = elem_t(tvb, tree, pinfo, (guint8) EOT_iei, EOT_pdu_type, EOT_elem_idx, curr_offset, EOT_elem_name_addition)) > 0) \
571 { \
572 curr_offset += consumed; \
573 curr_len -= consumed; \
574 } \
575 }
576
577 #define ELEM_MAND_LV(EML_pdu_type, EML_elem_idx, EML_elem_name_addition, ei_mandatory) \
578 {\
579 if (((signed)curr_len > 0) && \
580 ((consumed = elem_lv(tvb, tree, pinfo, EML_pdu_type, EML_elem_idx, curr_offset, curr_len, EML_elem_name_addition)) > 0)) \
581 { \
582 curr_offset += consumed; \
583 curr_len -= consumed; \
584 } \
585 else \
586 { \
587 proto_tree_add_expert_format(tree, pinfo, &ei_mandatory,\
588 tvb, curr_offset, 0, \
589 "Missing Mandatory element %s%s, rest of dissection is suspect", \
590 get_gsm_a_msg_string(EML_pdu_type, EML_elem_idx), \
591 /* coverity[array_null] */ \
592 (EML_elem_name_addition == NULL) ? "" : EML_elem_name_addition \
593 ); \
594 } \
595 }
596
597 #define ELEM_MAND_LV_E(EML_pdu_type, EML_elem_idx, EML_elem_name_addition, ei_mandatory) \
598 {\
599 if (((signed)curr_len > 0) && \
600 ((consumed = elem_lv_e(tvb, tree, pinfo, EML_pdu_type, EML_elem_idx, curr_offset, curr_len, EML_elem_name_addition)) > 0)) \
601 { \
602 curr_offset += consumed; \
603 curr_len -= consumed; \
604 } \
605 else \
606 { \
607 proto_tree_add_expert_format(tree, pinfo, &ei_mandatory,\
608 tvb, curr_offset, 0, \
609 "Missing Mandatory element %s%s, rest of dissection is suspect", \
610 get_gsm_a_msg_string(EML_pdu_type, EML_elem_idx), \
611 /* coverity[array_null] */ \
612 (EML_elem_name_addition == NULL) ? "" : EML_elem_name_addition \
613 ); \
614 } \
615 }
616
617 #define ELEM_MAND_V(EMV_pdu_type, EMV_elem_idx, EMV_elem_name_addition, ei_mandatory) \
618 {\
619 if (((signed)curr_len > 0) && \
620 ((consumed = elem_v(tvb, tree, pinfo, EMV_pdu_type, EMV_elem_idx, curr_offset, EMV_elem_name_addition)) > 0)) \
621 { \
622 curr_offset += consumed; \
623 curr_len -= consumed; \
624 } \
625 else \
626 { \
627 proto_tree_add_expert_format(tree, pinfo, &ei_mandatory,\
628 tvb, curr_offset, 0, \
629 "Missing Mandatory element %s%s, rest of dissection is suspect", \
630 get_gsm_a_msg_string(EMV_pdu_type, EMV_elem_idx), \
631 /* coverity[array_null] */ \
632 (EMV_elem_name_addition == NULL) ? "" : EMV_elem_name_addition \
633 ); \
634 } \
635 }
636
637 #define ELEM_MAND_VV_SHORT(EMV_pdu_type1, EMV_elem_idx1, EMV_pdu_type2, EMV_elem_idx2, ei_mandatory) \
638 {\
639 if ((signed)curr_len > 0) \
640 { \
641 elem_v_short(tvb, tree, pinfo, EMV_pdu_type1, EMV_elem_idx1, curr_offset, RIGHT_NIBBLE); \
642 elem_v_short(tvb, tree, pinfo, EMV_pdu_type2, EMV_elem_idx2, curr_offset, LEFT_NIBBLE); \
643 curr_offset ++ ; /* consumed length is 1, regardless of contents */ \
644 curr_len -- ; \
645 } \
646 else \
647 { \
648 proto_tree_add_expert_format(tree, pinfo, &ei_mandatory,\
649 tvb, curr_offset, 0, \
650 "Missing Mandatory elements %s %s, rest of dissection is suspect", \
651 get_gsm_a_msg_string(EMV_pdu_type1, EMV_elem_idx1), \
652 get_gsm_a_msg_string(EMV_pdu_type2, EMV_elem_idx2) \
653 /* coverity[array_null] */ \
654 ); \
655 } \
656 }
657
658 /*
659 * this enum must be kept in-sync with 'gsm_a_pd_str'
660 * it is used as an index into the array
661 */
662 typedef enum
663 {
664 PD_GCC = 0,
665 PD_BCC,
666 PD_RSVD_1,
667 PD_CC,
668 PD_GTTP,
669 PD_MM,
670 PD_RR,
671 PD_UNK_1,
672 PD_GMM,
673 PD_SMS,
674 PD_SM,
675 PD_SS,
676 PD_LCS,
677 PD_UNK_2,
678 PD_RSVD_EXT,
679 PD_TP
680 }
681 gsm_a_pd_str_e;
682
683 typedef struct _gsm_a_tap_rec_t {
684 /*
685 * value from packet-bssap.h
686 */
687 guint8 pdu_type;
688 guint8 message_type;
689 gsm_a_pd_str_e protocol_disc;
690 } gsm_a_tap_rec_t;
691
692 void bssmap_old_bss_to_new_bss_info(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo);
693 void bssmap_new_bss_to_old_bss_info(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo);
694
695 void dtap_mm_mm_info(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len);
696
697 guint16 be_cell_id_aux(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len, guint8 disc);
698 guint16 be_cell_id_type(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len, guint8 disc, e212_number_type_t number_type);
699 guint16 be_cell_id_list(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
700 guint16 be_chan_type(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
701 guint16 be_prio(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
702
703 WS_DLL_PUBLIC
704 guint16 de_lai(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
705 WS_DLL_PUBLIC
706 guint16 de_mid(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
707 WS_DLL_PUBLIC
708 guint16 de_cell_id(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
709 guint16 de_bearer_cap(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
710 guint16 de_bearer_cap_uplink(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
711 guint16 be_emlpp_prio(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
712 guint16 be_ganss_loc_type(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
713 guint16 be_ganss_pos_dta(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
714 guint16 be_ganss_ass_dta(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
715 guint16 de_cn_common_gsm_map_nas_sys_info(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
716 guint16 de_cs_domain_spec_sys_info(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
717 guint16 de_ps_domain_spec_sys_info(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
718 guint16 de_plmn_list(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
719 WS_DLL_PUBLIC
720 guint16 de_ms_cm_1(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
721 WS_DLL_PUBLIC
722 guint16 de_ms_cm_2(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
723 WS_DLL_PUBLIC
724 guint16 de_ms_cm_3(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
725 guint16 de_serv_cat(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
726 WS_DLL_PUBLIC
727 guint16 de_sm_apn(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
728 guint16 de_sm_pco(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
729 guint16 de_sm_pdp_addr(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string _U_, int string_len _U_);
730 WS_DLL_PUBLIC
731 guint16 de_sm_qos(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
732 WS_DLL_PUBLIC
733 guint16 de_sm_pflow_id(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
734 guint16 de_sm_tflow_temp(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
735 guint16 de_time_zone(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
736 WS_DLL_PUBLIC
737 guint16 de_gmm_drx_param(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
738 WS_DLL_PUBLIC
739 guint16 de_gmm_ms_net_cap(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
740 WS_DLL_PUBLIC
741 guint16 de_gmm_rai(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
742 WS_DLL_PUBLIC
743 guint16 de_gmm_ms_radio_acc_cap(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
744 guint16 de_gmm_voice_domain_pref(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
745
746 guint16 de_sup_codec_list(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
747
748 guint16 de_gc_timer3(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
749
750 WS_DLL_PUBLIC
751 guint16 de_rr_cause(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
752 WS_DLL_PUBLIC
753 guint16 de_rr_cell_dsc(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
754 WS_DLL_PUBLIC
755 guint16 de_rr_ch_dsc(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
756 WS_DLL_PUBLIC
757 guint16 de_rr_ch_mode(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
758 WS_DLL_PUBLIC
759 guint16 de_rr_chnl_needed(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
760 WS_DLL_PUBLIC
761 guint16 de_rr_cip_mode_set(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
762 WS_DLL_PUBLIC
763 guint16 de_rr_cm_enq_mask(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
764 guint16 de_rr_meas_res(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
765 WS_DLL_PUBLIC
766 guint16 de_rr_multirate_conf(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
767 WS_DLL_PUBLIC
768 guint16 de_rr_sus_cau(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
769 WS_DLL_PUBLIC
770 guint16 de_rr_tlli(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
771
772 WS_DLL_PUBLIC
773 guint16 de_rej_cause(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
774 WS_DLL_PUBLIC
775 guint16 de_d_gb_call_ref(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
776 guint16 de_spare_nibble(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len _U_, gchar *add_string _U_, int string_len _U_);
777
778 guint16 de_emm_ue_net_cap(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
779 guint16 de_emm_trac_area_id(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string, int string_len);
780 guint16 de_emm_sec_par_from_eutra(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len _U_, gchar *add_string _U_, int string_len _U_);
781 guint16 de_emm_sec_par_to_eutra(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len _U_, gchar *add_string _U_, int string_len _U_);
782 guint16 de_esm_qos(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len, gchar *add_string _U_, int string_len _U_);
783 void nas_esm_pdn_con_req(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len);
784
785 guint16 de_nas_5gs_mm_s_nssai(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len, gchar *add_string _U_, int string_len _U_);
786 guint16 de_nas_5gs_sm_qos_rules(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar *add_string _U_, int string_len _U_);
787 guint16 de_nas_5gs_sm_session_ambr(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len, gchar *add_string _U_, int string_len _U_);
788
789 void dtap_rr_ho_cmd(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len);
790 void dtap_rr_cip_mode_cpte(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len);
791
792 void bssmap_perf_loc_abort(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len);
793 void bssmap_reset(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len);
794 void bssmap_conn_oriented(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len);
795
796 void rp_data_n_ms(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len);
797
798 /*
799 * the following allows TAP code access to the messages
800 * without having to duplicate it. With MSVC and a
801 * libwireshark.dll, we need a special declaration.
802 */
803 WS_DLL_PUBLIC const value_string gsm_a_bssmap_msg_strings[];
804 WS_DLL_PUBLIC const value_string gsm_a_dtap_msg_mm_strings[];
805 WS_DLL_PUBLIC const value_string gsm_a_dtap_msg_rr_strings[];
806 WS_DLL_PUBLIC const value_string gsm_a_dtap_msg_cc_strings[];
807 WS_DLL_PUBLIC const value_string gsm_a_dtap_msg_gmm_strings[];
808 WS_DLL_PUBLIC const value_string gsm_a_dtap_msg_sms_strings[];
809 WS_DLL_PUBLIC const value_string gsm_a_dtap_msg_sm_strings[];
810 WS_DLL_PUBLIC const value_string gsm_a_dtap_msg_ss_strings[];
811 WS_DLL_PUBLIC const value_string gsm_a_dtap_msg_tp_strings[];
812 WS_DLL_PUBLIC const value_string gsm_a_rr_short_pd_msg_strings[];
813 WS_DLL_PUBLIC const gchar *gsm_a_pd_str[];
814
815 extern const value_string gsm_a_sm_qos_del_of_err_sdu_vals[];
816 extern const value_string gsm_a_sm_qos_traffic_cls_vals[];
817 extern const value_string gsm_a_sm_qos_ber_vals[];
818 extern const value_string gsm_a_sm_qos_sdu_err_rat_vals[];
819 extern const value_string gsm_a_sm_qos_traff_hdl_pri_vals[];
820
821 extern const value_string gsm_a_dtap_type_of_number_values[];
822 extern const value_string gsm_a_dtap_numbering_plan_id_values[];
823 extern const value_string gsm_a_sms_vals[];
824 extern const value_string tighter_cap_level_vals[];
825 extern value_string_ext gsm_a_rr_rxlev_vals_ext;
826 extern const value_string gsm_a_rr_rxqual_vals[];
827 extern const value_string gsm_a_gm_type_of_ciph_alg_vals[];
828
829 extern value_string_ext nas_eps_emm_cause_values_ext;
830 extern const value_string nas_eps_emm_cause_values[];
831 extern const value_string nas_eps_esm_cause_vals[];
832
833 extern const value_string nas_5gs_pdu_session_id_vals[];
834
835 typedef enum
836 {
837 /* Common Information Elements [3] 10.5.1 */
838 DE_CELL_ID, /* Cell Identity */
839 DE_CIPH_KEY_SEQ_NUM, /* Ciphering Key Sequence Number */
840 DE_LAI, /* Location Area Identification */
841 DE_MID, /* Mobile Identity */
842 DE_MS_CM_1, /* Mobile Station Classmark 1 */
843 DE_MS_CM_2, /* Mobile Station Classmark 2 */
844 DE_MS_CM_3, /* Mobile Station Classmark 3 */
845 DE_SPARE_NIBBLE, /* Spare Half Octet */
846 DE_D_GB_CALL_REF, /* Descriptive group or broadcast call reference */
847 DE_G_CIPH_KEY_NUM, /* Group Cipher Key Number */
848 DE_PD_SAPI, /* PD and SAPI $(CCBS)$ */
849 DE_PRIO, /* Priority Level */
850 DE_CN_COMMON_GSM_MAP_NAS_SYS_INFO, /* CN Common GSM-MAP NAS system information */
851 DE_CS_DOMAIN_SPEC_SYS_INFO, /* CS domain specific system information */
852 DE_PS_DOMAIN_SPEC_SYS_INFO, /* PS domain specific system information */
853 DE_PLMN_LIST, /* PLMN List */
854 DE_NAS_CONT_FOR_PS_HO, /* 10.5.1.14 NAS container for PS HO */
855 DE_MS_NET_FEAT_SUP, /* 10.5.1.15 MS network feature support */
856
857 DE_COMMON_NONE /* NONE */
858 }
859 common_elem_idx_t;
860
861 typedef enum
862 {
863 BE_UDEF_0, /* Undefined */
864 BE_CIC, /* Circuit Identity Code */
865 BE_RSVD_1, /* Reserved */
866 BE_RES_AVAIL, /* Resource Available */
867 BE_CAUSE, /* Cause */
868 BE_CELL_ID, /* Cell Identifier */
869 BE_PRIO, /* Priority */
870 BE_L3_HEADER_INFO, /* Layer 3 Header Information */
871 BE_IMSI, /* IMSI */
872 BE_TMSI, /* TMSI */
873 BE_ENC_INFO, /* Encryption Information */
874 BE_CHAN_TYPE, /* Channel Type */
875 BE_PERIODICITY, /* Periodicity */
876 BE_EXT_RES_IND, /* Extended Resource Indicator */
877 BE_NUM_MS, /* Number Of MSs */
878 BE_RSVD_2, /* Reserved */
879 BE_RSVD_3, /* Reserved */
880 BE_RSVD_4, /* Reserved */
881 BE_CM_INFO_2, /* Classmark Information Type 2 */
882 BE_CM_INFO_3, /* Classmark Information Type 3 */
883 BE_INT_BAND, /* Interference Band To Be Used */
884 BE_RR_CAUSE, /* RR Cause */
885 BE_RSVD_5, /* Reserved */
886 BE_L3_INFO, /* Layer 3 Information */
887 BE_DLCI, /* DLCI */
888 BE_DOWN_DTX_FLAG, /* Downlink DTX Flag */
889 BE_CELL_ID_LIST, /* Cell Identifier List */
890 BE_RESP_REQ, /* Response Request */
891 BE_RES_IND_METHOD, /* Resource Indication Method */
892 BE_CM_INFO_1, /* Classmark Information Type 1 */
893 BE_CIC_LIST, /* Circuit Identity Code List */
894 BE_DIAG, /* Diagnostic */
895 BE_L3_MSG, /* Layer 3 Message Contents */
896 BE_CHOSEN_CHAN, /* Chosen Channel */
897 BE_TOT_RES_ACC, /* Total Resource Accessible */
898 BE_CIPH_RESP_MODE, /* Cipher Response Mode */
899 BE_CHAN_NEEDED, /* Channel Needed */
900 BE_TRACE_TYPE, /* Trace Type */
901 BE_TRIGGERID, /* TriggerID */
902 BE_TRACE_REF, /* Trace Reference */
903 BE_TRANSID, /* TransactionID */
904 BE_MID, /* Mobile Identity */
905 BE_OMCID, /* OMCID */
906 BE_FOR_IND, /* Forward Indicator */
907 BE_CHOSEN_ENC_ALG, /* Chosen Encryption Algorithm */
908 BE_CCT_POOL, /* Circuit Pool */
909 BE_CCT_POOL_LIST, /* Circuit Pool List */
910 BE_TIME_IND, /* Time Indication */
911 BE_RES_SIT, /* Resource Situation */
912 BE_CURR_CHAN_1, /* Current Channel Type 1 */
913 BE_QUE_IND, /* Queueing Indicator */
914 BE_ASS_REQ, /* Assignment Requirement */
915 BE_UDEF_52, /* Undefined */
916 BE_TALKER_FLAG, /* Talker Flag */
917 BE_CONN_REL_REQ, /* Connection Release Requested */
918 BE_GROUP_CALL_REF, /* Group Call Reference */
919 BE_EMLPP_PRIO, /* eMLPP Priority */
920 BE_CONF_EVO_IND, /* Configuration Evolution Indication */
921 BE_OLD2NEW_INFO, /* Old BSS to New BSS Information */
922 BE_LSA_ID, /* LSA Identifier */
923 BE_LSA_ID_LIST, /* LSA Identifier List */
924 BE_LSA_INFO, /* LSA Information */
925 BE_LCS_QOS, /* LCS QoS */
926 BE_LSA_ACC_CTRL, /* LSA access control suppression */
927 BE_SPEECH_VER, /* Speech Version */
928 BE_UDEF_65, /* Undefined */
929 BE_UDEF_66, /* Undefined */
930 BE_LCS_PRIO, /* LCS Priority */
931 BE_LOC_TYPE, /* Location Type */
932 BE_LOC_EST, /* Location Estimate */
933 BE_POS_DATA, /* Positioning Data */
934 BE_LCS_CAUSE, /* 3.2.2.66 LCS Cause */
935 BE_LCS_CLIENT, /* 10.14 LCS Client Type */
936 BE_APDU, /* APDU */
937 BE_NE_ID, /* Network Element Identity */
938 BE_GPS_ASSIST_DATA, /* GPS Assistance Data */
939 BE_DECIPH_KEYS, /* Deciphering Keys */
940 BE_RET_ERR_REQ, /* Return Error Request */
941 BE_RET_ERR_CAUSE, /* Return Error Cause */
942 BE_SEG, /* Segmentation */
943 BE_SERV_HO, /* Service Handover */
944 BE_SRC_RNC_TO_TAR_RNC_UMTS, /* Source RNC to target RNC transparent information (UMTS) */
945 BE_SRC_RNC_TO_TAR_RNC_CDMA, /* Source RNC to target RNC transparent information (cdma2000) */
946 BE_GERAN_CLS_M, /* GERAN Classmark */
947 BE_GERAN_BSC_CONT, /* GERAN BSC Container */
948 BE_VEL_EST, /* Velocity Estimate */
949 BE_UDEF_86, /* Undefined */
950 BE_UDEF_87, /* Undefined */
951 BE_UDEF_88, /* Undefined */
952 BE_UDEF_89, /* Undefined */
953 BE_UDEF_90, /* Undefined */
954 BE_UDEF_91, /* Undefined */
955 BE_UDEF_92, /* Undefined */
956 BE_UDEF_93, /* Undefined */
957 BE_UDEF_94, /* Undefined */
958 BE_UDEF_95, /* Undefined */
959 BE_UDEF_96, /* Undefined */
960 BE_NEW_BSS_TO_OLD_BSS_INF, /* New BSS to Old BSS Information */
961 BE_UDEF_98, /* Undefined */
962 BE_INTER_SYS_INF, /* Inter-System Information */
963 BE_SNA_ACC_INF, /* SNA Access Information */
964 BE_VSTK_RAND_INF, /* VSTK_RAND Information */
965 BE_VSTK_INF, /* VSTK Information */
966 BE_PAGING_INF, /* Paging Information */
967 BE_IMEI, /* IMEI */
968 BE_VGCS_FEAT_FLG, /* VGCS Feature Flags */
969 BE_TALKER_PRI, /* Talker Priority */
970 BE_EMRG_SET_IND, /* Emergency Set Indication */
971 BE_TALKER_ID, /* Talker Identity */
972 BE_CELL_ID_LIST_SEG, /* Cell Identifier List Segment */
973 BE_SMS_TO_VGCS, /* SMS to VGCS */
974 BE_VGCS_TALKER_MOD, /* VGCS Talker Mode */
975 BE_VGS_VBS_CELL_STAT, /* VGCS/VBS Cell Status */
976 BE_CELL_ID_LST_SEG_F_EST_CELLS, /* Cell Identifier List Segment for established cells */
977 BE_CELL_ID_LST_SEG_F_CELL_TB_EST, /* Cell Identifier List Segment for cells to be established */
978 BE_CELL_ID_LST_SEG_F_REL_CELL, /* Cell Identifier List Segment for released cells - no user present */
979 BE_CELL_ID_LST_SEG_F_NOT_EST_CELL, /* Cell Identifier List Segment for not established cells - no establishment possible */
980 BE_GANSS_ASS_DTA, /* GANSS Assistance Data */
981 BE_GANSS_POS_DTA, /* GANSS Positioning Data */
982 BE_GANSS_LOC_TYP, /* GANSS Location Type */
983 BE_APP_DATA, /* Application Data */
984 BE_DATA_ID, /* Data Identity */
985 BE_APP_DATA_INF, /* Application Data Information */
986 BE_MSISDN, /* MSISDN */
987 BE_AOIP_TRANS_LAY_ADD, /* AoIP Transport Layer Address */
988 BE_SPEECH_CODEC_LST, /* Speech Codec List */
989 BE_SPEECH_CODEC, /* Speech Codec */
990 BE_CALL_ID, /* Call Identifier */
991 BE_CALL_ID_LST, /* Call Identifier List */
992 BE_A_ITF_SEL_FOR_RESET, /* A-Interface Selector for RESET */
993 BE_UDEF_130, /* Undefined */
994 BE_KC128, /* Kc128 */
995 BE_CSG_ID, /* CSG Identifier */
996 BE_REDIR_ATT_FLG, /* Redirect Attempt Flag 3.2.2.111 */
997 BE_REROUTE_REJ_CAUSE, /* Reroute Reject Cause 3.2.2.112 */
998 BE_SEND_SEQN, /* Send Sequence Number 3.2.2.113 */
999 BE_REROUTE_OUTCOME, /* Reroute complete outcome 3.2.2.114 */
1000 BE_GLOBAL_CALL_REF, /* Global Call Reference 3.2.2.115 */
1001 BE_LCLS_CONF, /* LCLS-Configuration 3.2.2.116 */
1002 BE_LCLS_CON_STATUS_CONTROL, /* LCLS-Connection-Status-Control 3.2.2.117 */
1003 BE_LCLS_CORR_NOT_NEEDED, /* LCLS-Correlation-Not-Needed 3.2.2.118 */
1004 BE_LCLS_BSS_STATUS, /* LCLS-BSS-Status 3.2.2.119 */
1005 BE_LCLS_BREAK_REQ, /* LCLS-Break-Request 3.2.2.120 */
1006 BE_CSFB_IND, /* CSFB Indication 3.2.2.121 */
1007 #if 0
1008 BE_CS_TO_PS_SRVCC, /* CS to PS SRVCC 3.2.2.122 */
1009 BE_SRC_ENB_2_TGT_ENB_TRANSP_INF, /* Source eNB to target eNB transparent information (E-UTRAN)" 3.2.2.123 */
1010 BE_CS_TO_PS_SRVCC_IND, /* CS to PS SRVCC Indication 3.2.2.124 */
1011 BE_CN_TO_MS_TRANSP, /* CN to MS transparent information 3.2.2.125 */
1012 #endif
1013 BE_SELECTED_PLMN_ID, /* Selected PLMN ID 3.2.2.126 */
1014 BE_NONE /* NONE */
1015 }
1016 bssmap_elem_idx_t;
1017
1018 typedef enum
1019 {
1020 /* BSSMAP LE Elements */
1021 DE_BMAPLE_LCSQOS, /* LCS QOS */
1022 DE_BMAPLE_LCS_PRIO, /* LCS Priority */
1023 DE_BMAPLE_LOC_TYPE, /* Location Type */
1024 DE_BMAPLE_GANSS_LOC_TYPE, /* GANSS Location Type */
1025 DE_BMAPLE_GEO_LOC, /* 10.9 Geographic Location */
1026 DE_BMAPLE_POS_DATA, /* Positioning Data */
1027 DE_BMAPLE_GANSS_POS_DATA, /* GANSS Positioning Data */
1028 DE_BMAPLE_VELOC_DATA, /* Velocity Data */
1029 DE_BMAPLE_LCS_CAUSE, /* LCS Cause */
1030 DE_BMAPLE_LCS_CLIENT_TYPE, /* LCS Client Type */
1031 DE_BMAPLE_APDU, /* 10.3 APDU */
1032 DE_BMAPLE_NETWORK_ELEM_ID, /* Network Element Identity */
1033 DE_BMAPLE_REQ_GPS_ASSIST_D, /* 10.10 Requested GPS Assistance Data */
1034 DE_BMAPLE_REQ_GNSS_ASSIST_D,/* Requested GANSS Assistance Data */
1035 DE_BMAPLE_DECIPH_KEYS, /* 10.8 Deciphering Keys */
1036 DE_BMAPLE_RETURN_ERROR_REQ, /* Return Error Request */
1037 DE_BMAPLE_RETURN_ERROR_CAUSE, /* Return Error Cause */
1038 DE_BMAPLE_SEGMENTATION, /* Segmentation */
1039 DE_BMAPLE_CLASSMARK_TYPE_3, /* Classmark Information Type 3 */
1040 DE_BMAPLE_CAUSE, /* 10.4 Cause */
1041 DE_BMAPLE_CELL_IDENTIFIER, /* 10.5 Cell Identifier */
1042 DE_BMAPLE_CHOSEN_CHANNEL, /* 10.6 Chosen Channel */
1043 DE_BMAPLE_IMSI, /* 10.11 IMSI */
1044 DE_BMAPLE_RES1, /* Reserved */
1045 DE_BMAPLE_RES2, /* Reserved */
1046 DE_BMAPLE_RES3, /* Reserved */
1047 DE_BMAPLE_LCS_CAPABILITY, /* LCS Capability */
1048 DE_BMAPLE_PACKET_MEAS_REP, /* Packet Measurement Report */
1049 DE_BMAPLE_MEAS_CELL_ID, /* Measured Cell Identity */
1050 DE_BMAPLE_IMEI, /* IMEI */
1051 BMAPLE_NONE /* NONE */
1052 }
1053 bssmap_le_elem_idx_t;
1054
1055 typedef enum
1056 {
1057 /* BSS LAP Elements 5 */
1058 DE_BLAP_RES1, /* Reserved */
1059 DE_BLAP_TA, /* Timing Advance */
1060 DE_BLAP_RES3, /* Reserved */ /* (note) */
1061 DE_BLAP_RES4, /* Cell Identity */
1062 DE_BLAP_RES5, /* Reserved */ /* (note) */
1063 DE_BLAP_RES6, /* Reserved */ /* (note) */
1064 DE_BLAP_RES7, /* Reserved */ /* (note) */
1065 DE_BLAP_CH_DESC, /* Channel Description */
1066 DE_BLAP_RES9, /* Reserved */ /* (note) */
1067 DE_BLAP_RES10, /* Reserved */ /* (note) */
1068 DE_BLAP_RES11, /* Reserved */ /* (note) */
1069 DE_BLAP_MEAS_REP, /* Measurement Report */
1070 DE_BLAP_RES13, /* Reserved */ /* (note) */
1071 DE_BLAP_CAUSE, /* Cause */
1072 DE_BLAP_RRLP_FLG, /* RRLP Flag */
1073 DE_BLAP_RRLP_IE, /* RRLP IE */
1074 DE_BLAP_CELL_ID_LIST, /* Cell Identity List */
1075 DE_BLAP_ENH_MEAS_REP, /* Enhanced Measurement Report */
1076 DE_BLAP_LAC, /* Location Area Code */
1077 DE_BLAP_FREQ_LIST, /* Frequency List */
1078 DE_BLAP_MS_POW, /* MS Power */
1079 DE_BLAP_DELTA_TIME, /* Delta Timer */
1080 DE_BLAP_SERV_CELL_ID, /* Serving Cell Identifier */
1081 DE_BLAP_ENC_KEY, /* Encryption Key (Kc) */
1082 DE_BLAP_CIP_M_SET, /* Cipher Mode Setting */
1083 DE_BLAP_CH_MODE, /* Channel Mode */
1084 DE_BLAP_POLL_REP, /* Polling Repetition */
1085 DE_BLAP_PKT_CH_DESC, /* Packet Channel Description */
1086 DE_BLAP_TLLI, /* TLLI */
1087 DE_BLAP_TFI, /* TFI */
1088 DE_BLAP_START_TIME, /* Starting Time */
1089 BSSLAP_NONE /* NONE */
1090 }
1091 bsslap_elem_idx_t;
1092
1093 typedef enum
1094 {
1095 /* Mobility Management Information Elements [3] 10.5.3 */
1096 DE_AUTH_PARAM_RAND, /* Authentication Parameter RAND */
1097 DE_AUTH_PARAM_AUTN, /* Authentication Parameter AUTN (UMTS and EPS authentication challenge) */
1098 DE_AUTH_RESP_PARAM, /* Authentication Response Parameter */
1099 DE_AUTH_RESP_PARAM_EXT, /* Authentication Response Parameter (extension) (UMTS authentication challenge only) */
1100 DE_AUTH_FAIL_PARAM, /* Authentication Failure Parameter (UMTS and EPS authentication challenge) */
1101 DE_CM_SRVC_TYPE, /* CM Service Type */
1102 DE_ID_TYPE, /* Identity Type */
1103 DE_LOC_UPD_TYPE, /* Location Updating Type */
1104 DE_NETWORK_NAME, /* Network Name */
1105 DE_REJ_CAUSE, /* Reject Cause */
1106 DE_FOP, /* Follow-on Proceed */
1107 DE_TIME_ZONE, /* Time Zone */
1108 DE_TIME_ZONE_TIME, /* Time Zone and Time */
1109 DE_CTS_PERM, /* CTS Permission */
1110 DE_LSA_ID, /* LSA Identifier */
1111 DE_DAY_SAVING_TIME, /* Daylight Saving Time */
1112 DE_EMERGENCY_NUM_LIST, /* Emergency Number List */
1113 DE_ADD_UPD_PARAMS, /* Additional update parameters */
1114 DE_MM_TIMER, /* MM Timer */
1115 /* Call Control Information Elements 10.5.4 */
1116 DE_AUX_STATES, /* Auxiliary States */
1117 DE_BEARER_CAP, /* Bearer Capability */
1118 DE_CC_CAP, /* Call Control Capabilities */
1119 DE_CALL_STATE, /* Call State */
1120 DE_CLD_PARTY_BCD_NUM, /* Called Party BCD Number */
1121 DE_CLD_PARTY_SUB_ADDR, /* Called Party Subaddress */
1122 DE_CLG_PARTY_BCD_NUM, /* Calling Party BCD Number */
1123 DE_CLG_PARTY_SUB_ADDR, /* Calling Party Subaddress */
1124 DE_CAUSE, /* Cause */
1125 DE_CLIR_SUP, /* CLIR Suppression */
1126 DE_CLIR_INV, /* CLIR Invocation */
1127 DE_CONGESTION, /* Congestion Level */
1128 DE_CONN_NUM, /* Connected Number */
1129 DE_CONN_SUB_ADDR, /* Connected Subaddress */
1130 DE_FACILITY, /* Facility */
1131 DE_HLC, /* High Layer Compatibility */
1132 DE_KEYPAD_FACILITY, /* Keypad Facility */
1133 DE_LLC, /* Low Layer Compatibility */
1134 DE_MORE_DATA, /* More Data */
1135 DE_NOT_IND, /* Notification Indicator */
1136 DE_PROG_IND, /* Progress Indicator */
1137 DE_RECALL_TYPE, /* Recall type $(CCBS)$ */
1138 DE_RED_PARTY_BCD_NUM, /* Redirecting Party BCD Number */
1139 DE_RED_PARTY_SUB_ADDR, /* Redirecting Party Subaddress */
1140 DE_REPEAT_IND, /* Repeat Indicator */
1141 DE_REV_CALL_SETUP_DIR, /* Reverse Call Setup Direction */
1142 DE_SETUP_CONTAINER, /* SETUP Container $(CCBS)$ */
1143 DE_SIGNAL, /* Signal */
1144 DE_SS_VER_IND, /* SS Version Indicator */
1145 DE_USER_USER, /* User-user */
1146 DE_ALERT_PATTERN, /* Alerting Pattern $(NIA)$ */
1147 DE_ALLOWED_ACTIONS, /* Allowed Actions $(CCBS)$ */
1148 DE_SI, /* Stream Identifier */
1149 DE_NET_CC_CAP, /* Network Call Control Capabilities */
1150 DE_CAUSE_NO_CLI, /* Cause of No CLI */
1151 DE_SUP_CODEC_LIST, /* Supported Codec List */
1152 DE_SERV_CAT, /* Service Category */
1153 DE_REDIAL, /* 10.5.4.34 Redial */
1154 DE_NET_INIT_SERV_UPG, /* 10.5.4.35 Network-initiated Service Upgrade ind */
1155 /* Short Message Service Information Elements [5] 8.1.4 */
1156 DE_CP_USER_DATA, /* CP-User Data */
1157 DE_CP_CAUSE, /* CP-Cause */
1158 /* Tests procedures information elements 3GPP TS 44.014 6.4.0 and 3GPP TS 34.109 6.4.0 */
1159 DE_TP_SUB_CHANNEL, /* Close TCH Loop Cmd Sub-channel */
1160 DE_TP_ACK, /* Open Loop Cmd Ack */
1161 DE_TP_LOOP_TYPE, /* Close Multi-slot Loop Cmd Loop type*/
1162 DE_TP_LOOP_ACK, /* Close Multi-slot Loop Ack Result */
1163 DE_TP_TESTED_DEVICE, /* Test Interface Tested device */
1164 DE_TP_PDU_DESCRIPTION, /* GPRS Test Mode Cmd PDU description */
1165 DE_TP_MODE_FLAG, /* GPRS Test Mode Cmd Mode flag */
1166 DE_TP_EGPRS_MODE_FLAG, /* EGPRS Start Radio Block Loopback Cmd Mode flag */
1167 DE_TP_MS_POSITIONING_TECHNOLOGY, /* MS Positioning Technology */
1168 DE_TP_UE_TEST_LOOP_MODE, /* Close UE Test Loop Mode */
1169 DE_TP_UE_POSITIONING_TECHNOLOGY, /* UE Positioning Technology */
1170 DE_TP_RLC_SDU_COUNTER_VALUE, /* RLC SDU Counter Value */
1171 DE_TP_EPC_UE_TEST_LOOP_MODE, /* UE Test Loop Mode */
1172 DE_TP_EPC_UE_TL_A_LB_SETUP, /* UE Test Loop Mode A LB Setup */
1173 DE_TP_EPC_UE_TL_B_LB_SETUP, /* UE Test Loop Mode B LB Setup */
1174 DE_TP_EPC_UE_TL_C_SETUP, /* UE Test Loop Mode C Setup */
1175 DE_TP_EPC_UE_TL_D_SETUP, /* UE Test Loop Mode D Setup */
1176 DE_TP_EPC_UE_TL_E_SETUP, /* UE Test Loop Mode E Setup */
1177 DE_TP_EPC_UE_TL_F_SETUP, /* UE Test Loop Mode F Setup */
1178 DE_TP_EPC_UE_TL_GH_SETUP, /* UE Test Loop Mode GH Setup */
1179 DE_TP_EPC_UE_POSITIONING_TECHNOLOGY,/* UE Positioning Technology */
1180 DE_TP_EPC_MBMS_PACKET_COUNTER_VALUE,/* MBMS Packet Counter Value */
1181 DE_TP_EPC_ELLIPSOID_POINT_WITH_ALT, /* ellipsoidPointWithAltitude */
1182 DE_TP_EPC_HORIZONTAL_VELOCITY, /* horizontalVelocity */
1183 DE_TP_EPC_GNSS_TOD_MSEC, /* gnss-TOD-msec */
1184 /* Group Call Control Service Information Elements ETSI TS 100 948 V8.1.0 (GSM 04.68 version 8.1.0 Release 1999) */
1185 DE_GCC_CALL_REF, /* Call Reference */
1186 DE_GCC_CALL_STATE, /* Call state */
1187 DE_GCC_CAUSE, /* Cause */
1188 DE_GCC_ORIG_IND, /* Originator indication */
1189 DE_GCC_STATE_ATTR, /* State attributes */
1190 /* Broadcast Call Control Information Elements ETSI TS 144 069 V10.0.0 (3GPP TS 44.069 version 10.0.0 Release 10) */
1191 DE_BCC_CALL_REF, /* Call Reference */
1192 DE_BCC_CALL_STATE, /* Call state */
1193 DE_BCC_CAUSE, /* Cause */
1194 DE_BCC_ORIG_IND, /* Originator indication */
1195 DE_BCC_STATE_ATTR, /* State attributes */
1196 DE_BCC_COMPR_OTDI, /* Compressed otdi */
1197 DE_NONE /* NONE */
1198 }
1199 dtap_elem_idx_t;
1200
1201 typedef enum
1202 {
1203 /* GPRS Mobility Management Information Elements [3] 10.5.5 */
1204 DE_ADD_UPD_TYPE, /* [11] 10.5.5.0 Additional Update Type */
1205 DE_ATTACH_RES, /* [7] 10.5.5.1 Attach Result*/
1206 DE_ATTACH_TYPE, /* [7] 10.5.5.2 Attach Type */
1207 DE_CIPH_ALG, /* [7] 10.5.5.3 Ciphering Algorithm */
1208 DE_INTEG_ALG, /* [11] 10.5.5.3a Integrity Algorithm */
1209 DE_TMSI_STAT, /* [7] 10.5.5.4 TMSI Status */
1210 DE_DETACH_TYPE, /* [7] 10.5.5.5 Detach Type */
1211 DE_DRX_PARAM, /* [7] 10.5.5.6 DRX Parameter */
1212 DE_FORCE_TO_STAND, /* [7] 10.5.5.7 Force to Standby */
1213 DE_FORCE_TO_STAND_H, /* [7] 10.5.5.7 Force to Standby - Info is in the high nibble */
1214 DE_P_TMSI_SIG, /* [7] 10.5.5.8 P-TMSI Signature */
1215 DE_P_TMSI_SIG_2, /* [7] 10.5.5.8a P-TMSI Signature 2 */
1216 DE_ID_TYPE_2, /* [7] 10.5.5.9 Identity Type 2 */
1217 DE_IMEISV_REQ, /* [7] 10.5.5.10 IMEISV Request */
1218 DE_REC_N_PDU_NUM_LIST, /* [7] 10.5.5.11 Receive N-PDU Numbers List */
1219 DE_MS_NET_CAP, /* [7] 10.5.5.12 MS Network Capability */
1220 DE_MS_RAD_ACC_CAP, /* [7] 10.5.5.12a MS Radio Access Capability */
1221 DE_GMM_CAUSE, /* [7] 10.5.5.14 GMM Cause */
1222 DE_RAI, /* [7] 10.5.5.15 Routing Area Identification */
1223 DE_RAI_2, /* [7] 10.5.5.15a Routing Area Identification 2 */
1224 DE_UPD_RES, /* [7] 10.5.5.17 Update Result */
1225 DE_UPD_TYPE, /* [7] 10.5.5.18 Update Type */
1226 DE_AC_REF_NUM, /* [7] 10.5.5.19 A&C Reference Number */
1227 DE_AC_REF_NUM_H, /* A&C Reference Number - Info is in the high nibble */
1228 DE_SRVC_TYPE, /* [7] 10.5.5.20 Service Type */
1229 DE_CELL_NOT, /* [7] 10.5.5.21 Cell Notification */
1230 DE_PS_LCS_CAP, /* [7] 10.5.5.22 PS LCS Capability */
1231 DE_NET_FEAT_SUP, /* [7] 10.5.5.23 Network Feature Support */
1232 DE_ADD_NET_FEAT_SUP, /* [11] 10.5.5.23a Additional network feature support */
1233 DE_RAT_INFO_CONTAINER, /* [7] 10.5.5.24 Inter RAT information container */
1234 DE_REQ_MS_INFO, /* [7] 10.5.5.25 Requested MS information */
1235 DE_UE_NETWORK_CAP, /* [7] 10.5.5.26 UE network capability */
1236 DE_EUTRAN_IRAT_INFO_CONTAINER, /* [7] 10.5.5.27 E-UTRAN inter RAT information container */
1237 DE_VOICE_DOMAIN_PREF, /* [7] 10.5.5.28 Voice domain preference and UE's usage setting */
1238 DE_PTMSI_TYPE, /* [10] 10.5.5.29 P-TMSI type */
1239 DE_LAI_2, /* [10] 10.5.5.30 Location Area Identification 2 */
1240 DE_NET_RES_ID_CONT, /* [11] 10.5.5.31 Network resource identifier container */
1241 DE_EXT_DRX_PARAMS, /* [11] 10.5.5.32 Extended DRX parameters */
1242 DE_MAC, /* [11] 10.5.5.33 Message Authentication Code */
1243 DE_UP_INTEG_IND, /* [11] 10.5.5.34 User Plane integrity indicator */
1244 DE_DCN_ID, /* [12] 10.5.5.35 DCN-ID */
1245 DE_PLMN_ID_CN_OPERATOR, /* [12] 10.5.5.36 PLMN identity of the CN operator */
1246 DE_NON_3GPP_NW_PROV_POL, /* [12] 10.5.5.37 Non-3GPP NW provided policies */
1247 /* Session Management Information Elements [3] 10.5.6 */
1248 DE_ACC_POINT_NAME, /* Access Point Name */
1249 DE_NET_SAPI, /* Network Service Access Point Identifier */
1250 DE_PRO_CONF_OPT, /* Protocol Configuration Options */
1251 DE_EXT_PRO_CONF_OPT, /* Extended Protocol Configuration Options */
1252 DE_PD_PRO_ADDR, /* Packet Data Protocol Address */
1253 DE_QOS, /* Quality Of Service */
1254 DE_RE_ATTEMPT_IND, /* Re-attempt indicator */
1255 DE_EXT_QOS, /* [13] Extended quality of service */
1256 DE_SM_CAUSE, /* SM Cause */
1257 DE_SM_CAUSE_2, /* SM Cause 2 */
1258 DE_LINKED_TI, /* Linked TI */
1259 DE_LLC_SAPI, /* LLC Service Access Point Identifier */
1260 DE_TEAR_DOWN_IND, /* Tear Down Indicator */
1261 DE_PACKET_FLOW_ID, /* Packet Flow Identifier */
1262 DE_TRAFFIC_FLOW_TEMPLATE, /* Traffic Flow Template */
1263 DE_TMGI, /* Temporary Mobile Group Identity (TMGI) */
1264 DE_MBMS_BEARER_CAP, /* MBMS bearer capabilities */
1265 DE_MBMS_PROT_CONF_OPT, /* MBMS protocol configuration options */
1266 DE_ENH_NSAPI, /* Enhanced network service access point identifier */
1267 DE_REQ_TYPE, /* Request type */
1268 DE_SM_NOTIF_IND, /* Notification indicator */
1269 DE_SM_CONNECTIVITY_TYPE, /* Connectivity type */
1270 DE_SM_WLAN_OFFLOAD_ACCEPT, /* WLAN offload acceptability */
1271 DE_NBIFOM_CONT, /* NBIFOM container */
1272 /* GPRS Common Information Elements [8] 10.5.7 */
1273 DE_PDP_CONTEXT_STAT, /* [8] 10.5.7.1 PDP Context Status */
1274 DE_RAD_PRIO, /* [8] 10.5.7.2 Radio Priority */
1275 DE_GPRS_TIMER, /* [8] 10.5.7.3 GPRS Timer */
1276 DE_GPRS_TIMER_2, /* [8] 10.5.7.4 GPRS Timer 2 */
1277 DE_GPRS_TIMER_3, /* [10] 10.5.7.4a GPRS Timer 3 */
1278 DE_RAD_PRIO_2, /* [8] 10.5.7.5 Radio Priority 2 */
1279 DE_MBMS_CTX_STATUS, /* [8] 10.5.7.6 MBMS context status */
1280 DE_UPLINK_DATA_STATUS, /* [8] 10.5.7.7 Uplink data status */
1281 DE_DEVICE_PROPERTIES, /* [10] 10.5.7.8 Device properties */
1282 DE_GM_NONE /* NONE */
1283 }
1284 gm_elem_idx_t;
1285
1286 typedef enum
1287 {
1288 /* Radio Resource Management Information Elements 10.5.2, most are from 10.5.1 */
1289 DE_RR_BA_RANGE, /* [3] 10.5.2.1a BA Range */
1290 DE_RR_CELL_CH_DSC, /* [3] 10.5.2.1b Cell Channel Description */
1291 DE_RR_BA_LIST_PREF, /* [3] 10.5.2.1c BA List Pref */
1292 DE_RR_UTRAN_FREQ_LIST, /* [3] 10.5.2.1d UTRAN Frequency List */
1293 DE_RR_CELL_SELECT_INDIC, /* [3] 10.5.2.1e Cell selection indicator after release of all TCH and SDCCH IE */
1294 DE_RR_CELL_DSC, /* 10.5.2.2 RR Cell Description */
1295 DE_RR_CELL_OPT_BCCH, /* [3] 10.5.2.3 Cell Options (BCCH) */
1296 DE_RR_CELL_OPT_SACCH, /* [3] 10.5.2.3a Cell Options (SACCH) */
1297 DE_RR_CELL_SEL_PARAM, /* [3] 10.5.2.4 Cell Selection Parameters */
1298 /*
1299 * [3] 10.5.2.4a (void)
1300 */
1301 DE_RR_CH_DSC, /* [3] 10.5.2.5 Channel Description */
1302 DE_RR_CH_DSC2, /* [3] 10.5.2.5a Channel Description 2 */
1303 DE_RR_CH_DSC3, /* [3] 10.5.2.5c Channel Description 3 */
1304 DE_RR_CH_MODE, /* [3] 10.5.2.6 Channel Mode */
1305 DE_RR_CH_MODE2, /* [3] 10.5.2.7 Channel Mode 2 */
1306 DE_RR_UTRAN_CM, /* [3] 10.5.2.7a UTRAN Classmark */
1307 /* [3] 10.5.2.7b (void) */
1308 DE_RR_CM_ENQ_MASK, /* [3] 10.5.2.7c Classmark Enquiry Mask */
1309 /* [3] 10.5.2.7d GERAN Iu Mode Classmark information element */
1310 DE_RR_CHNL_NEEDED, /* [3] 10.5.2.8 Channel Needed
1311 * [3] 10.5.2.8a (void) */
1312 DE_RR_CHNL_REQ_DESC2, /* [3] 10.5.2.8b Channel Request Description 2 */
1313 DE_RR_CIP_MODE_SET, /* [3] 10.5.2.9 Cipher Mode Setting */
1314 DE_RR_CIP_MODE_RESP, /* [3] 10.5.2.10 Cipher Response */
1315 DE_RR_CTRL_CH_DESC, /* [3] 10.5.2.11 Control Channel Description */
1316 DE_RR_DTM_INFO_DETAILS, /* [3] 10.5.2.11a DTM Information Details */
1317 DE_RR_DYN_ARFCN_MAP, /* [3] 10.5.2.11b Dynamic ARFCN Mapping */
1318 DE_RR_FREQ_CH_SEQ, /* [3] 10.5.2.12 Frequency Channel Sequence */
1319 DE_RR_FREQ_LIST, /* [3] 10.5.2.13 Frequency List */
1320 DE_RR_FREQ_SHORT_LIST, /* [3] 10.5.2.14 Frequency Short List */
1321 DE_RR_FREQ_SHORT_LIST2, /* [3] 10.5.2.14a Frequency Short List 2 */
1322 /* [3] 10.5.2.14b Group Channel Description */
1323 DE_RR_GPRS_RESUMPTION, /* [3] 10.5.2.14c GPRS Resumption */
1324 DE_RR_GPRS_BROADCAST_INFORMATION, /* [3] 10.5.2.14d GPRS broadcast information */
1325 /* [3] 10.5.2.14e Enhanced DTM CS Release Indication*/
1326
1327 DE_RR_HO_REF, /* 10.5.2.15 Handover Reference */
1328
1329 DE_RR_IA_REST_OCT, /* [3] 10.5.2.16 IA Rest Octets */
1330 DE_RR_IAR_REST_OCT, /* [3] 10.5.2.17 IAR Rest Octets */
1331 DE_RR_IAX_REST_OCT, /* [3] 10.5.2.18 IAX Rest Octets */
1332 DE_RR_L2_PSEUDO_LEN, /* [3] 10.5.2.19 L2 Pseudo Length */
1333 DE_RR_MEAS_RES, /* [3] 10.5.2.20 Measurement Results */
1334 /* [3] 10.5.2.20a GPRS Measurement Results */
1335 DE_RR_MOB_ALL, /* [3] 10.5.2.21 Mobile Allocation */
1336 DE_RR_MOB_TIME_DIFF, /* [3] 10.5.2.21a Mobile Time Difference */
1337 DE_RR_MULTIRATE_CONF, /* [3] 10.5.2.21aa MultiRate configuration */
1338 DE_RR_MULT_ALL, /* [3] 10.5.2.21b Multislot Allocation */
1339 /*
1340 * [3] 10.5.2.21c NC mode
1341 */
1342 DE_RR_NEIGH_CELL_DESC, /* [3] 10.5.2.22 Neighbour Cell Description */
1343 DE_RR_NEIGH_CELL_DESC2, /* [3] 10.5.2.22a Neighbour Cell Description 2 */
1344 /*
1345 * [3] 10.5.2.22b (void)
1346 * [3] 10.5.2.22c NT/N Rest Octets */
1347 DE_RR_P1_REST_OCT, /* [3] 10.5.2.23 P1 Rest Octets */
1348 DE_RR_P2_REST_OCT, /* [3] 10.5.2.24 P2 Rest Octets */
1349 DE_RR_P3_REST_OCT, /* [3] 10.5.2.25 P3 Rest Octets */
1350 DE_RR_PACKET_CH_DESC, /* [3] 10.5.2.25a Packet Channel Description */
1351 DE_RR_DED_MOD_OR_TBF, /* [3] 10.5.2.25b Dedicated mode or TBF */
1352 DE_RR_PKT_UL_ASS, /* [3] 10.5.2.25c RR Packet Uplink Assignment */
1353 DE_RR_PKT_DL_ASS, /* [3] 10.5.2.25d RR Packet Downlink Assignment */
1354 DE_RR_PKT_DL_ASS_TYPE2, /* [3] 10.5.2.25d RR Packet Downlink Assignment Type 2 */
1355 DE_RR_PAGE_MODE, /* [3] 10.5.2.26 Page Mode */
1356 DE_RR_NCC_PERM, /* [3] 10.5.2.27 NCC Permitted */
1357 DE_RR_POW_CMD, /* 10.5.2.28 Power Command */
1358 DE_RR_POW_CMD_AND_ACC_TYPE, /* 10.5.2.28a Power Command and access type */
1359 DE_RR_RACH_CTRL_PARAM, /* [3] 10.5.2.29 RACH Control Parameters */
1360 DE_RR_REQ_REF, /* [3] 10.5.2.30 Request Reference */
1361 DE_RR_CAUSE, /* 10.5.2.31 RR Cause */
1362 DE_RR_SYNC_IND, /* 10.5.2.39 Synchronization Indication */
1363 DE_RR_SI1_REST_OCT, /* [3] 10.5.2.32 SI1 Rest Octets */
1364 /* [3] 10.5.2.33 SI 2bis Rest Octets */
1365 DE_RR_SI2TER_REST_OCT, /* [3] 10.5.2.33a SI 2ter Rest Octets */
1366 DE_RR_SI2QUATER_REST_OCT, /* [3] 10.5.2.33b SI 2quater Rest Octets */
1367 DE_RR_SI3_REST_OCT, /* [3] 10.5.2.34 SI3 Rest Octets */
1368 DE_RR_SI4_REST_OCT, /* [3] 10.5.2.35 SI4 Rest Octets */
1369 DE_RR_SI6_REST_OCT, /* [3] 10.5.2.35a SI6 Rest Octets */
1370 /* [3] 10.5.2.36 SI 7 Rest Octets
1371 * [3] 10.5.2.37 SI 8 Rest Octets
1372 * [3] 10.5.2.37a SI 9 Rest Octets
1373 */
1374 DE_RR_SI13_REST_OCT, /* [3] 10.5.2.37b SI13 Rest Octets */
1375 /* [3] 10.5.2.37c (void)
1376 * [3] 10.5.2.37d (void)
1377 * [3] 10.5.2.37e SI 16 Rest Octets
1378 * [3] 10.5.2.37f SI 17 Rest Octets
1379 * [3] 10.5.2.37g SI 19 Rest Octets
1380 * [3] 10.5.2.37h SI 18 Rest Octets
1381 * [3] 10.5.2.37i SI 20 Rest Octets */
1382 DE_RR_SI21_REST_OCT, /* [3] 10.5.2.37m SI21 Rest Octets */
1383 DE_RR_STARTING_TIME, /* [3] 10.5.2.38 Starting Time */
1384 DE_RR_TIMING_ADV, /* [3] 10.5.2.40 Timing Advance */
1385 DE_RR_TIME_DIFF, /* [3] 10.5.2.41 Time Difference */
1386 DE_RR_TLLI, /* [3] 10.5.2.41a TLLI */
1387 DE_RR_TMSI_PTMSI, /* [3] 10.5.2.42 TMSI/P-TMSI */
1388 DE_RR_VGCS_TAR_MODE_IND, /* [3] 10.5.2.42a VGCS target mode Indication */
1389 DE_RR_VGCS_CIP_PAR, /* [3] 10.5.2.42b VGCS Ciphering Parameters */
1390
1391 DE_RR_WAIT_IND, /* [3] 10.5.2.43 Wait Indication */
1392 /* [3] 10.5.2.44 SI10 rest octets $(ASCI)$ */
1393 DE_RR_EXT_MEAS_RESULT, /* [3] 10.5.2.45 Extended Measurement Results */
1394 DE_RR_EXT_MEAS_FREQ_LIST, /* [3] 10.5.2.46 Extended Measurement Frequency List */
1395 DE_RR_SUS_CAU, /* [3] 10.5.2.47 Suspension Cause */
1396 DE_RR_APDU_ID, /* [3] 10.5.2.48 APDU ID */
1397 DE_RR_APDU_FLAGS, /* [3] 10.5.2.49 APDU Flags */
1398 DE_RR_APDU_DATA, /* [3] 10.5.2.50 APDU Data */
1399 DE_RR_HO_TO_UTRAN_CMD, /* [3] 10.5.2.51 Handover To UTRAN Command */
1400 /* [3] 10.5.2.52 Handover To cdma2000 Command
1401 * [3] 10.5.2.53 (void)
1402 * [3] 10.5.2.54 (void)
1403 * [3] 10.5.2.55 (void)
1404 * [3] 10.5.2.56 3G Target Cell */
1405 DE_RR_SERV_SUP, /* 10.5.2.57 Service Support */
1406 /* 10.5.2.58 MBMS p-t-m Channel Description
1407 */
1408
1409 DE_RR_DED_SERV_INF, /* [3] 10.5.2.59 Dedicated Service Information */
1410
1411 /*
1412 * 10.5.2.60 MPRACH Description
1413 * 10.5.2.61 Restriction Timer
1414 * 10.5.2.62 MBMS Session Identity
1415 * 10.5.2.63 Reduced group or broadcast call reference
1416 * 10.5.2.64 Talker Priority status
1417 * 10.5.2.65 Talker Identity
1418 * 10.5.2.66 Token
1419 * 10.5.2.67 PS Cause
1420 * 10.5.2.68 VGCS AMR Configuration
1421 */
1422 DE_RR_CARRIER_IND, /* 10.5.2.69 Carrier Indication */
1423 DE_RR_FEATURE_INDICATOR, /* 10.5.2.76 feature Inticator */
1424 DE_RR_EC_REQUEST_REFERENCE, /* 10.5.2.83 EC Request reference */
1425 DE_RR_EC_PKT_CH_DSC1, /* 10.5.2.84 EC Packet Channel Description Type 1 */
1426 DE_RR_EC_PKT_CH_DSC2, /* 10.5.2.85 EC Packet Channel Description Type 2 */
1427 DE_RR_EC_FUA, /* 10.5.2.86 EC Fixed Uplink Allocation */
1428
1429 DE_RR_NONE /* NONE */
1430 }
1431 rr_elem_idx_t;
1432
1433 typedef enum
1434 {
1435 /* 9.9.3 EPS Mobility Management (EMM) information elements */
1436 DE_EMM_ADD_UPD_RES, /* 9.9.3.0A Additional update result */
1437 DE_EMM_ADD_UPD_TYPE, /* 9.9.3.0B Additional update type */
1438 DE_EMM_AUTH_FAIL_PAR, /* 9.9.3.1 Authentication failure parameter (dissected in packet-gsm_a_dtap.c)*/
1439 DE_EMM_AUTN, /* 9.9.3.2 Authentication parameter AUTN */
1440 DE_EMM_AUTH_PAR_RAND, /* 9.9.3.3 Authentication parameter RAND */
1441 DE_EMM_AUTH_RESP_PAR, /* 9.9.3.4 Authentication response parameter */
1442 DE_EMM_SMS_SERVICES_STATUS, /* 9.9.3.4B SMS services status */
1443 DE_EMM_CSFB_RESP, /* 9.9.3.5 CSFB response */
1444 DE_EMM_DAYL_SAV_T, /* 9.9.3.6 Daylight saving time */
1445 DE_EMM_DET_TYPE, /* 9.9.3.7 Detach type */
1446 DE_EMM_DRX_PAR, /* 9.9.3.8 DRX parameter (dissected in packet-gsm_a_gm.c)*/
1447 DE_EMM_CAUSE, /* 9.9.3.9 EMM cause */
1448 DE_EMM_ATT_RES, /* 9.9.3.10 EPS attach result (Coded inline */
1449 DE_EMM_ATT_TYPE, /* 9.9.3.11 EPS attach type (Coded Inline)*/
1450 DE_EMM_EPS_MID, /* 9.9.3.12 EPS mobile identity */
1451 DE_EMM_EPS_NET_FEATURE_SUP, /* 9.9.3.12A EPS network feature support */
1452 DE_EMM_EPS_UPD_RES, /* 9.9.3.13 EPS update result ( Coded inline)*/
1453 DE_EMM_EPS_UPD_TYPE, /* 9.9.3.14 EPS update type */
1454 DE_EMM_ESM_MSG_CONT, /* 9.9.3.15 ESM message conta */
1455 DE_EMM_GPRS_TIMER, /* 9.9.3.16 GPRS timer ,See subclause 10.5.7.3 in 3GPP TS 24.008 [6]. */
1456 DE_EMM_GPRS_TIMER_2, /* 9.9.3.16A GPRS timer 2, See subclause 10.5.7.4 in 3GPP TS 24.008. */
1457 DE_EMM_GPRS_TIMER_3, /* 9.9.3.16B GPRS timer 3, See subclause 10.5.7.4a in 3GPP TS 24.008. */
1458 DE_EMM_ID_TYPE_2, /* 9.9.3.17 Identity type 2 ,See subclause 10.5.5.9 in 3GPP TS 24.008 [6]. */
1459 DE_EMM_IMEISV_REQ, /* 9.9.3.18 IMEISV request ,See subclause 10.5.5.10 in 3GPP TS 24.008 [6]. */
1460 DE_EMM_KSI_AND_SEQ_NO, /* 9.9.3.19 KSI and sequence number */
1461 DE_EMM_MS_NET_CAP, /* 9.9.3.20 MS network capability ,See subclause 10.5.5.12 in 3GPP TS 24.008 [6]. */
1462 DE_EMM_MS_NET_FEAT_SUP, /* 9.9.3.20A MS network feature support, See subclause 10.5.1.15 in 3GPP TS 24.008. */
1463 DE_EMM_NAS_KEY_SET_ID, /* 9.9.3.21 NAS key set identifier (coded inline)*/
1464 DE_EMM_NAS_MSG_CONT, /* 9.9.3.22 NAS message container */
1465 DE_EMM_NAS_SEC_ALGS, /* 9.9.3.23 NAS security algorithms */
1466 DE_EMM_NET_NAME, /* 9.9.3.24 Network name, See subclause 10.5.3.5a in 3GPP TS 24.008 [6]. */
1467 DE_EMM_NONCE, /* 9.9.3.25 Nonce */
1468 DE_EMM_PAGING_ID, /* 9.9.3.25A Paging identity */
1469 DE_EMM_P_TMSI_SIGN, /* 9.9.3.26 P-TMSI signature, See subclause 10.5.5.8 in 3GPP TS 24.008 [6]. */
1470 DE_EMM_EXT_CAUSE, /* 9.9.3.26A Extended EMM cause */
1471 DE_EMM_SERV_TYPE, /* 9.9.3.27 Service type */
1472 DE_EMM_SHORT_MAC, /* 9.9.3.28 Short MAC */
1473 DE_EMM_TZ, /* 9.9.3.29 Time zone, See subclause 10.5.3.8 in 3GPP TS 24.008 [6]. */
1474 DE_EMM_TZ_AND_T, /* 9.9.3.30 Time zone and time, See subclause 10.5.3.9 in 3GPP TS 24.008 [6]. */
1475 DE_EMM_TMSI_STAT, /* 9.9.3.31 TMSI status, See subclause 10.5.5.4 in 3GPP TS 24.008 [6]. */
1476 DE_EMM_TRAC_AREA_ID, /* 9.9.3.32 Tracking area identity */
1477 DE_EMM_TRAC_AREA_ID_LST, /* 9.9.3.33 Tracking area identity list */
1478 DE_EMM_UE_NET_CAP, /* 9.9.3.34 UE network capability */
1479 DE_EMM_UE_RA_CAP_INF_UPD_NEED, /* 9.9.3.35 UE radio capability information update needed */
1480 DE_EMM_UE_SEC_CAP, /* 9.9.3.36 UE security capability */
1481 DE_EMM_EMERG_NUM_LIST, /* 9.9.3.37 Emergency Number List */
1482 DE_EMM_EXT_EMERG_NUM_LIST, /* 9.9.3.37a Extended Emergency Number List */
1483 DE_EMM_CLI, /* 9.9.3.38 CLI */
1484 DE_EMM_SS_CODE, /* 9.9.3.39 SS Code */
1485 DE_EMM_LCS_IND, /* 9.9.3.40 LCS indicator */
1486 DE_EMM_LCS_CLIENT_ID, /* 9.9.3.41 LCS client identity */
1487 DE_EMM_GEN_MSG_CONT_TYPE, /* 9.9.3.42 Generic message container type */
1488 DE_EMM_GEN_MSG_CONT, /* 9.9.3.43 Generic message container */
1489 DE_EMM_VOICE_DMN_PREF, /* 9.9.3.44 Voice domain preference and UE's usage setting */
1490 DE_EMM_GUTI_TYPE, /* 9.9.3.45 GUTI type */
1491 DE_EMM_EXT_DRX_PARAMS, /* 9.9.3.46 Extended DRX parameters */
1492 DE_EMM_DATA_SERV_TYPE, /* 9.9.3.47 Data service type */
1493 DE_EMM_DCN_ID, /* 9.9.3.48 DCN-ID, See subclause 10.5.5.35 in 3GPP TS 24.008 */
1494 DE_EMM_NON_3GPP_NW_PROV_POL, /* 9.9.3.49 Non-3GPP NW provided policies, See subclause 10.5.5.37 in 3GPP TS 24.008 */
1495 DE_EMM_HASH_MME, /* 9.9.3.50 HashMME */
1496 DE_EMM_REPLAYED_NAS_MSG_CONT, /* 9.9.3.51 Replayed NAS message container */
1497 DE_EMM_NETWORK_POLICY, /* 9.9.3.52 Network policy */
1498 DE_EMM_UE_ADD_SEC_CAP, /* 9.9.3.53 UE additional security capability */
1499 DE_EMM_UE_STATUS, /* 9.9.3.54 UE status */
1500 DE_EMM_NONE /* NONE */
1501 }
1502 nas_emm_elem_idx_t;
1503
1504 /* 9.9.4 EPS Session Management (ESM) information elements */
1505 typedef enum
1506 {
1507 DE_ESM_APN, /* 9.9.4.1 Access point name */
1508 DE_ESM_APN_AGR_MAX_BR, /* 9.9.4.2 APN aggregate maximum bit rate */
1509 DE_ESM_CONNECTIVITY_TYPE, /* 9.9.4.2A Connectivity type */
1510 DE_ESM_EPS_QOS, /* 9.9.4.3 EPS quality of service */
1511 DE_ESM_CAUSE, /* 9.9.4.4 ESM cause */
1512 DE_ESM_INF_TRF_FLG, /* 9.9.4.5 ESM information transfer flag */
1513 DE_ESM_LNKED_EPS_B_ID, /* 9.9.4.6 Linked EPS bearer identity */
1514 DE_ESM_LLC_SAPI, /* 9.9.4.7 LLC service access point identifier */
1515 DE_ESM_NOTIF_IND, /* 9.9.4.7a Notification indicator */
1516 DE_ESM_P_FLW_ID, /* 9.9.4.8 Packet flow identifier */
1517 DE_ESM_PDN_ADDR, /* 9.9.4.9 PDN address */
1518 DE_ESM_PDN_TYPE, /* 9.9.4.10 PDN type */
1519 DE_ESM_PROT_CONF_OPT, /* 9.9.4.11 Protocol configuration options */
1520 DE_ESM_QOS, /* 9.9.4.12 Quality of service */
1521 DE_ESM_RA_PRI, /* 9.9.4.13 Radio priority */
1522 DE_ESM_RE_ATTEMPT_IND, /* 9.9.4.13a Re-attempt indicator */
1523 DE_ESM_REQ_TYPE, /* 9.9.4.14 Request type */
1524 DE_ESM_TRAF_FLOW_AGR_DESC, /* 9.9.4.15 Traffic flow aggregate description */
1525 DE_ESM_TRAF_FLOW_TEMPL, /* 9.9.4.16 Traffic flow template */
1526 DE_ESM_TID, /* 9.9.4.17 Transaction identifier */
1527 DE_ESM_WLAN_OFFLOAD_ACCEPT, /* 9.9.4.18 WLAN offload acceptability */
1528 DE_ESM_NBIFOM_CONT, /* 9.9.4.19 NBIFOM container */
1529 DE_ESM_REMOTE_UE_CONTEXT_LIST, /* 9.9.4.20 Remote UE context list */
1530 DE_ESM_PKMF_ADDRESS, /* 9.9.4.21 PKMF address */
1531 DE_ESM_HDR_COMPR_CONFIG, /* 9.9.4.22 Header compression configuration */
1532 DE_ESM_CTRL_PLANE_ONLY_IND, /* 9.9.4.23 Control plane only indication */
1533 DE_ESM_USER_DATA_CONT, /* 9.9.4.24 User data container */
1534 DE_ESM_REL_ASSIST_IND, /* 9.9.4.25 Release assistance indication */
1535 DE_ESM_EXT_PCO, /* 9.9.4.26 Extended protocol configuration options */
1536 DE_ESM_HDR_COMPR_CONFIG_STATUS, /* 9.9.4.27 Header compression configuration status */
1537 DE_ESM_SERV_PLMN_RATE_CTRL, /* 9.9.4.28 Serving PLMN rate control */
1538 DE_ESM_EXT_APN_AGR_MAX_BR, /* 9.9.4.29 Extended APN aggregate maximum bit rate */
1539 DE_ESM_EXT_EPS_QOS, /* 9.9.4.30 Extended EPS quality of service */
1540 DE_ESM_NONE /* NONE */
1541 }
1542 nas_esm_elem_idx_t;
1543
1544 typedef enum
1545 {
1546
1547 DE_SGSAP_IMSI, /* 9.4.6 IMSI*/
1548 DE_SGSAP_VLR_NAME, /* 9.4.22 VLR name*/
1549 DE_SGSAP_TMSI, /* 9.4.20 TMSI */
1550 DE_SGSAP_LOC_AREA_ID, /* 9.4.11 Location area identifier */
1551 DE_SGSAP_CH_NEEDED, /* 9.4.23 Channel Needed */
1552 DE_SGSAP_EMLPP_PRIO, /* 9.4.24 eMLPP Priority*/
1553 DE_SGSAP_TMSI_STATUS, /* 9.4.21 TMSI status */
1554 DE_SGSAP_SGS_CAUSE, /* 9.4.18 SGs cause*/
1555 DE_SGSAP_MME_NAME, /* 9.4.13 MME name*/
1556 DE_SGSAP_EPS_LOC_UPD_TYPE, /* 9.4.2 EPS location update type*/
1557 DE_SGSAP_GLOBAL_CN_ID, /* 9.4.4 Global CN-Id*/
1558
1559 DE_SGSAP_UDEF_11, /* Undefined */
1560 DE_SGSAP_UDEF_12, /* Undefined */
1561
1562 DE_SGSAP_MID, /* 9.4.14 Mobile identity*/
1563 DE_SGSAP_REJ_CAUSE, /* 9.4.16 Reject cause */
1564 DE_SGSAP_IMSI_DET_EPS, /* 9.4.7 IMSI detach from EPS service type */
1565 DE_SGSAP_IMSI_DET_NON_EPS, /* 9.4.8 IMSI detach from non-EPS service type */
1566
1567 DE_SGSAP_IMEISV, /* 9.4.5 IMEISV */
1568 DE_SGSAP_NAS_MSG_CONTAINER, /* 9.4.15 NAS message container*/
1569 DE_SGSAP_MM_INFO, /* 9.4.12 MM information*/
1570
1571 DE_SGSAP_UDEF_20, /* Undefined */
1572 DE_SGSAP_UDEF_21, /* Undefined */
1573 DE_SGSAP_UDEF_22, /* Undefined */
1574
1575 DE_SGSAP_ERR_MSG, /* 9.4.3 Erroneous message*/
1576 DE_SGSAP_CLI, /* 9.4.1 CLI */
1577 DE_SGSAP_LCS_CLIENT_ID, /* 9.4.9 LCS client identity */
1578 DE_SGSAP_LCS_INDIC, /* 9.4.10 LCS indicator */
1579 DE_SGSAP_SS_CODE, /* 9.4.19 SS code */
1580 DE_SGSAP_SERV_INDIC, /* 9.4.17 Service indicator */
1581 DE_SGSAP_UE_TZ, /* 9.4.21b UE Time Zone */
1582 DE_SGSAP_MSC_2, /* 9.4.14a Mobile Station Classmark 2 */
1583 DE_SGSAP_TAID, /* 9.4.21a Tracking Area Identity */
1584 DE_SGSAP_ECGI, /* 9.4.3a E-UTRAN Cell Global Identity */
1585 DE_SGSAP_UE_EMM_MODE, /* 9.4.21c UE EMM mode*/
1586 DE_SGSAP_ADD_PAGING_IND, /* 9.4.25 Additional paging indicators */
1587 DE_SGSAP_TMSI_BASED_NRI_CONT, /* 9.4.26 TMSI based NRI container */
1588 DE_SGSAP_SELECTED_CS_DMN_OP, /* 9.4.27 Selected CS domain operator */
1589
1590 DE_SGAP_NONE /* NONE */
1591 }
1592 sgsap_elem_idx_t;
1593
1594 typedef enum
1595 {
1596 DE_NAS_5GS_MM_5GMM_CAP, /* 9.8.3.1 5GMM capability*/
1597 DE_NAS_5GS_MM_5GMM_CAUSE, /* 9.8.3.2 5GMM cause*/
1598 DE_NAS_5GS_MM_5GS_MOBILE_ID, /* 9.8.3.3 5GS mobile identity*/
1599 DE_NAS_5GS_MM_5GS_NW_FEAT_SUP, /* 9.8.3.4 5GS network feature support*/
1600 DE_NAS_5GS_MM_5GS_REG_RES, /* 9.8.3.5 5GS registration result*/
1601 DE_NAS_5GS_MM_5GS_REG_TYPE, /* 9.8.3.6 5GS registration type*/
1602 DE_NAS_5GS_MM_ALLOW_PDU_SES_STS, /* 9.8.3.7 Allowed PDU session status*/
1603 DE_NAS_5GS_MM_AUT_PAR_AUTN, /* 9.8.3.8 Authentication parameter AUTN*/
1604 DE_NAS_5GS_MM_AUT_PAR_RAND, /* 9.8.3.9 Authentication parameter RAND*/
1605 DE_NAS_5GS_MM_CONF_UPD_IND, /* 9.8.3.10 Configuration update indication*/
1606 DE_NAS_5GS_MM_DLGT_SAVING_TIME, /* 9.8.3.11 Daylight saving time*/
1607 DE_NAS_5GS_MM_DE_REG_TYPE, /* 9.8.3.12 De-registration type*/
1608 DE_NAS_5GS_MM_DNN, /* 9.8.3.13 DNN*/
1609 DE_NAS_5GS_MM_EAP_MSG, /* 9.8.3.14 EAP message*/
1610 DE_NAS_5GS_MM_EPS_NAS_MSG_CONT, /* 9.8.3.15 EPS NAS message container*/
1611 DE_NAS_5GS_MM_GPRS_TIMER_2, /* 9.8.3.16 GPRS timer 2*/
1612 DE_NAS_5GS_MM_HASHAMF, /* 9.8.3.17 HashAMF*/
1613 DE_NAS_5GS_MM_IMEISV_REQ, /* 9.8.3.18 IMEISV request*/
1614 DE_NAS_5GS_MM_LADN_INF, /* 9.8.3.19 LADN information*/
1615 DE_NAS_5GS_MM_MSG_AUTH_CODE, /* 9.8.3.20 Message authentication code*/
1616 DE_NAS_5GS_MM_MICO_IND, /* 9.8.3.21 MICO indication*/
1617 DE_NAS_5GS_MM_NAS_KEY_SET_ID, /* 9.8.3.22 NAS key set identifier*/
1618 DE_NAS_5GS_MM_NAS_MSG_CONT, /* 9.8.3.23 NAS message container*/
1619 DE_NAS_5GS_MM_NAS_SEC_ALGO, /* 9.8.3.24 NAS security algorithms*/
1620 DE_NAS_5GS_MM_NAS_SEC_PAR_NG_RAN, /* 9.8.3.25 NAS security parameters to NG-RAN*/
1621 DE_NAS_5GS_MM_NW_NAME, /* 9.8.3.26 Network name*/
1622 DE_NAS_5GS_MM_NONCE, /* 9.8.3.27 Nonce*/
1623 DE_NAS_5GS_MM_NSSAI, /* 9.8.3.28 NSSAI*/
1624 DE_NAS_5GS_MM_NSSAI_INF_FOR_PDU_SES, /* 9.8.3.29 NSSAI info for PDU sessions*/
1625 DE_NAS_5GS_MM_PLD_CONT, /* 9.8.3.30 Payload container*/
1626 DE_NAS_5GS_MM_PLD_CONT_TYPE, /* 9.8.3.31 Payload container type*/
1627 DE_NAS_5GS_MM_PDU_SES_REACT_RES, /* 9.8.3.32 PDU session reactivation result*/
1628 DE_NAS_5GS_MM_PLMN_LIST, /* 9.8.3.33 PLMN list*/
1629 DE_NAS_5GS_MM_OLD_PDU_SES_ID, /* 9.8.3.34 Old PDU session identity*/
1630 DE_NAS_5GS_MM_REJ_NSSAI, /* 9.8.3.35 Rejected NSSAI*/
1631 DE_NAS_5GS_MM_S1_UE_NW_CAP, /* 9.8.3.36 S1 UE network capability*/
1632 DE_NAS_5GS_MM_S_NSSAI, /* 9.8.3.37 S-NSSAI*/
1633 DE_NAS_5GS_MM_SEQ_NO, /* 9.8.3.38 Sequence number*/
1634 DE_NAS_5GS_MM_SAL, /* 9.8.3.39 Service area list*/
1635 DE_NAS_5GS_MM_SMS_ALL, /* 9.8.3.40 SMS allowed*/
1636 DE_NAS_5GS_MM_SMS_REQ, /* 9.8.3.41 SMS requested*/
1637 DE_NAS_5GS_MM_REQ_TYPE, /* 9.8.3.42 Request type*/
1638 DE_NAS_5GS_MM_SERV_TYPE, /* 9.8.3.43 Service type*/
1639 DE_NAS_5GS_MM_TAI_ID, /* 9.8.3.44 Tracking area identity*/
1640 DE_NAS_5GS_MM_TAI_ID_LIST, /* 9.8.3.45 Tracking area identity list*/
1641 DE_NAS_5GS_MM_TZ, /* 9.8.3.46 Time zone*/
1642 DE_NAS_5GS_MM_TZ_AND_T, /* 9.8.3.47 Time zone and time*/
1643 DE_NAS_5GS_MM_UE_SEC_CAP, /* 9.8.3.48 UE security capability*/
1644 DE_NAS_5GS_MM_UE_STS, /* 9.8.3.49 UE status*/
1645 DE_NAS_5GS_MM_NONE /* NONE */
1646 }
1647 nas_5gs_mm_elem_idx_t;
1648
1649 #endif /* __PACKET_GSM_A_COMMON_H__ */
1650
1651 /*
1652 * Editor modelines - http://www.wireshark.org/tools/modelines.html
1653 *
1654 * Local variables:
1655 * c-basic-offset: 4
1656 * tab-width: 8
1657 * indent-tabs-mode: nil
1658 * End:
1659 *
1660 * vi: set shiftwidth=4 tabstop=8 expandtab:
1661 * :indentSize=4:tabSize=8:noTabs=true:
1662 */
_packet_info
Definition: packet_info.h:44
_gsm_a_tap_rec_t
Definition: packet-gsm_a_common.h:683
tvbuff
Definition: tvbuff-int.h:35
proto.h
_sccp_assoc_info_t
Definition: packet-sccp.h:75
_value_string
Definition: value_string.h:24
_value_string_ext
Definition: value_string.h:164
_proto_node
Definition: proto.h:759