libosmogsm  0.11.0.54.60f31
Osmocom GSM library
gsm_04_08.h
Go to the documentation of this file.
1 
4 #pragma once
5 
6 #include <stdint.h>
7 #include <stdbool.h>
8 
9 #include <osmocom/core/utils.h>
10 #include <osmocom/core/endian.h>
11 
12 struct gsm_lchan;
13 
14 /* Chapter 10.5.1.5 */
16  uint8_t pwr_lev:3,
17  a5_1:1,
18  es_ind:1,
19  rev_lev:2,
20  spare:1;
21 } __attribute__ ((packed));
22 
23 /* Chapter 10.5.1.6 */
25  uint8_t pwr_lev:3,
26  a5_1:1,
27  es_ind:1,
28  rev_lev:2,
29  spare:1;
30  uint8_t fc:1,
31  vgcs:1,
32  vbs:1,
33  sm_cap:1,
34  ss_scr:2,
35  ps_cap:1,
36  spare2:1;
37  uint8_t a5_2:1,
38  a5_3:1,
39  cmsp:1,
40  solsa:1,
41  spare3:1,
42  lcsva_cap:1,
43  spare4:1,
44  cm3:1;
45 } __attribute__ ((packed));
46 
47 /* Chapter 10.5.2.1b.3 */
48 #if OSMO_IS_LITTLE_ENDIAN == 1
49 struct gsm48_range_1024 {
50  uint8_t w1_hi:2,
51  f0:1,
52  form_id:5;
53  uint8_t w1_lo;
54  uint8_t w2_hi;
55  uint8_t w3_hi:7,
56  w2_lo:1;
57  uint8_t w4_hi:6,
58  w3_lo:2;
59  uint8_t w5_hi:6,
60  w4_lo:2;
61  uint8_t w6_hi:6,
62  w5_lo:2;
63  uint8_t w7_hi:6,
64  w6_lo:2;
65  uint8_t w8_hi:6,
66  w7_lo:2;
67  uint8_t w9:7,
68  w8_lo:1;
69  uint8_t w11_hi:1,
70  w10:7;
71  uint8_t w12_hi:2,
72  w11_lo:6;
73  uint8_t w13_hi:3,
74  w12_lo:5;
75  uint8_t w14_hi:4,
76  w13_lo:4;
77  uint8_t w15_hi:5,
78  w14_lo:3;
79  uint8_t w16:6,
80  w15_lo:2;
81 } __attribute__ ((packed));
82 #else
84  uint8_t form_id:5,
85  f0:1,
86  w1_hi:2;
87  uint8_t w1_lo;
88  uint8_t w2_hi;
89  uint8_t w2_lo:1,
90  w3_hi:7;
91  uint8_t w3_lo:2,
92  w4_hi:6;
93  uint8_t w4_lo:2,
94  w5_hi:6;
95  uint8_t w5_lo:2,
96  w6_hi:6;
97  uint8_t w6_lo:2,
98  w7_hi:6;
99  uint8_t w7_lo:2,
100  w8_hi:6;
101  uint8_t w8_lo:1,
102  w9:7;
103  uint8_t w10:7,
105  uint8_t w11_lo:6,
107  uint8_t w12_lo:5,
109  uint8_t w13_lo:4,
110  w14_hi:4;
111  uint8_t w14_lo:3,
112  w15_hi:5;
113  uint8_t w15_lo:2,
114  w16:6;
115 } __attribute__ ((packed));
116 #endif
118 /* Chapter 10.5.2.1b.4 */
119 #if OSMO_IS_LITTLE_ENDIAN == 1
121  uint8_t orig_arfcn_hi:1,
123  uint8_t orig_arfcn_mid;
124  uint8_t w1_hi:7,
125  orig_arfcn_lo:1;
126  uint8_t w2_hi:6,
127  w1_lo:2;
128  uint8_t w3_hi:6,
129  w2_lo:2;
130  uint8_t w4_hi:6,
131  w3_lo:2;
132  uint8_t w5:7,
133  w4_lo:1;
134  uint8_t w7_hi:1,
135  w6:7;
136  uint8_t w8_hi:2,
137  w7_lo:6;
138  uint8_t w9_hi:4,
139  w8_lo:4;
140  uint8_t w10:6,
141  w9_lo:2;
142  uint8_t w12_hi:2,
143  w11:6;
144  uint8_t w13_hi:4,
145  w12_lo:4;
146  uint8_t w14:6,
147  w13_lo:2;
148  uint8_t w16_hi:2,
149  w15:6;
150  uint8_t w17:5,
151  w16_lo:3;
152 } __attribute__ ((packed));
153 #else
155  uint8_t form_id:7,
156  orig_arfcn_hi:1;
157  uint8_t orig_arfcn_mid;
158  uint8_t orig_arfcn_lo:1,
159  w1_hi:7;
160  uint8_t w1_lo:2,
161  w2_hi:6;
162  uint8_t w2_lo:2,
163  w3_hi:6;
164  uint8_t w3_lo:2,
165  w4_hi:6;
166  uint8_t w4_lo:1,
167  w5:7;
168  uint8_t w6:7,
169  w7_hi:1;
170  uint8_t w7_lo:6,
171  w8_hi:2;
172  uint8_t w8_lo:4,
173  w9_hi:4;
174  uint8_t w9_lo:2,
175  w10:6;
176  uint8_t w11:6,
177  w12_hi:2;
178  uint8_t w12_lo:4,
179  w13_hi:4;
180  uint8_t w13_lo:2,
181  w14:6;
182  uint8_t w15:6,
183  w16_hi:2;
184  uint8_t w16_lo:3,
185  w17:5;
186 } __attribute__ ((packed));
187 #endif
188 
189 /* Chapter 10.5.2.1b.5 */
190 #if OSMO_IS_LITTLE_ENDIAN == 1
191 struct gsm48_range_256 {
192  uint8_t orig_arfcn_hi:1,
193  form_id:7;
194  uint8_t orig_arfcn_mid;
195  uint8_t w1_hi:7,
196  orig_arfcn_lo:1;
197  uint8_t w2:7,
198  w1_lo:1;
199  uint8_t w4_hi:1,
200  w3:7;
201  uint8_t w5_hi:3,
202  w4_lo:5;
203  uint8_t w6_hi:5,
204  w5_lo:3;
205  uint8_t w8_hi:1,
206  w7:6,
207  w6_lo:1;
208  uint8_t w9_hi:4,
209  w8_lo:4;
210  uint8_t w11_hi:2,
211  w10:5,
212  w9_lo:1;
213  uint8_t w12:5,
214  w11_lo:3;
215  uint8_t w14_hi:3,
216  w13:5;
217  uint8_t w16_hi:1,
218  w15:5,
219  w14_lo:2;
220  uint8_t w18_hi:1,
221  w17:4,
222  w16_lo:3;
223  uint8_t w20_hi:1,
224  w19:4,
225  w18_lo:3;
226  uint8_t spare:1,
227  w21:4,
228  w20_lo:3;
229 } __attribute__ ((packed));
230 #else
232  uint8_t form_id:7,
233  orig_arfcn_hi:1;
234  uint8_t orig_arfcn_mid;
235  uint8_t orig_arfcn_lo:1,
236  w1_hi:7;
237  uint8_t w1_lo:1,
238  w2:7;
239  uint8_t w3:7,
240  w4_hi:1;
241  uint8_t w4_lo:5,
242  w5_hi:3;
243  uint8_t w5_lo:3,
244  w6_hi:5;
245  uint8_t w6_lo:1,
246  w7:6,
247  w8_hi:1;
248  uint8_t w8_lo:4,
249  w9_hi:4;
250  uint8_t w9_lo:1,
251  w10:5,
252  w11_hi:2;
253  uint8_t w11_lo:3,
254  w12:5;
255  uint8_t w13:5,
256  w14_hi:3;
257  uint8_t w14_lo:2,
258  w15:5,
259  w16_hi:1;
260  uint8_t w16_lo:3,
261  w17:4,
262  w18_hi:1;
263  uint8_t w18_lo:3,
264  w19:4,
265  w20_hi:1;
266  uint8_t w20_lo:3,
267  w21:4,
268  spare:1;
269 } __attribute__ ((packed));
270 #endif
271 
272 /* Chapter 10.5.2.1b.6 */
273 #if OSMO_IS_LITTLE_ENDIAN == 1
274 struct gsm48_range_128 {
275  uint8_t orig_arfcn_hi:1,
276  form_id:7;
277  uint8_t orig_arfcn_mid;
278  uint8_t w1:7,
279  orig_arfcn_lo:1;
280  uint8_t w3_hi:2,
281  w2:6;
282  uint8_t w4_hi:4,
283  w3_lo:4;
284  uint8_t w6_hi:2,
285  w5:5,
286  w4_lo:1;
287  uint8_t w7:5,
288  w6_lo:3;
289  uint8_t w9:4,
290  w8:4;
291  uint8_t w11:4,
292  w10:4;
293  uint8_t w13:4,
294  w12:4;
295  uint8_t w15:4,
296  w14:4;
297  uint8_t w18_hi:2,
298  w17:3,
299  w16:3;
300  uint8_t w21_hi:1,
301  w20:3,
302  w19:3,
303  w18_lo:1;
304  uint8_t w23:3,
305  w22:3,
306  w21_lo:2;
307  uint8_t w26_hi:2,
308  w25:3,
309  w24:3;
310  uint8_t spare:1,
311  w28:3,
312  w27:3,
313  w26_lo:1;
314 } __attribute__ ((packed));
315 #else
317  uint8_t form_id:7,
318  orig_arfcn_hi:1;
319  uint8_t orig_arfcn_mid;
320  uint8_t orig_arfcn_lo:1,
321  w1:7;
322  uint8_t w2:6,
323  w3_hi:2;
324  uint8_t w3_lo:4,
325  w4_hi:4;
326  uint8_t w4_lo:1,
327  w5:5,
328  w6_hi:2;
329  uint8_t w6_lo:3,
330  w7:5;
331  uint8_t w8:4,
332  w9:4;
333  uint8_t w10:4,
334  w11:4;
335  uint8_t w12:4,
336  w13:4;
337  uint8_t w14:4,
338  w15:4;
339  uint8_t w16:3,
340  w17:3,
341  w18_hi:2;
342  uint8_t w18_lo:1,
343  w19:3,
344  w20:3,
345  w21_hi:1;
346  uint8_t w21_lo:2,
347  w22:3,
348  w23:3;
349  uint8_t w24:3,
350  w25:3,
351  w26_hi:2;
352  uint8_t w26_lo:1,
353  w27:3,
354  w28:3,
355  spare:1;
356 } __attribute__ ((packed));
357 #endif
358 
359 /* Chapter 10.5.2.1b.7 */
361  uint8_t orig_arfcn_hi:1,
362  form_id:7;
363  uint8_t orig_arfcn_mid;
364  uint8_t rrfcn1_7:7,
365  orig_arfcn_lo:1;
366  uint8_t rrfcn8_111[13];
367 } __attribute__ ((packed));
368 
369 /* Chapter 10.5.2.5 */
371  uint8_t chan_nr;
372  union {
373  struct {
374  uint8_t maio_high:4,
375  h:1,
376  tsc:3;
377  uint8_t hsn:6,
378  maio_low:2;
379  } __attribute__ ((packed)) h1;
380  struct {
381  uint8_t arfcn_high:2,
382  spare:2,
383  h:1,
384  tsc:3;
385  uint8_t arfcn_low;
386  } __attribute__ ((packed)) h0;
387  } __attribute__ ((packed));
388 } __attribute__ ((packed));
389 
390 /* Chapter 10.5.2.20 */
392  uint8_t rxlev_full:6,
393  dtx_used:1,
394  ba_used:1;
395  uint8_t rxlev_sub:6,
396  meas_valid:1,
397  spare:1;
398  uint8_t no_nc_n_hi:1,
399  rxqual_sub:3,
400  rxqual_full:3,
401  spare2:1;
402  uint8_t rxlev_nc1:6,
403  no_nc_n_lo:2;
404  uint8_t bsic_nc1_hi:3,
405  bcch_f_nc1:5;
406  uint8_t rxlev_nc2_hi:5,
407  bsic_nc1_lo:3;
408  uint8_t bsic_nc2_hi:2,
409  bcch_f_nc2:5,
410  rxlev_nc2_lo:1;
411  uint8_t rxlev_nc3_hi:4,
412  bsic_nc2_lo:4;
413  uint8_t bsic_nc3_hi:1,
414  bcch_f_nc3:5,
415  rxlev_nc3_lo:2;
416  uint8_t rxlev_nc4_hi:3,
417  bsic_nc3_lo:5;
418  uint8_t bcch_f_nc4:5,
419  rxlev_nc4_lo:3;
420  uint8_t rxlev_nc5_hi:2,
421  bsic_nc4:6;
422  uint8_t bcch_f_nc5_hi:4,
423  rxlev_nc5_lo:4;
424  uint8_t rxlev_nc6_hi:1,
425  bsic_nc5:6,
426  bcch_f_nc5_lo:1;
427  uint8_t bcch_f_nc6_hi:3,
428  rxlev_nc6_lo:5;
429  uint8_t bsic_nc6:6,
430  bcch_f_nc6_lo:2;
431 } __attribute__ ((packed));
432 
433 /* Chapter 10.5.2.21aa */
435  uint8_t smod : 2,
436  spare: 1,
437  icmi : 1,
438  nscb : 1,
439  ver : 3;
440  uint8_t m4_75 : 1,
441  m5_15 : 1,
442  m5_90 : 1,
443  m6_70 : 1,
444  m7_40 : 1,
445  m7_95 : 1,
446  m10_2 : 1,
447  m12_2 : 1;
448 } __attribute__((packed));
449 
450 /* Chapter 10.5.2.28(a) */
452  uint8_t power_level:5,
453  spare:2,
454  atc:1;
455 } __attribute__((packed));
456 
457 /* Chapter 10.5.2.29 */
459  uint8_t re :1,
460  cell_bar :1,
461  tx_integer :4,
462  max_trans :2;
463  uint8_t t2; /* ACC 8-15 barred flags */
464  uint8_t t3; /* ACC 0-7 barred flags */
465 } __attribute__ ((packed));
466 
467 /*
468  * Mark an Access Control Class as barred.
469  * \param[in] rach_control A Rach Control Information Element.
470  * \param[in] acc Access Control Class number (0 - 15) which shall be barred.
471  */
472 static inline void gsm48_barr_acc(struct gsm48_rach_control *rach_control, unsigned int acc)
473 {
474  OSMO_ASSERT(acc >= 0 && acc <= 15);
475  if (acc >= 8)
476  rach_control->t2 |= (1 << (acc - 8));
477  else
478  rach_control->t3 |= (1 << (acc));
479 }
480 
481 /*
482  * Mark an Access Control Class as allowed.
483  * \param[in] rach_control A Rach Control Information Element.
484  * \param[in] acc Access Control Class number (0 - 15) which shall be allowed.
485  */
486 static inline void gsm48_allow_acc(struct gsm48_rach_control *rach_control, unsigned int acc)
487 {
488  OSMO_ASSERT(acc >= 0 && acc <= 15);
489  if (acc >= 8)
490  rach_control->t2 &= ~(1 << (acc - 8));
491  else
492  rach_control->t3 &= ~(1 << (acc));
493 }
494 
495 /*
496  * Indicate whether an Access Control Class is barred.
497  * \param[in] rach_control A Rach Control Information Element.
498  * \param[in] acc Access Control Class number (0 - 15).
499  * \returns true if the Access Control class is barred, false otherwise
500  */
501 static inline bool gsm48_acc_is_barred(struct gsm48_rach_control *rach_control, unsigned int acc)
502 {
503  OSMO_ASSERT(acc >= 0 && acc <= 15);
504  if (acc >= 8)
505  return (rach_control->t2 & (1 << (acc - 8))) != 0;
506  return (rach_control->t3 & (1 << (acc))) != 0;
507 }
509 /* Chapter 10.5.2.30 */
511  uint8_t ra;
512  uint8_t t3_high:3,
513  t1:5;
514  uint8_t t2:5,
515  t3_low:3;
516 } __attribute__ ((packed));
517 
518 /* Chapter 10.5.2.38 */
520  uint8_t t3_high:3,
521  t1:5;
522  uint8_t t2:5,
523  t3_low:3;
524 } __attribute__ ((packed));
525 
526 /* Chapter 10.5.2.39 */
528  uint8_t si:2,
529  rot:1,
530  nci:1,
531  sync_ie:4;
532 } __attribute__((packed));
533 
534 /*
535  * Chapter 9.1.5/9.1.6
536  *
537  * For 9.1.6 the chan_desc has the meaning of 10.5.2.5a
538  */
541  uint8_t mode;
542 } __attribute__ ((packed));
543 
553 };
554 
555 extern const struct value_string gsm48_chan_mode_names[];
556 
557 /* Chapter 9.1.2 */
559  /* Semantic is from 10.5.2.5a */
561  uint8_t power_command;
562  uint8_t data[0];
563 } __attribute__((packed));
564 
565 /* Chapter 9.1.13 */
567  /* Semantic is from 10.5.2.5a */
569  uint8_t mob_alloc_len;
570  uint8_t mob_alloc[0];
571 } __attribute__((packed));
572 
573 /* Chapter 9.1.13b GPRS suspension request */
575  uint32_t tlli;
576  uint8_t ra_id[6];
577  uint8_t cause;
578  uint8_t options[0];
579 } __attribute__ ((packed));
580 
581 /* Chapter 10.5.2.2 */
583  uint8_t bcc:3,
584  ncc:3,
585  arfcn_hi:2;
586  uint8_t arfcn_lo;
587 } __attribute__((packed));
588 
589 /* Chapter 9.1.15 */
590 struct gsm48_ho_cmd {
593  uint8_t ho_ref;
594  uint8_t power_command;
595  uint8_t data[0];
596 } __attribute__((packed));
597 
598 /* Chapter 9.1.18 */
600  uint8_t l2_plen;
601  uint8_t proto_discr;
602  uint8_t msg_type;
603  uint8_t page_mode;
606  uint8_t timing_advance;
607  uint8_t mob_alloc_len;
608  uint8_t mob_alloc[0];
609 } __attribute__ ((packed));
610 
611 /* Chapter 9.1.25 */
613  uint8_t spare:4,
614  key_seq:4;
615  uint32_t classmark2;
616  uint8_t mi_len;
617  uint8_t mi[0];
618 } __attribute__ ((packed));
619 
620 /* Chapter 10.5.1.3 */
622  uint8_t digits[3]; /* BCD! */
623  uint16_t lac;
624 } __attribute__ ((packed));
625 
626 /* Section 9.2.2 */
628  uint8_t key_seq:4,
629  spare:4;
630  uint8_t rand[16];
631 } __attribute__ ((packed));
632 
633 /* Section 9.2.3 */
635  uint8_t sres[4];
636 } __attribute__ ((packed));
637 
638 /* Section 9.2.15 */
640  uint8_t type:4,
641  key_seq:4;
644  uint8_t mi_len;
645  uint8_t mi[0];
646 } __attribute__ ((packed));
647 
648 /* Section 10.1 */
649 struct gsm48_hdr {
650  uint8_t proto_discr;
651  uint8_t msg_type;
652  uint8_t data[0];
653 } __attribute__ ((packed));
654 
655 /* Section 9.1.3x System information Type header */
657  uint8_t l2_plen;
659  skip_indicator:4;
661 } __attribute__ ((packed));
662 
663 /* Section 10.5.2.4 Cell Selection Parameters */
665  uint8_t ms_txpwr_max_ccch:5, /* GSM 05.08 MS-TXPWR-MAX-CCCH */
666  cell_resel_hyst:3; /* GSM 05.08 CELL-RESELECT-HYSTERESIS */
667  uint8_t rxlev_acc_min:6, /* GSM 05.08 RXLEV-ACCESS-MIN */
668  neci:1,
669  acs:1;
670 } __attribute__ ((packed));
671 
672 /* 3GPP TS 44.018 Section 10.5.2.11 Control Channel Description */
674  uint8_t ccch_conf :3,
675  bs_ag_blks_res :3,
676  att :1,
677  mscr :1;
678  uint8_t bs_pa_mfrms : 3,
679  spare_1 :2,
680  cbq3 :2,
681  spare_2 :1;
682  uint8_t t3212;
683 } __attribute__ ((packed));
684 
689 };
690 
691 /* Cell Options for SI6, SACCH (10.5.2.3a.2) or SI3, BCCH (Table 10.5.2.3.1),
692  3GPP TS 44.018 */
695  dtx:2,
696  pwrc:1,
697  /* either DN-IND or top bit of DTX IND */
698  d:1;
699 } __attribute__ ((packed));
700 
701 /* Section 9.2.9 CM service request */
703  uint8_t cm_service_type : 4,
704  cipher_key_seq : 4;
705  /* length + 3 bytes */
706  uint32_t classmark;
707  uint8_t mi_len;
708  uint8_t mi[0];
709  /* optional priority level */
710 } __attribute__ ((packed));
711 
712 /* Section 9.1.31 System information Type 1 */
716  struct gsm48_rach_control rach_control;
717  uint8_t rest_octets[0]; /* NCH position on the CCCH */
718 } __attribute__ ((packed));
719 
720 /* Section 9.1.32 System information Type 2 */
723  uint8_t bcch_frequency_list[16];
724  uint8_t ncc_permitted;
725  struct gsm48_rach_control rach_control;
726 } __attribute__ ((packed));
727 
728 /* Section 9.1.33 System information Type 2bis */
731  uint8_t bcch_frequency_list[16];
732  struct gsm48_rach_control rach_control;
733  uint8_t rest_octets[0];
734 } __attribute__ ((packed));
735 
736 /* Section 9.1.34 System information Type 2ter */
740  uint8_t rest_octets[0];
741 } __attribute__ ((packed));
742 
743 /* Section 9.1.34a System information Type 2quater */
746  uint8_t rest_octets[0];
747 } __attribute__ ((packed));
748 
749 /* Section 9.1.35 System information Type 3 */
752  uint16_t cell_identity;
757  struct gsm48_rach_control rach_control;
758  uint8_t rest_octets[0];
759 } __attribute__ ((packed));
760 
761 /* Section 9.1.36 System information Type 4 */
766  struct gsm48_rach_control rach_control;
767  /* optional CBCH conditional CBCH... followed by
768  mandantory SI 4 Reset Octets
769  */
770  uint8_t data[0];
771 } __attribute__ ((packed));
772 
773 /* Section 9.1.37 System information Type 5 */
776  skip_indicator:4;
778  uint8_t bcch_frequency_list[16];
779 } __attribute__ ((packed));
780 
781 /* Section 9.1.38 System information Type 5bis */
784  skip_indicator:4;
786  uint8_t bcch_frequency_list[16];
787 } __attribute__ ((packed));
788 
789 /* Section 9.1.39 System information Type 5ter */
792  skip_indicator:4;
794  uint8_t bcch_frequency_list[16];
795 } __attribute__ ((packed));
796 
797 /* Section 9.1.40 System information Type 6 */
800  skip_indicator:4;
802  uint16_t cell_identity;
805  uint8_t ncc_permitted;
806  uint8_t rest_octets[0];
807 } __attribute__ ((packed));
808 
809 /* Section 9.1.43a System Information type 13 */
812  uint8_t rest_octets[0];
813 } __attribute__ ((packed));
814 
815 /* Section 9.2.12 IMSI Detach Indication */
818  uint8_t mi_len;
819  uint8_t mi[0];
820 } __attribute__ ((packed));
821 
822 /* Section 9.1.1 */
824  /* Semantic is from 10.5.2.5 */
826  uint8_t data[0];
827 } __attribute__((packed));
828 
829 /* Section 9.1.3 */
831  uint8_t rr_cause;
832 } __attribute__((packed));
833 
834 /* Section 9.1.4 */
836  uint8_t rr_cause;
837 } __attribute__((packed));
838 
839 /* Section 9.1.3 */
840 struct gsm48_ho_cpl {
841  uint8_t rr_cause;
842  uint8_t data[0];
843 } __attribute__((packed));
844 
845 /* Section 9.1.4 */
847  uint8_t rr_cause;
848 } __attribute__((packed));
849 
850 /* Section 9.1.7 */
852  uint8_t rr_cause;
853  uint8_t data[0];
854 } __attribute__((packed));
855 
856 /* Section 9.1.9 */
858  uint8_t sc:1,
859  alg_id:3,
860  cr:1,
861  spare:3;
862 } __attribute__((packed));
863 
864 /* Section 9.1.11 */
866  uint8_t cm2_len;
868  uint8_t data[0];
869 } __attribute__((packed));
870 
871 /* Section 9.1.19 */
873  uint8_t l2_plen;
874  uint8_t proto_discr;
875  uint8_t msg_type;
876  uint8_t page_mode;
883  uint8_t mob_alloc_len;
884  uint8_t mob_alloc[0];
885 } __attribute__ ((packed));
886 
887 /* Section 9.1.20 */
889  uint8_t l2_plen;
890  uint8_t proto_discr;
891  uint8_t msg_type;
892  uint8_t page_mode;
894  uint8_t wait_ind1;
896  uint8_t wait_ind2;
898  uint8_t wait_ind3;
900  uint8_t wait_ind4;
901  uint8_t rest[0];
902 } __attribute__ ((packed));
903 
904 /* Section 9.1.22 */
906  uint8_t l2_plen;
907  uint8_t proto_discr;
908  uint8_t msg_type;
909  uint8_t pag_mode:2,
910  spare:2,
911  cneed1:2,
912  cneed2:2;
913  uint8_t data[0];
914 } __attribute__((packed));
915 
916 /* Section 9.1.23 */
918  uint8_t l2_plen;
919  uint8_t proto_discr;
920  uint8_t msg_type;
921  uint8_t pag_mode:2,
922  spare:2,
923  cneed1:2,
924  cneed2:2;
925  uint32_t tmsi1;
926  uint32_t tmsi2;
927  uint8_t data[0];
928 } __attribute__((packed));
929 
930 /* Section 9.1.24 */
932  uint8_t l2_plen;
933  uint8_t proto_discr;
934  uint8_t msg_type;
935  uint8_t pag_mode:2,
936  spare:2,
937  cneed1:2,
938  cneed2:2;
939  uint32_t tmsi1;
940  uint32_t tmsi2;
941  uint32_t tmsi3;
942  uint32_t tmsi4;
943  uint8_t cneed3:2,
944  cneed4:2,
945  spare2:4;
946  uint8_t rest[0];
947 } __attribute__((packed));
948 
949 /* Section 9.1.25 */
951  uint8_t key_seq:3,
952  spare:5;
953  uint8_t cm2_len;
955  uint8_t data[0];
956 } __attribute__((packed));
957 
958 /* Section 9.1.29 */
960  uint8_t rr_cause;
961 } __attribute__((packed));
962 
963 /* Section 10.2 + GSM 04.07 12.2.3.1.1 + 3GPP TS 24.007 11.2.3.1.1 */
964 #define GSM48_PDISC_GROUP_CC 0x00
965 #define GSM48_PDISC_BCAST_CC 0x01
966 #define GSM48_PDISC_PDSS1 0x02 /* 04.07 only */
967 #define GSM48_PDISC_CC 0x03
968 #define GSM48_PDISC_PDSS2 0x04 /* 04.07 only */
969 #define GSM48_PDISC_GTTP 0x04 /* 24.007 only */
970 #define GSM48_PDISC_MM 0x05
971 #define GSM48_PDISC_RR 0x06
972 #define GSM48_PDISC_MM_GPRS 0x08
973 #define GSM48_PDISC_SMS 0x09
974 #define GSM48_PDISC_SM_GPRS 0x0a
975 #define GSM48_PDISC_NC_SS 0x0b
976 #define GSM48_PDISC_LOC 0x0c
977 #define GSM48_PDISC_EXTEND 0x0e
978 #define GSM48_PDISC_TEST 0x0f /* as per 11.10, 04.14 */
979 #define GSM48_PDISC_MASK 0x0f
980 
981 extern const struct value_string gsm48_pdisc_names[];
982 static inline const char *gsm48_pdisc_name(uint8_t val)
983 { return get_value_string(gsm48_pdisc_names, val); }
984 
985 bool gsm48_hdr_gmm_cipherable(const struct gsm48_hdr *hdr);
986 
987 static inline uint8_t gsm48_hdr_pdisc(const struct gsm48_hdr *hdr)
988 {
989  /*
990  * 3GPP TS 24.007 version 12.0.0 Release 12,
991  * 11.2.3.1.1 Protocol discriminator
992  */
993  uint8_t pdisc = hdr->proto_discr & GSM48_PDISC_MASK;
994  if (pdisc == GSM48_PDISC_EXTEND)
995  return hdr->proto_discr;
996  return pdisc;
997 }
998 
999 static inline uint8_t gsm48_hdr_trans_id(const struct gsm48_hdr *hdr)
1000 {
1001  /*
1002  * 3GPP TS 24.007 version 12.0.0 Release 12,
1003  * 11.2.3.1.3 Transaction identifier
1004  */
1005  return (hdr->proto_discr & 0xf0) >> 4;
1006 }
1007 
1008 #define GSM48_TA_INVALID 220
1009 
1015 static inline bool gsm48_ta_is_valid(uint8_t ta)
1016 {
1017  return (ta < 64);
1018 }
1019 
1020 static inline uint8_t gsm48_hdr_trans_id_flip_ti(const struct gsm48_hdr *hdr)
1021 {
1022  return gsm48_hdr_trans_id(hdr) ^ 0x08;
1023 }
1024 
1025 static inline uint8_t gsm48_hdr_trans_id_no_ti(const struct gsm48_hdr *hdr)
1026 {
1027  return gsm48_hdr_trans_id(hdr) & 0x07;
1028 }
1029 
1030 static inline uint8_t gsm48_hdr_msg_type_r98(const struct gsm48_hdr *hdr)
1031 {
1032  /*
1033  * 3GPP TS 24.007 version 12.0.0 Release 12,
1034  * 11.2.3.2.1 Message type octet (when accessing Release 98 and older
1035  * networks only)
1036  */
1037  switch (gsm48_hdr_pdisc(hdr)) {
1038  case GSM48_PDISC_MM:
1039  case GSM48_PDISC_CC:
1040  case GSM48_PDISC_NC_SS:
1041  case GSM48_PDISC_GROUP_CC:
1042  case GSM48_PDISC_BCAST_CC:
1043  case GSM48_PDISC_LOC:
1044  return hdr->msg_type & 0x3f;
1045  default:
1046  return hdr->msg_type;
1047  }
1048 }
1049 
1050 static inline uint8_t gsm48_hdr_msg_type_r99(const struct gsm48_hdr *hdr)
1051 {
1052  /*
1053  * 3GPP TS 24.007 version 12.0.0 Release 12,
1054  * 11.2.3.2.2 Message type octet (when accessing Release 99 and newer
1055  * networks)
1056  */
1057  switch (gsm48_hdr_pdisc(hdr)) {
1058  case GSM48_PDISC_MM:
1059  case GSM48_PDISC_CC:
1060  case GSM48_PDISC_NC_SS:
1061  return hdr->msg_type & 0x3f;
1062  case GSM48_PDISC_GROUP_CC:
1063  case GSM48_PDISC_BCAST_CC:
1064  case GSM48_PDISC_LOC:
1065  return hdr->msg_type & 0x3f;
1066  default:
1067  return hdr->msg_type;
1068  }
1069 }
1070 
1071 void gsm48_set_dtx(struct gsm48_cell_options *op, enum gsm48_dtx_mode full,
1072  enum gsm48_dtx_mode half, bool is_bcch);
1073 
1074 #define gsm48_hdr_msg_type gsm48_hdr_msg_type_r99
1075 
1076 /* Section 10.4 */
1077 #define GSM48_MT_RR_INIT_REQ 0x3c
1078 #define GSM48_MT_RR_ADD_ASS 0x3b
1079 #define GSM48_MT_RR_IMM_ASS 0x3f
1080 #define GSM48_MT_RR_IMM_ASS_EXT 0x39
1081 #define GSM48_MT_RR_IMM_ASS_REJ 0x3a
1082 #define GSM48_MT_RR_DTM_ASS_FAIL 0x48
1083 #define GSM48_MT_RR_DTM_REJECT 0x49
1084 #define GSM48_MT_RR_DTM_REQUEST 0x4A
1085 #define GSM48_MT_RR_PACKET_ASS 0x4B
1086 
1087 #define GSM48_MT_RR_CIPH_M_CMD 0x35
1088 #define GSM48_MT_RR_CIPH_M_COMPL 0x32
1089 
1090 #define GSM48_MT_RR_CFG_CHG_CMD 0x30
1091 #define GSM48_MT_RR_CFG_CHG_ACK 0x31
1092 #define GSM48_MT_RR_CFG_CHG_REJ 0x33
1093 
1094 #define GSM48_MT_RR_ASS_CMD 0x2e
1095 #define GSM48_MT_RR_ASS_COMPL 0x29
1096 #define GSM48_MT_RR_ASS_FAIL 0x2f
1097 #define GSM48_MT_RR_HANDO_CMD 0x2b
1098 #define GSM48_MT_RR_HANDO_COMPL 0x2c
1099 #define GSM48_MT_RR_HANDO_FAIL 0x28
1100 #define GSM48_MT_RR_HANDO_INFO 0x2d
1101 #define GSM48_MT_RR_HANDO_INFO 0x2d
1102 #define GSM48_MT_RR_DTM_ASS_CMD 0x4c
1103 
1104 #define GSM48_MT_RR_CELL_CHG_ORDER 0x08
1105 #define GSM48_MT_RR_PDCH_ASS_CMD 0x23
1106 
1107 #define GSM48_MT_RR_CHAN_REL 0x0d
1108 #define GSM48_MT_RR_PART_REL 0x0a
1109 #define GSM48_MT_RR_PART_REL_COMP 0x0f
1110 
1111 #define GSM48_MT_RR_PAG_REQ_1 0x21
1112 #define GSM48_MT_RR_PAG_REQ_2 0x22
1113 #define GSM48_MT_RR_PAG_REQ_3 0x24
1114 #define GSM48_MT_RR_PAG_RESP 0x27
1115 #define GSM48_MT_RR_NOTIF_NCH 0x20
1116 #define GSM48_MT_RR_NOTIF_FACCH 0x25 /* (Reserved) */
1117 #define GSM48_MT_RR_NOTIF_RESP 0x26
1118 #define GSM48_MT_RR_PACKET_NOTIF 0x4e
1119 #define GSM48_MT_RR_UTRAN_CLSM_CHG 0x60
1120 #define GSM48_MT_RR_CDMA2K_CLSM_CHG 0x62
1121 #define GSM48_MT_RR_IS_TO_UTRAN_HANDO 0x63
1122 #define GSM48_MT_RR_IS_TO_CDMA2K_HANDO 0x64
1123 
1124 #define GSM48_MT_RR_SYSINFO_8 0x18
1125 #define GSM48_MT_RR_SYSINFO_1 0x19
1126 #define GSM48_MT_RR_SYSINFO_2 0x1a
1127 #define GSM48_MT_RR_SYSINFO_3 0x1b
1128 #define GSM48_MT_RR_SYSINFO_4 0x1c
1129 #define GSM48_MT_RR_SYSINFO_5 0x1d
1130 #define GSM48_MT_RR_SYSINFO_6 0x1e
1131 #define GSM48_MT_RR_SYSINFO_7 0x1f
1132 
1133 #define GSM48_MT_RR_SYSINFO_2bis 0x02
1134 #define GSM48_MT_RR_SYSINFO_2ter 0x03
1135 #define GSM48_MT_RR_SYSINFO_2quater 0x07
1136 #define GSM48_MT_RR_SYSINFO_5bis 0x05
1137 #define GSM48_MT_RR_SYSINFO_5ter 0x06
1138 #define GSM48_MT_RR_SYSINFO_9 0x04
1139 #define GSM48_MT_RR_SYSINFO_13 0x00
1140 
1141 #define GSM48_MT_RR_SYSINFO_16 0x3d
1142 #define GSM48_MT_RR_SYSINFO_17 0x3e
1143 
1144 #define GSM48_MT_RR_SYSINFO_18 0x40
1145 #define GSM48_MT_RR_SYSINFO_19 0x41
1146 #define GSM48_MT_RR_SYSINFO_20 0x42
1147 
1148 #define GSM48_MT_RR_CHAN_MODE_MODIF 0x10
1149 #define GSM48_MT_RR_STATUS 0x12
1150 #define GSM48_MT_RR_CHAN_MODE_MODIF_ACK 0x17
1151 #define GSM48_MT_RR_FREQ_REDEF 0x14
1152 #define GSM48_MT_RR_MEAS_REP 0x15
1153 #define GSM48_MT_RR_CLSM_CHG 0x16
1154 #define GSM48_MT_RR_CLSM_ENQ 0x13
1155 #define GSM48_MT_RR_EXT_MEAS_REP 0x36
1156 #define GSM48_MT_RR_EXT_MEAS_REP_ORD 0x37
1157 #define GSM48_MT_RR_GPRS_SUSP_REQ 0x34
1158 #define GSM48_MT_RR_DTM_INFO 0x4d
1159 
1160 #define GSM48_MT_RR_VGCS_UPL_GRANT 0x09
1161 #define GSM48_MT_RR_UPLINK_RELEASE 0x0e
1162 #define GSM48_MT_RR_UPLINK_FREE 0x0c
1163 #define GSM48_MT_RR_UPLINK_BUSY 0x2a
1164 #define GSM48_MT_RR_TALKER_IND 0x11
1165 
1166 #define GSM48_MT_RR_APP_INFO 0x38
1167 
1168 /* Table 10.2/3GPP TS 04.08 */
1169 #define GSM48_MT_MM_IMSI_DETACH_IND 0x01
1170 #define GSM48_MT_MM_LOC_UPD_ACCEPT 0x02
1171 #define GSM48_MT_MM_LOC_UPD_REJECT 0x04
1172 #define GSM48_MT_MM_LOC_UPD_REQUEST 0x08
1173 
1174 #define GSM48_MT_MM_AUTH_REJ 0x11
1175 #define GSM48_MT_MM_AUTH_REQ 0x12
1176 #define GSM48_MT_MM_AUTH_RESP 0x14
1177 #define GSM48_MT_MM_AUTH_FAIL 0x1c
1178 #define GSM48_MT_MM_ID_REQ 0x18
1179 #define GSM48_MT_MM_ID_RESP 0x19
1180 #define GSM48_MT_MM_TMSI_REALL_CMD 0x1a
1181 #define GSM48_MT_MM_TMSI_REALL_COMPL 0x1b
1182 
1183 #define GSM48_MT_MM_CM_SERV_ACC 0x21
1184 #define GSM48_MT_MM_CM_SERV_REJ 0x22
1185 #define GSM48_MT_MM_CM_SERV_ABORT 0x23
1186 #define GSM48_MT_MM_CM_SERV_REQ 0x24
1187 #define GSM48_MT_MM_CM_SERV_PROMPT 0x25
1188 #define GSM48_MT_MM_CM_REEST_REQ 0x28
1189 #define GSM48_MT_MM_ABORT 0x29
1190 
1191 #define GSM48_MT_MM_NULL 0x30
1192 #define GSM48_MT_MM_STATUS 0x31
1193 #define GSM48_MT_MM_INFO 0x32
1194 
1195 /* Table 10.3/3GPP TS 04.08 */
1196 #define GSM48_MT_CC_ALERTING 0x01
1197 #define GSM48_MT_CC_CALL_CONF 0x08
1198 #define GSM48_MT_CC_CALL_PROC 0x02
1199 #define GSM48_MT_CC_CONNECT 0x07
1200 #define GSM48_MT_CC_CONNECT_ACK 0x0f
1201 #define GSM48_MT_CC_EMERG_SETUP 0x0e
1202 #define GSM48_MT_CC_PROGRESS 0x03
1203 #define GSM48_MT_CC_ESTAB 0x04
1204 #define GSM48_MT_CC_ESTAB_CONF 0x06
1205 #define GSM48_MT_CC_RECALL 0x0b
1206 #define GSM48_MT_CC_START_CC 0x09
1207 #define GSM48_MT_CC_SETUP 0x05
1208 
1209 #define GSM48_MT_CC_MODIFY 0x17
1210 #define GSM48_MT_CC_MODIFY_COMPL 0x1f
1211 #define GSM48_MT_CC_MODIFY_REJECT 0x13
1212 #define GSM48_MT_CC_USER_INFO 0x10
1213 #define GSM48_MT_CC_HOLD 0x18
1214 #define GSM48_MT_CC_HOLD_ACK 0x19
1215 #define GSM48_MT_CC_HOLD_REJ 0x1a
1216 #define GSM48_MT_CC_RETR 0x1c
1217 #define GSM48_MT_CC_RETR_ACK 0x1d
1218 #define GSM48_MT_CC_RETR_REJ 0x1e
1219 
1220 #define GSM48_MT_CC_DISCONNECT 0x25
1221 #define GSM48_MT_CC_RELEASE 0x2d
1222 #define GSM48_MT_CC_RELEASE_COMPL 0x2a
1223 
1224 #define GSM48_MT_CC_CONG_CTRL 0x39
1225 #define GSM48_MT_CC_NOTIFY 0x3e
1226 #define GSM48_MT_CC_STATUS 0x3d
1227 #define GSM48_MT_CC_STATUS_ENQ 0x34
1228 #define GSM48_MT_CC_START_DTMF 0x35
1229 #define GSM48_MT_CC_STOP_DTMF 0x31
1230 #define GSM48_MT_CC_STOP_DTMF_ACK 0x32
1231 #define GSM48_MT_CC_START_DTMF_ACK 0x36
1232 #define GSM48_MT_CC_START_DTMF_REJ 0x37
1233 #define GSM48_MT_CC_FACILITY 0x3a
1234 
1235 extern const struct value_string gsm48_rr_msgtype_names[];
1236 extern const struct value_string gsm48_mm_msgtype_names[];
1237 extern const struct value_string gsm48_cc_msgtype_names[];
1238 const char *gsm48_pdisc_msgtype_name(uint8_t pdisc, uint8_t msg_type);
1239 
1240 /* FIXME: Table 10.4 / 10.4a (GPRS) */
1241 
1242 /* Section 10.5.3.3 CM service type */
1243 #define GSM48_CMSERV_MO_CALL_PACKET 1
1244 #define GSM48_CMSERV_EMERGENCY 2
1245 #define GSM48_CMSERV_SMS 4
1246 #define GSM48_CMSERV_SUP_SERV 8
1247 #define GSM48_CMSERV_VGCS 9
1248 #define GSM48_CMSERV_VBS 10
1249 #define GSM48_CMSERV_LOC_SERV 11
1250 
1251 /* Section 10.5.2.26, Table 10.5.64 */
1252 #define GSM48_PM_MASK 0x03
1253 #define GSM48_PM_NORMAL 0x00
1254 #define GSM48_PM_EXTENDED 0x01
1255 #define GSM48_PM_REORG 0x02
1256 #define GSM48_PM_SAME 0x03
1257 
1258 /* Chapter 10.5.3.5 / Table 10.5.93 */
1259 #define GSM48_LUPD_NORMAL 0x0
1260 #define GSM48_LUPD_PERIODIC 0x1
1261 #define GSM48_LUPD_IMSI_ATT 0x2
1262 #define GSM48_LUPD_RESERVED 0x3
1263 
1264 /* Table 10.5.4 */
1265 #define GSM_MI_TYPE_MASK 0x07
1266 #define GSM_MI_TYPE_NONE 0x00
1267 #define GSM_MI_TYPE_IMSI 0x01
1268 #define GSM_MI_TYPE_IMEI 0x02
1269 #define GSM_MI_TYPE_IMEISV 0x03
1270 #define GSM_MI_TYPE_TMSI 0x04
1271 #define GSM_MI_ODD 0x08
1272 
1273 #define GSM48_IE_MOBILE_ID 0x17 /* 10.5.1.4 */
1274 #define GSM48_IE_NAME_LONG 0x43 /* 10.5.3.5a */
1275 #define GSM48_IE_NAME_SHORT 0x45 /* 10.5.3.5a */
1276 #define GSM48_IE_UTC 0x46 /* 10.5.3.8 */
1277 #define GSM48_IE_NET_TIME_TZ 0x47 /* 10.5.3.9 */
1278 #define GSM48_IE_LSA_IDENT 0x48 /* 10.5.3.11 */
1279 #define GSM48_IE_NET_DST 0x49 /* 10.5.3.12 [24.008] */
1280 
1281 #define GSM48_IE_BEARER_CAP 0x04 /* 10.5.4.5 */
1282 #define GSM48_IE_CAUSE 0x08 /* 10.5.4.11 */
1283 #define GSM48_IE_CC_CAP 0x15 /* 10.5.4.5a */
1284 #define GSM48_IE_ALERT 0x19 /* 10.5.4.26 */
1285 #define GSM48_IE_FACILITY 0x1c /* 10.5.4.15 */
1286 #define GSM48_IE_PROGR_IND 0x1e /* 10.5.4.21 */
1287 #define GSM48_IE_AUX_STATUS 0x24 /* 10.5.4.4 */
1288 #define GSM48_IE_NOTIFY 0x27 /* 10.5.4.20 */
1289 #define GSM48_IE_KPD_FACILITY 0x2c /* 10.5.4.17 */
1290 #define GSM48_IE_SIGNAL 0x34 /* 10.5.4.23 */
1291 #define GSM48_IE_CONN_BCD 0x4c /* 10.5.4.13 */
1292 #define GSM48_IE_CONN_SUB 0x4d /* 10.5.4.14 */
1293 #define GSM48_IE_CALLING_BCD 0x5c /* 10.5.4.9 */
1294 #define GSM48_IE_CALLING_SUB 0x5d /* 10.5.4.10 */
1295 #define GSM48_IE_CALLED_BCD 0x5e /* 10.5.4.7 */
1296 #define GSM48_IE_CALLED_SUB 0x6d /* 10.5.4.8 */
1297 #define GSM48_IE_REDIR_BCD 0x74 /* 10.5.4.21a */
1298 #define GSM48_IE_REDIR_SUB 0x75 /* 10.5.4.21b */
1299 #define GSM48_IE_LOWL_COMPAT 0x7c /* 10.5.4.18 */
1300 #define GSM48_IE_HIGHL_COMPAT 0x7d /* 10.5.4.16 */
1301 #define GSM48_IE_USER_USER 0x7e /* 10.5.4.25 */
1302 #define GSM48_IE_SS_VERS 0x7f /* 10.5.4.24 */
1303 #define GSM48_IE_MORE_DATA 0xa0 /* 10.5.4.19 */
1304 #define GSM48_IE_CLIR_SUPP 0xa1 /* 10.5.4.11a */
1305 #define GSM48_IE_CLIR_INVOC 0xa2 /* 10.5.4.11b */
1306 #define GSM48_IE_REV_C_SETUP 0xa3 /* 10.5.4.22a */
1307 #define GSM48_IE_REPEAT_CIR 0xd1 /* 10.5.4.22 */
1308 #define GSM48_IE_REPEAT_SEQ 0xd3 /* 10.5.4.22 */
1309 
1310 /* Section 10.5.4.11 / Table 10.5.122 */
1311 #define GSM48_CAUSE_CS_GSM 0x60
1312 
1313 /* Section 9.1.2 / Table 9.3 */
1314 /* RR elements */
1315 #define GSM48_IE_VGCS_TARGET 0x01
1316 //#define GSM48_IE_VGCS_T_MODE_I 0x01
1317 #define GSM48_IE_FRQSHORT_AFTER 0x02
1318 #define GSM48_IE_MUL_RATE_CFG 0x03 /* 10.5.2.21aa */
1319 #define GSM48_IE_FREQ_L_AFTER 0x05
1320 #define GSM48_IE_MSLOT_DESC 0x10
1321 #define GSM48_IE_CHANMODE_2 0x11
1322 #define GSM48_IE_FRQSHORT_BEFORE 0x12
1323 //#define GSM48_IE_FRQSHORT_BEFOR 0x12
1324 #define GSM48_IE_CHANMODE_3 0x13
1325 #define GSM48_IE_CHANMODE_4 0x14
1326 #define GSM48_IE_CHANMODE_5 0x15
1327 #define GSM48_IE_CHANMODE_6 0x16
1328 #define GSM48_IE_CHANMODE_7 0x17
1329 #define GSM48_IE_CHANMODE_8 0x18
1330 #define GSM48_IE_CHANDESC_2 0x64
1331 #define GSM48_IE_MA_AFTER 0x72
1332 #define GSM48_IE_START_TIME 0x7c
1333 #define GSM48_IE_FREQ_L_BEFORE 0x19
1334 //#define GSM48_IE_FRQLIST_BEFORE 0x19
1335 #define GSM48_IE_CH_DESC_1_BEFORE 0x1c
1336 //#define GSM48_IE_CHDES_1_BEFORE 0x1c
1337 #define GSM48_IE_CH_DESC_2_BEFORE 0x1d
1338 //#define GSM48_IE_CHDES_2_BEFORE 0x1d
1339 #define GSM48_IE_F_CH_SEQ_BEFORE 0x1e
1340 //#define GSM48_IE_FRQSEQ_BEFORE 0x1e
1341 #define GSM48_IE_CLASSMARK3 0x20
1342 #define GSM48_IE_MA_BEFORE 0x21
1343 #define GSM48_IE_RR_PACKET_UL 0x22
1344 #define GSM48_IE_RR_PACKET_DL 0x23
1345 #define GSM48_IE_CELL_CH_DESC 0x62
1346 #define GSM48_IE_CHANMODE_1 0x63
1347 #define GSM48_IE_CHDES_2_AFTER 0x64
1348 #define GSM48_IE_MODE_SEC_CH 0x66
1349 #define GSM48_IE_F_CH_SEQ_AFTER 0x69
1350 #define GSM48_IE_MA_AFTER 0x72
1351 #define GSM48_IE_BA_RANGE 0x73
1352 #define GSM48_IE_GROUP_CHDES 0x74
1353 #define GSM48_IE_BA_LIST_PREF 0x75
1354 #define GSM48_IE_MOB_OVSERV_DIF 0x77
1355 #define GSM48_IE_REALTIME_DIFF 0x7b
1356 #define GSM48_IE_START_TIME 0x7c
1357 #define GSM48_IE_TIMING_ADVANCE 0x7d
1358 #define GSM48_IE_GROUP_CIP_SEQ 0x80
1359 #define GSM48_IE_CIP_MODE_SET 0x90
1360 #define GSM48_IE_GPRS_RESUMPT 0xc0
1361 #define GSM48_IE_SYNC_IND 0xd0
1362 /* System Information 4 (types are equal IEs above) */
1363 #define GSM48_IE_CBCH_CHAN_DESC 0x64
1364 #define GSM48_IE_CBCH_MOB_AL 0x72
1365 
1366 /* Additional MM elements */
1367 #define GSM48_IE_LOCATION_AREA 0x13
1368 #define GSM48_IE_AUTN 0x20
1369 #define GSM48_IE_AUTH_RES_EXT 0x21
1370 #define GSM48_IE_AUTS 0x22
1371 #define GSM48_IE_PRIORITY_LEV 0x80
1372 #define GSM48_IE_FOLLOW_ON_PROC 0xa1
1373 #define GSM48_IE_CTS_PERMISSION 0xa2
1374 
1375 /* Section 10.5.4.21 / Table 10.5.127 */
1376 
1385 };
1386 
1387 /* Section 10.5.4.23 / Table 10.5.130 */
1400 };
1401 
1402 /* Section 10.5.4.11 / Table 10.5.122 */
1408 };
1409 
1417  /* not defined */
1420 };
1421 
1422 /* Section 10.5.2.31 RR Cause / Table 10.5.70 */
1441 };
1442 
1443 /* Section 10.5.4.11 CC Cause / Table 10.5.123 */
1494 };
1495 
1496 /* Annex G, GSM specific cause values for mobility management */
1521 
1522  /* according to G.6 Additional cause codes for GMM */
1529 };
1530 
1531 extern const struct value_string gsm48_reject_value_names[];
1532 static inline const char *gsm48_reject_value_name(enum gsm48_reject_value val)
1534 
1555 };
1556 
1557 /* Chapter 11.3 */
1558 #define GSM48_T301 180, 0
1559 #define GSM48_T303 30, 0
1560 #define GSM48_T305 30, 0
1561 #define GSM48_T306 30, 0
1562 #define GSM48_T308 10, 0 /* no spec default */
1563 #define GSM48_T310 30, 0 /* no spec default */
1564 #define GSM48_T313 30, 0 /* no spec default */
1565 #define GSM48_T323 30, 0
1566 #define GSM48_T331 30, 0 /* no spec default */
1567 #define GSM48_T333 30, 0 /* no spec default */
1568 #define GSM48_T334 25, 0 /* min 15s */
1569 #define GSM48_T338 30, 0 /* no spec default */
1570 #define GSM48_T303_MS 30, 0
1571 #define GSM48_T305_MS 30, 0
1572 #define GSM48_T308_MS 30, 0
1573 #define GSM48_T310_MS 30, 0
1574 #define GSM48_T313_MS 30, 0
1575 #define GSM48_T323_MS 30, 0
1576 #define GSM48_T332_MS 30, 0
1577 #define GSM48_T335_MS 30, 0
1578 
1579 /* Chapter 5.1.2.2 */
1580 #define GSM_CSTATE_NULL 0
1581 #define GSM_CSTATE_INITIATED 1
1582 #define GSM_CSTATE_MM_CONNECTION_PEND 2 /* see 10.5.4.6 */
1583 #define GSM_CSTATE_MO_CALL_PROC 3
1584 #define GSM_CSTATE_CALL_DELIVERED 4
1585 #define GSM_CSTATE_CALL_PRESENT 6
1586 #define GSM_CSTATE_CALL_RECEIVED 7
1587 #define GSM_CSTATE_CONNECT_REQUEST 8
1588 #define GSM_CSTATE_MO_TERM_CALL_CONF 9
1589 #define GSM_CSTATE_ACTIVE 10
1590 #define GSM_CSTATE_DISCONNECT_REQ 12
1591 #define GSM_CSTATE_DISCONNECT_IND 12
1592 #define GSM_CSTATE_RELEASE_REQ 19
1593 #define GSM_CSTATE_MO_ORIG_MODIFY 26
1594 #define GSM_CSTATE_MO_TERM_MODIFY 27
1595 #define GSM_CSTATE_CONNECT_IND 28
1596 
1597 #define SBIT(a) (1 << a)
1598 #define ALL_STATES 0xffffffff
1599 
1600 /* Table 10.5.3/3GPP TS 04.08: Location Area Identification information element */
1601 #define GSM_LAC_RESERVED_DETACHED 0x0
1602 #define GSM_LAC_RESERVED_ALL_BTS 0xfffe
1603 
1604 /* GSM 04.08 Bearer Capability: Information Transfer Capability */
1612 };
1613 
1614 /* GSM 04.08 Bearer Capability: Transfer Mode */
1618 };
1619 
1620 /* GSM 04.08 Bearer Capability: Coding Standard */
1623 };
1624 
1625 /* GSM 04.08 Bearer Capability: Radio Channel Requirements */
1630 };
1631 
1632 /* GSM 04.08 Bearer Capability: Rate Adaption */
1638 };
1639 
1640 /* GSM 04.08 Bearer Capability: Signalling access protocol */
1648 };
1649 
1650 /* GSM 04.08 Bearer Capability: User Rate */
1659 };
1660 
1661 /* GSM 04.08 Bearer Capability: Parity */
1668 };
1669 
1670 /* GSM 04.08 Bearer Capability: Intermediate Rate */
1674 };
1675 
1676 /* GSM 04.08 Bearer Capability: Transparency */
1682 };
1683 
1684 /* GSM 04.08 Bearer Capability: Modem Type */
1695 };
1696 
1709 };
1710 
1711 #define GSM48_TMSI_LEN 5
1712 #define GSM48_MID_TMSI_LEN (GSM48_TMSI_LEN + 2)
1713 #define GSM48_MI_SIZE 32
1714 
1715 /* 3GPP TS 24.008 ยง 10.5.5.15 Routing area identification */
1716 struct gsm48_ra_id {
1717  uint8_t digits[3]; /* MCC + MNC BCD digits */
1718  uint16_t lac; /* Location Area Code */
1719  uint8_t rac; /* Routing Area Code */
1720 } __attribute__ ((packed));
1721 
1722 #define GSM48_CELL_CHAN_DESC_SIZE 16
1723 
1724 #define GSM_MACBLOCK_LEN 23
1725 #define GSM_MACBLOCK_PADDING 0x2b
1726 
1727 /* Table 10.5.118 / 3GPP TS 24.008 Section 10.5.4.7 */
1734  /* reserved */
1735 };
1736 
1737 /* Table 10.5.118 / 3GPP TS 24.008 Section 10.5.4.7 */
1746  /* reserved */
1747 };
Definition: gsm_04_08.h:558
gsm48_bcap_parity
Definition: gsm_04_08.h:1662
uint8_t orig_arfcn_hi
Definition: gsm_04_08.h:232
uint16_t lac
Definition: gsm_04_08.h:623
Definition: gsm_04_08.h:1395
Definition: gsm_04_08.h:1664
Definition: gsm_04_08.h:857
Definition: gsm_04_08.h:546
Definition: gsm_04_08.h:1469
uint8_t msg_type
Definition: gsm_04_08.h:504
Definition: gsm_04_08.h:830
uint8_t rxlev_nc5_lo
Definition: gsm_04_08.h:422
Definition: gsm_04_08.h:1730
uint8_t w8
Definition: gsm_04_08.h:106
Definition: gsm_04_08.h:649
uint8_t w1_hi
Definition: gsm_04_08.h:235
uint8_t a5_2
Definition: gsm_04_08.h:104
gsm48_bcap_rrq
Definition: gsm_04_08.h:1626
uint8_t cmsp
Definition: gsm_04_08.h:104
uint8_t skip_indicator
Definition: gsm_04_08.h:775
Definition: gsm_04_08.h:1452
uint8_t bsic_nc6
Definition: gsm_04_08.h:429
Definition: gsm_04_08.h:1526
Definition: gsm_04_08.h:1481
Definition: gsm_04_08.h:1455
Definition: gsm_04_08.h:1517
uint8_t maio_low
Definition: gsm_04_08.h:377
uint8_t orig_arfcn_mid
Definition: gsm_04_08.h:94
Definition: gsm_04_08.h:1733
Definition: gsm_04_08.h:1732
gsm48_numbering_plan
Definition: gsm_04_08.h:1738
uint8_t nci
Definition: gsm_04_08.h:502
uint8_t system_information
Definition: gsm_04_08.h:801
uint8_t system_information
Definition: gsm_04_08.h:793
uint8_t w17
Definition: gsm_04_08.h:184
Definition: gsm_04_08.h:1498
Definition: gsm_04_08.h:1394
uint8_t w8_lo
Definition: gsm_04_08.h:109
Definition: gsm_04_08.h:1471
uint8_t w6
Definition: gsm_04_08.h:105
uint8_t w9
Definition: gsm_04_08.h:109
gsm48_bcap_sig_access
Definition: gsm_04_08.h:1641
uint8_t wait_ind4
Definition: gsm_04_08.h:900
uint8_t bsic_nc3_hi
Definition: gsm_04_08.h:113
uint8_t w8_hi
Definition: gsm_04_08.h:245
uint8_t a5_3
Definition: gsm_04_08.h:104
Definition: gsm_04_08.h:1478
uint8_t form_id
Definition: gsm_04_08.h:92
uint8_t rxlev_nc2_hi
Definition: gsm_04_08.h:406
Definition: gsm_04_08.h:1384
uint8_t w9_hi
Definition: gsm_04_08.h:109
uint8_t w11_lo
Definition: gsm_04_08.h:113
uint8_t l2_plen
Definition: gsm_04_08.h:918
uint8_t w9
Definition: gsm_04_08.h:331
uint8_t m7_95
Definition: gsm_04_08.h:440
uint8_t w2_hi
Definition: gsm_04_08.h:160
Definition: gsm_04_08.h:574
Definition: gsm_04_08.h:1429
Definition: gsm_04_08.h:1407
Definition: gsm_04_08.h:1458
uint8_t w25
Definition: gsm_04_08.h:124
uint8_t fc
Definition: gsm_04_08.h:97
enum gsm48_chan_mode __attribute__
Definition: gsm_04_08.h:1473
uint8_t sync_ie
Definition: gsm_04_08.h:528
uint8_t w2
Definition: gsm_04_08.h:237
gsm48_chan_mode
Definition: gsm_04_08.h:544
Definition: gsm_04_08.h:590
uint8_t rxlev_nc2_lo
Definition: gsm_04_08.h:408
Definition: gsm_04_08.h:959
uint8_t w10
Definition: gsm_04_08.h:111
Definition: gsm_04_08.h:519
Definition: gsm_04_08.h:1502
uint8_t rrfcn1_7
Definition: gsm_04_08.h:364
uint8_t orig_arfcn_hi
Definition: gsm_04_08.h:155
Definition: gsm_04_08.h:798
Definition: gsm_04_08.h:1537
Definition: gsm_04_08.h:1449
uint8_t orig_arfcn_lo
Definition: gsm_04_08.h:95
uint8_t w21_lo
Definition: gsm_04_08.h:121
gsm48_rr_cause
Definition: gsm_04_08.h:1423
void gsm48_set_dtx(struct gsm48_cell_options *op, enum gsm48_dtx_mode full, enum gsm48_dtx_mode half, bool is_bcch)
Set DTX mode in Cell Options IE (3GPP TS 44.018)
Definition: gsm48.c:555
Definition: gsm_04_08.h:1474
Definition: gsm_04_08.h:1488
Definition: gsm_04_08.h:552
Definition: gsm_04_08.h:1672
uint8_t mob_alloc_len
Definition: gsm_04_08.h:883
uint8_t cneed4
Definition: gsm_04_08.h:513
uint8_t w6_hi
Definition: gsm_04_08.h:326
uint8_t w9_hi
Definition: gsm_04_08.h:172
const char * get_value_string(const struct value_string *vs, uint32_t val)
uint8_t w1_hi
Definition: gsm_04_08.h:92
Definition: gsm_04_08.h:1382
Definition: gsm_04_08.h:1467
Definition: gsm_04_08.h:1514
uint8_t w13_hi
Definition: gsm_04_08.h:115
Definition: gsm_04_08.h:545
Definition: gsm_04_08.h:1397
Definition: gsm_04_08.h:744
uint8_t w1_hi
Definition: gsm_04_08.h:84
uint8_t w12_hi
Definition: gsm_04_08.h:176
uint8_t orig_arfcn_mid
Definition: gsm_04_08.h:363
uint8_t t3_low
Definition: gsm_04_08.h:522
uint8_t max_trans
Definition: gsm_04_08.h:92
gsm48_bcap_user_rate
Definition: gsm_04_08.h:1651
uint8_t maio_high
Definition: gsm_04_08.h:372
uint8_t ccch_conf
Definition: gsm_04_08.h:502
Definition: gsm_04_08.h:1433
Definition: gsm_04_08.h:550
uint8_t w28
Definition: gsm_04_08.h:352
Definition: gsm_04_08.h:1539
uint8_t rr_cause
Definition: gsm_04_08.h:836
uint8_t w7_hi
Definition: gsm_04_08.h:105
uint8_t f0
Definition: gsm_04_08.h:92
uint8_t ho_ref
Definition: gsm_04_08.h:593
Definition: gsm_04_08.h:1426
Definition: gsm_04_08.h:1486
uint8_t cell_bar
Definition: gsm_04_08.h:92
uint8_t dtx_used
Definition: gsm_04_08.h:92
Definition: gsm_04_08.h:1398
uint8_t w26_hi
Definition: gsm_04_08.h:349
uint8_t w22
Definition: gsm_04_08.h:121
uint8_t w16_hi
Definition: gsm_04_08.h:119
uint8_t w3_hi
Definition: gsm_04_08.h:322
uint8_t bcch_f_nc1
Definition: gsm_04_08.h:104
uint8_t w3
Definition: gsm_04_08.h:99
Definition: gsm_04_08.h:1393
uint8_t neci
Definition: gsm_04_08.h:504
uint8_t w20_lo
Definition: gsm_04_08.h:126
uint8_t wait_ind1
Definition: gsm_04_08.h:894
Definition: gsm_04_08.h:1545
Definition: gsm_04_08.h:1744
Definition: gsm_04_08.h:1549
uint8_t si
Definition: gsm_04_08.h:502
uint8_t bcch_f_nc3
Definition: gsm_04_08.h:113
static uint8_t gsm48_hdr_msg_type_r99(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1050
uint8_t ncc_permitted
Definition: gsm_04_08.h:805
uint8_t w19
Definition: gsm_04_08.h:123
uint8_t m7_40
Definition: gsm_04_08.h:97
Definition: gsm_04_08.h:1424
Definition: gsm_04_08.h:656
gsm48_reject_value
Definition: gsm_04_08.h:1497
uint8_t sm_cap
Definition: gsm_04_08.h:97
Definition: gsm_04_08.h:1524
Definition: gsm_04_08.h:1451
uint8_t radio_link_timeout
Definition: gsm_04_08.h:694
uint8_t nscb
Definition: gsm_04_08.h:92
uint8_t w12
Definition: gsm_04_08.h:253
Definition: gsm_04_08.h:702
Definition: gsm_04_08.h:1457
Definition: gsm_04_08.h:1477
Definition: gsm_04_08.h:1666
Definition: gsm_04_08.h:1439
Definition: gsm_04_08.h:1411
Definition: gsm_04_08.h:1547
uint8_t ms_txpwr_max_ccch
Definition: gsm_04_08.h:665
uint8_t t3212
Definition: gsm_04_08.h:682
uint8_t w3_hi
Definition: gsm_04_08.h:162
gsm48_bcap_tmod
Definition: gsm_04_08.h:1615
uint8_t w23
Definition: gsm_04_08.h:346
Definition: gsm_04_08.h:360
uint8_t w1_lo
Definition: gsm_04_08.h:87
Definition: gsm_04_08.h:1453
uint8_t m5_15
Definition: gsm_04_08.h:97
Definition: gsm_04_08.h:1499
uint16_t cell_identity
Definition: gsm_04_08.h:802
uint8_t ext_bcch_frequency_list[16]
Definition: gsm_04_08.h:503
bool gsm48_hdr_gmm_cipherable(const struct gsm48_hdr *hdr)
Checks is particular message is cipherable in A/Gb mode according to 3GPP TS 24.008 ยง 4...
Definition: gsm48.c:441
uint8_t w15_hi
Definition: gsm_04_08.h:119
uint8_t w18_lo
Definition: gsm_04_08.h:123
static bool gsm48_acc_is_barred(struct gsm48_rach_control *rach_control, unsigned int acc)
Definition: gsm_04_08.h:501
gsm48_bcap_modem_type
Definition: gsm_04_08.h:1685
uint8_t proto_discr
Definition: gsm_04_08.h:650
Definition: gsm_04_08.h:1466
Definition: gsm_04_08.h:1437
uint8_t spare4
Definition: gsm_04_08.h:37
Definition: gsm_04_08.h:1446
uint8_t re
Definition: gsm_04_08.h:92
Definition: gsm_04_08.h:1507
uint8_t options[0]
Definition: gsm_04_08.h:505
uint8_t w11
Definition: gsm_04_08.h:333
uint8_t spare
Definition: gsm_04_08.h:921
Definition: gsm_04_08.h:1399
uint8_t mi_len
Definition: gsm_04_08.h:616
uint8_t rxlev_nc5_hi
Definition: gsm_04_08.h:420
uint8_t w1
Definition: gsm_04_08.h:320
uint8_t w1_hi
Definition: gsm_04_08.h:158
Definition: gsm_04_08.h:931
Definition: gsm_04_08.h:1480
uint8_t w6_hi
Definition: gsm_04_08.h:103
#define GSM48_PDISC_BCAST_CC
Definition: gsm_04_08.h:965
uint8_t pwr_lev
Definition: gsm_04_08.h:16
Definition: gsm_04_08.h:1637
gsm48_signal_val
Definition: gsm_04_08.h:1388
uint8_t mode
Definition: gsm_04_08.h:541
Definition: gsm_04_08.h:1686
Definition: gsm_04_08.h:1680
#define OSMO_ASSERT(exp)
Definition: gsm_04_08.h:1646
uint8_t spare
Definition: gsm_04_08.h:25
Definition: gsm_04_08.h:1391
uint8_t w12_lo
Definition: gsm_04_08.h:115
uint8_t bs_ag_blks_res
Definition: gsm_04_08.h:502
uint8_t rxlev_full
Definition: gsm_04_08.h:392
uint8_t dtx
Definition: gsm_04_08.h:502
Definition: gsm_04_08.h:1552
uint8_t spare2
Definition: gsm_04_08.h:97
uint8_t w2_lo
Definition: gsm_04_08.h:97
uint8_t wait_ind3
Definition: gsm_04_08.h:898
uint8_t ver
Definition: gsm_04_08.h:435
uint8_t ra_id[6]
Definition: gsm_04_08.h:503
static void gsm48_allow_acc(struct gsm48_rach_control *rach_control, unsigned int acc)
Definition: gsm_04_08.h:486
Definition: gsm_04_08.h:688
uint8_t rev_lev
Definition: gsm_04_08.h:16
Definition: gsm_04_08.h:1608
uint8_t hsn
Definition: gsm_04_08.h:375
uint8_t page_mode
Definition: gsm_04_08.h:892
Definition: gsm_04_08.h:1657
uint8_t spare3
Definition: gsm_04_08.h:104
Definition: gsm_04_08.h:1416
Definition: gsm_04_08.h:1743
Definition: gsm_04_08.h:1741
gsm48_dtx_mode
Definition: gsm_04_08.h:685
Definition: gsm_04_08.h:1404
uint8_t t1
Definition: gsm_04_08.h:503
Definition: gsm_04_08.h:1643
uint8_t w18_hi
Definition: gsm_04_08.h:260
#define GSM48_PDISC_CC
Definition: gsm_04_08.h:967
uint8_t mob_alloc_len
Definition: gsm_04_08.h:569
const struct value_string gsm48_mm_msgtype_names[]
TS 04.08 MM Message Type names.
Definition: gsm48.c:876
Definition: gsm_04_08.h:458
Definition: gsm_04_08.h:774
uint8_t timing_advance1
Definition: gsm_04_08.h:879
Definition: gsm_04_08.h:737
Definition: gsm_04_08.h:1491
uint8_t w5_hi
Definition: gsm_04_08.h:241
uint8_t w6_lo
Definition: gsm_04_08.h:105
uint8_t cell_channel_description[16]
Definition: gsm_04_08.h:503
Definition: gsm_04_08.h:566
Definition: gsm_04_08.h:24
uint8_t rr_cause
Definition: gsm_04_08.h:852
gsm48_cc_cause
Definition: gsm_04_08.h:1444
Definition: gsm_04_08.h:1440
uint8_t w20
Definition: gsm_04_08.h:117
Definition: gsm_04_08.h:1485
#define GSM48_PDISC_NC_SS
Definition: gsm_04_08.h:975
Definition: gsm_04_08.h:1464
uint8_t cell_resel_hyst
Definition: gsm_04_08.h:502
uint8_t cipher_key_seq
Definition: gsm_04_08.h:502
Definition: gsm_04_08.h:1436
uint8_t ra
Definition: gsm_04_08.h:502
Definition: gsm_04_08.h:1472
uint8_t key_seq
Definition: gsm_04_08.h:502
uint8_t w5
Definition: gsm_04_08.h:103
uint8_t rxlev_nc3_lo
Definition: gsm_04_08.h:413
Definition: gsm_04_08.h:1629
uint8_t w4_hi
Definition: gsm_04_08.h:324
uint8_t w26_hi
Definition: gsm_04_08.h:124
uint8_t w15
Definition: gsm_04_08.h:119
struct gsm48_req_ref req_ref3
Definition: gsm_04_08.h:510
const struct value_string gsm48_cc_msgtype_names[]
TS 04.08 CC Message Type names.
Definition: gsm48.c:906
static const char * gsm48_pdisc_name(uint8_t val)
Definition: gsm_04_08.h:982
Definition: gsm_04_08.h:231
uint8_t proto_discr
Definition: gsm_04_08.h:890
Definition: gsm_04_08.h:1515
uint8_t w13_hi
Definition: gsm_04_08.h:178
Definition: gsm_04_08.h:1716
uint8_t w21_hi
Definition: gsm_04_08.h:117
uint8_t rxqual_sub
Definition: gsm_04_08.h:98
uint8_t bcch_f_nc5_lo
Definition: gsm_04_08.h:124
Definition: gsm_04_08.h:1667
uint8_t w9_lo
Definition: gsm_04_08.h:250
static uint8_t gsm48_hdr_trans_id_no_ti(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1025
uint8_t proto_discr
Definition: gsm_04_08.h:874
Definition: gsm_04_08.h:1611
Definition: gsm_04_08.h:1655
Definition: gsm_04_08.h:1729
struct gsm48_req_ref req_ref
Definition: gsm_04_08.h:507
uint8_t page_mode
Definition: gsm_04_08.h:603
gsm48_bcap_coding
Definition: gsm_04_08.h:1621
uint8_t rest[0]
Definition: gsm_04_08.h:514
struct gsm48_chan_desc chan_desc2
Definition: gsm_04_08.h:509
uint8_t w15
Definition: gsm_04_08.h:337
uint8_t bcch_f_nc6_lo
Definition: gsm_04_08.h:129
uint8_t d
Definition: gsm_04_08.h:502
Definition: gsm_04_08.h:1693
uint8_t w1_lo
Definition: gsm_04_08.h:95
Definition: gsm_04_08.h:790
static uint8_t gsm48_hdr_trans_id(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:999
uint8_t vgcs
Definition: gsm_04_08.h:30
Definition: gsm_04_08.h:664
Definition: gsm_04_08.h:905
uint8_t m6_70
Definition: gsm_04_08.h:97
const struct value_string gsm48_rr_msgtype_names[]
TS 04.08 RR Message Type names.
Definition: gsm48.c:783
uint8_t l2_plen
Definition: gsm_04_08.h:906
Definition: gsm_04_08.h:1390
uint8_t orig_arfcn_hi
Definition: gsm_04_08.h:317
Definition: gsm_04_08.h:846
Definition: gsm_04_08.h:551
uint8_t bs_pa_mfrms
Definition: gsm_04_08.h:506
Definition: gsm_04_08.h:1465
gsm48_bcap_ra
Definition: gsm_04_08.h:1633
uint8_t w12_hi
Definition: gsm_04_08.h:113
uint8_t w9_lo
Definition: gsm_04_08.h:174
uint8_t bsic_nc3_lo
Definition: gsm_04_08.h:116
Definition: gsm_04_08.h:851
#define GSM48_PDISC_MM
Definition: gsm_04_08.h:970
uint8_t orig_arfcn_hi
Definition: gsm_04_08.h:92
GSM HR V4 (OHR AMR-WB)
Definition: gsm_04_08.h:1706
struct gsm48_cell_desc cell_desc
Definition: gsm_04_08.h:502
uint8_t w13
Definition: gsm_04_08.h:335
uint8_t arfcn_high
Definition: gsm_04_08.h:372
uint8_t spare_2
Definition: gsm_04_08.h:678
Definition: gsm_04_08.h:1688
Definition: gsm_04_08.h:1414
Definition: gsm_04_08.h:1508
struct gsm48_req_ref req_ref4
Definition: gsm_04_08.h:512
Definition: gsm_04_08.h:1503
Definition: gsm_04_08.h:1435
uint8_t cneed2
Definition: gsm_04_08.h:505
Definition: gsm_04_08.h:1434
uint8_t system_information
Definition: gsm_04_08.h:785
uint8_t ncc_permitted
Definition: gsm_04_08.h:724
uint8_t smod
Definition: gsm_04_08.h:92
uint32_t tlli
Definition: gsm_04_08.h:575
uint8_t t3_high
Definition: gsm_04_08.h:520
uint8_t rr_cause
Definition: gsm_04_08.h:847
uint8_t mi_len
Definition: gsm_04_08.h:707
Definition: gsm_04_08.h:1418
static uint8_t gsm48_hdr_trans_id_flip_ti(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1020
uint8_t icmi
Definition: gsm_04_08.h:92
Definition: gsm_04_08.h:1551
uint8_t w13_lo
Definition: gsm_04_08.h:117
Definition: gsm_04_08.h:1665
uint8_t w2_hi
Definition: gsm_04_08.h:96
Definition: gsm_04_08.h:1413
uint32_t tmsi1
Definition: gsm_04_08.h:939
uint8_t w27
Definition: gsm_04_08.h:127
struct gsm48_control_channel_descr control_channel_desc
Definition: gsm_04_08.h:505
GSM HR V6 (OHR AMR)
Definition: gsm_04_08.h:1708
uint8_t spare
Definition: gsm_04_08.h:935
Definition: gsm_04_08.h:599
Definition: gsm_04_08.h:1490
uint8_t spare
Definition: gsm_04_08.h:16
Definition: gsm_04_08.h:1550
Definition: gsm_04_08.h:1692
GSM FR V5 (FR AMR-WB)
Definition: gsm_04_08.h:1707
struct gsm48_cell_options cell_options
Definition: gsm_04_08.h:506
Definition: gsm_04_08.h:1658
Definition: gsm_04_08.h:1405
Definition: gsm_04_08.h:1425
uint8_t rxlev_nc1
Definition: gsm_04_08.h:402
uint8_t rot
Definition: gsm_04_08.h:502
Definition: gsm_04_08.h:510
Definition: gsm_04_08.h:1681
uint8_t t2
Definition: gsm_04_08.h:463
Definition: gsm_04_08.h:391
Definition: gsm_04_08.h:1636
Definition: gsm_04_08.h:1548
uint8_t w5_lo
Definition: gsm_04_08.h:103
Definition: gsm_04_08.h:1528
uint8_t w1
Definition: gsm_04_08.h:95
uint32_t tmsi3
Definition: gsm_04_08.h:941
Definition: gsm_04_08.h:639
Definition: gsm_04_08.h:1540
uint8_t rxlev_nc4_lo
Definition: gsm_04_08.h:418
uint8_t power_command
Definition: gsm_04_08.h:594
uint8_t l2_plen
Definition: gsm_04_08.h:657
uint8_t pag_mode
Definition: gsm_04_08.h:505
uint8_t bcc
Definition: gsm_04_08.h:502
uint8_t bcch_f_nc2
Definition: gsm_04_08.h:108
uint8_t w20_hi
Definition: gsm_04_08.h:123
Definition: gsm_04_08.h:1380
Definition: gsm_04_08.h:1379
uint8_t skip_indicator
Definition: gsm_04_08.h:783
struct gsm48_rach_control rach_control
Definition: gsm_04_08.h:504
Definition: gsm_04_08.h:1463
Definition: gsm_04_08.h:1622
Definition: gsm_04_08.h:721
uint8_t m4_75
Definition: gsm_04_08.h:97
Definition: gsm_04_08.h:1461
Definition: gsm_04_08.h:1518
Definition: gsm_04_08.h:1479
uint8_t spare
Definition: gsm_04_08.h:909
Definition: gsm_04_08.h:154
uint8_t h
Definition: gsm_04_08.h:372
uint8_t w14
Definition: gsm_04_08.h:117
Definition: gsm_04_08.h:1489
uint8_t ss_scr
Definition: gsm_04_08.h:97
Definition: gsm_04_08.h:1505
uint8_t mi_len
Definition: gsm_04_08.h:644
uint8_t rxlev_nc4_hi
Definition: gsm_04_08.h:416
uint8_t bcch_f_nc4
Definition: gsm_04_08.h:118
uint8_t cm_service_type
Definition: gsm_04_08.h:703
Definition: gsm_04_08.h:621
Definition: gsm_04_08.h:1656
uint8_t a5_1
Definition: gsm_04_08.h:16
Definition: gsm_04_08.h:762
uint8_t w18_hi
Definition: gsm_04_08.h:339
uint8_t spare
Definition: gsm_04_08.h:381
Definition: gsm_04_08.h:15
Definition: gsm_04_08.h:1419
uint8_t digits[3]
Definition: gsm_04_08.h:502
uint8_t rand[16]
Definition: gsm_04_08.h:504
uint8_t m5_90
Definition: gsm_04_08.h:97
uint8_t sc
Definition: gsm_04_08.h:502
Definition: gsm_04_08.h:1679
Definition: gsm_04_08.h:1520
uint8_t timing_advance2
Definition: gsm_04_08.h:882
uint8_t cbq3
Definition: gsm_04_08.h:506
uint8_t bcch_frequency_list[16]
Definition: gsm_04_08.h:503
uint8_t msg_type
Definition: gsm_04_08.h:651
Definition: gsm_04_08.h:1462
uint8_t orig_arfcn_mid
Definition: gsm_04_08.h:234
Definition: gsm_04_08.h:1431
uint8_t w23
Definition: gsm_04_08.h:121
Definition: gsm_04_08.h:1500
uint8_t w21
Definition: gsm_04_08.h:126
Definition: gsm_04_08.h:1731
uint8_t proto_discr
Definition: gsm_04_08.h:933
Definition: gsm_04_08.h:1512
uint8_t w6_hi
Definition: gsm_04_08.h:243
Definition: gsm_04_08.h:1691
uint8_t msg_type
Definition: gsm_04_08.h:908
chreq_type
Definition: gsm_04_08.h:1535
gsm48_bcap_itcap
Definition: gsm_04_08.h:1605
uint8_t w9_lo
Definition: gsm_04_08.h:111
uint8_t w8_hi
Definition: gsm_04_08.h:107
uint8_t arfcn_hi
Definition: gsm_04_08.h:502
const struct value_string gsm48_reject_value_names[]
Definition: gsm48.c:994
uint8_t cm3
Definition: gsm_04_08.h:104
uint8_t spare
Definition: gsm_04_08.h:858
uint8_t spare
Definition: gsm_04_08.h:395
uint8_t w7
Definition: gsm_04_08.h:105
uint32_t tmsi1
Definition: gsm_04_08.h:925
uint32_t classmark2
Definition: gsm_04_08.h:615
uint8_t w3_hi
Definition: gsm_04_08.h:89
Definition: gsm_04_08.h:1527
Definition: gsm_04_08.h:1745
uint8_t w20_hi
Definition: gsm_04_08.h:263
uint8_t t3_high
Definition: gsm_04_08.h:503
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:502
uint8_t msg_type
Definition: gsm_04_08.h:920
uint8_t pdisc
Definition: gsm_44_318.h:799
uint8_t power_command
Definition: gsm_04_08.h:561
Definition: gsm_04_08.h:1504
uint8_t w26_lo
Definition: gsm_04_08.h:127
uint8_t wait_ind2
Definition: gsm_04_08.h:896
uint8_t page_mode
Definition: gsm_04_08.h:876
struct gsm48_classmark2 cm2
Definition: gsm_04_08.h:503
#define GSM48_PDISC_LOC
Definition: gsm_04_08.h:976
uint8_t spare
Definition: gsm_04_08.h:628
Definition: gsm_04_08.h:917
const char * gsm48_pdisc_msgtype_name(uint8_t pdisc, uint8_t msg_type)
Compose a string naming the message type for given protocol.
Definition: gsm48.c:963
#define GSM48_PDISC_MASK
Definition: gsm_04_08.h:979
uint8_t rxlev_nc6_lo
Definition: gsm_04_08.h:427
uint8_t bsic_nc5
Definition: gsm_04_08.h:124
uint8_t cause
Definition: gsm_04_08.h:577
GSM FR V4 (OFR AMR-WB)
Definition: gsm_04_08.h:1705
static const char * gsm48_reject_value_name(enum gsm48_reject_value val)
Definition: gsm_04_08.h:1532
uint8_t w28
Definition: gsm_04_08.h:127
uint8_t bsic_nc1_lo
Definition: gsm_04_08.h:106
Definition: gsm_04_08.h:1389
Definition: gsm_04_08.h:1654
Definition: gsm_04_08.h:686
uint8_t data[0]
Definition: gsm_04_08.h:505
uint8_t w7_lo
Definition: gsm_04_08.h:107
Definition: gsm_04_08.h:1616
uint8_t mob_alloc[0]
Definition: gsm_04_08.h:505
uint8_t rr_protocol_discriminator
Definition: gsm_04_08.h:503
uint8_t spare2
Definition: gsm_04_08.h:398
uint8_t w5_hi
Definition: gsm_04_08.h:101
Definition: gsm_04_08.h:1392
Definition: gsm_04_08.h:1475
uint8_t spare2
Definition: gsm_04_08.h:943
uint8_t w3_hi
Definition: gsm_04_08.h:97
Definition: gsm_04_08.h:1634
gsm48_bcap_interm_rate
Definition: gsm_04_08.h:1671
uint8_t w14
Definition: gsm_04_08.h:180
Definition: gsm_04_08.h:840
uint8_t acs
Definition: gsm_04_08.h:504
Definition: gsm_04_08.h:1450
Definition: gsm_04_08.h:1378
Definition: gsm_04_08.h:1635
uint8_t mi[0]
Definition: gsm_04_08.h:506
uint8_t w3_lo
Definition: gsm_04_08.h:99
Definition: gsm_04_08.h:451
uint8_t l2_plen
Definition: gsm_04_08.h:600
uint8_t timing_advance
Definition: gsm_04_08.h:606
uint8_t orig_arfcn_hi
Definition: gsm_04_08.h:361
uint8_t rest_octets[0]
Definition: gsm_04_08.h:505
Definition: gsm_04_08.h:1554
Definition: gsm_04_08.h:835
uint8_t w14_hi
Definition: gsm_04_08.h:255
uint8_t rxlev_acc_min
Definition: gsm_04_08.h:667
Definition: gsm_04_08.h:83
Definition: gsm_04_08.h:1542
uint16_t cell_identity
Definition: gsm_04_08.h:752
Definition: gsm_04_08.h:549
Definition: gsm_04_08.h:1687
Definition: gsm_04_08.h:1506
uint8_t w13
Definition: gsm_04_08.h:115
uint8_t cneed1
Definition: gsm_04_08.h:505
struct gsm48_system_information_type_header header
Definition: gsm_04_08.h:502
Definition: gsm_04_08.h:1523
Definition: gsm_04_08.h:1460
Definition: gsm_04_08.h:548
gsm48_bcap_transp
Definition: gsm_04_08.h:1677
GSM HR V1 (GSM HR)
Definition: gsm_04_08.h:1701
uint8_t rac
Definition: gsm_04_08.h:1719
uint8_t msg_type
Definition: gsm_04_08.h:891
Definition: gsm_04_08.h:1536
uint32_t tmsi2
Definition: gsm_04_08.h:940
const struct value_string gsm48_chan_mode_names[]
Definition: gsm48.c:397
uint8_t bsic_nc4
Definition: gsm_04_08.h:120
Definition: gsm_04_08.h:713
Definition: gsm_04_08.h:1432
uint8_t m12_2
Definition: gsm_04_08.h:97
Definition: gsm_04_08.h:823
uint8_t l2_plen
Definition: gsm_04_08.h:873
uint8_t w4_hi
Definition: gsm_04_08.h:99
uint8_t bsic_nc2_hi
Definition: gsm_04_08.h:108
uint8_t rxqual_full
Definition: gsm_04_08.h:98
uint8_t w11
Definition: gsm_04_08.h:113
uint8_t msg_type
Definition: gsm_04_08.h:875
uint32_t classmark
Definition: gsm_04_08.h:706
Definition: gsm_04_08.h:627
uint8_t mi_len
Definition: gsm_04_08.h:818
uint8_t rr_cause
Definition: gsm_04_08.h:831
Definition: gsm_04_08.h:1482
struct gsm48_req_ref req_ref2
Definition: gsm_04_08.h:510
uint8_t skip_indicator
Definition: gsm_04_08.h:799
Definition: gsm_04_08.h:1448
Definition: gsm_04_08.h:1447
uint8_t orig_arfcn_mid
Definition: gsm_04_08.h:157
Definition: gsm_04_08.h:750
uint8_t w21
Definition: gsm_04_08.h:266
Definition: gsm_04_08.h:1396
Definition: gsm_04_08.h:1476
uint8_t att
Definition: gsm_04_08.h:502
uint8_t no_nc_n_lo
Definition: gsm_04_08.h:102
Definition: gsm_04_08.h:1610
Definition: gsm_04_08.h:673
gsm48_progress_desc
Definition: gsm_04_08.h:1377
uint8_t atc
Definition: gsm_04_08.h:92
uint8_t tsc
Definition: gsm_04_08.h:372
#define GSM48_PDISC_EXTEND
Definition: gsm_04_08.h:977
Definition: gsm_04_08.h:634
uint8_t w24
Definition: gsm_04_08.h:124
Definition: gsm_04_08.h:1484
Definition: gsm_04_08.h:1513
Definition: gsm_04_08.h:1415
uint8_t msg_type
Definition: gsm_04_08.h:602
Definition: gsm_04_08.h:1445
uint8_t no_nc_n_hi
Definition: gsm_04_08.h:98
Definition: gsm_04_08.h:1543
Definition: gsm_04_08.h:1740
uint16_t lac
Definition: gsm_04_08.h:1718
Definition: gsm_04_08.h:1644
Definition: gsm_04_08.h:316
Definition: gsm_04_08.h:1546
uint8_t bsic_nc2_lo
Definition: gsm_04_08.h:111
Definition: gsm_04_08.h:1617
uint8_t spare
Definition: gsm_04_08.h:951
Definition: gsm_04_08.h:527
uint8_t rr_cause
Definition: gsm_04_08.h:841
Definition: gsm_04_08.h:612
uint8_t proto_discr
Definition: gsm_04_08.h:907
uint8_t meas_valid
Definition: gsm_04_08.h:95
uint8_t ba_used
Definition: gsm_04_08.h:92
uint8_t rrfcn8_111[13]
Definition: gsm_04_08.h:97
uint8_t mob_alloc_len
Definition: gsm_04_08.h:607
Definition: gsm_04_08.h:1428
Definition: gsm_04_08.h:1653
uint32_t tmsi4
Definition: gsm_04_08.h:942
uint8_t sres[4]
Definition: gsm_04_08.h:502
uint8_t proto_discr
Definition: gsm_04_08.h:919
uint8_t bsic_nc1_hi
Definition: gsm_04_08.h:404
Definition: gsm_04_08.h:1468
gsm48_cause_loc
Definition: gsm_04_08.h:1410
Definition: gsm_04_08.h:1607
Definition: gsm_04_08.h:1438
Definition: gsm_04_08.h:1516
uint8_t cm2_len
Definition: gsm_04_08.h:953
Definition: gsm_04_08.h:539
uint8_t w11_hi
Definition: gsm_04_08.h:111
Definition: gsm_04_08.h:1487
Definition: gsm_04_08.h:810
uint8_t t3_low
Definition: gsm_04_08.h:505
Definition: gsm_04_08.h:1456
Definition: gsm_04_08.h:687
Definition: gsm_04_08.h:1678
uint8_t system_information
Definition: gsm_04_08.h:777
uint8_t cneed3
Definition: gsm_04_08.h:513
struct gsm48_classmark1 classmark1
Definition: gsm_04_08.h:505
uint8_t spare
Definition: gsm_04_08.h:613
Definition: gsm_04_08.h:1663
Definition: gsm_04_08.h:1742
Definition: gsm_04_08.h:782
uint32_t tmsi2
Definition: gsm_04_08.h:926
uint8_t solsa
Definition: gsm_04_08.h:104
Definition: gsm_04_08.h:950
uint8_t w21_hi
Definition: gsm_04_08.h:342
Definition: gsm_04_08.h:1647
Definition: gsm_04_08.h:434
gsm48_type_of_number
Definition: gsm_04_08.h:1728
uint8_t cm2_len
Definition: gsm_04_08.h:866
uint8_t m10_2
Definition: gsm_04_08.h:97
Definition: gsm_04_08.h:1511
uint8_t type
Definition: gsm_04_08.h:640
const struct value_string gsm48_pdisc_names[]
TS 04.08 Protocol Descriptor names.
Definition: gsm48.c:764
uint8_t rxlev_nc3_hi
Definition: gsm_04_08.h:411
uint8_t w2
Definition: gsm_04_08.h:97
uint8_t tx_integer
Definition: gsm_04_08.h:459
uint8_t w7
Definition: gsm_04_08.h:329
Definition: gsm_04_08.h:729
gsm48_cause_coding
Definition: gsm_04_08.h:1403
uint8_t msg_type
Definition: gsm_04_08.h:934
uint8_t bcch_f_nc5_hi
Definition: gsm_04_08.h:122
GSM FR V3 (FR AMR)
Definition: gsm_04_08.h:1703
uint8_t pwrc
Definition: gsm_04_08.h:502
uint8_t skip_indicator
Definition: gsm_04_08.h:791
Definition: gsm_04_08.h:816
gsm48_bcap_speech_ver
GSM 04.08 Bearer Capability: Speech Version Indication (See also 3GPP TS 24.008, Table 10...
Definition: gsm_04_08.h:1699
uint8_t chan_nr
Definition: gsm_04_08.h:371
uint8_t w16_lo
Definition: gsm_04_08.h:121
uint8_t rxlev_nc6_hi
Definition: gsm_04_08.h:424
Definition: gsm_04_08.h:1645
Definition: gsm_04_08.h:1694
struct gsm48_loc_area_id lai
Definition: gsm_04_08.h:504
uint8_t w16_hi
Definition: gsm_04_08.h:182
GSM FR V2 (GSM EFR)
Definition: gsm_04_08.h:1702
uint8_t t2
Definition: gsm_04_08.h:96
Definition: gsm_04_08.h:1412
Definition: gsm_04_08.h:1544
Definition: gsm_04_08.h:1525
Definition: gsm_04_08.h:1493
Definition: gsm_04_08.h:1454
uint8_t w12
Definition: gsm_04_08.h:113
#define GSM48_PDISC_GROUP_CC
Definition: gsm_04_08.h:964
uint8_t cr
Definition: gsm_04_08.h:502
struct gsm48_chan_desc chan_desc1
Definition: gsm_04_08.h:506
GSM HR V3 (HR_AMR)
Definition: gsm_04_08.h:1704
struct gsm48_req_ref req_ref1
Definition: gsm_04_08.h:507
uint8_t w18_hi
Definition: gsm_04_08.h:120
uint8_t spare_1
Definition: gsm_04_08.h:506
uint8_t alg_id
Definition: gsm_04_08.h:502
Definition: gsm_04_08.h:1538
uint8_t t3
Definition: gsm_04_08.h:464
Definition: gsm_04_08.h:1606
struct gsm48_cell_sel_par cell_sel_par
Definition: gsm_04_08.h:507
uint8_t w7_hi
Definition: gsm_04_08.h:168
uint8_t w17
Definition: gsm_04_08.h:121
uint8_t arfcn_lo
Definition: gsm_04_08.h:586
Definition: gsm_04_08.h:872
Definition: gsm_04_08.h:1427
uint8_t es_ind
Definition: gsm_04_08.h:16
Definition: gsm_04_08.h:1652
Definition: gsm_04_08.h:693
Definition: gsm_04_08.h:1541
Definition: gsm_04_08.h:1383
Definition: gsm_04_08.h:1430
uint8_t ncc
Definition: gsm_04_08.h:583
Definition: gsm_04_08.h:1483
static bool gsm48_ta_is_valid(uint8_t ta)
Check if TA is valid according to 3GPP TS 44.018 ยง 10.5.2.40.
Definition: gsm_04_08.h:1015
Definition: gsm_04_08.h:1470
Definition: gsm_04_08.h:1381
Definition: gsm_04_08.h:1501
uint8_t orig_arfcn_mid
Definition: gsm_04_08.h:319
Definition: gsm_04_08.h:547
uint8_t l2_plen
Definition: gsm_04_08.h:889
Definition: gsm_04_08.h:582
uint8_t rxlev_sub
Definition: gsm_04_08.h:95
uint8_t lcsva_cap
Definition: gsm_04_08.h:104
Definition: gsm_04_08.h:1628
uint8_t mscr
Definition: gsm_04_08.h:674
uint8_t l2_plen
Definition: gsm_04_08.h:932
uint8_t w16_hi
Definition: gsm_04_08.h:257
uint8_t system_information
Definition: gsm_04_08.h:660
Definition: gsm_04_08.h:1673
uint8_t w14_lo
Definition: gsm_04_08.h:119
Definition: gsm_04_08.h:1509
Definition: gsm_04_08.h:370
Definition: gsm_04_08.h:1406
Definition: gsm_04_08.h:1519
uint8_t w14_hi
Definition: gsm_04_08.h:117
uint8_t w2_hi
Definition: gsm_04_08.h:88
static void gsm48_barr_acc(struct gsm48_rach_control *rach_control, unsigned int acc)
Definition: gsm_04_08.h:472
Definition: gsm_04_08.h:1689
uint8_t spare
Definition: gsm_04_08.h:452
Definition: gsm_04_08.h:1553
uint8_t vbs
Definition: gsm_04_08.h:97
uint8_t proto_discr
Definition: gsm_04_08.h:601
uint8_t w4_hi
Definition: gsm_04_08.h:239
uint8_t skip_indicator
Definition: gsm_04_08.h:658
uint8_t w16
Definition: gsm_04_08.h:121
uint8_t w4_lo
Definition: gsm_04_08.h:101
uint8_t w9_hi
Definition: gsm_04_08.h:248
Definition: gsm_04_08.h:1510
Definition: gsm_04_08.h:1609
static uint8_t gsm48_hdr_pdisc(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:987
uint8_t w5
Definition: gsm_04_08.h:166
Definition: gsm_04_08.h:1642
uint8_t arfcn_low
Definition: gsm_04_08.h:385
uint8_t w15_lo
Definition: gsm_04_08.h:121
Definition: gsm_04_08.h:1690
uint8_t bcch_f_nc6_hi
Definition: gsm_04_08.h:127
Definition: gsm_04_08.h:865
Definition: gsm_04_08.h:1492
static uint8_t gsm48_hdr_msg_type_r98(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1030
Definition: gsm_04_08.h:1739
Definition: gsm_04_08.h:888
uint8_t rr_cause
Definition: gsm_04_08.h:960
GSM FR V1 (GSM FR)
Definition: gsm_04_08.h:1700
uint8_t power_level
Definition: gsm_04_08.h:92
uint8_t w4_hi
Definition: gsm_04_08.h:164
Definition: gsm_04_08.h:1627
uint8_t w8_hi
Definition: gsm_04_08.h:170
uint8_t ps_cap
Definition: gsm_04_08.h:97
Definition: gsm_04_08.h:1459