18 #if OSMO_IS_LITTLE_ENDIAN 24 #elif OSMO_IS_BIG_ENDIAN 26 uint8_t spare:1, rev_lev:2, es_ind:1, a5_1:1, pwr_lev:3;
32 #if OSMO_IS_LITTLE_ENDIAN 53 #elif OSMO_IS_BIG_ENDIAN 55 uint8_t spare:1, rev_lev:2, es_ind:1, a5_1:1, pwr_lev:3;
56 uint8_t spare2:1, ps_cap:1, ss_scr:2, sm_cap:1, vbs:1, vgcs:1, fc:1;
57 uint8_t cm3:1, spare4:1, lcsva_cap:1, spare3:1, solsa:1, cmsp:1, a5_3:1, a5_2:1;
67 uint8_t classmark3[14];
81 #if OSMO_IS_LITTLE_ENDIAN 113 #elif OSMO_IS_BIG_ENDIAN 115 uint8_t form_id:5, f0:1, w1_hi:2;
118 uint8_t w2_lo:1, w3_hi:7;
119 uint8_t w3_lo:2, w4_hi:6;
120 uint8_t w4_lo:2, w5_hi:6;
121 uint8_t w5_lo:2, w6_hi:6;
122 uint8_t w6_lo:2, w7_hi:6;
123 uint8_t w7_lo:2, w8_hi:6;
124 uint8_t w8_lo:1, w9:7;
125 uint8_t w10:7, w11_hi:1;
126 uint8_t w11_lo:6, w12_hi:2;
127 uint8_t w12_lo:5, w13_hi:3;
128 uint8_t w13_lo:4, w14_hi:4;
129 uint8_t w14_lo:3, w15_hi:5;
130 uint8_t w15_lo:2, w16:6;
136 #if OSMO_IS_LITTLE_ENDIAN 137 uint8_t orig_arfcn_hi:1,
139 uint8_t orig_arfcn_mid;
168 #elif OSMO_IS_BIG_ENDIAN 170 uint8_t form_id:7, orig_arfcn_hi:1;
171 uint8_t orig_arfcn_mid;
172 uint8_t orig_arfcn_lo:1, w1_hi:7;
173 uint8_t w1_lo:2, w2_hi:6;
174 uint8_t w2_lo:2, w3_hi:6;
175 uint8_t w3_lo:2, w4_hi:6;
176 uint8_t w4_lo:1, w5:7;
177 uint8_t w6:7, w7_hi:1;
178 uint8_t w7_lo:6, w8_hi:2;
179 uint8_t w8_lo:4, w9_hi:4;
180 uint8_t w9_lo:2, w10:6;
181 uint8_t w11:6, w12_hi:2;
182 uint8_t w12_lo:4, w13_hi:4;
183 uint8_t w13_lo:2, w14:6;
184 uint8_t w15:6, w16_hi:2;
185 uint8_t w16_lo:3, w17:5;
191 #if OSMO_IS_LITTLE_ENDIAN 192 uint8_t orig_arfcn_hi:1,
194 uint8_t orig_arfcn_mid;
229 #elif OSMO_IS_BIG_ENDIAN 231 uint8_t form_id:7, orig_arfcn_hi:1;
232 uint8_t orig_arfcn_mid;
233 uint8_t orig_arfcn_lo:1, w1_hi:7;
234 uint8_t w1_lo:1, w2:7;
235 uint8_t w3:7, w4_hi:1;
236 uint8_t w4_lo:5, w5_hi:3;
237 uint8_t w5_lo:3, w6_hi:5;
238 uint8_t w6_lo:1, w7:6, w8_hi:1;
239 uint8_t w8_lo:4, w9_hi:4;
240 uint8_t w9_lo:1, w10:5, w11_hi:2;
241 uint8_t w11_lo:3, w12:5;
242 uint8_t w13:5, w14_hi:3;
243 uint8_t w14_lo:2, w15:5, w16_hi:1;
244 uint8_t w16_lo:3, w17:4, w18_hi:1;
245 uint8_t w18_lo:3, w19:4, w20_hi:1;
246 uint8_t w20_lo:3, w21:4, spare:1;
252 #if OSMO_IS_LITTLE_ENDIAN 253 uint8_t orig_arfcn_hi:1,
255 uint8_t orig_arfcn_mid;
292 #elif OSMO_IS_BIG_ENDIAN 294 uint8_t form_id:7, orig_arfcn_hi:1;
295 uint8_t orig_arfcn_mid;
296 uint8_t orig_arfcn_lo:1, w1:7;
297 uint8_t w2:6, w3_hi:2;
298 uint8_t w3_lo:4, w4_hi:4;
299 uint8_t w4_lo:1, w5:5, w6_hi:2;
300 uint8_t w6_lo:3, w7:5;
302 uint8_t w10:4, w11:4;
303 uint8_t w12:4, w13:4;
304 uint8_t w14:4, w15:4;
305 uint8_t w16:3, w17:3, w18_hi:2;
306 uint8_t w18_lo:1, w19:3, w20:3, w21_hi:1;
307 uint8_t w21_lo:2, w22:3, w23:3;
308 uint8_t w24:3, w25:3, w26_hi:2;
309 uint8_t w26_lo:1, w27:3, w28:3, spare:1;
315 #if OSMO_IS_LITTLE_ENDIAN 316 uint8_t orig_arfcn_hi:1,
318 uint8_t orig_arfcn_mid;
321 uint8_t rrfcn8_111[13];
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, rrfcn1_7:7;
327 uint8_t rrfcn8_111[13];
336 #if OSMO_IS_LITTLE_ENDIAN 342 #elif OSMO_IS_BIG_ENDIAN 344 uint8_t tsc:3, h:1, maio_high:4;
345 uint8_t maio_low:2, hsn:6;
349 #if OSMO_IS_LITTLE_ENDIAN 350 uint8_t arfcn_high:2,
355 #elif OSMO_IS_BIG_ENDIAN 357 uint8_t tsc:3, h:1, spare:2, arfcn_high:2;
366 #if OSMO_IS_LITTLE_ENDIAN 367 uint8_t rxlev_full:6,
373 uint8_t no_nc_n_hi:1,
379 uint8_t bsic_nc1_hi:3,
381 uint8_t rxlev_nc2_hi:5,
383 uint8_t bsic_nc2_hi:2,
386 uint8_t rxlev_nc3_hi:4,
388 uint8_t bsic_nc3_hi:1,
391 uint8_t rxlev_nc4_hi:3,
393 uint8_t bcch_f_nc4:5,
395 uint8_t rxlev_nc5_hi:2,
397 uint8_t bcch_f_nc5_hi:4,
399 uint8_t rxlev_nc6_hi:1,
402 uint8_t bcch_f_nc6_hi:3,
406 #elif OSMO_IS_BIG_ENDIAN 408 uint8_t ba_used:1, dtx_used:1, rxlev_full:6;
409 uint8_t spare:1, meas_valid:1, rxlev_sub:6;
410 uint8_t spare2:1, rxqual_full:3, rxqual_sub:3, no_nc_n_hi:1;
411 uint8_t no_nc_n_lo:2, rxlev_nc1:6;
412 uint8_t bcch_f_nc1:5, bsic_nc1_hi:3;
413 uint8_t bsic_nc1_lo:3, rxlev_nc2_hi:5;
414 uint8_t rxlev_nc2_lo:1, bcch_f_nc2:5, bsic_nc2_hi:2;
415 uint8_t bsic_nc2_lo:4, rxlev_nc3_hi:4;
416 uint8_t rxlev_nc3_lo:2, bcch_f_nc3:5, bsic_nc3_hi:1;
417 uint8_t bsic_nc3_lo:5, rxlev_nc4_hi:3;
418 uint8_t rxlev_nc4_lo:3, bcch_f_nc4:5;
419 uint8_t bsic_nc4:6, rxlev_nc5_hi:2;
420 uint8_t rxlev_nc5_lo:4, bcch_f_nc5_hi:4;
421 uint8_t bcch_f_nc5_lo:1, bsic_nc5:6, rxlev_nc6_hi:1;
422 uint8_t rxlev_nc6_lo:5, bcch_f_nc6_hi:3;
423 uint8_t bcch_f_nc6_lo:2, bsic_nc6:6;
429 #if OSMO_IS_LITTLE_ENDIAN 443 #elif OSMO_IS_BIG_ENDIAN 445 uint8_t ver:3, nscb:1, icmi:1, spare:1,
smod:2;
446 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;
452 #if OSMO_IS_LITTLE_ENDIAN 453 uint8_t power_level:5,
456 #elif OSMO_IS_BIG_ENDIAN 458 uint8_t atc:1, spare:2, power_level:5;
464 #if OSMO_IS_LITTLE_ENDIAN 471 #elif OSMO_IS_BIG_ENDIAN 473 uint8_t max_trans:2, tx_integer:4, cell_bar:1, re:1;
488 rach_control->t2 |= (1 << (acc - 8));
490 rach_control->t3 |= (1 << (acc));
502 rach_control->t2 &= ~(1 << (acc - 8));
504 rach_control->t3 &= ~(1 << (acc));
517 return (rach_control->t2 & (1 << (acc - 8))) != 0;
518 return (rach_control->t3 & (1 << (acc))) != 0;
523 #if OSMO_IS_LITTLE_ENDIAN 529 #elif OSMO_IS_BIG_ENDIAN 532 uint8_t t1:5, t3_high:3;
533 uint8_t t3_low:3, t2:5;
539 #if OSMO_IS_LITTLE_ENDIAN 544 #elif OSMO_IS_BIG_ENDIAN 546 uint8_t t1:5, t3_high:3;
547 uint8_t t3_low:3, t2:5;
553 #if OSMO_IS_LITTLE_ENDIAN 558 #elif OSMO_IS_BIG_ENDIAN 560 uint8_t sync_ie:4, nci:1, rot:1, si:2;
615 #if OSMO_IS_LITTLE_ENDIAN 620 #elif OSMO_IS_BIG_ENDIAN 622 uint8_t arfcn_hi:2, ncc:3, bcc:3;
651 #if OSMO_IS_LITTLE_ENDIAN 663 #elif OSMO_IS_BIG_ENDIAN 665 uint8_t key_seq:4, spare:4;
686 #if OSMO_IS_LITTLE_ENDIAN 690 #elif OSMO_IS_BIG_ENDIAN 692 uint8_t spare:4, key_seq:4;
704 #if OSMO_IS_LITTLE_ENDIAN 711 #elif OSMO_IS_BIG_ENDIAN 713 uint8_t key_seq:4,
type:4;
730 #if OSMO_IS_LITTLE_ENDIAN 732 uint8_t rr_protocol_discriminator :4,
734 uint8_t system_information;
735 #elif OSMO_IS_BIG_ENDIAN 738 uint8_t skip_indicator:4, rr_protocol_discriminator:4;
739 uint8_t system_information;
745 #if OSMO_IS_LITTLE_ENDIAN 746 uint8_t ms_txpwr_max_ccch:5,
748 uint8_t rxlev_acc_min:6,
751 #elif OSMO_IS_BIG_ENDIAN 753 uint8_t cell_resel_hyst:3, ms_txpwr_max_ccch:5;
754 uint8_t acs:1, neci:1, rxlev_acc_min:6;
760 #if OSMO_IS_LITTLE_ENDIAN 761 uint8_t ccch_conf :3,
765 uint8_t bs_pa_mfrms : 3,
770 #elif OSMO_IS_BIG_ENDIAN 772 uint8_t mscr:1, att:1, bs_ag_blks_res:3, ccch_conf:3;
773 uint8_t spare_2:1, cbq3:2, spare_1:2, bs_pa_mfrms:3;
787 #if OSMO_IS_LITTLE_ENDIAN 788 uint8_t radio_link_timeout:4,
793 #elif OSMO_IS_BIG_ENDIAN 795 uint8_t d:1, pwrc:1, dtx:2, radio_link_timeout:4;
801 #if OSMO_IS_LITTLE_ENDIAN 802 uint8_t cm_service_type : 4,
814 #elif OSMO_IS_BIG_ENDIAN 816 uint8_t cipher_key_seq:4, cm_service_type:4;
892 #if OSMO_IS_LITTLE_ENDIAN 893 uint8_t rr_protocol_discriminator :4,
895 uint8_t system_information;
897 #elif OSMO_IS_BIG_ENDIAN 899 uint8_t skip_indicator:4, rr_protocol_discriminator:4;
900 uint8_t system_information;
901 uint8_t bcch_frequency_list[16];
907 #if OSMO_IS_LITTLE_ENDIAN 908 uint8_t rr_protocol_discriminator :4,
910 uint8_t system_information;
912 #elif OSMO_IS_BIG_ENDIAN 914 uint8_t skip_indicator:4, rr_protocol_discriminator:4;
915 uint8_t system_information;
916 uint8_t bcch_frequency_list[16];
922 #if OSMO_IS_LITTLE_ENDIAN 923 uint8_t rr_protocol_discriminator :4,
925 uint8_t system_information;
927 #elif OSMO_IS_BIG_ENDIAN 929 uint8_t skip_indicator:4, rr_protocol_discriminator:4;
930 uint8_t system_information;
931 uint8_t bcch_frequency_list[16];
937 #if OSMO_IS_LITTLE_ENDIAN 938 uint8_t rr_protocol_discriminator :4,
940 uint8_t system_information;
946 #elif OSMO_IS_BIG_ENDIAN 948 uint8_t skip_indicator:4, rr_protocol_discriminator:4;
949 uint8_t system_information;
954 uint8_t rest_octets[0];
1007 #if OSMO_IS_LITTLE_ENDIAN 1012 #elif OSMO_IS_BIG_ENDIAN 1014 uint8_t spare:3, cr:1, alg_id:3, sc:1;
1060 #if OSMO_IS_LITTLE_ENDIAN 1069 #elif OSMO_IS_BIG_ENDIAN 1074 uint8_t cneed2:2, cneed1:2, spare:2, pag_mode:2;
1081 #if OSMO_IS_LITTLE_ENDIAN 1092 #elif OSMO_IS_BIG_ENDIAN 1097 uint8_t cneed2:2, cneed1:2, spare:2, pag_mode:2;
1106 #if OSMO_IS_LITTLE_ENDIAN 1122 #elif OSMO_IS_BIG_ENDIAN 1127 uint8_t cneed2:2, cneed1:2, spare:2, pag_mode:2;
1132 uint8_t spare2:4, cneed4:2, cneed3:2;
1139 #if OSMO_IS_LITTLE_ENDIAN 1145 #elif OSMO_IS_BIG_ENDIAN 1147 uint8_t spare:5, key_seq:3;
1160 #define GSM48_PDISC_GROUP_CC 0x00 1161 #define GSM48_PDISC_BCAST_CC 0x01 1162 #define GSM48_PDISC_PDSS1 0x02 1163 #define GSM48_PDISC_CC 0x03 1164 #define GSM48_PDISC_PDSS2 0x04 1165 #define GSM48_PDISC_GTTP 0x04 1166 #define GSM48_PDISC_MM 0x05 1167 #define GSM48_PDISC_RR 0x06 1168 #define GSM48_PDISC_MM_GPRS 0x08 1169 #define GSM48_PDISC_SMS 0x09 1170 #define GSM48_PDISC_SM_GPRS 0x0a 1171 #define GSM48_PDISC_NC_SS 0x0b 1172 #define GSM48_PDISC_LOC 0x0c 1173 #define GSM48_PDISC_EXTEND 0x0e 1174 #define GSM48_PDISC_TEST 0x0f 1175 #define GSM48_PDISC_MASK 0x0f 1204 #define GSM48_TA_INVALID 220 1270 #define gsm48_hdr_msg_type gsm48_hdr_msg_type_r99 1273 #define GSM48_MT_RR_INIT_REQ 0x3c 1274 #define GSM48_MT_RR_ADD_ASS 0x3b 1275 #define GSM48_MT_RR_IMM_ASS 0x3f 1276 #define GSM48_MT_RR_IMM_ASS_EXT 0x39 1277 #define GSM48_MT_RR_IMM_ASS_REJ 0x3a 1278 #define GSM48_MT_RR_DTM_ASS_FAIL 0x48 1279 #define GSM48_MT_RR_DTM_REJECT 0x49 1280 #define GSM48_MT_RR_DTM_REQUEST 0x4A 1281 #define GSM48_MT_RR_PACKET_ASS 0x4B 1283 #define GSM48_MT_RR_CIPH_M_CMD 0x35 1284 #define GSM48_MT_RR_CIPH_M_COMPL 0x32 1286 #define GSM48_MT_RR_CFG_CHG_CMD 0x30 1287 #define GSM48_MT_RR_CFG_CHG_ACK 0x31 1288 #define GSM48_MT_RR_CFG_CHG_REJ 0x33 1290 #define GSM48_MT_RR_ASS_CMD 0x2e 1291 #define GSM48_MT_RR_ASS_COMPL 0x29 1292 #define GSM48_MT_RR_ASS_FAIL 0x2f 1293 #define GSM48_MT_RR_HANDO_CMD 0x2b 1294 #define GSM48_MT_RR_HANDO_COMPL 0x2c 1295 #define GSM48_MT_RR_HANDO_FAIL 0x28 1296 #define GSM48_MT_RR_HANDO_INFO 0x2d 1297 #define GSM48_MT_RR_HANDO_INFO 0x2d 1298 #define GSM48_MT_RR_DTM_ASS_CMD 0x4c 1300 #define GSM48_MT_RR_CELL_CHG_ORDER 0x08 1301 #define GSM48_MT_RR_PDCH_ASS_CMD 0x23 1303 #define GSM48_MT_RR_CHAN_REL 0x0d 1304 #define GSM48_MT_RR_PART_REL 0x0a 1305 #define GSM48_MT_RR_PART_REL_COMP 0x0f 1307 #define GSM48_MT_RR_PAG_REQ_1 0x21 1308 #define GSM48_MT_RR_PAG_REQ_2 0x22 1309 #define GSM48_MT_RR_PAG_REQ_3 0x24 1310 #define GSM48_MT_RR_PAG_RESP 0x27 1311 #define GSM48_MT_RR_NOTIF_NCH 0x20 1312 #define GSM48_MT_RR_NOTIF_FACCH 0x25 1313 #define GSM48_MT_RR_NOTIF_RESP 0x26 1314 #define GSM48_MT_RR_PACKET_NOTIF 0x4e 1315 #define GSM48_MT_RR_UTRAN_CLSM_CHG 0x60 1316 #define GSM48_MT_RR_CDMA2K_CLSM_CHG 0x62 1317 #define GSM48_MT_RR_IS_TO_UTRAN_HANDO 0x63 1318 #define GSM48_MT_RR_IS_TO_CDMA2K_HANDO 0x64 1320 #define GSM48_MT_RR_SYSINFO_8 0x18 1321 #define GSM48_MT_RR_SYSINFO_1 0x19 1322 #define GSM48_MT_RR_SYSINFO_2 0x1a 1323 #define GSM48_MT_RR_SYSINFO_3 0x1b 1324 #define GSM48_MT_RR_SYSINFO_4 0x1c 1325 #define GSM48_MT_RR_SYSINFO_5 0x1d 1326 #define GSM48_MT_RR_SYSINFO_6 0x1e 1327 #define GSM48_MT_RR_SYSINFO_7 0x1f 1329 #define GSM48_MT_RR_SYSINFO_2bis 0x02 1330 #define GSM48_MT_RR_SYSINFO_2ter 0x03 1331 #define GSM48_MT_RR_SYSINFO_2quater 0x07 1332 #define GSM48_MT_RR_SYSINFO_5bis 0x05 1333 #define GSM48_MT_RR_SYSINFO_5ter 0x06 1334 #define GSM48_MT_RR_SYSINFO_9 0x04 1335 #define GSM48_MT_RR_SYSINFO_13 0x00 1337 #define GSM48_MT_RR_SYSINFO_16 0x3d 1338 #define GSM48_MT_RR_SYSINFO_17 0x3e 1340 #define GSM48_MT_RR_SYSINFO_18 0x40 1341 #define GSM48_MT_RR_SYSINFO_19 0x41 1342 #define GSM48_MT_RR_SYSINFO_20 0x42 1344 #define GSM48_MT_RR_CHAN_MODE_MODIF 0x10 1345 #define GSM48_MT_RR_STATUS 0x12 1346 #define GSM48_MT_RR_CHAN_MODE_MODIF_ACK 0x17 1347 #define GSM48_MT_RR_FREQ_REDEF 0x14 1348 #define GSM48_MT_RR_MEAS_REP 0x15 1349 #define GSM48_MT_RR_CLSM_CHG 0x16 1350 #define GSM48_MT_RR_CLSM_ENQ 0x13 1351 #define GSM48_MT_RR_EXT_MEAS_REP 0x36 1352 #define GSM48_MT_RR_EXT_MEAS_REP_ORD 0x37 1353 #define GSM48_MT_RR_GPRS_SUSP_REQ 0x34 1354 #define GSM48_MT_RR_DTM_INFO 0x4d 1356 #define GSM48_MT_RR_VGCS_UPL_GRANT 0x09 1357 #define GSM48_MT_RR_UPLINK_RELEASE 0x0e 1358 #define GSM48_MT_RR_UPLINK_FREE 0x0c 1359 #define GSM48_MT_RR_UPLINK_BUSY 0x2a 1360 #define GSM48_MT_RR_TALKER_IND 0x11 1362 #define GSM48_MT_RR_APP_INFO 0x38 1365 #define GSM48_MT_MM_IMSI_DETACH_IND 0x01 1366 #define GSM48_MT_MM_LOC_UPD_ACCEPT 0x02 1367 #define GSM48_MT_MM_LOC_UPD_REJECT 0x04 1368 #define GSM48_MT_MM_LOC_UPD_REQUEST 0x08 1370 #define GSM48_MT_MM_AUTH_REJ 0x11 1371 #define GSM48_MT_MM_AUTH_REQ 0x12 1372 #define GSM48_MT_MM_AUTH_RESP 0x14 1373 #define GSM48_MT_MM_AUTH_FAIL 0x1c 1374 #define GSM48_MT_MM_ID_REQ 0x18 1375 #define GSM48_MT_MM_ID_RESP 0x19 1376 #define GSM48_MT_MM_TMSI_REALL_CMD 0x1a 1377 #define GSM48_MT_MM_TMSI_REALL_COMPL 0x1b 1379 #define GSM48_MT_MM_CM_SERV_ACC 0x21 1380 #define GSM48_MT_MM_CM_SERV_REJ 0x22 1381 #define GSM48_MT_MM_CM_SERV_ABORT 0x23 1382 #define GSM48_MT_MM_CM_SERV_REQ 0x24 1383 #define GSM48_MT_MM_CM_SERV_PROMPT 0x25 1384 #define GSM48_MT_MM_CM_REEST_REQ 0x28 1385 #define GSM48_MT_MM_ABORT 0x29 1387 #define GSM48_MT_MM_NULL 0x30 1388 #define GSM48_MT_MM_STATUS 0x31 1389 #define GSM48_MT_MM_INFO 0x32 1392 #define GSM48_MT_CC_ALERTING 0x01 1393 #define GSM48_MT_CC_CALL_CONF 0x08 1394 #define GSM48_MT_CC_CALL_PROC 0x02 1395 #define GSM48_MT_CC_CONNECT 0x07 1396 #define GSM48_MT_CC_CONNECT_ACK 0x0f 1397 #define GSM48_MT_CC_EMERG_SETUP 0x0e 1398 #define GSM48_MT_CC_PROGRESS 0x03 1399 #define GSM48_MT_CC_ESTAB 0x04 1400 #define GSM48_MT_CC_ESTAB_CONF 0x06 1401 #define GSM48_MT_CC_RECALL 0x0b 1402 #define GSM48_MT_CC_START_CC 0x09 1403 #define GSM48_MT_CC_SETUP 0x05 1405 #define GSM48_MT_CC_MODIFY 0x17 1406 #define GSM48_MT_CC_MODIFY_COMPL 0x1f 1407 #define GSM48_MT_CC_MODIFY_REJECT 0x13 1408 #define GSM48_MT_CC_USER_INFO 0x10 1409 #define GSM48_MT_CC_HOLD 0x18 1410 #define GSM48_MT_CC_HOLD_ACK 0x19 1411 #define GSM48_MT_CC_HOLD_REJ 0x1a 1412 #define GSM48_MT_CC_RETR 0x1c 1413 #define GSM48_MT_CC_RETR_ACK 0x1d 1414 #define GSM48_MT_CC_RETR_REJ 0x1e 1416 #define GSM48_MT_CC_DISCONNECT 0x25 1417 #define GSM48_MT_CC_RELEASE 0x2d 1418 #define GSM48_MT_CC_RELEASE_COMPL 0x2a 1420 #define GSM48_MT_CC_CONG_CTRL 0x39 1421 #define GSM48_MT_CC_NOTIFY 0x3e 1422 #define GSM48_MT_CC_STATUS 0x3d 1423 #define GSM48_MT_CC_STATUS_ENQ 0x34 1424 #define GSM48_MT_CC_START_DTMF 0x35 1425 #define GSM48_MT_CC_STOP_DTMF 0x31 1426 #define GSM48_MT_CC_STOP_DTMF_ACK 0x32 1427 #define GSM48_MT_CC_START_DTMF_ACK 0x36 1428 #define GSM48_MT_CC_START_DTMF_REJ 0x37 1429 #define GSM48_MT_CC_FACILITY 0x3a 1457 #define GSM48_PM_MASK 0x03 1458 #define GSM48_PM_NORMAL 0x00 1459 #define GSM48_PM_EXTENDED 0x01 1460 #define GSM48_PM_REORG 0x02 1461 #define GSM48_PM_SAME 0x03 1464 #define GSM48_LUPD_NORMAL 0x0 1465 #define GSM48_LUPD_PERIODIC 0x1 1466 #define GSM48_LUPD_IMSI_ATT 0x2 1467 #define GSM48_LUPD_RESERVED 0x3 1474 #define GSM_MI_TYPE_MASK 0x07 1475 #define GSM_MI_TYPE_NONE 0x00 1476 #define GSM_MI_TYPE_IMSI 0x01 1477 #define GSM_MI_TYPE_IMEI 0x02 1478 #define GSM_MI_TYPE_IMEISV 0x03 1479 #define GSM_MI_TYPE_TMSI 0x04 1480 #define GSM_MI_ODD 0x08 1482 #define GSM48_IE_MOBILE_ID 0x17 1483 #define GSM48_IE_NAME_LONG 0x43 1484 #define GSM48_IE_NAME_SHORT 0x45 1485 #define GSM48_IE_UTC 0x46 1486 #define GSM48_IE_NET_TIME_TZ 0x47 1487 #define GSM48_IE_LSA_IDENT 0x48 1488 #define GSM48_IE_NET_DST 0x49 1490 #define GSM48_IE_BEARER_CAP 0x04 1491 #define GSM48_IE_CAUSE 0x08 1492 #define GSM48_IE_CC_CAP 0x15 1493 #define GSM48_IE_ALERT 0x19 1494 #define GSM48_IE_FACILITY 0x1c 1495 #define GSM48_IE_PROGR_IND 0x1e 1496 #define GSM48_IE_AUX_STATUS 0x24 1497 #define GSM48_IE_NOTIFY 0x27 1498 #define GSM48_IE_KPD_FACILITY 0x2c 1499 #define GSM48_IE_SIGNAL 0x34 1500 #define GSM48_IE_CONN_BCD 0x4c 1501 #define GSM48_IE_CONN_SUB 0x4d 1502 #define GSM48_IE_CALLING_BCD 0x5c 1503 #define GSM48_IE_CALLING_SUB 0x5d 1504 #define GSM48_IE_CALLED_BCD 0x5e 1505 #define GSM48_IE_CALLED_SUB 0x6d 1506 #define GSM48_IE_REDIR_BCD 0x74 1507 #define GSM48_IE_REDIR_SUB 0x75 1508 #define GSM48_IE_LOWL_COMPAT 0x7c 1509 #define GSM48_IE_HIGHL_COMPAT 0x7d 1510 #define GSM48_IE_USER_USER 0x7e 1511 #define GSM48_IE_SS_VERS 0x7f 1512 #define GSM48_IE_MORE_DATA 0xa0 1513 #define GSM48_IE_CLIR_SUPP 0xa1 1514 #define GSM48_IE_CLIR_INVOC 0xa2 1515 #define GSM48_IE_REV_C_SETUP 0xa3 1516 #define GSM48_IE_REPEAT_CIR 0xd1 1517 #define GSM48_IE_REPEAT_SEQ 0xd3 1520 #define GSM48_CAUSE_CS_GSM 0x60 1524 #define GSM48_IE_VGCS_TARGET 0x01 1526 #define GSM48_IE_FRQSHORT_AFTER 0x02 1527 #define GSM48_IE_MUL_RATE_CFG 0x03 1528 #define GSM48_IE_FREQ_L_AFTER 0x05 1529 #define GSM48_IE_MSLOT_DESC 0x10 1530 #define GSM48_IE_CHANMODE_2 0x11 1531 #define GSM48_IE_FRQSHORT_BEFORE 0x12 1533 #define GSM48_IE_CHANMODE_3 0x13 1534 #define GSM48_IE_CHANMODE_4 0x14 1535 #define GSM48_IE_CHANMODE_5 0x15 1536 #define GSM48_IE_CHANMODE_6 0x16 1537 #define GSM48_IE_CHANMODE_7 0x17 1538 #define GSM48_IE_CHANMODE_8 0x18 1539 #define GSM48_IE_CHANDESC_2 0x64 1540 #define GSM48_IE_MA_AFTER 0x72 1541 #define GSM48_IE_START_TIME 0x7c 1542 #define GSM48_IE_FREQ_L_BEFORE 0x19 1544 #define GSM48_IE_CH_DESC_1_BEFORE 0x1c 1546 #define GSM48_IE_CH_DESC_2_BEFORE 0x1d 1548 #define GSM48_IE_F_CH_SEQ_BEFORE 0x1e 1550 #define GSM48_IE_CLASSMARK3 0x20 1551 #define GSM48_IE_MA_BEFORE 0x21 1552 #define GSM48_IE_RR_PACKET_UL 0x22 1553 #define GSM48_IE_RR_PACKET_DL 0x23 1554 #define GSM48_IE_CELL_CH_DESC 0x62 1555 #define GSM48_IE_CHANMODE_1 0x63 1556 #define GSM48_IE_CHDES_2_AFTER 0x64 1557 #define GSM48_IE_MODE_SEC_CH 0x66 1558 #define GSM48_IE_F_CH_SEQ_AFTER 0x69 1559 #define GSM48_IE_MA_AFTER 0x72 1560 #define GSM48_IE_BA_RANGE 0x73 1561 #define GSM48_IE_GROUP_CHDES 0x74 1562 #define GSM48_IE_BA_LIST_PREF 0x75 1563 #define GSM48_IE_MOB_OVSERV_DIF 0x77 1564 #define GSM48_IE_CELL_SEL_IND_AFTER_REL 0x77 1565 #define GSM48_IE_REALTIME_DIFF 0x7b 1566 #define GSM48_IE_START_TIME 0x7c 1567 #define GSM48_IE_INDIVIDUAL_PRIORITIES 0x7c 1568 #define GSM48_IE_TIMING_ADVANCE 0x7d 1569 #define GSM48_IE_GROUP_CIP_SEQ 0x80 1570 #define GSM48_IE_CIP_MODE_SET 0x90 1571 #define GSM48_IE_GPRS_RESUMPT 0xc0 1572 #define GSM48_IE_SYNC_IND 0xd0 1574 #define GSM48_IE_CBCH_CHAN_DESC 0x64 1575 #define GSM48_IE_CBCH_MOB_AL 0x72 1578 #define GSM48_IE_LOCATION_AREA 0x13 1579 #define GSM48_IE_AUTN 0x20 1580 #define GSM48_IE_AUTH_RES_EXT 0x21 1581 #define GSM48_IE_AUTS 0x22 1582 #define GSM48_IE_PRIORITY_LEV 0x80 1583 #define GSM48_IE_FOLLOW_ON_PROC 0xa1 1584 #define GSM48_IE_CTS_PERMISSION 0xa2 1773 #define GSM48_T301 180, 0 1774 #define GSM48_T303 30, 0 1775 #define GSM48_T305 30, 0 1776 #define GSM48_T306 30, 0 1777 #define GSM48_T308 10, 0 1778 #define GSM48_T310 30, 0 1779 #define GSM48_T313 30, 0 1780 #define GSM48_T323 30, 0 1781 #define GSM48_T331 30, 0 1782 #define GSM48_T333 30, 0 1783 #define GSM48_T334 25, 0 1784 #define GSM48_T338 30, 0 1785 #define GSM48_T303_MS 30, 0 1786 #define GSM48_T305_MS 30, 0 1787 #define GSM48_T308_MS 30, 0 1788 #define GSM48_T310_MS 30, 0 1789 #define GSM48_T313_MS 30, 0 1790 #define GSM48_T323_MS 30, 0 1791 #define GSM48_T332_MS 30, 0 1792 #define GSM48_T335_MS 30, 0 1795 #define GSM_CSTATE_NULL 0 1796 #define GSM_CSTATE_INITIATED 1 1797 #define GSM_CSTATE_MM_CONNECTION_PEND 2 1798 #define GSM_CSTATE_MO_CALL_PROC 3 1799 #define GSM_CSTATE_CALL_DELIVERED 4 1800 #define GSM_CSTATE_CALL_PRESENT 6 1801 #define GSM_CSTATE_CALL_RECEIVED 7 1802 #define GSM_CSTATE_CONNECT_REQUEST 8 1803 #define GSM_CSTATE_MO_TERM_CALL_CONF 9 1804 #define GSM_CSTATE_ACTIVE 10 1805 #define GSM_CSTATE_DISCONNECT_REQ 12 1806 #define GSM_CSTATE_DISCONNECT_IND 12 1807 #define GSM_CSTATE_RELEASE_REQ 19 1808 #define GSM_CSTATE_MO_ORIG_MODIFY 26 1809 #define GSM_CSTATE_MO_TERM_MODIFY 27 1810 #define GSM_CSTATE_CONNECT_IND 28 1812 #define SBIT(a) (1 << a) 1813 #define ALL_STATES 0xffffffff 1816 #define GSM_LAC_RESERVED_DETACHED 0x0 1817 #define GSM_LAC_RESERVED_ALL_BTS 0xfffe 1926 #define GSM48_TMSI_LEN 5 1927 #define GSM48_MID_TMSI_LEN (GSM48_TMSI_LEN + 2) 1928 #define GSM48_MI_SIZE 32 1937 #define GSM48_CELL_CHAN_DESC_SIZE 16 1939 #define GSM_MACBLOCK_LEN 23 1940 #define GSM_MACBLOCK_PADDING 0x2b Definition: gsm_04_08.h:590
gsm48_bcap_parity
Definition: gsm_04_08.h:1877
uint16_t lac
Definition: gsm_04_08.h:681
Definition: gsm_04_08.h:1606
Definition: gsm_04_08.h:1879
Definition: gsm_04_08.h:1006
Definition: gsm_04_08.h:576
Definition: gsm_04_08.h:1680
uint8_t msg_type
Definition: gsm_04_08.h:589
Definition: gsm_04_08.h:979
Definition: gsm_04_08.h:1945
uint8_t mi[0]
Definition: gsm_04_08.h:589
Definition: gsm_04_08.h:722
gsm48_bcap_rrq
Definition: gsm_04_08.h:1841
Definition: gsm_04_08.h:1663
Definition: gsm_04_08.h:1741
Definition: gsm_04_08.h:1692
Definition: gsm_04_08.h:1666
Definition: gsm_04_08.h:1732
Definition: gsm_04_08.h:1948
Definition: gsm_04_08.h:1947
gsm48_numbering_plan
Definition: gsm_04_08.h:1953
bool osmo_gsm48_classmark1_is_r99(const struct gsm48_classmark1 *cm1)
Definition: gsm48.c:1244
Definition: gsm_04_08.h:1713
Definition: gsm_04_08.h:1605
Definition: gsm_04_08.h:1682
gsm48_bcap_sig_access
Definition: gsm_04_08.h:1856
uint8_t type
Definition: gsm_08_08.h:469
static int32_t smod(int32_t n, int32_t m)
Definition: gsm48_ie.c:852
uint8_t wait_ind4
Definition: gsm_04_08.h:1054
Definition: gsm_04_08.h:1689
Definition: gsm_04_08.h:1595
Definition: gsm_04_08.h:606
Definition: gsm_04_08.h:1640
Definition: gsm_04_08.h:1618
Definition: gsm_04_08.h:1669
struct osmo_gsm48_classmark __attribute__
Definition: gsm_04_08.h:1684
gsm48_chan_mode
Definition: gsm_04_08.h:574
Definition: gsm_04_08.h:628
Definition: gsm_04_08.h:1155
uint8_t l2_plen
Definition: gsm_04_08.h:587
Definition: gsm_04_08.h:538
Definition: gsm_04_08.h:1717
Definition: gsm_04_08.h:1752
Definition: gsm_04_08.h:1660
gsm48_rr_cause
Definition: gsm_04_08.h:1634
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:644
Definition: gsm_04_08.h:1685
Definition: gsm_04_08.h:1699
Definition: gsm_04_08.h:582
Definition: gsm_04_08.h:1887
uint8_t mob_alloc_len
Definition: gsm_04_08.h:1037
const char * get_value_string(const struct value_string *vs, uint32_t val)
Definition: gsm_04_08.h:1593
char * gsm48_pdisc_msgtype_name_c(const void *ctx, uint8_t pdisc, uint8_t msg_type)
Compose a string naming the message type for given protocol, in a dynamically-allocated buffer...
Definition: gsm48.c:1164
Definition: gsm_04_08.h:1678
Definition: gsm_04_08.h:1729
Definition: gsm_04_08.h:575
Definition: gsm_04_08.h:1608
gsm48_bcap_user_rate
Definition: gsm_04_08.h:1866
Definition: gsm_04_08.h:1644
Definition: gsm_04_08.h:580
Definition: gsm_04_08.h:1754
uint8_t rr_cause
Definition: gsm_04_08.h:985
uint8_t ho_ref
Definition: gsm_04_08.h:631
Definition: gsm_04_08.h:1637
Definition: gsm_04_08.h:1697
Definition: gsm_04_08.h:1609
Definition: gsm_04_08.h:1604
uint8_t wait_ind1
Definition: gsm_04_08.h:1048
Definition: gsm_04_08.h:1760
Definition: gsm_04_08.h:1959
Definition: gsm_04_08.h:1764
static uint8_t gsm48_hdr_msg_type_r99(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1246
Definition: gsm_04_08.h:1635
gsm48_reject_value
Definition: gsm_04_08.h:1712
Definition: gsm_04_08.h:1739
Definition: gsm_04_08.h:1662
Definition: gsm_04_08.h:800
Definition: gsm_04_08.h:1668
Definition: gsm_04_08.h:1688
Definition: gsm_04_08.h:1881
Definition: gsm_04_08.h:1650
Definition: gsm_04_08.h:1622
Definition: gsm_04_08.h:1762
gsm48_bcap_tmod
Definition: gsm_04_08.h:1830
Definition: gsm_04_08.h:314
Definition: gsm_04_08.h:1664
Definition: gsm_04_08.h:1714
uint8_t ext_bcch_frequency_list[16]
Definition: gsm_04_08.h:588
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:530
static bool gsm48_acc_is_barred(struct gsm48_rach_control *rach_control, unsigned int acc)
Definition: gsm_04_08.h:513
gsm48_bcap_modem_type
Definition: gsm_04_08.h:1900
uint8_t proto_discr
Definition: gsm_04_08.h:723
Definition: gsm_04_08.h:1677
Definition: gsm_04_08.h:1648
Definition: gsm_04_08.h:1657
Definition: gsm_04_08.h:1722
uint8_t options[0]
Definition: gsm_04_08.h:590
Definition: gsm_04_08.h:1610
Definition: gsm_04_08.h:1105
Definition: gsm_04_08.h:1691
#define GSM48_PDISC_BCAST_CC
Definition: gsm_04_08.h:1161
Definition: gsm_04_08.h:1852
gsm48_signal_val
Definition: gsm_04_08.h:1599
uint8_t mode
Definition: gsm_04_08.h:571
Definition: gsm_04_08.h:1901
Definition: gsm_04_08.h:1895
Definition: gsm_04_08.h:1861
Definition: gsm_04_08.h:1602
Definition: gsm_04_08.h:1767
uint8_t ra_id[6]
Definition: gsm_04_08.h:588
uint8_t wait_ind3
Definition: gsm_04_08.h:1052
static void gsm48_allow_acc(struct gsm48_rach_control *rach_control, unsigned int acc)
Definition: gsm_04_08.h:498
Definition: gsm_04_08.h:781
Definition: gsm_04_08.h:1823
uint8_t page_mode
Definition: gsm_04_08.h:1046
Definition: gsm_04_08.h:1872
Definition: gsm_04_08.h:1627
Definition: gsm_04_08.h:1958
Definition: gsm_04_08.h:1956
gsm48_dtx_mode
Definition: gsm_04_08.h:778
Definition: gsm_04_08.h:1615
Definition: gsm_04_08.h:1858
#define GSM48_PDISC_CC
Definition: gsm_04_08.h:1163
uint8_t mob_alloc_len
Definition: gsm_04_08.h:601
const struct value_string gsm48_mm_msgtype_names[]
TS 04.08 MM Message Type names.
Definition: gsm48.c:971
Definition: gsm_04_08.h:463
uint8_t timing_advance1
Definition: gsm_04_08.h:1033
Definition: gsm_04_08.h:1702
uint8_t cell_channel_description[16]
Definition: gsm_04_08.h:588
Definition: gsm_04_08.h:598
Definition: gsm_04_08.h:31
uint8_t rr_cause
Definition: gsm_04_08.h:1001
gsm48_cc_cause
Definition: gsm_04_08.h:1655
Definition: gsm_04_08.h:1651
Definition: gsm_04_08.h:1696
#define GSM48_PDISC_NC_SS
Definition: gsm_04_08.h:1171
Definition: gsm_04_08.h:1675
Definition: gsm_04_08.h:1647
Definition: gsm_04_08.h:1683
Definition: gsm_04_08.h:1844
struct gsm48_req_ref req_ref3
Definition: gsm_04_08.h:595
const struct value_string gsm48_cc_msgtype_names[]
TS 04.08 CC Message Type names.
Definition: gsm48.c:1001
static const char * gsm48_pdisc_name(uint8_t val)
Definition: gsm_04_08.h:1178
Definition: gsm_04_08.h:190
uint8_t proto_discr
Definition: gsm_04_08.h:1044
Definition: gsm_04_08.h:1730
Definition: gsm_04_08.h:1931
Definition: gsm_04_08.h:1882
static uint8_t gsm48_hdr_trans_id_no_ti(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1221
uint8_t proto_discr
Definition: gsm_04_08.h:1028
Definition: gsm_04_08.h:1826
Definition: gsm_04_08.h:1870
Definition: gsm_04_08.h:1944
struct gsm48_req_ref req_ref
Definition: gsm_04_08.h:592
uint8_t page_mode
Definition: gsm_04_08.h:641
gsm48_bcap_coding
Definition: gsm_04_08.h:1836
struct gsm48_chan_desc chan_desc2
Definition: gsm_04_08.h:594
Definition: gsm_04_08.h:1908
static uint8_t gsm48_hdr_trans_id(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1195
Definition: gsm_04_08.h:744
Definition: gsm_04_08.h:1059
const struct value_string gsm48_rr_msgtype_names[]
TS 04.08 RR Message Type names.
Definition: gsm48.c:878
Definition: gsm_04_08.h:1601
Definition: gsm_04_08.h:995
Definition: gsm_04_08.h:581
Definition: gsm_04_08.h:1676
gsm48_bcap_ra
Definition: gsm_04_08.h:1848
Definition: gsm_04_08.h:1442
Definition: gsm_04_08.h:1000
#define GSM48_PDISC_MM
Definition: gsm_04_08.h:1166
GSM HR V4 (OHR AMR-WB)
Definition: gsm_04_08.h:1921
struct gsm48_cell_desc cell_desc
Definition: gsm_04_08.h:587
Definition: gsm_04_08.h:1903
Definition: gsm_04_08.h:1625
Definition: gsm_04_08.h:1723
struct gsm48_req_ref req_ref4
Definition: gsm_04_08.h:597
Definition: gsm_04_08.h:1718
Definition: gsm_04_08.h:1646
Definition: gsm_04_08.h:1645
uint32_t tlli
Definition: gsm_04_08.h:607
uint8_t mi_len
Definition: gsm_04_08.h:588
uint8_t rr_cause
Definition: gsm_04_08.h:996
Definition: gsm_04_08.h:1629
static uint8_t gsm48_hdr_trans_id_flip_ti(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1216
Definition: gsm_04_08.h:1766
Definition: gsm_04_08.h:1880
Definition: gsm_04_08.h:1624
struct gsm48_control_channel_descr control_channel_desc
Definition: gsm_04_08.h:590
const struct value_string osmo_lu_type_names[]
Definition: gsm48.c:1225
GSM HR V6 (OHR AMR)
Definition: gsm_04_08.h:1923
Definition: gsm_04_08.h:637
Definition: gsm_04_08.h:1701
uint8_t proto_discr
Definition: gsm_04_08.h:588
Definition: gsm_04_08.h:1765
Definition: gsm_04_08.h:1907
GSM FR V5 (FR AMR-WB)
Definition: gsm_04_08.h:1922
struct gsm48_cell_options cell_options
Definition: gsm_04_08.h:591
Definition: gsm_04_08.h:1873
Definition: gsm_04_08.h:1616
Definition: gsm_04_08.h:1636
Definition: gsm_04_08.h:522
Definition: gsm_04_08.h:1449
Definition: gsm_04_08.h:1896
Definition: gsm_04_08.h:365
Definition: gsm_04_08.h:1851
Definition: gsm_04_08.h:1763
Definition: gsm_04_08.h:1743
Definition: gsm_04_08.h:1447
Definition: gsm_04_08.h:703
Definition: gsm_04_08.h:1755
uint8_t power_command
Definition: gsm_04_08.h:632
Definition: gsm_04_08.h:1591
Definition: gsm_04_08.h:1590
struct gsm48_rach_control rach_control
Definition: gsm_04_08.h:589
Definition: gsm_04_08.h:1674
Definition: gsm_04_08.h:1837
Definition: gsm_04_08.h:1672
Definition: gsm_04_08.h:1733
Definition: gsm_04_08.h:1690
Definition: gsm_04_08.h:135
Definition: gsm_04_08.h:1700
Definition: gsm_04_08.h:1720
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:1330
Definition: gsm_04_08.h:679
Definition: gsm_04_08.h:1871
Definition: gsm_04_08.h:17
Definition: gsm_04_08.h:1630
uint8_t digits[3]
Definition: gsm_04_08.h:587
Definition: gsm_04_08.h:1894
Definition: gsm_04_08.h:1735
uint8_t timing_advance2
Definition: gsm_04_08.h:1036
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:1355
uint8_t bcch_frequency_list[16]
Definition: gsm_04_08.h:588
uint8_t msg_type
Definition: gsm_04_08.h:724
Definition: gsm_04_08.h:1673
Definition: gsm_04_08.h:1642
Definition: gsm_04_08.h:1715
Definition: gsm_04_08.h:1946
Definition: gsm_04_08.h:1727
Definition: gsm_04_08.h:1906
chreq_type
Definition: gsm_04_08.h:1750
gsm48_bcap_itcap
Definition: gsm_04_08.h:1820
Definition: gsm_04_08.h:1446
const struct value_string gsm48_reject_value_names[]
Definition: gsm48.c:1172
Definition: gsm_04_08.h:1742
Definition: gsm_04_08.h:1960
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:514
uint8_t classmark3_len
Definition: gsm_04_08.h:66
Definition: gsm_04_08.h:1719
uint8_t wait_ind2
Definition: gsm_04_08.h:1050
uint8_t page_mode
Definition: gsm_04_08.h:1030
static const char * osmo_lu_type_name(uint8_t lu_type)
Definition: gsm_04_08.h:1470
struct gsm48_classmark2 cm2
Definition: gsm_04_08.h:588
char * gsm48_pdisc_msgtype_name_buf(char *buf, size_t buf_len, uint8_t pdisc, uint8_t msg_type)
Compose a string naming the message type for given protocol, in a caller-provided buffer...
Definition: gsm48.c:1114
#define GSM48_PDISC_LOC
Definition: gsm_04_08.h:1172
Definition: gsm_04_08.h:1080
const char * gsm48_pdisc_msgtype_name(uint8_t pdisc, uint8_t msg_type)
Compose a string naming the message type for given protocol, in a static buffer.
Definition: gsm48.c:1150
#define GSM48_PDISC_MASK
Definition: gsm_04_08.h:1175
uint8_t cause
Definition: gsm_04_08.h:609
GSM FR V4 (OFR AMR-WB)
Definition: gsm_04_08.h:1920
static const char * gsm48_reject_value_name(enum gsm48_reject_value val)
Definition: gsm_04_08.h:1747
int8_t osmo_gsm48_rfpowercap2powerclass(enum gsm_band band, uint8_t rf_power_cap)
Decode power class from Classmark1/2 RF power capability field.
Definition: gsm48.c:1398
Definition: gsm_04_08.h:1600
Definition: gsm_04_08.h:1869
Definition: gsm_04_08.h:779
uint8_t data[0]
Definition: gsm_04_08.h:590
Definition: gsm_04_08.h:1831
uint8_t mob_alloc[0]
Definition: gsm_04_08.h:590
Definition: gsm_04_08.h:1603
Definition: gsm_04_08.h:1686
Definition: gsm_04_08.h:1849
static const char * osmo_cm_service_type_name(enum osmo_cm_service_type val)
Definition: gsm_04_08.h:1453
gsm48_bcap_interm_rate
Definition: gsm_04_08.h:1886
Definition: gsm_04_08.h:989
Definition: gsm_04_08.h:1661
Definition: gsm_04_08.h:1589
Definition: gsm_04_08.h:1850
uint8_t classmark2_len
Definition: gsm_04_08.h:64
Definition: gsm_04_08.h:451
uint8_t l2_plen
Definition: gsm_04_08.h:638
uint8_t timing_advance
Definition: gsm_04_08.h:644
uint8_t rest_octets[0]
Definition: gsm_04_08.h:590
Definition: gsm_04_08.h:1769
Definition: gsm_04_08.h:984
Definition: gsm_04_08.h:80
Definition: gsm_04_08.h:1757
Definition: gsm_04_08.h:579
Definition: gsm_04_08.h:1902
Definition: gsm_04_08.h:1721
struct gsm48_system_information_type_header header
Definition: gsm_04_08.h:587
Definition: gsm_04_08.h:1738
Definition: gsm_04_08.h:1671
Definition: gsm_04_08.h:578
gsm48_bcap_transp
Definition: gsm_04_08.h:1892
GSM HR V1 (GSM HR)
Definition: gsm_04_08.h:1916
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:1260
uint8_t rac
Definition: gsm_04_08.h:1934
const struct value_string osmo_cm_service_type_names[]
Definition: gsm48.c:1233
uint8_t msg_type
Definition: gsm_04_08.h:1045
Definition: gsm_04_08.h:1751
const struct value_string gsm48_chan_mode_names[]
Definition: gsm48.c:422
Definition: gsm_04_08.h:1643
Definition: gsm_04_08.h:972
uint8_t l2_plen
Definition: gsm_04_08.h:1027
bool osmo_gsm48_classmark2_is_r99(const struct gsm48_classmark2 *cm2, uint8_t cm2_len)
Definition: gsm48.c:1249
uint8_t msg_type
Definition: gsm_04_08.h:1029
Definition: gsm_04_08.h:685
static const char * gsm48_cc_cause_name(enum gsm48_cc_cause val)
Definition: gsm_04_08.h:1708
uint8_t mi_len
Definition: gsm_04_08.h:967
uint8_t rr_cause
Definition: gsm_04_08.h:980
Definition: gsm_04_08.h:1693
struct gsm48_req_ref req_ref2
Definition: gsm_04_08.h:595
Definition: gsm_04_08.h:1659
Definition: gsm_04_08.h:1658
Definition: gsm_04_08.h:1607
Definition: gsm_04_08.h:1687
Definition: gsm_04_08.h:1825
Definition: gsm_04_08.h:759
gsm48_progress_desc
Definition: gsm_04_08.h:1588
#define GSM48_PDISC_EXTEND
Definition: gsm_04_08.h:1173
Definition: gsm_04_08.h:698
Definition: gsm_04_08.h:1695
Definition: gsm_04_08.h:1728
Definition: gsm_04_08.h:1626
uint8_t msg_type
Definition: gsm_04_08.h:640
Definition: gsm_04_08.h:1656
Definition: gsm_04_08.h:1758
Definition: gsm_04_08.h:1955
uint16_t lac
Definition: gsm_04_08.h:1933
Definition: gsm_04_08.h:1859
Definition: gsm_04_08.h:251
Definition: gsm_04_08.h:1761
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:1303
Definition: gsm_04_08.h:1832
Definition: gsm_04_08.h:552
uint8_t rr_cause
Definition: gsm_04_08.h:990
osmo_cm_service_type
Definition: gsm_04_08.h:1441
Definition: gsm_04_08.h:650
uint8_t mob_alloc_len
Definition: gsm_04_08.h:645
Definition: gsm_04_08.h:1639
Definition: gsm_04_08.h:1868
uint8_t sres[4]
Definition: gsm_04_08.h:587
Definition: gsm_04_08.h:1679
gsm48_cause_loc
Definition: gsm_04_08.h:1621
Definition: gsm_04_08.h:1822
Definition: gsm_04_08.h:1649
Definition: gsm_04_08.h:1731
Definition: gsm_04_08.h:569
Definition: gsm_04_08.h:1698
Definition: gsm_04_08.h:1667
Definition: gsm_04_08.h:780
Definition: gsm_04_08.h:1893
char * osmo_gsm48_classmark_a5_name_buf(char *buf, size_t buf_len, const struct osmo_gsm48_classmark *cm)
Return a string representation of A5 cipher algorithms indicated by Classmark 1, 2 and 3...
Definition: gsm48.c:1271
uint16_t cell_identity
Definition: gsm_04_08.h:588
gsm_band
Definition: gsm_utils.h:52
Definition: gsm_04_08.h:1443
bool classmark1_set
Definition: gsm_04_08.h:62
static const char * gsm48_chan_mode_name(enum gsm48_chan_mode val)
Definition: gsm_04_08.h:586
struct gsm48_classmark1 classmark1
Definition: gsm_04_08.h:587
Definition: gsm_04_08.h:1444
Definition: gsm_04_08.h:1878
Definition: gsm_04_08.h:1957
uint8_t cm2_len
Definition: gsm_04_08.h:587
Definition: gsm_04_08.h:1138
Definition: gsm_04_08.h:1862
Definition: gsm_04_08.h:428
gsm48_type_of_number
Definition: gsm_04_08.h:1943
uint8_t cm2_len
Definition: gsm_04_08.h:1020
uint8_t ncc_permitted
Definition: gsm_04_08.h:589
Definition: gsm_04_08.h:1726
const struct value_string gsm48_pdisc_names[]
TS 04.08 Protocol Descriptor names.
Definition: gsm48.c:859
const struct value_string gsm48_cc_cause_names[]
TS 04.08 10.5..4.11 Call Control Cause Values.
Definition: gsm48.c:1044
gsm48_cause_coding
Definition: gsm_04_08.h:1614
GSM FR V3 (FR AMR)
Definition: gsm_04_08.h:1918
Definition: gsm_04_08.h:965
Definition: gsm_04_08.h:61
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:1914
uint8_t chan_nr
Definition: gsm_04_08.h:333
Definition: gsm_04_08.h:1448
Definition: gsm_04_08.h:1860
Definition: gsm_04_08.h:1909
struct gsm48_loc_area_id lai
Definition: gsm_04_08.h:589
GSM FR V2 (GSM EFR)
Definition: gsm_04_08.h:1917
Definition: gsm_04_08.h:1623
Definition: gsm_04_08.h:1759
Definition: gsm_04_08.h:1740
Definition: gsm_04_08.h:1704
char * osmo_gsm48_classmark_a5_name_c(const void *ctx, const struct osmo_gsm48_classmark *cm)
Return a string representation of A5 cipher algorithms indicated by Classmark 1, 2 and 3...
Definition: gsm48.c:1315
Definition: gsm_04_08.h:1665
#define GSM48_PDISC_GROUP_CC
Definition: gsm_04_08.h:1160
uint8_t power_command
Definition: gsm_04_08.h:589
struct gsm48_chan_desc chan_desc1
Definition: gsm_04_08.h:591
GSM HR V3 (HR_AMR)
Definition: gsm_04_08.h:1919
struct gsm48_req_ref req_ref1
Definition: gsm_04_08.h:592
Definition: gsm_04_08.h:1753
Definition: gsm_04_08.h:1821
struct gsm48_cell_sel_par cell_sel_par
Definition: gsm_04_08.h:592
Definition: gsm_04_08.h:1026
Definition: gsm_04_08.h:1638
Definition: gsm_04_08.h:1867
Definition: gsm_04_08.h:786
Definition: gsm_04_08.h:1756
Definition: gsm_04_08.h:1594
Definition: gsm_04_08.h:1641
Definition: gsm_04_08.h:1694
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:1211
uint8_t rest[0]
Definition: gsm_04_08.h:599
Definition: gsm_04_08.h:1681
Definition: gsm_04_08.h:1592
Definition: gsm_04_08.h:1716
Definition: gsm_04_08.h:577
uint8_t l2_plen
Definition: gsm_04_08.h:1043
Definition: gsm_04_08.h:614
Definition: gsm_04_08.h:1843
Definition: gsm_04_08.h:1888
Definition: gsm_04_08.h:1724
Definition: gsm_04_08.h:332
Definition: gsm_04_08.h:1445
Definition: gsm_04_08.h:1617
Definition: gsm_04_08.h:1734
static void gsm48_barr_acc(struct gsm48_rach_control *rach_control, unsigned int acc)
Definition: gsm_04_08.h:484
Definition: gsm_04_08.h:1904
Definition: gsm_04_08.h:1768
uint8_t proto_discr
Definition: gsm_04_08.h:639
GSM utility functions, e.g.
Definition: gsm_04_08.h:1725
Definition: gsm_04_08.h:1824
static uint8_t gsm48_hdr_pdisc(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1183
Definition: gsm_04_08.h:1857
Definition: gsm_04_08.h:1905
Definition: gsm_04_08.h:1019
Definition: gsm_04_08.h:1703
static uint8_t gsm48_hdr_msg_type_r98(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1226
Definition: gsm_04_08.h:1954
Definition: gsm_04_08.h:1042
uint8_t rr_cause
Definition: gsm_04_08.h:1156
GSM FR V1 (GSM FR)
Definition: gsm_04_08.h:1915
Definition: gsm_04_08.h:1842
Definition: gsm_04_08.h:1670