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;
76 #if OSMO_IS_LITTLE_ENDIAN == 1
78 #if OSMO_IS_LITTLE_ENDIAN
110 #elif OSMO_IS_BIG_ENDIAN
112 uint8_t form_id:5, f0:1, w1_hi:2;
115 uint8_t w2_lo:1, w3_hi:7;
116 uint8_t w3_lo:2, w4_hi:6;
117 uint8_t w4_lo:2, w5_hi:6;
118 uint8_t w5_lo:2, w6_hi:6;
119 uint8_t w6_lo:2, w7_hi:6;
120 uint8_t w7_lo:2, w8_hi:6;
121 uint8_t w8_lo:1, w9:7;
122 uint8_t w10:7, w11_hi:1;
123 uint8_t w11_lo:6, w12_hi:2;
124 uint8_t w12_lo:5, w13_hi:3;
125 uint8_t w13_lo:4, w14_hi:4;
126 uint8_t w14_lo:3, w15_hi:5;
127 uint8_t w15_lo:2, w16:6;
132 #if OSMO_IS_LITTLE_ENDIAN
164 #elif OSMO_IS_BIG_ENDIAN
166 uint8_t w1_hi:2, f0:1, form_id:5;
169 uint8_t w3_hi:7, w2_lo:1;
170 uint8_t w4_hi:6, w3_lo:2;
171 uint8_t w5_hi:6, w4_lo:2;
172 uint8_t w6_hi:6, w5_lo:2;
173 uint8_t w7_hi:6, w6_lo:2;
174 uint8_t w8_hi:6, w7_lo:2;
175 uint8_t w9:7, w8_lo:1;
176 uint8_t w11_hi:1, w10:7;
177 uint8_t w12_hi:2, w11_lo:6;
178 uint8_t w13_hi:3, w12_lo:5;
179 uint8_t w14_hi:4, w13_lo:4;
180 uint8_t w15_hi:5, w14_lo:3;
181 uint8_t w16:6, w15_lo:2;
187 #if OSMO_IS_LITTLE_ENDIAN == 1
189 #if OSMO_IS_LITTLE_ENDIAN
190 uint8_t orig_arfcn_hi:1,
192 uint8_t orig_arfcn_mid;
221 #elif OSMO_IS_BIG_ENDIAN
223 uint8_t form_id:7, orig_arfcn_hi:1;
224 uint8_t orig_arfcn_mid;
225 uint8_t orig_arfcn_lo:1, w1_hi:7;
226 uint8_t w1_lo:2, w2_hi:6;
227 uint8_t w2_lo:2, w3_hi:6;
228 uint8_t w3_lo:2, w4_hi:6;
229 uint8_t w4_lo:1, w5:7;
230 uint8_t w6:7, w7_hi:1;
231 uint8_t w7_lo:6, w8_hi:2;
232 uint8_t w8_lo:4, w9_hi:4;
233 uint8_t w9_lo:2, w10:6;
234 uint8_t w11:6, w12_hi:2;
235 uint8_t w12_lo:4, w13_hi:4;
236 uint8_t w13_lo:2, w14:6;
237 uint8_t w15:6, w16_hi:2;
238 uint8_t w16_lo:3, w17:5;
243 #if OSMO_IS_LITTLE_ENDIAN
246 uint8_t orig_arfcn_mid;
247 uint8_t orig_arfcn_lo:1,
275 #elif OSMO_IS_BIG_ENDIAN
277 uint8_t orig_arfcn_hi:1, form_id:7;
278 uint8_t orig_arfcn_mid;
279 uint8_t w1_hi:7, orig_arfcn_lo:1;
280 uint8_t w2_hi:6, w1_lo:2;
281 uint8_t w3_hi:6, w2_lo:2;
282 uint8_t w4_hi:6, w3_lo:2;
283 uint8_t w5:7, w4_lo:1;
284 uint8_t w7_hi:1, w6:7;
285 uint8_t w8_hi:2, w7_lo:6;
286 uint8_t w9_hi:4, w8_lo:4;
287 uint8_t w10:6, w9_lo:2;
288 uint8_t w12_hi:2, w11:6;
289 uint8_t w13_hi:4, w12_lo:4;
290 uint8_t w14:6, w13_lo:2;
291 uint8_t w16_hi:2, w15:6;
292 uint8_t w17:5, w16_lo:3;
298 #if OSMO_IS_LITTLE_ENDIAN == 1
300 #if OSMO_IS_LITTLE_ENDIAN
301 uint8_t orig_arfcn_hi:1,
303 uint8_t orig_arfcn_mid;
338 #elif OSMO_IS_BIG_ENDIAN
340 uint8_t form_id:7, orig_arfcn_hi:1;
341 uint8_t orig_arfcn_mid;
342 uint8_t orig_arfcn_lo:1, w1_hi:7;
343 uint8_t w1_lo:1, w2:7;
344 uint8_t w3:7, w4_hi:1;
345 uint8_t w4_lo:5, w5_hi:3;
346 uint8_t w5_lo:3, w6_hi:5;
347 uint8_t w6_lo:1, w7:6, w8_hi:1;
348 uint8_t w8_lo:4, w9_hi:4;
349 uint8_t w9_lo:1, w10:5, w11_hi:2;
350 uint8_t w11_lo:3, w12:5;
351 uint8_t w13:5, w14_hi:3;
352 uint8_t w14_lo:2, w15:5, w16_hi:1;
353 uint8_t w16_lo:3, w17:4, w18_hi:1;
354 uint8_t w18_lo:3, w19:4, w20_hi:1;
355 uint8_t w20_lo:3, w21:4, spare:1;
360 #if OSMO_IS_LITTLE_ENDIAN
363 uint8_t orig_arfcn_mid;
364 uint8_t orig_arfcn_lo:1,
398 #elif OSMO_IS_BIG_ENDIAN
400 uint8_t orig_arfcn_hi:1, form_id:7;
401 uint8_t orig_arfcn_mid;
402 uint8_t w1_hi:7, orig_arfcn_lo:1;
403 uint8_t w2:7, w1_lo:1;
404 uint8_t w4_hi:1, w3:7;
405 uint8_t w5_hi:3, w4_lo:5;
406 uint8_t w6_hi:5, w5_lo:3;
407 uint8_t w8_hi:1, w7:6, w6_lo:1;
408 uint8_t w9_hi:4, w8_lo:4;
409 uint8_t w11_hi:2, w10:5, w9_lo:1;
410 uint8_t w12:5, w11_lo:3;
411 uint8_t w14_hi:3, w13:5;
412 uint8_t w16_hi:1, w15:5, w14_lo:2;
413 uint8_t w18_hi:1, w17:4, w16_lo:3;
414 uint8_t w20_hi:1, w19:4, w18_lo:3;
415 uint8_t spare:1, w21:4, w20_lo:3;
421 #if OSMO_IS_LITTLE_ENDIAN == 1
423 #if OSMO_IS_LITTLE_ENDIAN
424 uint8_t orig_arfcn_hi:1,
426 uint8_t orig_arfcn_mid;
463 #elif OSMO_IS_BIG_ENDIAN
465 uint8_t form_id:7, orig_arfcn_hi:1;
466 uint8_t orig_arfcn_mid;
467 uint8_t orig_arfcn_lo:1, w1:7;
468 uint8_t w2:6, w3_hi:2;
469 uint8_t w3_lo:4, w4_hi:4;
470 uint8_t w4_lo:1, w5:5, w6_hi:2;
471 uint8_t w6_lo:3, w7:5;
473 uint8_t w10:4, w11:4;
474 uint8_t w12:4, w13:4;
475 uint8_t w14:4, w15:4;
476 uint8_t w16:3, w17:3, w18_hi:2;
477 uint8_t w18_lo:1, w19:3, w20:3, w21_hi:1;
478 uint8_t w21_lo:2, w22:3, w23:3;
479 uint8_t w24:3, w25:3, w26_hi:2;
480 uint8_t w26_lo:1, w27:3, w28:3, spare:1;
485 #if OSMO_IS_LITTLE_ENDIAN
488 uint8_t orig_arfcn_mid;
489 uint8_t orig_arfcn_lo:1,
525 #elif OSMO_IS_BIG_ENDIAN
527 uint8_t orig_arfcn_hi:1, form_id:7;
528 uint8_t orig_arfcn_mid;
529 uint8_t w1:7, orig_arfcn_lo:1;
530 uint8_t w3_hi:2, w2:6;
531 uint8_t w4_hi:4, w3_lo:4;
532 uint8_t w6_hi:2, w5:5, w4_lo:1;
533 uint8_t w7:5, w6_lo:3;
535 uint8_t w11:4, w10:4;
536 uint8_t w13:4, w12:4;
537 uint8_t w15:4, w14:4;
538 uint8_t w18_hi:2, w17:3, w16:3;
539 uint8_t w21_hi:1, w20:3, w19:3, w18_lo:1;
540 uint8_t w23:3, w22:3, w21_lo:2;
541 uint8_t w26_hi:2, w25:3, w24:3;
542 uint8_t spare:1, w28:3, w27:3, w26_lo:1;
549 #if OSMO_IS_LITTLE_ENDIAN
550 uint8_t orig_arfcn_hi:1,
552 uint8_t orig_arfcn_mid;
555 uint8_t rrfcn8_111[13];
556 #elif OSMO_IS_BIG_ENDIAN
558 uint8_t form_id:7, orig_arfcn_hi:1;
559 uint8_t orig_arfcn_mid;
560 uint8_t orig_arfcn_lo:1, rrfcn1_7:7;
561 uint8_t rrfcn8_111[13];
570 #if OSMO_IS_LITTLE_ENDIAN
576 #elif OSMO_IS_BIG_ENDIAN
578 uint8_t tsc:3, h:1, maio_high:4;
579 uint8_t maio_low:2, hsn:6;
583 #if OSMO_IS_LITTLE_ENDIAN
584 uint8_t arfcn_high:2,
589 #elif OSMO_IS_BIG_ENDIAN
591 uint8_t tsc:3, h:1, spare:2, arfcn_high:2;
600 #if OSMO_IS_LITTLE_ENDIAN
601 uint8_t rxlev_full:6,
607 uint8_t no_nc_n_hi:1,
613 uint8_t bsic_nc1_hi:3,
615 uint8_t rxlev_nc2_hi:5,
617 uint8_t bsic_nc2_hi:2,
620 uint8_t rxlev_nc3_hi:4,
622 uint8_t bsic_nc3_hi:1,
625 uint8_t rxlev_nc4_hi:3,
627 uint8_t bcch_f_nc4:5,
629 uint8_t rxlev_nc5_hi:2,
631 uint8_t bcch_f_nc5_hi:4,
633 uint8_t rxlev_nc6_hi:1,
636 uint8_t bcch_f_nc6_hi:3,
640 #elif OSMO_IS_BIG_ENDIAN
642 uint8_t ba_used:1, dtx_used:1, rxlev_full:6;
643 uint8_t spare:1, meas_valid:1, rxlev_sub:6;
644 uint8_t spare2:1, rxqual_full:3, rxqual_sub:3, no_nc_n_hi:1;
645 uint8_t no_nc_n_lo:2, rxlev_nc1:6;
646 uint8_t bcch_f_nc1:5, bsic_nc1_hi:3;
647 uint8_t bsic_nc1_lo:3, rxlev_nc2_hi:5;
648 uint8_t rxlev_nc2_lo:1, bcch_f_nc2:5, bsic_nc2_hi:2;
649 uint8_t bsic_nc2_lo:4, rxlev_nc3_hi:4;
650 uint8_t rxlev_nc3_lo:2, bcch_f_nc3:5, bsic_nc3_hi:1;
651 uint8_t bsic_nc3_lo:5, rxlev_nc4_hi:3;
652 uint8_t rxlev_nc4_lo:3, bcch_f_nc4:5;
653 uint8_t bsic_nc4:6, rxlev_nc5_hi:2;
654 uint8_t rxlev_nc5_lo:4, bcch_f_nc5_hi:4;
655 uint8_t bcch_f_nc5_lo:1, bsic_nc5:6, rxlev_nc6_hi:1;
656 uint8_t rxlev_nc6_lo:5, bcch_f_nc6_hi:3;
657 uint8_t bcch_f_nc6_lo:2, bsic_nc6:6;
663 #if OSMO_IS_LITTLE_ENDIAN
677 #elif OSMO_IS_BIG_ENDIAN
679 uint8_t ver:3, nscb:1, icmi:1, spare:1,
smod:2;
680 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;
686 #if OSMO_IS_LITTLE_ENDIAN
687 uint8_t power_level:5,
690 #elif OSMO_IS_BIG_ENDIAN
692 uint8_t atc:1, spare:2, power_level:5;
698 #if OSMO_IS_LITTLE_ENDIAN
705 #elif OSMO_IS_BIG_ENDIAN
707 uint8_t max_trans:2, tx_integer:4, cell_bar:1, re:1;
722 rach_control->t2 |= (1 << (acc - 8));
724 rach_control->t3 |= (1 << (acc));
736 rach_control->t2 &= ~(1 << (acc - 8));
738 rach_control->t3 &= ~(1 << (acc));
751 return (rach_control->t2 & (1 << (acc - 8))) != 0;
752 return (rach_control->t3 & (1 << (acc))) != 0;
757 #if OSMO_IS_LITTLE_ENDIAN
763 #elif OSMO_IS_BIG_ENDIAN
766 uint8_t t1:5, t3_high:3;
767 uint8_t t3_low:3, t2:5;
773 #if OSMO_IS_LITTLE_ENDIAN
778 #elif OSMO_IS_BIG_ENDIAN
780 uint8_t t1:5, t3_high:3;
781 uint8_t t3_low:3, t2:5;
787 #if OSMO_IS_LITTLE_ENDIAN
792 #elif OSMO_IS_BIG_ENDIAN
794 uint8_t sync_ie:4, nci:1, rot:1, si:2;
849 #if OSMO_IS_LITTLE_ENDIAN
854 #elif OSMO_IS_BIG_ENDIAN
856 uint8_t arfcn_hi:2, ncc:3, bcc:3;
885 #if OSMO_IS_LITTLE_ENDIAN
891 #elif OSMO_IS_BIG_ENDIAN
893 uint8_t key_seq:4, spare:4;
908 #if OSMO_IS_LITTLE_ENDIAN
912 #elif OSMO_IS_BIG_ENDIAN
914 uint8_t spare:4, key_seq:4;
926 #if OSMO_IS_LITTLE_ENDIAN
933 #elif OSMO_IS_BIG_ENDIAN
935 uint8_t key_seq:4,
type:4;
952 #if OSMO_IS_LITTLE_ENDIAN
954 uint8_t rr_protocol_discriminator :4,
956 uint8_t system_information;
957 #elif OSMO_IS_BIG_ENDIAN
960 uint8_t skip_indicator:4, rr_protocol_discriminator:4;
961 uint8_t system_information;
967 #if OSMO_IS_LITTLE_ENDIAN
968 uint8_t ms_txpwr_max_ccch:5,
970 uint8_t rxlev_acc_min:6,
973 #elif OSMO_IS_BIG_ENDIAN
975 uint8_t cell_resel_hyst:3, ms_txpwr_max_ccch:5;
976 uint8_t acs:1, neci:1, rxlev_acc_min:6;
982 #if OSMO_IS_LITTLE_ENDIAN
983 uint8_t ccch_conf :3,
987 uint8_t bs_pa_mfrms : 3,
992 #elif OSMO_IS_BIG_ENDIAN
994 uint8_t mscr:1, att:1, bs_ag_blks_res:3, ccch_conf:3;
995 uint8_t spare_2:1, cbq3:2, spare_1:2, bs_pa_mfrms:3;
1009 #if OSMO_IS_LITTLE_ENDIAN
1010 uint8_t radio_link_timeout:4,
1015 #elif OSMO_IS_BIG_ENDIAN
1017 uint8_t d:1, pwrc:1, dtx:2, radio_link_timeout:4;
1023 #if OSMO_IS_LITTLE_ENDIAN
1024 uint8_t cm_service_type : 4,
1031 #elif OSMO_IS_BIG_ENDIAN
1033 uint8_t cipher_key_seq:4, cm_service_type:4;
1103 #if OSMO_IS_LITTLE_ENDIAN
1104 uint8_t rr_protocol_discriminator :4,
1106 uint8_t system_information;
1108 #elif OSMO_IS_BIG_ENDIAN
1110 uint8_t skip_indicator:4, rr_protocol_discriminator:4;
1111 uint8_t system_information;
1112 uint8_t bcch_frequency_list[16];
1118 #if OSMO_IS_LITTLE_ENDIAN
1119 uint8_t rr_protocol_discriminator :4,
1121 uint8_t system_information;
1123 #elif OSMO_IS_BIG_ENDIAN
1125 uint8_t skip_indicator:4, rr_protocol_discriminator:4;
1126 uint8_t system_information;
1127 uint8_t bcch_frequency_list[16];
1133 #if OSMO_IS_LITTLE_ENDIAN
1134 uint8_t rr_protocol_discriminator :4,
1136 uint8_t system_information;
1138 #elif OSMO_IS_BIG_ENDIAN
1140 uint8_t skip_indicator:4, rr_protocol_discriminator:4;
1141 uint8_t system_information;
1142 uint8_t bcch_frequency_list[16];
1148 #if OSMO_IS_LITTLE_ENDIAN
1149 uint8_t rr_protocol_discriminator :4,
1151 uint8_t system_information;
1157 #elif OSMO_IS_BIG_ENDIAN
1159 uint8_t skip_indicator:4, rr_protocol_discriminator:4;
1160 uint8_t system_information;
1165 uint8_t rest_octets[0];
1218 #if OSMO_IS_LITTLE_ENDIAN
1223 #elif OSMO_IS_BIG_ENDIAN
1225 uint8_t spare:3, cr:1, alg_id:3, sc:1;
1271 #if OSMO_IS_LITTLE_ENDIAN
1280 #elif OSMO_IS_BIG_ENDIAN
1285 uint8_t cneed2:2, cneed1:2, spare:2, pag_mode:2;
1292 #if OSMO_IS_LITTLE_ENDIAN
1303 #elif OSMO_IS_BIG_ENDIAN
1308 uint8_t cneed2:2, cneed1:2, spare:2, pag_mode:2;
1317 #if OSMO_IS_LITTLE_ENDIAN
1333 #elif OSMO_IS_BIG_ENDIAN
1338 uint8_t cneed2:2, cneed1:2, spare:2, pag_mode:2;
1343 uint8_t spare2:4, cneed4:2, cneed3:2;
1350 #if OSMO_IS_LITTLE_ENDIAN
1356 #elif OSMO_IS_BIG_ENDIAN
1358 uint8_t spare:5, key_seq:3;
1371 #define GSM48_PDISC_GROUP_CC 0x00
1372 #define GSM48_PDISC_BCAST_CC 0x01
1373 #define GSM48_PDISC_PDSS1 0x02
1374 #define GSM48_PDISC_CC 0x03
1375 #define GSM48_PDISC_PDSS2 0x04
1376 #define GSM48_PDISC_GTTP 0x04
1377 #define GSM48_PDISC_MM 0x05
1378 #define GSM48_PDISC_RR 0x06
1379 #define GSM48_PDISC_MM_GPRS 0x08
1380 #define GSM48_PDISC_SMS 0x09
1381 #define GSM48_PDISC_SM_GPRS 0x0a
1382 #define GSM48_PDISC_NC_SS 0x0b
1383 #define GSM48_PDISC_LOC 0x0c
1384 #define GSM48_PDISC_EXTEND 0x0e
1385 #define GSM48_PDISC_TEST 0x0f
1386 #define GSM48_PDISC_MASK 0x0f
1415 #define GSM48_TA_INVALID 220
1481 #define gsm48_hdr_msg_type gsm48_hdr_msg_type_r99
1484 #define GSM48_MT_RR_INIT_REQ 0x3c
1485 #define GSM48_MT_RR_ADD_ASS 0x3b
1486 #define GSM48_MT_RR_IMM_ASS 0x3f
1487 #define GSM48_MT_RR_IMM_ASS_EXT 0x39
1488 #define GSM48_MT_RR_IMM_ASS_REJ 0x3a
1489 #define GSM48_MT_RR_DTM_ASS_FAIL 0x48
1490 #define GSM48_MT_RR_DTM_REJECT 0x49
1491 #define GSM48_MT_RR_DTM_REQUEST 0x4A
1492 #define GSM48_MT_RR_PACKET_ASS 0x4B
1494 #define GSM48_MT_RR_CIPH_M_CMD 0x35
1495 #define GSM48_MT_RR_CIPH_M_COMPL 0x32
1497 #define GSM48_MT_RR_CFG_CHG_CMD 0x30
1498 #define GSM48_MT_RR_CFG_CHG_ACK 0x31
1499 #define GSM48_MT_RR_CFG_CHG_REJ 0x33
1501 #define GSM48_MT_RR_ASS_CMD 0x2e
1502 #define GSM48_MT_RR_ASS_COMPL 0x29
1503 #define GSM48_MT_RR_ASS_FAIL 0x2f
1504 #define GSM48_MT_RR_HANDO_CMD 0x2b
1505 #define GSM48_MT_RR_HANDO_COMPL 0x2c
1506 #define GSM48_MT_RR_HANDO_FAIL 0x28
1507 #define GSM48_MT_RR_HANDO_INFO 0x2d
1508 #define GSM48_MT_RR_HANDO_INFO 0x2d
1509 #define GSM48_MT_RR_DTM_ASS_CMD 0x4c
1511 #define GSM48_MT_RR_CELL_CHG_ORDER 0x08
1512 #define GSM48_MT_RR_PDCH_ASS_CMD 0x23
1514 #define GSM48_MT_RR_CHAN_REL 0x0d
1515 #define GSM48_MT_RR_PART_REL 0x0a
1516 #define GSM48_MT_RR_PART_REL_COMP 0x0f
1518 #define GSM48_MT_RR_PAG_REQ_1 0x21
1519 #define GSM48_MT_RR_PAG_REQ_2 0x22
1520 #define GSM48_MT_RR_PAG_REQ_3 0x24
1521 #define GSM48_MT_RR_PAG_RESP 0x27
1522 #define GSM48_MT_RR_NOTIF_NCH 0x20
1523 #define GSM48_MT_RR_NOTIF_FACCH 0x25
1524 #define GSM48_MT_RR_NOTIF_RESP 0x26
1525 #define GSM48_MT_RR_PACKET_NOTIF 0x4e
1526 #define GSM48_MT_RR_UTRAN_CLSM_CHG 0x60
1527 #define GSM48_MT_RR_CDMA2K_CLSM_CHG 0x62
1528 #define GSM48_MT_RR_IS_TO_UTRAN_HANDO 0x63
1529 #define GSM48_MT_RR_IS_TO_CDMA2K_HANDO 0x64
1531 #define GSM48_MT_RR_SYSINFO_8 0x18
1532 #define GSM48_MT_RR_SYSINFO_1 0x19
1533 #define GSM48_MT_RR_SYSINFO_2 0x1a
1534 #define GSM48_MT_RR_SYSINFO_3 0x1b
1535 #define GSM48_MT_RR_SYSINFO_4 0x1c
1536 #define GSM48_MT_RR_SYSINFO_5 0x1d
1537 #define GSM48_MT_RR_SYSINFO_6 0x1e
1538 #define GSM48_MT_RR_SYSINFO_7 0x1f
1540 #define GSM48_MT_RR_SYSINFO_2bis 0x02
1541 #define GSM48_MT_RR_SYSINFO_2ter 0x03
1542 #define GSM48_MT_RR_SYSINFO_2quater 0x07
1543 #define GSM48_MT_RR_SYSINFO_5bis 0x05
1544 #define GSM48_MT_RR_SYSINFO_5ter 0x06
1545 #define GSM48_MT_RR_SYSINFO_9 0x04
1546 #define GSM48_MT_RR_SYSINFO_13 0x00
1548 #define GSM48_MT_RR_SYSINFO_16 0x3d
1549 #define GSM48_MT_RR_SYSINFO_17 0x3e
1551 #define GSM48_MT_RR_SYSINFO_18 0x40
1552 #define GSM48_MT_RR_SYSINFO_19 0x41
1553 #define GSM48_MT_RR_SYSINFO_20 0x42
1555 #define GSM48_MT_RR_CHAN_MODE_MODIF 0x10
1556 #define GSM48_MT_RR_STATUS 0x12
1557 #define GSM48_MT_RR_CHAN_MODE_MODIF_ACK 0x17
1558 #define GSM48_MT_RR_FREQ_REDEF 0x14
1559 #define GSM48_MT_RR_MEAS_REP 0x15
1560 #define GSM48_MT_RR_CLSM_CHG 0x16
1561 #define GSM48_MT_RR_CLSM_ENQ 0x13
1562 #define GSM48_MT_RR_EXT_MEAS_REP 0x36
1563 #define GSM48_MT_RR_EXT_MEAS_REP_ORD 0x37
1564 #define GSM48_MT_RR_GPRS_SUSP_REQ 0x34
1565 #define GSM48_MT_RR_DTM_INFO 0x4d
1567 #define GSM48_MT_RR_VGCS_UPL_GRANT 0x09
1568 #define GSM48_MT_RR_UPLINK_RELEASE 0x0e
1569 #define GSM48_MT_RR_UPLINK_FREE 0x0c
1570 #define GSM48_MT_RR_UPLINK_BUSY 0x2a
1571 #define GSM48_MT_RR_TALKER_IND 0x11
1573 #define GSM48_MT_RR_APP_INFO 0x38
1576 #define GSM48_MT_MM_IMSI_DETACH_IND 0x01
1577 #define GSM48_MT_MM_LOC_UPD_ACCEPT 0x02
1578 #define GSM48_MT_MM_LOC_UPD_REJECT 0x04
1579 #define GSM48_MT_MM_LOC_UPD_REQUEST 0x08
1581 #define GSM48_MT_MM_AUTH_REJ 0x11
1582 #define GSM48_MT_MM_AUTH_REQ 0x12
1583 #define GSM48_MT_MM_AUTH_RESP 0x14
1584 #define GSM48_MT_MM_AUTH_FAIL 0x1c
1585 #define GSM48_MT_MM_ID_REQ 0x18
1586 #define GSM48_MT_MM_ID_RESP 0x19
1587 #define GSM48_MT_MM_TMSI_REALL_CMD 0x1a
1588 #define GSM48_MT_MM_TMSI_REALL_COMPL 0x1b
1590 #define GSM48_MT_MM_CM_SERV_ACC 0x21
1591 #define GSM48_MT_MM_CM_SERV_REJ 0x22
1592 #define GSM48_MT_MM_CM_SERV_ABORT 0x23
1593 #define GSM48_MT_MM_CM_SERV_REQ 0x24
1594 #define GSM48_MT_MM_CM_SERV_PROMPT 0x25
1595 #define GSM48_MT_MM_CM_REEST_REQ 0x28
1596 #define GSM48_MT_MM_ABORT 0x29
1598 #define GSM48_MT_MM_NULL 0x30
1599 #define GSM48_MT_MM_STATUS 0x31
1600 #define GSM48_MT_MM_INFO 0x32
1603 #define GSM48_MT_CC_ALERTING 0x01
1604 #define GSM48_MT_CC_CALL_CONF 0x08
1605 #define GSM48_MT_CC_CALL_PROC 0x02
1606 #define GSM48_MT_CC_CONNECT 0x07
1607 #define GSM48_MT_CC_CONNECT_ACK 0x0f
1608 #define GSM48_MT_CC_EMERG_SETUP 0x0e
1609 #define GSM48_MT_CC_PROGRESS 0x03
1610 #define GSM48_MT_CC_ESTAB 0x04
1611 #define GSM48_MT_CC_ESTAB_CONF 0x06
1612 #define GSM48_MT_CC_RECALL 0x0b
1613 #define GSM48_MT_CC_START_CC 0x09
1614 #define GSM48_MT_CC_SETUP 0x05
1616 #define GSM48_MT_CC_MODIFY 0x17
1617 #define GSM48_MT_CC_MODIFY_COMPL 0x1f
1618 #define GSM48_MT_CC_MODIFY_REJECT 0x13
1619 #define GSM48_MT_CC_USER_INFO 0x10
1620 #define GSM48_MT_CC_HOLD 0x18
1621 #define GSM48_MT_CC_HOLD_ACK 0x19
1622 #define GSM48_MT_CC_HOLD_REJ 0x1a
1623 #define GSM48_MT_CC_RETR 0x1c
1624 #define GSM48_MT_CC_RETR_ACK 0x1d
1625 #define GSM48_MT_CC_RETR_REJ 0x1e
1627 #define GSM48_MT_CC_DISCONNECT 0x25
1628 #define GSM48_MT_CC_RELEASE 0x2d
1629 #define GSM48_MT_CC_RELEASE_COMPL 0x2a
1631 #define GSM48_MT_CC_CONG_CTRL 0x39
1632 #define GSM48_MT_CC_NOTIFY 0x3e
1633 #define GSM48_MT_CC_STATUS 0x3d
1634 #define GSM48_MT_CC_STATUS_ENQ 0x34
1635 #define GSM48_MT_CC_START_DTMF 0x35
1636 #define GSM48_MT_CC_STOP_DTMF 0x31
1637 #define GSM48_MT_CC_STOP_DTMF_ACK 0x32
1638 #define GSM48_MT_CC_START_DTMF_ACK 0x36
1639 #define GSM48_MT_CC_START_DTMF_REJ 0x37
1640 #define GSM48_MT_CC_FACILITY 0x3a
1666 #define GSM48_PM_MASK 0x03
1667 #define GSM48_PM_NORMAL 0x00
1668 #define GSM48_PM_EXTENDED 0x01
1669 #define GSM48_PM_REORG 0x02
1670 #define GSM48_PM_SAME 0x03
1673 #define GSM48_LUPD_NORMAL 0x0
1674 #define GSM48_LUPD_PERIODIC 0x1
1675 #define GSM48_LUPD_IMSI_ATT 0x2
1676 #define GSM48_LUPD_RESERVED 0x3
1683 #define GSM_MI_TYPE_MASK 0x07
1684 #define GSM_MI_TYPE_NONE 0x00
1685 #define GSM_MI_TYPE_IMSI 0x01
1686 #define GSM_MI_TYPE_IMEI 0x02
1687 #define GSM_MI_TYPE_IMEISV 0x03
1688 #define GSM_MI_TYPE_TMSI 0x04
1689 #define GSM_MI_ODD 0x08
1691 #define GSM48_IE_MOBILE_ID 0x17
1692 #define GSM48_IE_NAME_LONG 0x43
1693 #define GSM48_IE_NAME_SHORT 0x45
1694 #define GSM48_IE_UTC 0x46
1695 #define GSM48_IE_NET_TIME_TZ 0x47
1696 #define GSM48_IE_LSA_IDENT 0x48
1697 #define GSM48_IE_NET_DST 0x49
1699 #define GSM48_IE_BEARER_CAP 0x04
1700 #define GSM48_IE_CAUSE 0x08
1701 #define GSM48_IE_CC_CAP 0x15
1702 #define GSM48_IE_ALERT 0x19
1703 #define GSM48_IE_FACILITY 0x1c
1704 #define GSM48_IE_PROGR_IND 0x1e
1705 #define GSM48_IE_AUX_STATUS 0x24
1706 #define GSM48_IE_NOTIFY 0x27
1707 #define GSM48_IE_KPD_FACILITY 0x2c
1708 #define GSM48_IE_SIGNAL 0x34
1709 #define GSM48_IE_CONN_BCD 0x4c
1710 #define GSM48_IE_CONN_SUB 0x4d
1711 #define GSM48_IE_CALLING_BCD 0x5c
1712 #define GSM48_IE_CALLING_SUB 0x5d
1713 #define GSM48_IE_CALLED_BCD 0x5e
1714 #define GSM48_IE_CALLED_SUB 0x6d
1715 #define GSM48_IE_REDIR_BCD 0x74
1716 #define GSM48_IE_REDIR_SUB 0x75
1717 #define GSM48_IE_LOWL_COMPAT 0x7c
1718 #define GSM48_IE_HIGHL_COMPAT 0x7d
1719 #define GSM48_IE_USER_USER 0x7e
1720 #define GSM48_IE_SS_VERS 0x7f
1721 #define GSM48_IE_MORE_DATA 0xa0
1722 #define GSM48_IE_CLIR_SUPP 0xa1
1723 #define GSM48_IE_CLIR_INVOC 0xa2
1724 #define GSM48_IE_REV_C_SETUP 0xa3
1725 #define GSM48_IE_REPEAT_CIR 0xd1
1726 #define GSM48_IE_REPEAT_SEQ 0xd3
1729 #define GSM48_CAUSE_CS_GSM 0x60
1733 #define GSM48_IE_VGCS_TARGET 0x01
1735 #define GSM48_IE_FRQSHORT_AFTER 0x02
1736 #define GSM48_IE_MUL_RATE_CFG 0x03
1737 #define GSM48_IE_FREQ_L_AFTER 0x05
1738 #define GSM48_IE_MSLOT_DESC 0x10
1739 #define GSM48_IE_CHANMODE_2 0x11
1740 #define GSM48_IE_FRQSHORT_BEFORE 0x12
1742 #define GSM48_IE_CHANMODE_3 0x13
1743 #define GSM48_IE_CHANMODE_4 0x14
1744 #define GSM48_IE_CHANMODE_5 0x15
1745 #define GSM48_IE_CHANMODE_6 0x16
1746 #define GSM48_IE_CHANMODE_7 0x17
1747 #define GSM48_IE_CHANMODE_8 0x18
1748 #define GSM48_IE_CHANDESC_2 0x64
1749 #define GSM48_IE_MA_AFTER 0x72
1750 #define GSM48_IE_START_TIME 0x7c
1751 #define GSM48_IE_FREQ_L_BEFORE 0x19
1753 #define GSM48_IE_CH_DESC_1_BEFORE 0x1c
1755 #define GSM48_IE_CH_DESC_2_BEFORE 0x1d
1757 #define GSM48_IE_F_CH_SEQ_BEFORE 0x1e
1759 #define GSM48_IE_CLASSMARK3 0x20
1760 #define GSM48_IE_MA_BEFORE 0x21
1761 #define GSM48_IE_RR_PACKET_UL 0x22
1762 #define GSM48_IE_RR_PACKET_DL 0x23
1763 #define GSM48_IE_CELL_CH_DESC 0x62
1764 #define GSM48_IE_CHANMODE_1 0x63
1765 #define GSM48_IE_CHDES_2_AFTER 0x64
1766 #define GSM48_IE_MODE_SEC_CH 0x66
1767 #define GSM48_IE_F_CH_SEQ_AFTER 0x69
1768 #define GSM48_IE_MA_AFTER 0x72
1769 #define GSM48_IE_BA_RANGE 0x73
1770 #define GSM48_IE_GROUP_CHDES 0x74
1771 #define GSM48_IE_BA_LIST_PREF 0x75
1772 #define GSM48_IE_MOB_OVSERV_DIF 0x77
1773 #define GSM48_IE_CELL_SEL_IND_AFTER_REL 0x77
1774 #define GSM48_IE_REALTIME_DIFF 0x7b
1775 #define GSM48_IE_START_TIME 0x7c
1776 #define GSM48_IE_INDIVIDUAL_PRIORITIES 0x7c
1777 #define GSM48_IE_TIMING_ADVANCE 0x7d
1778 #define GSM48_IE_GROUP_CIP_SEQ 0x80
1779 #define GSM48_IE_CIP_MODE_SET 0x90
1780 #define GSM48_IE_GPRS_RESUMPT 0xc0
1781 #define GSM48_IE_SYNC_IND 0xd0
1783 #define GSM48_IE_CBCH_CHAN_DESC 0x64
1784 #define GSM48_IE_CBCH_MOB_AL 0x72
1787 #define GSM48_IE_LOCATION_AREA 0x13
1788 #define GSM48_IE_AUTN 0x20
1789 #define GSM48_IE_AUTH_RES_EXT 0x21
1790 #define GSM48_IE_AUTS 0x22
1791 #define GSM48_IE_PRIORITY_LEV 0x80
1792 #define GSM48_IE_FOLLOW_ON_PROC 0xa1
1793 #define GSM48_IE_CTS_PERMISSION 0xa2
1982 #define GSM48_T301 180, 0
1983 #define GSM48_T303 30, 0
1984 #define GSM48_T305 30, 0
1985 #define GSM48_T306 30, 0
1986 #define GSM48_T308 10, 0
1987 #define GSM48_T310 30, 0
1988 #define GSM48_T313 30, 0
1989 #define GSM48_T323 30, 0
1990 #define GSM48_T331 30, 0
1991 #define GSM48_T333 30, 0
1992 #define GSM48_T334 25, 0
1993 #define GSM48_T338 30, 0
1994 #define GSM48_T303_MS 30, 0
1995 #define GSM48_T305_MS 30, 0
1996 #define GSM48_T308_MS 30, 0
1997 #define GSM48_T310_MS 30, 0
1998 #define GSM48_T313_MS 30, 0
1999 #define GSM48_T323_MS 30, 0
2000 #define GSM48_T332_MS 30, 0
2001 #define GSM48_T335_MS 30, 0
2004 #define GSM_CSTATE_NULL 0
2005 #define GSM_CSTATE_INITIATED 1
2006 #define GSM_CSTATE_MM_CONNECTION_PEND 2
2007 #define GSM_CSTATE_MO_CALL_PROC 3
2008 #define GSM_CSTATE_CALL_DELIVERED 4
2009 #define GSM_CSTATE_CALL_PRESENT 6
2010 #define GSM_CSTATE_CALL_RECEIVED 7
2011 #define GSM_CSTATE_CONNECT_REQUEST 8
2012 #define GSM_CSTATE_MO_TERM_CALL_CONF 9
2013 #define GSM_CSTATE_ACTIVE 10
2014 #define GSM_CSTATE_DISCONNECT_REQ 12
2015 #define GSM_CSTATE_DISCONNECT_IND 12
2016 #define GSM_CSTATE_RELEASE_REQ 19
2017 #define GSM_CSTATE_MO_ORIG_MODIFY 26
2018 #define GSM_CSTATE_MO_TERM_MODIFY 27
2019 #define GSM_CSTATE_CONNECT_IND 28
2021 #define SBIT(a) (1 << a)
2022 #define ALL_STATES 0xffffffff
2025 #define GSM_LAC_RESERVED_DETACHED 0x0
2026 #define GSM_LAC_RESERVED_ALL_BTS 0xfffe
2135 #define GSM48_TMSI_LEN 5
2136 #define GSM48_MID_TMSI_LEN (GSM48_TMSI_LEN + 2)
2137 #define GSM48_MI_SIZE 32
2146 #define GSM48_CELL_CHAN_DESC_SIZE 16
2148 #define GSM_MACBLOCK_LEN 23
2149 #define GSM_MACBLOCK_PADDING 0x2b
Definition: gsm_04_08.h:824
gsm48_bcap_parity
Definition: gsm_04_08.h:2086
uint16_t lac
Definition: gsm_04_08.h:903
Definition: gsm_04_08.h:1815
Definition: gsm_04_08.h:2088
Definition: gsm_04_08.h:1217
Definition: gsm_04_08.h:810
Definition: gsm_04_08.h:1889
uint8_t msg_type
Definition: gsm_04_08.h:823
Definition: gsm_04_08.h:1190
Definition: gsm_04_08.h:2154
uint8_t mi[0]
Definition: gsm_04_08.h:823
Definition: gsm_04_08.h:944
uint8_t data[0]
Definition: gsm_04_08.h:1202
gsm48_bcap_rrq
Definition: gsm_04_08.h:2050
Definition: gsm_04_08.h:1872
Definition: gsm_04_08.h:1950
Definition: gsm_04_08.h:1901
Definition: gsm_04_08.h:1875
Definition: gsm_04_08.h:1941
Definition: gsm_04_08.h:2157
Definition: gsm_04_08.h:2156
gsm48_numbering_plan
Definition: gsm_04_08.h:2162
bool osmo_gsm48_classmark1_is_r99(const struct gsm48_classmark1 *cm1)
Definition: gsm48.c:1163
Definition: gsm_04_08.h:1922
Definition: gsm_04_08.h:1814
Definition: gsm_04_08.h:1891
gsm48_bcap_sig_access
Definition: gsm_04_08.h:2065
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:1265
Definition: gsm_04_08.h:1898
Definition: gsm_04_08.h:1804
Definition: gsm_04_08.h:840
Definition: gsm_04_08.h:1849
Definition: gsm_04_08.h:1827
Definition: gsm_04_08.h:1878
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:864
struct osmo_gsm48_classmark __attribute__
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:834
Definition: gsm_04_08.h:1893
gsm48_chan_mode
Definition: gsm_04_08.h:808
Definition: gsm_04_08.h:862
Definition: gsm_04_08.h:1366
uint8_t l2_plen
Definition: gsm_04_08.h:821
Definition: gsm_04_08.h:772
Definition: gsm_04_08.h:1926
Definition: gsm_04_08.h:1961
Definition: gsm_04_08.h:1869
gsm48_rr_cause
Definition: gsm_04_08.h:1843
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:1894
Definition: gsm_04_08.h:1908
Definition: gsm_04_08.h:816
Definition: gsm_04_08.h:2096
uint8_t mob_alloc_len
Definition: gsm_04_08.h:1248
const char * get_value_string(const struct value_string *vs, uint32_t val)
Definition: gsm_04_08.h:1802
Definition: gsm_04_08.h:1887
Definition: gsm_04_08.h:1938
Definition: gsm_04_08.h:809
Definition: gsm_04_08.h:1817
gsm48_bcap_user_rate
Definition: gsm_04_08.h:2075
Definition: gsm_04_08.h:1853
Definition: gsm_04_08.h:814
Definition: gsm_04_08.h:1963
uint8_t rr_cause
Definition: gsm_04_08.h:1196
uint8_t ho_ref
Definition: gsm_04_08.h:865
Definition: gsm_04_08.h:1846
Definition: gsm_04_08.h:1906
Definition: gsm_04_08.h:1818
uint8_t rest[0]
Definition: gsm_04_08.h:1266
Definition: gsm_04_08.h:1813
uint8_t wait_ind1
Definition: gsm_04_08.h:1259
Definition: gsm_04_08.h:1969
Definition: gsm_04_08.h:2168
Definition: gsm_04_08.h:1973
static uint8_t gsm48_hdr_msg_type_r99(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1457
uint8_t data[0]
Definition: gsm_04_08.h:867
Definition: gsm_04_08.h:1844
gsm48_reject_value
Definition: gsm_04_08.h:1921
Definition: gsm_04_08.h:1948
Definition: gsm_04_08.h:1871
Definition: gsm_04_08.h:1022
Definition: gsm_04_08.h:1877
Definition: gsm_04_08.h:1897
Definition: gsm_04_08.h:2090
Definition: gsm_04_08.h:1859
Definition: gsm_04_08.h:1831
Definition: gsm_04_08.h:1971
gsm48_bcap_tmod
Definition: gsm_04_08.h:2039
struct gsm48_req_ref req_ref3
Definition: gsm_04_08.h:1262
Definition: gsm_04_08.h:548
Definition: gsm_04_08.h:1873
Definition: gsm_04_08.h:1923
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:747
gsm48_bcap_modem_type
Definition: gsm_04_08.h:2109
uint8_t proto_discr
Definition: gsm_04_08.h:945
Definition: gsm_04_08.h:1886
Definition: gsm_04_08.h:1857
Definition: gsm_04_08.h:1866
Definition: gsm_04_08.h:1931
Definition: gsm_04_08.h:1819
struct gsm48_classmark2 classmark2
Definition: gsm_04_08.h:63
Definition: gsm_04_08.h:1316
Definition: gsm_04_08.h:1900
#define GSM48_PDISC_BCAST_CC
Definition: gsm_04_08.h:1372
Definition: gsm_04_08.h:2061
gsm48_signal_val
Definition: gsm_04_08.h:1808
uint8_t mode
Definition: gsm_04_08.h:805
Definition: gsm_04_08.h:2110
Definition: gsm_04_08.h:2104
Definition: gsm_04_08.h:2070
Definition: gsm_04_08.h:1811
Definition: gsm_04_08.h:1976
uint8_t wait_ind3
Definition: gsm_04_08.h:1263
static void gsm48_allow_acc(struct gsm48_rach_control *rach_control, unsigned int acc)
Definition: gsm_04_08.h:732
Definition: gsm_04_08.h:1003
Definition: gsm_04_08.h:2032
uint8_t page_mode
Definition: gsm_04_08.h:1257
Definition: gsm_04_08.h:2081
Definition: gsm_04_08.h:1836
Definition: gsm_04_08.h:2167
Definition: gsm_04_08.h:2165
gsm48_dtx_mode
Definition: gsm_04_08.h:1000
Definition: gsm_04_08.h:1824
Definition: gsm_04_08.h:2067
#define GSM48_PDISC_CC
Definition: gsm_04_08.h:1374
uint8_t mob_alloc_len
Definition: gsm_04_08.h:835
const struct value_string gsm48_mm_msgtype_names[]
TS 04.08 MM Message Type names.
Definition: gsm48.c:919
uint8_t mob_alloc[0]
Definition: gsm_04_08.h:1249
Definition: gsm_04_08.h:697
uint8_t timing_advance1
Definition: gsm_04_08.h:1244
Definition: gsm_04_08.h:1911
Definition: gsm_04_08.h:832
Definition: gsm_04_08.h:29
uint8_t rr_cause
Definition: gsm_04_08.h:1212
gsm48_cc_cause
Definition: gsm_04_08.h:1864
Definition: gsm_04_08.h:1860
Definition: gsm_04_08.h:1905
uint8_t data[0]
Definition: gsm_04_08.h:828
#define GSM48_PDISC_NC_SS
Definition: gsm_04_08.h:1382
Definition: gsm_04_08.h:1884
Definition: gsm_04_08.h:1856
Definition: gsm_04_08.h:1892
Definition: gsm_04_08.h:2053
const struct value_string gsm48_cc_msgtype_names[]
TS 04.08 CC Message Type names.
Definition: gsm48.c:949
static const char * gsm48_pdisc_name(uint8_t val)
Definition: gsm_04_08.h:1389
Definition: gsm_04_08.h:359
uint8_t data[0]
Definition: gsm_04_08.h:947
uint8_t proto_discr
Definition: gsm_04_08.h:1255
Definition: gsm_04_08.h:1939
uint8_t data[0]
Definition: gsm_04_08.h:1233
Definition: gsm_04_08.h:2140
Definition: gsm_04_08.h:2091
static uint8_t gsm48_hdr_trans_id_no_ti(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1432
uint8_t proto_discr
Definition: gsm_04_08.h:1239
Definition: gsm_04_08.h:2035
Definition: gsm_04_08.h:2079
Definition: gsm_04_08.h:2153
uint8_t page_mode
Definition: gsm_04_08.h:875
struct gsm48_chan_desc chan_desc1
Definition: gsm_04_08.h:1242
gsm48_bcap_coding
Definition: gsm_04_08.h:2045
Definition: gsm_04_08.h:2117
static uint8_t gsm48_hdr_trans_id(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1406
Definition: gsm_04_08.h:966
Definition: gsm_04_08.h:1270
const struct value_string gsm48_rr_msgtype_names[]
TS 04.08 RR Message Type names.
Definition: gsm48.c:826
Definition: gsm_04_08.h:1810
Definition: gsm_04_08.h:1206
Definition: gsm_04_08.h:815
struct gsm48_req_ref req_ref4
Definition: gsm_04_08.h:1264
Definition: gsm_04_08.h:1885
gsm48_bcap_ra
Definition: gsm_04_08.h:2057
Definition: gsm_04_08.h:1651
Definition: gsm_04_08.h:1211
#define GSM48_PDISC_MM
Definition: gsm_04_08.h:1377
GSM HR V4 (OHR AMR-WB)
Definition: gsm_04_08.h:2130
uint8_t mob_alloc[0]
Definition: gsm_04_08.h:880
struct gsm48_req_ref req_ref1
Definition: gsm_04_08.h:1243
Definition: gsm_04_08.h:2112
Definition: gsm_04_08.h:1834
Definition: gsm_04_08.h:1932
Definition: gsm_04_08.h:1927
Definition: gsm_04_08.h:1855
Definition: gsm_04_08.h:1854
uint32_t tlli
Definition: gsm_04_08.h:841
uint8_t mi_len
Definition: gsm_04_08.h:822
uint8_t rr_cause
Definition: gsm_04_08.h:1207
Definition: gsm_04_08.h:1838
static uint8_t gsm48_hdr_trans_id_flip_ti(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1427
Definition: gsm_04_08.h:1975
Definition: gsm_04_08.h:2089
Definition: gsm_04_08.h:1833
const struct value_string osmo_lu_type_names[]
Definition: gsm48.c:1144
GSM HR V6 (OHR AMR)
Definition: gsm_04_08.h:2132
Definition: gsm_04_08.h:871
Definition: gsm_04_08.h:1910
uint8_t proto_discr
Definition: gsm_04_08.h:822
Definition: gsm_04_08.h:1974
Definition: gsm_04_08.h:2116
GSM FR V5 (FR AMR-WB)
Definition: gsm_04_08.h:2131
Definition: gsm_04_08.h:2082
Definition: gsm_04_08.h:1825
Definition: gsm_04_08.h:1845
uint8_t mi[0]
Definition: gsm_04_08.h:1179
Definition: gsm_04_08.h:756
Definition: gsm_04_08.h:1658
Definition: gsm_04_08.h:2105
Definition: gsm_04_08.h:599
Definition: gsm_04_08.h:2060
Definition: gsm_04_08.h:1972
struct gsm48_cell_desc cell_desc
Definition: gsm_04_08.h:863
Definition: gsm_04_08.h:1952
struct gsm48_req_ref req_ref2
Definition: gsm_04_08.h:1260
struct gsm48_classmark1 classmark1
Definition: gsm_04_08.h:61
Definition: gsm_04_08.h:1656
struct gsm48_chan_desc chan_desc2
Definition: gsm_04_08.h:1245
Definition: gsm_04_08.h:925
Definition: gsm_04_08.h:1964
uint8_t power_command
Definition: gsm_04_08.h:866
Definition: gsm_04_08.h:1800
Definition: gsm_04_08.h:1799
struct gsm48_rach_control rach_control
Definition: gsm_04_08.h:823
Definition: gsm_04_08.h:1883
Definition: gsm_04_08.h:2046
Definition: gsm_04_08.h:1881
Definition: gsm_04_08.h:1942
Definition: gsm_04_08.h:1899
Definition: gsm_04_08.h:242
Definition: gsm_04_08.h:1909
Definition: gsm_04_08.h:1929
void osmo_gsm48_classmark_update(struct osmo_gsm48_classmark *dst, const struct osmo_gsm48_classmark *src)
Overwrite dst with the Classmark information present in src.
Definition: gsm48.c:1226
Definition: gsm_04_08.h:901
Definition: gsm_04_08.h:2080
uint8_t digits[3]
Definition: gsm_04_08.h:2141
Definition: gsm_04_08.h:15
Definition: gsm_04_08.h:1839
Definition: gsm_04_08.h:2103
Definition: gsm_04_08.h:1944
uint8_t timing_advance2
Definition: gsm_04_08.h:1247
int osmo_gsm48_classmark_supports_a5(const struct osmo_gsm48_classmark *cm, uint8_t a5)
Determine if the given Classmark (1/2/3) value permits a given A5/n cipher.
Definition: gsm48.c:1251
uint8_t bcch_frequency_list[16]
Definition: gsm_04_08.h:822
uint8_t msg_type
Definition: gsm_04_08.h:946
Definition: gsm_04_08.h:1882
Definition: gsm_04_08.h:1851
Definition: gsm_04_08.h:1924
Definition: gsm_04_08.h:2155
Definition: gsm_04_08.h:1936
uint8_t digits[3]
Definition: gsm_04_08.h:902
Definition: gsm_04_08.h:2115
chreq_type
Definition: gsm_04_08.h:1959
gsm48_bcap_itcap
Definition: gsm_04_08.h:2029
Definition: gsm_04_08.h:1655
const struct value_string gsm48_reject_value_names[]
Definition: gsm48.c:1091
Definition: gsm_04_08.h:1951
Definition: gsm_04_08.h:2169
uint8_t classmark3_len
Definition: gsm_04_08.h:64
uint8_t power_command
Definition: gsm_04_08.h:827
Definition: gsm_04_08.h:1928
uint8_t wait_ind2
Definition: gsm_04_08.h:1261
uint8_t page_mode
Definition: gsm_04_08.h:1241
static const char * osmo_lu_type_name(uint8_t lu_type)
Definition: gsm_04_08.h:1679
struct gsm48_classmark2 cm2
Definition: gsm_04_08.h:822
#define GSM48_PDISC_LOC
Definition: gsm_04_08.h:1383
Definition: gsm_04_08.h:1291
struct gsm48_req_ref req_ref1
Definition: gsm_04_08.h:1258
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:1060
#define GSM48_PDISC_MASK
Definition: gsm_04_08.h:1386
uint8_t cause
Definition: gsm_04_08.h:843
GSM FR V4 (OFR AMR-WB)
Definition: gsm_04_08.h:2129
static const char * gsm48_reject_value_name(enum gsm48_reject_value val)
Definition: gsm_04_08.h:1956
Definition: gsm_04_08.h:1809
Definition: gsm_04_08.h:2078
Definition: gsm_04_08.h:1001
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:1185
uint8_t data[0]
Definition: gsm_04_08.h:824
Definition: gsm_04_08.h:2040
Definition: gsm_04_08.h:1812
Definition: gsm_04_08.h:1895
Definition: gsm_04_08.h:2058
static const char * osmo_cm_service_type_name(enum osmo_cm_service_type val)
Definition: gsm_04_08.h:1662
gsm48_bcap_interm_rate
Definition: gsm_04_08.h:2095
Definition: gsm_04_08.h:1200
Definition: gsm_04_08.h:1870
Definition: gsm_04_08.h:1798
Definition: gsm_04_08.h:2059
uint8_t classmark2_len
Definition: gsm_04_08.h:62
Definition: gsm_04_08.h:685
uint8_t l2_plen
Definition: gsm_04_08.h:872
uint8_t timing_advance
Definition: gsm_04_08.h:878
uint8_t options[0]
Definition: gsm_04_08.h:844
uint8_t rest_octets[0]
Definition: gsm_04_08.h:824
Definition: gsm_04_08.h:1978
Definition: gsm_04_08.h:1195
Definition: gsm_04_08.h:131
Definition: gsm_04_08.h:1966
Definition: gsm_04_08.h:813
Definition: gsm_04_08.h:2111
Definition: gsm_04_08.h:1930
Definition: gsm_04_08.h:1947
Definition: gsm_04_08.h:1880
Definition: gsm_04_08.h:812
gsm48_bcap_transp
Definition: gsm_04_08.h:2101
GSM HR V1 (GSM HR)
Definition: gsm_04_08.h:2125
bool osmo_gsm48_classmark_is_r99(const struct osmo_gsm48_classmark *cm)
Return true if any of Classmark 1 or Classmark 2 are present and indicate R99 capability.
Definition: gsm48.c:1179
uint8_t rac
Definition: gsm_04_08.h:2143
const struct value_string osmo_cm_service_type_names[]
Definition: gsm48.c:1152
uint8_t msg_type
Definition: gsm_04_08.h:1256
Definition: gsm_04_08.h:1960
const struct value_string gsm48_chan_mode_names[]
Definition: gsm48.c:397
Definition: gsm_04_08.h:1852
Definition: gsm_04_08.h:1183
uint8_t l2_plen
Definition: gsm_04_08.h:1238
bool osmo_gsm48_classmark2_is_r99(const struct gsm48_classmark2 *cm2, uint8_t cm2_len)
Definition: gsm48.c:1168
uint8_t msg_type
Definition: gsm_04_08.h:1240
Definition: gsm_04_08.h:907
static const char * gsm48_cc_cause_name(enum gsm48_cc_cause val)
Definition: gsm_04_08.h:1917
uint8_t mi_len
Definition: gsm_04_08.h:1178
uint8_t rr_cause
Definition: gsm_04_08.h:1191
Definition: gsm_04_08.h:1902
Definition: gsm_04_08.h:1868
Definition: gsm_04_08.h:1867
Definition: gsm_04_08.h:1816
Definition: gsm_04_08.h:1896
Definition: gsm_04_08.h:2034
Definition: gsm_04_08.h:981
gsm48_progress_desc
Definition: gsm_04_08.h:1797
#define GSM48_PDISC_EXTEND
Definition: gsm_04_08.h:1384
Definition: gsm_04_08.h:920
Definition: gsm_04_08.h:1904
Definition: gsm_04_08.h:1937
Definition: gsm_04_08.h:1835
uint8_t msg_type
Definition: gsm_04_08.h:874
Definition: gsm_04_08.h:1865
Definition: gsm_04_08.h:1967
Definition: gsm_04_08.h:2164
uint16_t lac
Definition: gsm_04_08.h:2142
Definition: gsm_04_08.h:2068
Definition: gsm_04_08.h:484
Definition: gsm_04_08.h:1970
const char * osmo_gsm48_classmark_a5_name(const struct osmo_gsm48_classmark *cm)
Return a string representation of A5 cipher algorithms indicated by Classmark 1, 2 and 3...
Definition: gsm48.c:1190
Definition: gsm_04_08.h:2041
Definition: gsm_04_08.h:786
uint8_t rr_cause
Definition: gsm_04_08.h:1201
osmo_cm_service_type
Definition: gsm_04_08.h:1650
Definition: gsm_04_08.h:884
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:876
uint8_t mob_alloc_len
Definition: gsm_04_08.h:879
Definition: gsm_04_08.h:1848
Definition: gsm_04_08.h:2077
Definition: gsm_04_08.h:1888
gsm48_cause_loc
Definition: gsm_04_08.h:1830
Definition: gsm_04_08.h:2031
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:826
Definition: gsm_04_08.h:1858
Definition: gsm_04_08.h:1940
Definition: gsm_04_08.h:803
Definition: gsm_04_08.h:1907
Definition: gsm_04_08.h:1876
Definition: gsm_04_08.h:1002
Definition: gsm_04_08.h:2102
uint16_t cell_identity
Definition: gsm_04_08.h:822
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:804
Definition: gsm_04_08.h:1652
bool classmark1_set
Definition: gsm_04_08.h:60
struct gsm48_classmark1 classmark1
Definition: gsm_04_08.h:1177
static const char * gsm48_chan_mode_name(enum gsm48_chan_mode val)
Definition: gsm_04_08.h:820
Definition: gsm_04_08.h:1653
Definition: gsm_04_08.h:2087
Definition: gsm_04_08.h:2166
uint8_t cm2_len
Definition: gsm_04_08.h:821
struct gsm48_req_ref req_ref2
Definition: gsm_04_08.h:1246
Definition: gsm_04_08.h:1349
Definition: gsm_04_08.h:2071
Definition: gsm_04_08.h:662
gsm48_type_of_number
Definition: gsm_04_08.h:2152
uint8_t cm2_len
Definition: gsm_04_08.h:1231
uint8_t ncc_permitted
Definition: gsm_04_08.h:823
Definition: gsm_04_08.h:1935
const struct value_string gsm48_pdisc_names[]
TS 04.08 Protocol Descriptor names.
Definition: gsm48.c:807
const struct value_string gsm48_cc_cause_names[]
TS 04.08 10.5..4.11 Call Control Cause Values.
Definition: gsm48.c:992
gsm48_cause_coding
Definition: gsm_04_08.h:1823
GSM FR V3 (FR AMR)
Definition: gsm_04_08.h:2127
Definition: gsm_04_08.h:1176
Definition: gsm_04_08.h:59
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:2123
uint8_t chan_nr
Definition: gsm_04_08.h:567
Definition: gsm_04_08.h:1657
Definition: gsm_04_08.h:2069
Definition: gsm_04_08.h:2118
GSM FR V2 (GSM EFR)
Definition: gsm_04_08.h:2126
uint8_t sres[4]
Definition: gsm_04_08.h:921
Definition: gsm_04_08.h:1832
Definition: gsm_04_08.h:1968
Definition: gsm_04_08.h:1949
Definition: gsm_04_08.h:1913
Definition: gsm_04_08.h:1874
#define GSM48_PDISC_GROUP_CC
Definition: gsm_04_08.h:1371
GSM HR V3 (HR_AMR)
Definition: gsm_04_08.h:2128
Definition: gsm_04_08.h:1962
Definition: gsm_04_08.h:2030
Definition: gsm_04_08.h:1237
union gsm48_chan_desc::@24 __attribute__((packed))
Definition: gsm_04_08.h:1847
Definition: gsm_04_08.h:2076
Definition: gsm_04_08.h:1008
Definition: gsm_04_08.h:1965
Definition: gsm_04_08.h:1803
Definition: gsm_04_08.h:1850
Definition: gsm_04_08.h:1903
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:1422
uint8_t rest[0]
Definition: gsm_04_08.h:833
Definition: gsm_04_08.h:1890
Definition: gsm_04_08.h:1801
Definition: gsm_04_08.h:1925
Definition: gsm_04_08.h:811
uint8_t l2_plen
Definition: gsm_04_08.h:1254
Definition: gsm_04_08.h:848
struct gsm48_classmark2 cm2
Definition: gsm_04_08.h:1232
Definition: gsm_04_08.h:2052
Definition: gsm_04_08.h:2097
Definition: gsm_04_08.h:1933
Definition: gsm_04_08.h:566
uint8_t mob_alloc[0]
Definition: gsm_04_08.h:836
Definition: gsm_04_08.h:1654
Definition: gsm_04_08.h:1826
Definition: gsm_04_08.h:1943
static void gsm48_barr_acc(struct gsm48_rach_control *rach_control, unsigned int acc)
Definition: gsm_04_08.h:718
Definition: gsm_04_08.h:2113
Definition: gsm_04_08.h:1977
uint8_t proto_discr
Definition: gsm_04_08.h:873
uint8_t ra_id[6]
Definition: gsm_04_08.h:842
Definition: gsm_04_08.h:1934
Definition: gsm_04_08.h:2033
static uint8_t gsm48_hdr_pdisc(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1394
Definition: gsm_04_08.h:2066
uint8_t data[0]
Definition: gsm_04_08.h:1213
Definition: gsm_04_08.h:2114
Definition: gsm_04_08.h:1230
Definition: gsm_04_08.h:1912
static uint8_t gsm48_hdr_msg_type_r98(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1437
Definition: gsm_04_08.h:2163
uint8_t data[0]
Definition: gsm_04_08.h:1186
struct gsm48_req_ref req_ref
Definition: gsm_04_08.h:877
Definition: gsm_04_08.h:1253
uint8_t rr_cause
Definition: gsm_04_08.h:1367
GSM FR V1 (GSM FR)
Definition: gsm_04_08.h:2124
uint8_t classmark3[14]
Definition: gsm_04_08.h:65
Definition: gsm_04_08.h:2051
Definition: gsm_04_08.h:1879