16 #if OSMO_IS_LITTLE_ENDIAN
22 #elif OSMO_IS_BIG_ENDIAN
24 uint8_t spare:1, rev_lev:2, es_ind:1, a5_1:1, pwr_lev:3;
30 #if OSMO_IS_LITTLE_ENDIAN
51 #elif OSMO_IS_BIG_ENDIAN
53 uint8_t spare:1, rev_lev:2, es_ind:1, a5_1:1, pwr_lev:3;
54 uint8_t spare2:1, ps_cap:1, ss_scr:2, sm_cap:1, vbs:1, vgcs:1, fc:1;
55 uint8_t cm3:1, spare4:1, lcsva_cap:1, spare3:1, solsa:1, cmsp:1, a5_3:1, a5_2:1;
60 #if OSMO_IS_LITTLE_ENDIAN == 1
62 #if OSMO_IS_LITTLE_ENDIAN
94 #elif OSMO_IS_BIG_ENDIAN
96 uint8_t form_id:5, f0:1, w1_hi:2;
99 uint8_t w2_lo:1, w3_hi:7;
100 uint8_t w3_lo:2, w4_hi:6;
101 uint8_t w4_lo:2, w5_hi:6;
102 uint8_t w5_lo:2, w6_hi:6;
103 uint8_t w6_lo:2, w7_hi:6;
104 uint8_t w7_lo:2, w8_hi:6;
105 uint8_t w8_lo:1, w9:7;
106 uint8_t w10:7, w11_hi:1;
107 uint8_t w11_lo:6, w12_hi:2;
108 uint8_t w12_lo:5, w13_hi:3;
109 uint8_t w13_lo:4, w14_hi:4;
110 uint8_t w14_lo:3, w15_hi:5;
111 uint8_t w15_lo:2, w16:6;
116 #if OSMO_IS_LITTLE_ENDIAN
148 #elif OSMO_IS_BIG_ENDIAN
150 uint8_t w1_hi:2, f0:1, form_id:5;
153 uint8_t w3_hi:7, w2_lo:1;
154 uint8_t w4_hi:6, w3_lo:2;
155 uint8_t w5_hi:6, w4_lo:2;
156 uint8_t w6_hi:6, w5_lo:2;
157 uint8_t w7_hi:6, w6_lo:2;
158 uint8_t w8_hi:6, w7_lo:2;
159 uint8_t w9:7, w8_lo:1;
160 uint8_t w11_hi:1, w10:7;
161 uint8_t w12_hi:2, w11_lo:6;
162 uint8_t w13_hi:3, w12_lo:5;
163 uint8_t w14_hi:4, w13_lo:4;
164 uint8_t w15_hi:5, w14_lo:3;
165 uint8_t w16:6, w15_lo:2;
171 #if OSMO_IS_LITTLE_ENDIAN == 1
173 #if OSMO_IS_LITTLE_ENDIAN
174 uint8_t orig_arfcn_hi:1,
176 uint8_t orig_arfcn_mid;
205 #elif OSMO_IS_BIG_ENDIAN
207 uint8_t form_id:7, orig_arfcn_hi:1;
208 uint8_t orig_arfcn_mid;
209 uint8_t orig_arfcn_lo:1, w1_hi:7;
210 uint8_t w1_lo:2, w2_hi:6;
211 uint8_t w2_lo:2, w3_hi:6;
212 uint8_t w3_lo:2, w4_hi:6;
213 uint8_t w4_lo:1, w5:7;
214 uint8_t w6:7, w7_hi:1;
215 uint8_t w7_lo:6, w8_hi:2;
216 uint8_t w8_lo:4, w9_hi:4;
217 uint8_t w9_lo:2, w10:6;
218 uint8_t w11:6, w12_hi:2;
219 uint8_t w12_lo:4, w13_hi:4;
220 uint8_t w13_lo:2, w14:6;
221 uint8_t w15:6, w16_hi:2;
222 uint8_t w16_lo:3, w17:5;
227 #if OSMO_IS_LITTLE_ENDIAN
230 uint8_t orig_arfcn_mid;
231 uint8_t orig_arfcn_lo:1,
259 #elif OSMO_IS_BIG_ENDIAN
261 uint8_t orig_arfcn_hi:1, form_id:7;
262 uint8_t orig_arfcn_mid;
263 uint8_t w1_hi:7, orig_arfcn_lo:1;
264 uint8_t w2_hi:6, w1_lo:2;
265 uint8_t w3_hi:6, w2_lo:2;
266 uint8_t w4_hi:6, w3_lo:2;
267 uint8_t w5:7, w4_lo:1;
268 uint8_t w7_hi:1, w6:7;
269 uint8_t w8_hi:2, w7_lo:6;
270 uint8_t w9_hi:4, w8_lo:4;
271 uint8_t w10:6, w9_lo:2;
272 uint8_t w12_hi:2, w11:6;
273 uint8_t w13_hi:4, w12_lo:4;
274 uint8_t w14:6, w13_lo:2;
275 uint8_t w16_hi:2, w15:6;
276 uint8_t w17:5, w16_lo:3;
282 #if OSMO_IS_LITTLE_ENDIAN == 1
284 #if OSMO_IS_LITTLE_ENDIAN
285 uint8_t orig_arfcn_hi:1,
287 uint8_t orig_arfcn_mid;
322 #elif OSMO_IS_BIG_ENDIAN
324 uint8_t form_id:7, orig_arfcn_hi:1;
325 uint8_t orig_arfcn_mid;
326 uint8_t orig_arfcn_lo:1, w1_hi:7;
327 uint8_t w1_lo:1, w2:7;
328 uint8_t w3:7, w4_hi:1;
329 uint8_t w4_lo:5, w5_hi:3;
330 uint8_t w5_lo:3, w6_hi:5;
331 uint8_t w6_lo:1, w7:6, w8_hi:1;
332 uint8_t w8_lo:4, w9_hi:4;
333 uint8_t w9_lo:1, w10:5, w11_hi:2;
334 uint8_t w11_lo:3, w12:5;
335 uint8_t w13:5, w14_hi:3;
336 uint8_t w14_lo:2, w15:5, w16_hi:1;
337 uint8_t w16_lo:3, w17:4, w18_hi:1;
338 uint8_t w18_lo:3, w19:4, w20_hi:1;
339 uint8_t w20_lo:3, w21:4, spare:1;
344 #if OSMO_IS_LITTLE_ENDIAN
347 uint8_t orig_arfcn_mid;
348 uint8_t orig_arfcn_lo:1,
382 #elif OSMO_IS_BIG_ENDIAN
384 uint8_t orig_arfcn_hi:1, form_id:7;
385 uint8_t orig_arfcn_mid;
386 uint8_t w1_hi:7, orig_arfcn_lo:1;
387 uint8_t w2:7, w1_lo:1;
388 uint8_t w4_hi:1, w3:7;
389 uint8_t w5_hi:3, w4_lo:5;
390 uint8_t w6_hi:5, w5_lo:3;
391 uint8_t w8_hi:1, w7:6, w6_lo:1;
392 uint8_t w9_hi:4, w8_lo:4;
393 uint8_t w11_hi:2, w10:5, w9_lo:1;
394 uint8_t w12:5, w11_lo:3;
395 uint8_t w14_hi:3, w13:5;
396 uint8_t w16_hi:1, w15:5, w14_lo:2;
397 uint8_t w18_hi:1, w17:4, w16_lo:3;
398 uint8_t w20_hi:1, w19:4, w18_lo:3;
399 uint8_t spare:1, w21:4, w20_lo:3;
405 #if OSMO_IS_LITTLE_ENDIAN == 1
407 #if OSMO_IS_LITTLE_ENDIAN
408 uint8_t orig_arfcn_hi:1,
410 uint8_t orig_arfcn_mid;
447 #elif OSMO_IS_BIG_ENDIAN
449 uint8_t form_id:7, orig_arfcn_hi:1;
450 uint8_t orig_arfcn_mid;
451 uint8_t orig_arfcn_lo:1, w1:7;
452 uint8_t w2:6, w3_hi:2;
453 uint8_t w3_lo:4, w4_hi:4;
454 uint8_t w4_lo:1, w5:5, w6_hi:2;
455 uint8_t w6_lo:3, w7:5;
457 uint8_t w10:4, w11:4;
458 uint8_t w12:4, w13:4;
459 uint8_t w14:4, w15:4;
460 uint8_t w16:3, w17:3, w18_hi:2;
461 uint8_t w18_lo:1, w19:3, w20:3, w21_hi:1;
462 uint8_t w21_lo:2, w22:3, w23:3;
463 uint8_t w24:3, w25:3, w26_hi:2;
464 uint8_t w26_lo:1, w27:3, w28:3, spare:1;
469 #if OSMO_IS_LITTLE_ENDIAN
472 uint8_t orig_arfcn_mid;
473 uint8_t orig_arfcn_lo:1,
509 #elif OSMO_IS_BIG_ENDIAN
511 uint8_t orig_arfcn_hi:1, form_id:7;
512 uint8_t orig_arfcn_mid;
513 uint8_t w1:7, orig_arfcn_lo:1;
514 uint8_t w3_hi:2, w2:6;
515 uint8_t w4_hi:4, w3_lo:4;
516 uint8_t w6_hi:2, w5:5, w4_lo:1;
517 uint8_t w7:5, w6_lo:3;
519 uint8_t w11:4, w10:4;
520 uint8_t w13:4, w12:4;
521 uint8_t w15:4, w14:4;
522 uint8_t w18_hi:2, w17:3, w16:3;
523 uint8_t w21_hi:1, w20:3, w19:3, w18_lo:1;
524 uint8_t w23:3, w22:3, w21_lo:2;
525 uint8_t w26_hi:2, w25:3, w24:3;
526 uint8_t spare:1, w28:3, w27:3, w26_lo:1;
533 #if OSMO_IS_LITTLE_ENDIAN
534 uint8_t orig_arfcn_hi:1,
536 uint8_t orig_arfcn_mid;
539 uint8_t rrfcn8_111[13];
540 #elif OSMO_IS_BIG_ENDIAN
542 uint8_t form_id:7, orig_arfcn_hi:1;
543 uint8_t orig_arfcn_mid;
544 uint8_t orig_arfcn_lo:1, rrfcn1_7:7;
545 uint8_t rrfcn8_111[13];
554 #if OSMO_IS_LITTLE_ENDIAN
560 #elif OSMO_IS_BIG_ENDIAN
562 uint8_t tsc:3, h:1, maio_high:4;
563 uint8_t maio_low:2, hsn:6;
567 #if OSMO_IS_LITTLE_ENDIAN
568 uint8_t arfcn_high:2,
573 #elif OSMO_IS_BIG_ENDIAN
575 uint8_t tsc:3, h:1, spare:2, arfcn_high:2;
584 #if OSMO_IS_LITTLE_ENDIAN
585 uint8_t rxlev_full:6,
591 uint8_t no_nc_n_hi:1,
597 uint8_t bsic_nc1_hi:3,
599 uint8_t rxlev_nc2_hi:5,
601 uint8_t bsic_nc2_hi:2,
604 uint8_t rxlev_nc3_hi:4,
606 uint8_t bsic_nc3_hi:1,
609 uint8_t rxlev_nc4_hi:3,
611 uint8_t bcch_f_nc4:5,
613 uint8_t rxlev_nc5_hi:2,
615 uint8_t bcch_f_nc5_hi:4,
617 uint8_t rxlev_nc6_hi:1,
620 uint8_t bcch_f_nc6_hi:3,
624 #elif OSMO_IS_BIG_ENDIAN
626 uint8_t ba_used:1, dtx_used:1, rxlev_full:6;
627 uint8_t spare:1, meas_valid:1, rxlev_sub:6;
628 uint8_t spare2:1, rxqual_full:3, rxqual_sub:3, no_nc_n_hi:1;
629 uint8_t no_nc_n_lo:2, rxlev_nc1:6;
630 uint8_t bcch_f_nc1:5, bsic_nc1_hi:3;
631 uint8_t bsic_nc1_lo:3, rxlev_nc2_hi:5;
632 uint8_t rxlev_nc2_lo:1, bcch_f_nc2:5, bsic_nc2_hi:2;
633 uint8_t bsic_nc2_lo:4, rxlev_nc3_hi:4;
634 uint8_t rxlev_nc3_lo:2, bcch_f_nc3:5, bsic_nc3_hi:1;
635 uint8_t bsic_nc3_lo:5, rxlev_nc4_hi:3;
636 uint8_t rxlev_nc4_lo:3, bcch_f_nc4:5;
637 uint8_t bsic_nc4:6, rxlev_nc5_hi:2;
638 uint8_t rxlev_nc5_lo:4, bcch_f_nc5_hi:4;
639 uint8_t bcch_f_nc5_lo:1, bsic_nc5:6, rxlev_nc6_hi:1;
640 uint8_t rxlev_nc6_lo:5, bcch_f_nc6_hi:3;
641 uint8_t bcch_f_nc6_lo:2, bsic_nc6:6;
647 #if OSMO_IS_LITTLE_ENDIAN
661 #elif OSMO_IS_BIG_ENDIAN
663 uint8_t ver:3, nscb:1, icmi:1, spare:1,
smod:2;
664 uint8_t m12_2:1, m10_2:1, m7_95:1, m7_40:1, m6_70:1, m5_90:1, m5_15:1, m4_75:1;
670 #if OSMO_IS_LITTLE_ENDIAN
671 uint8_t power_level:5,
674 #elif OSMO_IS_BIG_ENDIAN
676 uint8_t atc:1, spare:2, power_level:5;
682 #if OSMO_IS_LITTLE_ENDIAN
689 #elif OSMO_IS_BIG_ENDIAN
691 uint8_t max_trans:2, tx_integer:4, cell_bar:1, re:1;
706 rach_control->t2 |= (1 << (acc - 8));
708 rach_control->t3 |= (1 << (acc));
720 rach_control->t2 &= ~(1 << (acc - 8));
722 rach_control->t3 &= ~(1 << (acc));
735 return (rach_control->t2 & (1 << (acc - 8))) != 0;
736 return (rach_control->t3 & (1 << (acc))) != 0;
741 #if OSMO_IS_LITTLE_ENDIAN
747 #elif OSMO_IS_BIG_ENDIAN
750 uint8_t t1:5, t3_high:3;
751 uint8_t t3_low:3, t2:5;
757 #if OSMO_IS_LITTLE_ENDIAN
762 #elif OSMO_IS_BIG_ENDIAN
764 uint8_t t1:5, t3_high:3;
765 uint8_t t3_low:3, t2:5;
771 #if OSMO_IS_LITTLE_ENDIAN
776 #elif OSMO_IS_BIG_ENDIAN
778 uint8_t sync_ie:4, nci:1, rot:1, si:2;
833 #if OSMO_IS_LITTLE_ENDIAN
838 #elif OSMO_IS_BIG_ENDIAN
840 uint8_t arfcn_hi:2, ncc:3, bcc:3;
869 #if OSMO_IS_LITTLE_ENDIAN
875 #elif OSMO_IS_BIG_ENDIAN
877 uint8_t key_seq:4, spare:4;
892 #if OSMO_IS_LITTLE_ENDIAN
896 #elif OSMO_IS_BIG_ENDIAN
898 uint8_t spare:4, key_seq:4;
910 #if OSMO_IS_LITTLE_ENDIAN
917 #elif OSMO_IS_BIG_ENDIAN
919 uint8_t key_seq:4,
type:4;
936 #if OSMO_IS_LITTLE_ENDIAN
938 uint8_t rr_protocol_discriminator :4,
940 uint8_t system_information;
941 #elif OSMO_IS_BIG_ENDIAN
944 uint8_t skip_indicator:4, rr_protocol_discriminator:4;
945 uint8_t system_information;
951 #if OSMO_IS_LITTLE_ENDIAN
952 uint8_t ms_txpwr_max_ccch:5,
954 uint8_t rxlev_acc_min:6,
957 #elif OSMO_IS_BIG_ENDIAN
959 uint8_t cell_resel_hyst:3, ms_txpwr_max_ccch:5;
960 uint8_t acs:1, neci:1, rxlev_acc_min:6;
966 #if OSMO_IS_LITTLE_ENDIAN
967 uint8_t ccch_conf :3,
971 uint8_t bs_pa_mfrms : 3,
976 #elif OSMO_IS_BIG_ENDIAN
978 uint8_t mscr:1, att:1, bs_ag_blks_res:3, ccch_conf:3;
979 uint8_t spare_2:1, cbq3:2, spare_1:2, bs_pa_mfrms:3;
993 #if OSMO_IS_LITTLE_ENDIAN
994 uint8_t radio_link_timeout:4,
999 #elif OSMO_IS_BIG_ENDIAN
1001 uint8_t d:1, pwrc:1, dtx:2, radio_link_timeout:4;
1007 #if OSMO_IS_LITTLE_ENDIAN
1008 uint8_t cm_service_type : 4,
1015 #elif OSMO_IS_BIG_ENDIAN
1017 uint8_t cipher_key_seq:4, cm_service_type:4;
1087 #if OSMO_IS_LITTLE_ENDIAN
1088 uint8_t rr_protocol_discriminator :4,
1090 uint8_t system_information;
1092 #elif OSMO_IS_BIG_ENDIAN
1094 uint8_t skip_indicator:4, rr_protocol_discriminator:4;
1095 uint8_t system_information;
1096 uint8_t bcch_frequency_list[16];
1102 #if OSMO_IS_LITTLE_ENDIAN
1103 uint8_t rr_protocol_discriminator :4,
1105 uint8_t system_information;
1107 #elif OSMO_IS_BIG_ENDIAN
1109 uint8_t skip_indicator:4, rr_protocol_discriminator:4;
1110 uint8_t system_information;
1111 uint8_t bcch_frequency_list[16];
1117 #if OSMO_IS_LITTLE_ENDIAN
1118 uint8_t rr_protocol_discriminator :4,
1120 uint8_t system_information;
1122 #elif OSMO_IS_BIG_ENDIAN
1124 uint8_t skip_indicator:4, rr_protocol_discriminator:4;
1125 uint8_t system_information;
1126 uint8_t bcch_frequency_list[16];
1132 #if OSMO_IS_LITTLE_ENDIAN
1133 uint8_t rr_protocol_discriminator :4,
1135 uint8_t system_information;
1141 #elif OSMO_IS_BIG_ENDIAN
1143 uint8_t skip_indicator:4, rr_protocol_discriminator:4;
1144 uint8_t system_information;
1149 uint8_t rest_octets[0];
1202 #if OSMO_IS_LITTLE_ENDIAN
1207 #elif OSMO_IS_BIG_ENDIAN
1209 uint8_t spare:3, cr:1, alg_id:3, sc:1;
1255 #if OSMO_IS_LITTLE_ENDIAN
1264 #elif OSMO_IS_BIG_ENDIAN
1269 uint8_t cneed2:2, cneed1:2, spare:2, pag_mode:2;
1276 #if OSMO_IS_LITTLE_ENDIAN
1287 #elif OSMO_IS_BIG_ENDIAN
1292 uint8_t cneed2:2, cneed1:2, spare:2, pag_mode:2;
1301 #if OSMO_IS_LITTLE_ENDIAN
1317 #elif OSMO_IS_BIG_ENDIAN
1322 uint8_t cneed2:2, cneed1:2, spare:2, pag_mode:2;
1327 uint8_t spare2:4, cneed4:2, cneed3:2;
1334 #if OSMO_IS_LITTLE_ENDIAN
1340 #elif OSMO_IS_BIG_ENDIAN
1342 uint8_t spare:5, key_seq:3;
1355 #define GSM48_PDISC_GROUP_CC 0x00
1356 #define GSM48_PDISC_BCAST_CC 0x01
1357 #define GSM48_PDISC_PDSS1 0x02
1358 #define GSM48_PDISC_CC 0x03
1359 #define GSM48_PDISC_PDSS2 0x04
1360 #define GSM48_PDISC_GTTP 0x04
1361 #define GSM48_PDISC_MM 0x05
1362 #define GSM48_PDISC_RR 0x06
1363 #define GSM48_PDISC_MM_GPRS 0x08
1364 #define GSM48_PDISC_SMS 0x09
1365 #define GSM48_PDISC_SM_GPRS 0x0a
1366 #define GSM48_PDISC_NC_SS 0x0b
1367 #define GSM48_PDISC_LOC 0x0c
1368 #define GSM48_PDISC_EXTEND 0x0e
1369 #define GSM48_PDISC_TEST 0x0f
1370 #define GSM48_PDISC_MASK 0x0f
1399 #define GSM48_TA_INVALID 220
1465 #define gsm48_hdr_msg_type gsm48_hdr_msg_type_r99
1468 #define GSM48_MT_RR_INIT_REQ 0x3c
1469 #define GSM48_MT_RR_ADD_ASS 0x3b
1470 #define GSM48_MT_RR_IMM_ASS 0x3f
1471 #define GSM48_MT_RR_IMM_ASS_EXT 0x39
1472 #define GSM48_MT_RR_IMM_ASS_REJ 0x3a
1473 #define GSM48_MT_RR_DTM_ASS_FAIL 0x48
1474 #define GSM48_MT_RR_DTM_REJECT 0x49
1475 #define GSM48_MT_RR_DTM_REQUEST 0x4A
1476 #define GSM48_MT_RR_PACKET_ASS 0x4B
1478 #define GSM48_MT_RR_CIPH_M_CMD 0x35
1479 #define GSM48_MT_RR_CIPH_M_COMPL 0x32
1481 #define GSM48_MT_RR_CFG_CHG_CMD 0x30
1482 #define GSM48_MT_RR_CFG_CHG_ACK 0x31
1483 #define GSM48_MT_RR_CFG_CHG_REJ 0x33
1485 #define GSM48_MT_RR_ASS_CMD 0x2e
1486 #define GSM48_MT_RR_ASS_COMPL 0x29
1487 #define GSM48_MT_RR_ASS_FAIL 0x2f
1488 #define GSM48_MT_RR_HANDO_CMD 0x2b
1489 #define GSM48_MT_RR_HANDO_COMPL 0x2c
1490 #define GSM48_MT_RR_HANDO_FAIL 0x28
1491 #define GSM48_MT_RR_HANDO_INFO 0x2d
1492 #define GSM48_MT_RR_HANDO_INFO 0x2d
1493 #define GSM48_MT_RR_DTM_ASS_CMD 0x4c
1495 #define GSM48_MT_RR_CELL_CHG_ORDER 0x08
1496 #define GSM48_MT_RR_PDCH_ASS_CMD 0x23
1498 #define GSM48_MT_RR_CHAN_REL 0x0d
1499 #define GSM48_MT_RR_PART_REL 0x0a
1500 #define GSM48_MT_RR_PART_REL_COMP 0x0f
1502 #define GSM48_MT_RR_PAG_REQ_1 0x21
1503 #define GSM48_MT_RR_PAG_REQ_2 0x22
1504 #define GSM48_MT_RR_PAG_REQ_3 0x24
1505 #define GSM48_MT_RR_PAG_RESP 0x27
1506 #define GSM48_MT_RR_NOTIF_NCH 0x20
1507 #define GSM48_MT_RR_NOTIF_FACCH 0x25
1508 #define GSM48_MT_RR_NOTIF_RESP 0x26
1509 #define GSM48_MT_RR_PACKET_NOTIF 0x4e
1510 #define GSM48_MT_RR_UTRAN_CLSM_CHG 0x60
1511 #define GSM48_MT_RR_CDMA2K_CLSM_CHG 0x62
1512 #define GSM48_MT_RR_IS_TO_UTRAN_HANDO 0x63
1513 #define GSM48_MT_RR_IS_TO_CDMA2K_HANDO 0x64
1515 #define GSM48_MT_RR_SYSINFO_8 0x18
1516 #define GSM48_MT_RR_SYSINFO_1 0x19
1517 #define GSM48_MT_RR_SYSINFO_2 0x1a
1518 #define GSM48_MT_RR_SYSINFO_3 0x1b
1519 #define GSM48_MT_RR_SYSINFO_4 0x1c
1520 #define GSM48_MT_RR_SYSINFO_5 0x1d
1521 #define GSM48_MT_RR_SYSINFO_6 0x1e
1522 #define GSM48_MT_RR_SYSINFO_7 0x1f
1524 #define GSM48_MT_RR_SYSINFO_2bis 0x02
1525 #define GSM48_MT_RR_SYSINFO_2ter 0x03
1526 #define GSM48_MT_RR_SYSINFO_2quater 0x07
1527 #define GSM48_MT_RR_SYSINFO_5bis 0x05
1528 #define GSM48_MT_RR_SYSINFO_5ter 0x06
1529 #define GSM48_MT_RR_SYSINFO_9 0x04
1530 #define GSM48_MT_RR_SYSINFO_13 0x00
1532 #define GSM48_MT_RR_SYSINFO_16 0x3d
1533 #define GSM48_MT_RR_SYSINFO_17 0x3e
1535 #define GSM48_MT_RR_SYSINFO_18 0x40
1536 #define GSM48_MT_RR_SYSINFO_19 0x41
1537 #define GSM48_MT_RR_SYSINFO_20 0x42
1539 #define GSM48_MT_RR_CHAN_MODE_MODIF 0x10
1540 #define GSM48_MT_RR_STATUS 0x12
1541 #define GSM48_MT_RR_CHAN_MODE_MODIF_ACK 0x17
1542 #define GSM48_MT_RR_FREQ_REDEF 0x14
1543 #define GSM48_MT_RR_MEAS_REP 0x15
1544 #define GSM48_MT_RR_CLSM_CHG 0x16
1545 #define GSM48_MT_RR_CLSM_ENQ 0x13
1546 #define GSM48_MT_RR_EXT_MEAS_REP 0x36
1547 #define GSM48_MT_RR_EXT_MEAS_REP_ORD 0x37
1548 #define GSM48_MT_RR_GPRS_SUSP_REQ 0x34
1549 #define GSM48_MT_RR_DTM_INFO 0x4d
1551 #define GSM48_MT_RR_VGCS_UPL_GRANT 0x09
1552 #define GSM48_MT_RR_UPLINK_RELEASE 0x0e
1553 #define GSM48_MT_RR_UPLINK_FREE 0x0c
1554 #define GSM48_MT_RR_UPLINK_BUSY 0x2a
1555 #define GSM48_MT_RR_TALKER_IND 0x11
1557 #define GSM48_MT_RR_APP_INFO 0x38
1560 #define GSM48_MT_MM_IMSI_DETACH_IND 0x01
1561 #define GSM48_MT_MM_LOC_UPD_ACCEPT 0x02
1562 #define GSM48_MT_MM_LOC_UPD_REJECT 0x04
1563 #define GSM48_MT_MM_LOC_UPD_REQUEST 0x08
1565 #define GSM48_MT_MM_AUTH_REJ 0x11
1566 #define GSM48_MT_MM_AUTH_REQ 0x12
1567 #define GSM48_MT_MM_AUTH_RESP 0x14
1568 #define GSM48_MT_MM_AUTH_FAIL 0x1c
1569 #define GSM48_MT_MM_ID_REQ 0x18
1570 #define GSM48_MT_MM_ID_RESP 0x19
1571 #define GSM48_MT_MM_TMSI_REALL_CMD 0x1a
1572 #define GSM48_MT_MM_TMSI_REALL_COMPL 0x1b
1574 #define GSM48_MT_MM_CM_SERV_ACC 0x21
1575 #define GSM48_MT_MM_CM_SERV_REJ 0x22
1576 #define GSM48_MT_MM_CM_SERV_ABORT 0x23
1577 #define GSM48_MT_MM_CM_SERV_REQ 0x24
1578 #define GSM48_MT_MM_CM_SERV_PROMPT 0x25
1579 #define GSM48_MT_MM_CM_REEST_REQ 0x28
1580 #define GSM48_MT_MM_ABORT 0x29
1582 #define GSM48_MT_MM_NULL 0x30
1583 #define GSM48_MT_MM_STATUS 0x31
1584 #define GSM48_MT_MM_INFO 0x32
1587 #define GSM48_MT_CC_ALERTING 0x01
1588 #define GSM48_MT_CC_CALL_CONF 0x08
1589 #define GSM48_MT_CC_CALL_PROC 0x02
1590 #define GSM48_MT_CC_CONNECT 0x07
1591 #define GSM48_MT_CC_CONNECT_ACK 0x0f
1592 #define GSM48_MT_CC_EMERG_SETUP 0x0e
1593 #define GSM48_MT_CC_PROGRESS 0x03
1594 #define GSM48_MT_CC_ESTAB 0x04
1595 #define GSM48_MT_CC_ESTAB_CONF 0x06
1596 #define GSM48_MT_CC_RECALL 0x0b
1597 #define GSM48_MT_CC_START_CC 0x09
1598 #define GSM48_MT_CC_SETUP 0x05
1600 #define GSM48_MT_CC_MODIFY 0x17
1601 #define GSM48_MT_CC_MODIFY_COMPL 0x1f
1602 #define GSM48_MT_CC_MODIFY_REJECT 0x13
1603 #define GSM48_MT_CC_USER_INFO 0x10
1604 #define GSM48_MT_CC_HOLD 0x18
1605 #define GSM48_MT_CC_HOLD_ACK 0x19
1606 #define GSM48_MT_CC_HOLD_REJ 0x1a
1607 #define GSM48_MT_CC_RETR 0x1c
1608 #define GSM48_MT_CC_RETR_ACK 0x1d
1609 #define GSM48_MT_CC_RETR_REJ 0x1e
1611 #define GSM48_MT_CC_DISCONNECT 0x25
1612 #define GSM48_MT_CC_RELEASE 0x2d
1613 #define GSM48_MT_CC_RELEASE_COMPL 0x2a
1615 #define GSM48_MT_CC_CONG_CTRL 0x39
1616 #define GSM48_MT_CC_NOTIFY 0x3e
1617 #define GSM48_MT_CC_STATUS 0x3d
1618 #define GSM48_MT_CC_STATUS_ENQ 0x34
1619 #define GSM48_MT_CC_START_DTMF 0x35
1620 #define GSM48_MT_CC_STOP_DTMF 0x31
1621 #define GSM48_MT_CC_STOP_DTMF_ACK 0x32
1622 #define GSM48_MT_CC_START_DTMF_ACK 0x36
1623 #define GSM48_MT_CC_START_DTMF_REJ 0x37
1624 #define GSM48_MT_CC_FACILITY 0x3a
1650 #define GSM48_PM_MASK 0x03
1651 #define GSM48_PM_NORMAL 0x00
1652 #define GSM48_PM_EXTENDED 0x01
1653 #define GSM48_PM_REORG 0x02
1654 #define GSM48_PM_SAME 0x03
1657 #define GSM48_LUPD_NORMAL 0x0
1658 #define GSM48_LUPD_PERIODIC 0x1
1659 #define GSM48_LUPD_IMSI_ATT 0x2
1660 #define GSM48_LUPD_RESERVED 0x3
1667 #define GSM_MI_TYPE_MASK 0x07
1668 #define GSM_MI_TYPE_NONE 0x00
1669 #define GSM_MI_TYPE_IMSI 0x01
1670 #define GSM_MI_TYPE_IMEI 0x02
1671 #define GSM_MI_TYPE_IMEISV 0x03
1672 #define GSM_MI_TYPE_TMSI 0x04
1673 #define GSM_MI_ODD 0x08
1675 #define GSM48_IE_MOBILE_ID 0x17
1676 #define GSM48_IE_NAME_LONG 0x43
1677 #define GSM48_IE_NAME_SHORT 0x45
1678 #define GSM48_IE_UTC 0x46
1679 #define GSM48_IE_NET_TIME_TZ 0x47
1680 #define GSM48_IE_LSA_IDENT 0x48
1681 #define GSM48_IE_NET_DST 0x49
1683 #define GSM48_IE_BEARER_CAP 0x04
1684 #define GSM48_IE_CAUSE 0x08
1685 #define GSM48_IE_CC_CAP 0x15
1686 #define GSM48_IE_ALERT 0x19
1687 #define GSM48_IE_FACILITY 0x1c
1688 #define GSM48_IE_PROGR_IND 0x1e
1689 #define GSM48_IE_AUX_STATUS 0x24
1690 #define GSM48_IE_NOTIFY 0x27
1691 #define GSM48_IE_KPD_FACILITY 0x2c
1692 #define GSM48_IE_SIGNAL 0x34
1693 #define GSM48_IE_CONN_BCD 0x4c
1694 #define GSM48_IE_CONN_SUB 0x4d
1695 #define GSM48_IE_CALLING_BCD 0x5c
1696 #define GSM48_IE_CALLING_SUB 0x5d
1697 #define GSM48_IE_CALLED_BCD 0x5e
1698 #define GSM48_IE_CALLED_SUB 0x6d
1699 #define GSM48_IE_REDIR_BCD 0x74
1700 #define GSM48_IE_REDIR_SUB 0x75
1701 #define GSM48_IE_LOWL_COMPAT 0x7c
1702 #define GSM48_IE_HIGHL_COMPAT 0x7d
1703 #define GSM48_IE_USER_USER 0x7e
1704 #define GSM48_IE_SS_VERS 0x7f
1705 #define GSM48_IE_MORE_DATA 0xa0
1706 #define GSM48_IE_CLIR_SUPP 0xa1
1707 #define GSM48_IE_CLIR_INVOC 0xa2
1708 #define GSM48_IE_REV_C_SETUP 0xa3
1709 #define GSM48_IE_REPEAT_CIR 0xd1
1710 #define GSM48_IE_REPEAT_SEQ 0xd3
1713 #define GSM48_CAUSE_CS_GSM 0x60
1717 #define GSM48_IE_VGCS_TARGET 0x01
1719 #define GSM48_IE_FRQSHORT_AFTER 0x02
1720 #define GSM48_IE_MUL_RATE_CFG 0x03
1721 #define GSM48_IE_FREQ_L_AFTER 0x05
1722 #define GSM48_IE_MSLOT_DESC 0x10
1723 #define GSM48_IE_CHANMODE_2 0x11
1724 #define GSM48_IE_FRQSHORT_BEFORE 0x12
1726 #define GSM48_IE_CHANMODE_3 0x13
1727 #define GSM48_IE_CHANMODE_4 0x14
1728 #define GSM48_IE_CHANMODE_5 0x15
1729 #define GSM48_IE_CHANMODE_6 0x16
1730 #define GSM48_IE_CHANMODE_7 0x17
1731 #define GSM48_IE_CHANMODE_8 0x18
1732 #define GSM48_IE_CHANDESC_2 0x64
1733 #define GSM48_IE_MA_AFTER 0x72
1734 #define GSM48_IE_START_TIME 0x7c
1735 #define GSM48_IE_FREQ_L_BEFORE 0x19
1737 #define GSM48_IE_CH_DESC_1_BEFORE 0x1c
1739 #define GSM48_IE_CH_DESC_2_BEFORE 0x1d
1741 #define GSM48_IE_F_CH_SEQ_BEFORE 0x1e
1743 #define GSM48_IE_CLASSMARK3 0x20
1744 #define GSM48_IE_MA_BEFORE 0x21
1745 #define GSM48_IE_RR_PACKET_UL 0x22
1746 #define GSM48_IE_RR_PACKET_DL 0x23
1747 #define GSM48_IE_CELL_CH_DESC 0x62
1748 #define GSM48_IE_CHANMODE_1 0x63
1749 #define GSM48_IE_CHDES_2_AFTER 0x64
1750 #define GSM48_IE_MODE_SEC_CH 0x66
1751 #define GSM48_IE_F_CH_SEQ_AFTER 0x69
1752 #define GSM48_IE_MA_AFTER 0x72
1753 #define GSM48_IE_BA_RANGE 0x73
1754 #define GSM48_IE_GROUP_CHDES 0x74
1755 #define GSM48_IE_BA_LIST_PREF 0x75
1756 #define GSM48_IE_MOB_OVSERV_DIF 0x77
1757 #define GSM48_IE_REALTIME_DIFF 0x7b
1758 #define GSM48_IE_START_TIME 0x7c
1759 #define GSM48_IE_TIMING_ADVANCE 0x7d
1760 #define GSM48_IE_GROUP_CIP_SEQ 0x80
1761 #define GSM48_IE_CIP_MODE_SET 0x90
1762 #define GSM48_IE_GPRS_RESUMPT 0xc0
1763 #define GSM48_IE_SYNC_IND 0xd0
1765 #define GSM48_IE_CBCH_CHAN_DESC 0x64
1766 #define GSM48_IE_CBCH_MOB_AL 0x72
1769 #define GSM48_IE_LOCATION_AREA 0x13
1770 #define GSM48_IE_AUTN 0x20
1771 #define GSM48_IE_AUTH_RES_EXT 0x21
1772 #define GSM48_IE_AUTS 0x22
1773 #define GSM48_IE_PRIORITY_LEV 0x80
1774 #define GSM48_IE_FOLLOW_ON_PROC 0xa1
1775 #define GSM48_IE_CTS_PERMISSION 0xa2
1964 #define GSM48_T301 180, 0
1965 #define GSM48_T303 30, 0
1966 #define GSM48_T305 30, 0
1967 #define GSM48_T306 30, 0
1968 #define GSM48_T308 10, 0
1969 #define GSM48_T310 30, 0
1970 #define GSM48_T313 30, 0
1971 #define GSM48_T323 30, 0
1972 #define GSM48_T331 30, 0
1973 #define GSM48_T333 30, 0
1974 #define GSM48_T334 25, 0
1975 #define GSM48_T338 30, 0
1976 #define GSM48_T303_MS 30, 0
1977 #define GSM48_T305_MS 30, 0
1978 #define GSM48_T308_MS 30, 0
1979 #define GSM48_T310_MS 30, 0
1980 #define GSM48_T313_MS 30, 0
1981 #define GSM48_T323_MS 30, 0
1982 #define GSM48_T332_MS 30, 0
1983 #define GSM48_T335_MS 30, 0
1986 #define GSM_CSTATE_NULL 0
1987 #define GSM_CSTATE_INITIATED 1
1988 #define GSM_CSTATE_MM_CONNECTION_PEND 2
1989 #define GSM_CSTATE_MO_CALL_PROC 3
1990 #define GSM_CSTATE_CALL_DELIVERED 4
1991 #define GSM_CSTATE_CALL_PRESENT 6
1992 #define GSM_CSTATE_CALL_RECEIVED 7
1993 #define GSM_CSTATE_CONNECT_REQUEST 8
1994 #define GSM_CSTATE_MO_TERM_CALL_CONF 9
1995 #define GSM_CSTATE_ACTIVE 10
1996 #define GSM_CSTATE_DISCONNECT_REQ 12
1997 #define GSM_CSTATE_DISCONNECT_IND 12
1998 #define GSM_CSTATE_RELEASE_REQ 19
1999 #define GSM_CSTATE_MO_ORIG_MODIFY 26
2000 #define GSM_CSTATE_MO_TERM_MODIFY 27
2001 #define GSM_CSTATE_CONNECT_IND 28
2003 #define SBIT(a) (1 << a)
2004 #define ALL_STATES 0xffffffff
2007 #define GSM_LAC_RESERVED_DETACHED 0x0
2008 #define GSM_LAC_RESERVED_ALL_BTS 0xfffe
2117 #define GSM48_TMSI_LEN 5
2118 #define GSM48_MID_TMSI_LEN (GSM48_TMSI_LEN + 2)
2119 #define GSM48_MI_SIZE 32
2128 #define GSM48_CELL_CHAN_DESC_SIZE 16
2130 #define GSM_MACBLOCK_LEN 23
2131 #define GSM_MACBLOCK_PADDING 0x2b
Definition: gsm_04_08.h:808
gsm48_bcap_parity
Definition: gsm_04_08.h:2068
uint16_t lac
Definition: gsm_04_08.h:887
Definition: gsm_04_08.h:1797
Definition: gsm_04_08.h:2070
Definition: gsm_04_08.h:1201
Definition: gsm_04_08.h:794
Definition: gsm_04_08.h:1871
uint8_t msg_type
Definition: gsm_04_08.h:807
Definition: gsm_04_08.h:1174
Definition: gsm_04_08.h:2136
uint8_t mi[0]
Definition: gsm_04_08.h:807
Definition: gsm_04_08.h:928
uint8_t data[0]
Definition: gsm_04_08.h:1186
gsm48_bcap_rrq
Definition: gsm_04_08.h:2032
Definition: gsm_04_08.h:1854
Definition: gsm_04_08.h:1932
Definition: gsm_04_08.h:1883
Definition: gsm_04_08.h:1857
Definition: gsm_04_08.h:1923
Definition: gsm_04_08.h:2139
Definition: gsm_04_08.h:2138
gsm48_numbering_plan
Definition: gsm_04_08.h:2144
Definition: gsm_04_08.h:1904
Definition: gsm_04_08.h:1796
Definition: gsm_04_08.h:1873
gsm48_bcap_sig_access
Definition: gsm_04_08.h:2047
uint8_t type
Definition: gsm_08_08.h:469
static int32_t smod(int32_t n, int32_t m)
Definition: gsm48_ie.c:797
uint8_t wait_ind4
Definition: gsm_04_08.h:1249
Definition: gsm_04_08.h:1880
Definition: gsm_04_08.h:1786
Definition: gsm_04_08.h:824
Definition: gsm_04_08.h:1831
Definition: gsm_04_08.h:1809
Definition: gsm_04_08.h:1860
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:848
enum gsm48_chan_mode __attribute__
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:818
Definition: gsm_04_08.h:1875
gsm48_chan_mode
Definition: gsm_04_08.h:792
Definition: gsm_04_08.h:846
Definition: gsm_04_08.h:1350
uint8_t l2_plen
Definition: gsm_04_08.h:805
Definition: gsm_04_08.h:756
Definition: gsm_04_08.h:1908
Definition: gsm_04_08.h:1943
Definition: gsm_04_08.h:1851
gsm48_rr_cause
Definition: gsm_04_08.h:1825
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:591
Definition: gsm_04_08.h:1876
Definition: gsm_04_08.h:1890
Definition: gsm_04_08.h:800
Definition: gsm_04_08.h:2078
uint8_t mob_alloc_len
Definition: gsm_04_08.h:1232
const char * get_value_string(const struct value_string *vs, uint32_t val)
Definition: gsm_04_08.h:1784
Definition: gsm_04_08.h:1869
Definition: gsm_04_08.h:1920
Definition: gsm_04_08.h:793
Definition: gsm_04_08.h:1799
gsm48_bcap_user_rate
Definition: gsm_04_08.h:2057
Definition: gsm_04_08.h:1835
Definition: gsm_04_08.h:798
Definition: gsm_04_08.h:1945
uint8_t rr_cause
Definition: gsm_04_08.h:1180
uint8_t ho_ref
Definition: gsm_04_08.h:849
Definition: gsm_04_08.h:1828
Definition: gsm_04_08.h:1888
Definition: gsm_04_08.h:1800
uint8_t rest[0]
Definition: gsm_04_08.h:1250
Definition: gsm_04_08.h:1795
uint8_t wait_ind1
Definition: gsm_04_08.h:1243
Definition: gsm_04_08.h:1951
Definition: gsm_04_08.h:2150
Definition: gsm_04_08.h:1955
static uint8_t gsm48_hdr_msg_type_r99(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1441
uint8_t data[0]
Definition: gsm_04_08.h:851
Definition: gsm_04_08.h:1826
gsm48_reject_value
Definition: gsm_04_08.h:1903
Definition: gsm_04_08.h:1930
Definition: gsm_04_08.h:1853
Definition: gsm_04_08.h:1006
Definition: gsm_04_08.h:1859
Definition: gsm_04_08.h:1879
Definition: gsm_04_08.h:2072
Definition: gsm_04_08.h:1841
Definition: gsm_04_08.h:1813
Definition: gsm_04_08.h:1953
gsm48_bcap_tmod
Definition: gsm_04_08.h:2021
struct gsm48_req_ref req_ref3
Definition: gsm_04_08.h:1246
Definition: gsm_04_08.h:532
Definition: gsm_04_08.h:1855
Definition: gsm_04_08.h:1905
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:477
static bool gsm48_acc_is_barred(struct gsm48_rach_control *rach_control, unsigned int acc)
Definition: gsm_04_08.h:731
gsm48_bcap_modem_type
Definition: gsm_04_08.h:2091
uint8_t proto_discr
Definition: gsm_04_08.h:929
Definition: gsm_04_08.h:1868
Definition: gsm_04_08.h:1839
Definition: gsm_04_08.h:1848
Definition: gsm_04_08.h:1913
Definition: gsm_04_08.h:1801
Definition: gsm_04_08.h:1300
Definition: gsm_04_08.h:1882
#define GSM48_PDISC_BCAST_CC
Definition: gsm_04_08.h:1356
Definition: gsm_04_08.h:2043
gsm48_signal_val
Definition: gsm_04_08.h:1790
uint8_t mode
Definition: gsm_04_08.h:789
Definition: gsm_04_08.h:2092
Definition: gsm_04_08.h:2086
Definition: gsm_04_08.h:2052
Definition: gsm_04_08.h:1793
Definition: gsm_04_08.h:1958
uint8_t wait_ind3
Definition: gsm_04_08.h:1247
static void gsm48_allow_acc(struct gsm48_rach_control *rach_control, unsigned int acc)
Definition: gsm_04_08.h:716
Definition: gsm_04_08.h:987
Definition: gsm_04_08.h:2014
uint8_t page_mode
Definition: gsm_04_08.h:1241
Definition: gsm_04_08.h:2063
Definition: gsm_04_08.h:1818
Definition: gsm_04_08.h:2149
Definition: gsm_04_08.h:2147
gsm48_dtx_mode
Definition: gsm_04_08.h:984
Definition: gsm_04_08.h:1806
Definition: gsm_04_08.h:2049
#define GSM48_PDISC_CC
Definition: gsm_04_08.h:1358
uint8_t mob_alloc_len
Definition: gsm_04_08.h:819
const struct value_string gsm48_mm_msgtype_names[]
TS 04.08 MM Message Type names.
Definition: gsm48.c:915
uint8_t mob_alloc[0]
Definition: gsm_04_08.h:1233
Definition: gsm_04_08.h:681
uint8_t timing_advance1
Definition: gsm_04_08.h:1228
Definition: gsm_04_08.h:1893
Definition: gsm_04_08.h:816
Definition: gsm_04_08.h:29
uint8_t rr_cause
Definition: gsm_04_08.h:1196
gsm48_cc_cause
Definition: gsm_04_08.h:1846
Definition: gsm_04_08.h:1842
Definition: gsm_04_08.h:1887
uint8_t data[0]
Definition: gsm_04_08.h:812
#define GSM48_PDISC_NC_SS
Definition: gsm_04_08.h:1366
Definition: gsm_04_08.h:1866
Definition: gsm_04_08.h:1838
Definition: gsm_04_08.h:1874
Definition: gsm_04_08.h:2035
const struct value_string gsm48_cc_msgtype_names[]
TS 04.08 CC Message Type names.
Definition: gsm48.c:945
static const char * gsm48_pdisc_name(uint8_t val)
Definition: gsm_04_08.h:1373
Definition: gsm_04_08.h:343
uint8_t data[0]
Definition: gsm_04_08.h:931
uint8_t proto_discr
Definition: gsm_04_08.h:1239
Definition: gsm_04_08.h:1921
uint8_t data[0]
Definition: gsm_04_08.h:1217
Definition: gsm_04_08.h:2122
Definition: gsm_04_08.h:2073
static uint8_t gsm48_hdr_trans_id_no_ti(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1416
uint8_t proto_discr
Definition: gsm_04_08.h:1223
Definition: gsm_04_08.h:2017
Definition: gsm_04_08.h:2061
Definition: gsm_04_08.h:2135
uint8_t page_mode
Definition: gsm_04_08.h:859
struct gsm48_chan_desc chan_desc1
Definition: gsm_04_08.h:1226
gsm48_bcap_coding
Definition: gsm_04_08.h:2027
Definition: gsm_04_08.h:2099
static uint8_t gsm48_hdr_trans_id(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1390
Definition: gsm_04_08.h:950
Definition: gsm_04_08.h:1254
const struct value_string gsm48_rr_msgtype_names[]
TS 04.08 RR Message Type names.
Definition: gsm48.c:822
Definition: gsm_04_08.h:1792
Definition: gsm_04_08.h:1190
Definition: gsm_04_08.h:799
struct gsm48_req_ref req_ref4
Definition: gsm_04_08.h:1248
Definition: gsm_04_08.h:1867
gsm48_bcap_ra
Definition: gsm_04_08.h:2039
Definition: gsm_04_08.h:1635
Definition: gsm_04_08.h:1195
#define GSM48_PDISC_MM
Definition: gsm_04_08.h:1361
GSM HR V4 (OHR AMR-WB)
Definition: gsm_04_08.h:2112
uint8_t mob_alloc[0]
Definition: gsm_04_08.h:864
struct gsm48_req_ref req_ref1
Definition: gsm_04_08.h:1227
Definition: gsm_04_08.h:2094
Definition: gsm_04_08.h:1816
Definition: gsm_04_08.h:1914
Definition: gsm_04_08.h:1909
Definition: gsm_04_08.h:1837
Definition: gsm_04_08.h:1836
uint32_t tlli
Definition: gsm_04_08.h:825
uint8_t mi_len
Definition: gsm_04_08.h:806
uint8_t rr_cause
Definition: gsm_04_08.h:1191
Definition: gsm_04_08.h:1820
static uint8_t gsm48_hdr_trans_id_flip_ti(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1411
Definition: gsm_04_08.h:1957
Definition: gsm_04_08.h:2071
Definition: gsm_04_08.h:1815
const struct value_string osmo_lu_type_names[]
Definition: gsm48.c:1140
GSM HR V6 (OHR AMR)
Definition: gsm_04_08.h:2114
Definition: gsm_04_08.h:855
Definition: gsm_04_08.h:1892
uint8_t proto_discr
Definition: gsm_04_08.h:806
Definition: gsm_04_08.h:1956
Definition: gsm_04_08.h:2098
GSM FR V5 (FR AMR-WB)
Definition: gsm_04_08.h:2113
Definition: gsm_04_08.h:2064
Definition: gsm_04_08.h:1807
Definition: gsm_04_08.h:1827
uint8_t mi[0]
Definition: gsm_04_08.h:1163
Definition: gsm_04_08.h:740
Definition: gsm_04_08.h:1642
Definition: gsm_04_08.h:2087
Definition: gsm_04_08.h:583
Definition: gsm_04_08.h:2042
Definition: gsm_04_08.h:1954
struct gsm48_cell_desc cell_desc
Definition: gsm_04_08.h:847
Definition: gsm_04_08.h:1934
struct gsm48_req_ref req_ref2
Definition: gsm_04_08.h:1244
Definition: gsm_04_08.h:1640
struct gsm48_chan_desc chan_desc2
Definition: gsm_04_08.h:1229
Definition: gsm_04_08.h:909
Definition: gsm_04_08.h:1946
uint8_t power_command
Definition: gsm_04_08.h:850
Definition: gsm_04_08.h:1782
Definition: gsm_04_08.h:1781
struct gsm48_rach_control rach_control
Definition: gsm_04_08.h:807
Definition: gsm_04_08.h:1865
Definition: gsm_04_08.h:2028
Definition: gsm_04_08.h:1863
Definition: gsm_04_08.h:1924
Definition: gsm_04_08.h:1881
Definition: gsm_04_08.h:226
Definition: gsm_04_08.h:1891
Definition: gsm_04_08.h:1911
Definition: gsm_04_08.h:885
Definition: gsm_04_08.h:2062
uint8_t digits[3]
Definition: gsm_04_08.h:2123
Definition: gsm_04_08.h:15
Definition: gsm_04_08.h:1821
Definition: gsm_04_08.h:2085
Definition: gsm_04_08.h:1926
uint8_t timing_advance2
Definition: gsm_04_08.h:1231
uint8_t bcch_frequency_list[16]
Definition: gsm_04_08.h:806
uint8_t msg_type
Definition: gsm_04_08.h:930
Definition: gsm_04_08.h:1864
Definition: gsm_04_08.h:1833
Definition: gsm_04_08.h:1906
Definition: gsm_04_08.h:2137
Definition: gsm_04_08.h:1918
uint8_t digits[3]
Definition: gsm_04_08.h:886
Definition: gsm_04_08.h:2097
chreq_type
Definition: gsm_04_08.h:1941
gsm48_bcap_itcap
Definition: gsm_04_08.h:2011
Definition: gsm_04_08.h:1639
const struct value_string gsm48_reject_value_names[]
Definition: gsm48.c:1087
Definition: gsm_04_08.h:1933
Definition: gsm_04_08.h:2151
uint8_t power_command
Definition: gsm_04_08.h:811
Definition: gsm_04_08.h:1910
uint8_t wait_ind2
Definition: gsm_04_08.h:1245
uint8_t page_mode
Definition: gsm_04_08.h:1225
static const char * osmo_lu_type_name(uint8_t lu_type)
Definition: gsm_04_08.h:1663
#define GSM48_PDISC_LOC
Definition: gsm_04_08.h:1367
Definition: gsm_04_08.h:1275
struct gsm48_req_ref req_ref1
Definition: gsm_04_08.h:1242
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:1056
#define GSM48_PDISC_MASK
Definition: gsm_04_08.h:1370
uint8_t cause
Definition: gsm_04_08.h:827
GSM FR V4 (OFR AMR-WB)
Definition: gsm_04_08.h:2111
static const char * gsm48_reject_value_name(enum gsm48_reject_value val)
Definition: gsm_04_08.h:1938
Definition: gsm_04_08.h:1791
Definition: gsm_04_08.h:2060
Definition: gsm_04_08.h:985
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:1169
uint8_t data[0]
Definition: gsm_04_08.h:808
Definition: gsm_04_08.h:2022
Definition: gsm_04_08.h:1794
Definition: gsm_04_08.h:1877
Definition: gsm_04_08.h:2040
static const char * osmo_cm_service_type_name(enum osmo_cm_service_type val)
Definition: gsm_04_08.h:1646
gsm48_bcap_interm_rate
Definition: gsm_04_08.h:2077
Definition: gsm_04_08.h:1184
Definition: gsm_04_08.h:1852
Definition: gsm_04_08.h:1780
Definition: gsm_04_08.h:2041
Definition: gsm_04_08.h:669
uint8_t l2_plen
Definition: gsm_04_08.h:856
uint8_t timing_advance
Definition: gsm_04_08.h:862
uint8_t options[0]
Definition: gsm_04_08.h:828
uint8_t rest_octets[0]
Definition: gsm_04_08.h:808
Definition: gsm_04_08.h:1960
Definition: gsm_04_08.h:1179
Definition: gsm_04_08.h:115
Definition: gsm_04_08.h:1948
Definition: gsm_04_08.h:797
Definition: gsm_04_08.h:2093
Definition: gsm_04_08.h:1912
Definition: gsm_04_08.h:1929
Definition: gsm_04_08.h:1862
Definition: gsm_04_08.h:796
gsm48_bcap_transp
Definition: gsm_04_08.h:2083
GSM HR V1 (GSM HR)
Definition: gsm_04_08.h:2107
uint8_t rac
Definition: gsm_04_08.h:2125
const struct value_string osmo_cm_service_type_names[]
Definition: gsm48.c:1148
uint8_t msg_type
Definition: gsm_04_08.h:1240
Definition: gsm_04_08.h:1942
const struct value_string gsm48_chan_mode_names[]
Definition: gsm48.c:397
Definition: gsm_04_08.h:1834
Definition: gsm_04_08.h:1167
uint8_t l2_plen
Definition: gsm_04_08.h:1222
uint8_t msg_type
Definition: gsm_04_08.h:1224
Definition: gsm_04_08.h:891
static const char * gsm48_cc_cause_name(enum gsm48_cc_cause val)
Definition: gsm_04_08.h:1899
uint8_t mi_len
Definition: gsm_04_08.h:1162
uint8_t rr_cause
Definition: gsm_04_08.h:1175
Definition: gsm_04_08.h:1884
Definition: gsm_04_08.h:1850
Definition: gsm_04_08.h:1849
Definition: gsm_04_08.h:1798
Definition: gsm_04_08.h:1878
Definition: gsm_04_08.h:2016
Definition: gsm_04_08.h:965
gsm48_progress_desc
Definition: gsm_04_08.h:1779
#define GSM48_PDISC_EXTEND
Definition: gsm_04_08.h:1368
Definition: gsm_04_08.h:904
Definition: gsm_04_08.h:1886
Definition: gsm_04_08.h:1919
Definition: gsm_04_08.h:1817
uint8_t msg_type
Definition: gsm_04_08.h:858
Definition: gsm_04_08.h:1847
Definition: gsm_04_08.h:1949
Definition: gsm_04_08.h:2146
uint16_t lac
Definition: gsm_04_08.h:2124
Definition: gsm_04_08.h:2050
Definition: gsm_04_08.h:468
Definition: gsm_04_08.h:1952
Definition: gsm_04_08.h:2023
Definition: gsm_04_08.h:770
uint8_t rr_cause
Definition: gsm_04_08.h:1185
osmo_cm_service_type
Definition: gsm_04_08.h:1634
Definition: gsm_04_08.h:868
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:860
uint8_t mob_alloc_len
Definition: gsm_04_08.h:863
Definition: gsm_04_08.h:1830
Definition: gsm_04_08.h:2059
Definition: gsm_04_08.h:1870
gsm48_cause_loc
Definition: gsm_04_08.h:1812
Definition: gsm_04_08.h:2013
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:810
Definition: gsm_04_08.h:1840
Definition: gsm_04_08.h:1922
Definition: gsm_04_08.h:787
Definition: gsm_04_08.h:1889
Definition: gsm_04_08.h:1858
Definition: gsm_04_08.h:986
Definition: gsm_04_08.h:2084
uint16_t cell_identity
Definition: gsm_04_08.h:806
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:788
Definition: gsm_04_08.h:1636
struct gsm48_classmark1 classmark1
Definition: gsm_04_08.h:1161
static const char * gsm48_chan_mode_name(enum gsm48_chan_mode val)
Definition: gsm_04_08.h:804
Definition: gsm_04_08.h:1637
Definition: gsm_04_08.h:2069
Definition: gsm_04_08.h:2148
uint8_t cm2_len
Definition: gsm_04_08.h:805
struct gsm48_req_ref req_ref2
Definition: gsm_04_08.h:1230
Definition: gsm_04_08.h:1333
Definition: gsm_04_08.h:2053
Definition: gsm_04_08.h:646
gsm48_type_of_number
Definition: gsm_04_08.h:2134
uint8_t cm2_len
Definition: gsm_04_08.h:1215
uint8_t ncc_permitted
Definition: gsm_04_08.h:807
Definition: gsm_04_08.h:1917
const struct value_string gsm48_pdisc_names[]
TS 04.08 Protocol Descriptor names.
Definition: gsm48.c:803
const struct value_string gsm48_cc_cause_names[]
TS 04.08 10.5..4.11 Call Control Cause Values.
Definition: gsm48.c:988
gsm48_cause_coding
Definition: gsm_04_08.h:1805
GSM FR V3 (FR AMR)
Definition: gsm_04_08.h:2109
Definition: gsm_04_08.h:1160
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:2105
uint8_t chan_nr
Definition: gsm_04_08.h:551
Definition: gsm_04_08.h:1641
Definition: gsm_04_08.h:2051
Definition: gsm_04_08.h:2100
GSM FR V2 (GSM EFR)
Definition: gsm_04_08.h:2108
uint8_t sres[4]
Definition: gsm_04_08.h:905
Definition: gsm_04_08.h:1814
Definition: gsm_04_08.h:1950
Definition: gsm_04_08.h:1931
Definition: gsm_04_08.h:1895
Definition: gsm_04_08.h:1856
#define GSM48_PDISC_GROUP_CC
Definition: gsm_04_08.h:1355
GSM HR V3 (HR_AMR)
Definition: gsm_04_08.h:2110
Definition: gsm_04_08.h:1944
Definition: gsm_04_08.h:2012
Definition: gsm_04_08.h:1221
union gsm48_chan_desc::@24 __attribute__((packed))
Definition: gsm_04_08.h:1829
Definition: gsm_04_08.h:2058
Definition: gsm_04_08.h:992
Definition: gsm_04_08.h:1947
Definition: gsm_04_08.h:1785
Definition: gsm_04_08.h:1832
Definition: gsm_04_08.h:1885
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:1406
uint8_t rest[0]
Definition: gsm_04_08.h:817
Definition: gsm_04_08.h:1872
Definition: gsm_04_08.h:1783
Definition: gsm_04_08.h:1907
Definition: gsm_04_08.h:795
uint8_t l2_plen
Definition: gsm_04_08.h:1238
Definition: gsm_04_08.h:832
struct gsm48_classmark2 cm2
Definition: gsm_04_08.h:1216
Definition: gsm_04_08.h:2034
Definition: gsm_04_08.h:2079
Definition: gsm_04_08.h:1915
Definition: gsm_04_08.h:550
uint8_t mob_alloc[0]
Definition: gsm_04_08.h:820
Definition: gsm_04_08.h:1638
Definition: gsm_04_08.h:1808
Definition: gsm_04_08.h:1925
static void gsm48_barr_acc(struct gsm48_rach_control *rach_control, unsigned int acc)
Definition: gsm_04_08.h:702
Definition: gsm_04_08.h:2095
Definition: gsm_04_08.h:1959
uint8_t proto_discr
Definition: gsm_04_08.h:857
uint8_t ra_id[6]
Definition: gsm_04_08.h:826
Definition: gsm_04_08.h:1916
Definition: gsm_04_08.h:2015
static uint8_t gsm48_hdr_pdisc(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1378
Definition: gsm_04_08.h:2048
uint8_t data[0]
Definition: gsm_04_08.h:1197
Definition: gsm_04_08.h:2096
Definition: gsm_04_08.h:1214
Definition: gsm_04_08.h:1894
static uint8_t gsm48_hdr_msg_type_r98(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1421
Definition: gsm_04_08.h:2145
uint8_t data[0]
Definition: gsm_04_08.h:1170
struct gsm48_req_ref req_ref
Definition: gsm_04_08.h:861
Definition: gsm_04_08.h:1237
uint8_t rr_cause
Definition: gsm_04_08.h:1351
GSM FR V1 (GSM FR)
Definition: gsm_04_08.h:2106
Definition: gsm_04_08.h:2033
Definition: gsm_04_08.h:1861