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;
250#if OSMO_IS_LITTLE_ENDIAN
282#elif OSMO_IS_BIG_ENDIAN
284 uint8_t form_id:5, f0:1, w1_hi:2;
287 uint8_t w2_lo:1, w3_hi:7;
288 uint8_t w3_lo:2, w4_hi:6;
289 uint8_t w4_lo:2, w5_hi:6;
290 uint8_t w5_lo:2, w6_hi:6;
291 uint8_t w6_lo:2, w7_hi:6;
292 uint8_t w7_lo:2, w8_hi:6;
293 uint8_t w8_lo:1, w9:7;
294 uint8_t w10:7, w11_hi:1;
295 uint8_t w11_lo:6, w12_hi:2;
296 uint8_t w12_lo:5, w13_hi:3;
297 uint8_t w13_lo:4, w14_hi:4;
298 uint8_t w14_lo:3, w15_hi:5;
299 uint8_t w15_lo:2, w16:6;
305#if OSMO_IS_LITTLE_ENDIAN
306 uint8_t orig_arfcn_hi:1,
308 uint8_t orig_arfcn_mid;
337#elif OSMO_IS_BIG_ENDIAN
339 uint8_t form_id:7, orig_arfcn_hi:1;
340 uint8_t orig_arfcn_mid;
341 uint8_t orig_arfcn_lo:1, w1_hi:7;
342 uint8_t w1_lo:2, w2_hi:6;
343 uint8_t w2_lo:2, w3_hi:6;
344 uint8_t w3_lo:2, w4_hi:6;
345 uint8_t w4_lo:1, w5:7;
346 uint8_t w6:7, w7_hi:1;
347 uint8_t w7_lo:6, w8_hi:2;
348 uint8_t w8_lo:4, w9_hi:4;
349 uint8_t w9_lo:2, w10:6;
350 uint8_t w11:6, w12_hi:2;
351 uint8_t w12_lo:4, w13_hi:4;
352 uint8_t w13_lo:2, w14:6;
353 uint8_t w15:6, w16_hi:2;
354 uint8_t w16_lo:3, w17:5;
360#if OSMO_IS_LITTLE_ENDIAN
361 uint8_t orig_arfcn_hi:1,
363 uint8_t orig_arfcn_mid;
398#elif OSMO_IS_BIG_ENDIAN
400 uint8_t form_id:7, orig_arfcn_hi:1;
401 uint8_t orig_arfcn_mid;
402 uint8_t orig_arfcn_lo:1, w1_hi:7;
403 uint8_t w1_lo:1, w2:7;
404 uint8_t w3:7, w4_hi:1;
405 uint8_t w4_lo:5, w5_hi:3;
406 uint8_t w5_lo:3, w6_hi:5;
407 uint8_t w6_lo:1, w7:6, w8_hi:1;
408 uint8_t w8_lo:4, w9_hi:4;
409 uint8_t w9_lo:1, w10:5, w11_hi:2;
410 uint8_t w11_lo:3, w12:5;
411 uint8_t w13:5, w14_hi:3;
412 uint8_t w14_lo:2, w15:5, w16_hi:1;
413 uint8_t w16_lo:3, w17:4, w18_hi:1;
414 uint8_t w18_lo:3, w19:4, w20_hi:1;
415 uint8_t w20_lo:3, w21:4, spare:1;
421#if OSMO_IS_LITTLE_ENDIAN
422 uint8_t orig_arfcn_hi:1,
424 uint8_t orig_arfcn_mid;
461#elif OSMO_IS_BIG_ENDIAN
463 uint8_t form_id:7, orig_arfcn_hi:1;
464 uint8_t orig_arfcn_mid;
465 uint8_t orig_arfcn_lo:1, w1:7;
466 uint8_t w2:6, w3_hi:2;
467 uint8_t w3_lo:4, w4_hi:4;
468 uint8_t w4_lo:1, w5:5, w6_hi:2;
469 uint8_t w6_lo:3, w7:5;
471 uint8_t w10:4, w11:4;
472 uint8_t w12:4, w13:4;
473 uint8_t w14:4, w15:4;
474 uint8_t w16:3, w17:3, w18_hi:2;
475 uint8_t w18_lo:1, w19:3, w20:3, w21_hi:1;
476 uint8_t w21_lo:2, w22:3, w23:3;
477 uint8_t w24:3, w25:3, w26_hi:2;
478 uint8_t w26_lo:1, w27:3, w28:3, spare:1;
484#if OSMO_IS_LITTLE_ENDIAN
485 uint8_t orig_arfcn_hi:1,
487 uint8_t orig_arfcn_mid;
490 uint8_t rrfcn8_111[13];
491#elif OSMO_IS_BIG_ENDIAN
493 uint8_t form_id:7, orig_arfcn_hi:1;
494 uint8_t orig_arfcn_mid;
495 uint8_t orig_arfcn_lo:1, rrfcn1_7:7;
496 uint8_t rrfcn8_111[13];
505#if OSMO_IS_LITTLE_ENDIAN
511#elif OSMO_IS_BIG_ENDIAN
513 uint8_t tsc:3,
h:1, maio_high:4;
514 uint8_t maio_low:2, hsn:6;
518#if OSMO_IS_LITTLE_ENDIAN
519 uint8_t arfcn_high:2,
524#elif OSMO_IS_BIG_ENDIAN
526 uint8_t tsc:3,
h:1, spare:2, arfcn_high:2;
535#if OSMO_IS_LITTLE_ENDIAN
536 uint8_t rxlev_full:6,
542 uint8_t no_nc_n_hi:1,
548 uint8_t bsic_nc1_hi:3,
550 uint8_t rxlev_nc2_hi:5,
552 uint8_t bsic_nc2_hi:2,
555 uint8_t rxlev_nc3_hi:4,
557 uint8_t bsic_nc3_hi:1,
560 uint8_t rxlev_nc4_hi:3,
562 uint8_t bcch_f_nc4:5,
564 uint8_t rxlev_nc5_hi:2,
566 uint8_t bcch_f_nc5_hi:4,
568 uint8_t rxlev_nc6_hi:1,
571 uint8_t bcch_f_nc6_hi:3,
575#elif OSMO_IS_BIG_ENDIAN
577 uint8_t ba_used:1, dtx_used:1, rxlev_full:6;
578 uint8_t spare:1, meas_valid:1, rxlev_sub:6;
579 uint8_t spare2:1, rxqual_full:3, rxqual_sub:3, no_nc_n_hi:1;
580 uint8_t no_nc_n_lo:2, rxlev_nc1:6;
581 uint8_t bcch_f_nc1:5, bsic_nc1_hi:3;
582 uint8_t bsic_nc1_lo:3, rxlev_nc2_hi:5;
583 uint8_t rxlev_nc2_lo:1, bcch_f_nc2:5, bsic_nc2_hi:2;
584 uint8_t bsic_nc2_lo:4, rxlev_nc3_hi:4;
585 uint8_t rxlev_nc3_lo:2, bcch_f_nc3:5, bsic_nc3_hi:1;
586 uint8_t bsic_nc3_lo:5, rxlev_nc4_hi:3;
587 uint8_t rxlev_nc4_lo:3, bcch_f_nc4:5;
588 uint8_t bsic_nc4:6, rxlev_nc5_hi:2;
589 uint8_t rxlev_nc5_lo:4, bcch_f_nc5_hi:4;
590 uint8_t bcch_f_nc5_lo:1, bsic_nc5:6, rxlev_nc6_hi:1;
591 uint8_t rxlev_nc6_lo:5, bcch_f_nc6_hi:3;
592 uint8_t bcch_f_nc6_lo:2, bsic_nc6:6;
599 return (mr->meas_valid == 0);
604#if OSMO_IS_LITTLE_ENDIAN
618#elif OSMO_IS_BIG_ENDIAN
620 uint8_t ver:3, nscb:1, icmi:1, spare:1,
smod:2;
621 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;
627#if OSMO_IS_LITTLE_ENDIAN
628 uint8_t power_level:5,
631#elif OSMO_IS_BIG_ENDIAN
633 uint8_t atc:1, spare:2, power_level:5;
639#if OSMO_IS_LITTLE_ENDIAN
646#elif OSMO_IS_BIG_ENDIAN
648 uint8_t max_trans:2, tx_integer:4, cell_bar:1, re:1;
698#if OSMO_IS_LITTLE_ENDIAN
704#elif OSMO_IS_BIG_ENDIAN
707 uint8_t t1:5, t3_high:3;
708 uint8_t t3_low:3, t2:5;
714#if OSMO_IS_LITTLE_ENDIAN
719#elif OSMO_IS_BIG_ENDIAN
721 uint8_t t1:5, t3_high:3;
722 uint8_t t3_low:3, t2:5;
728#if OSMO_IS_LITTLE_ENDIAN
733#elif OSMO_IS_BIG_ENDIAN
735 uint8_t sync_ie:4, nci:1, rot:1, si:2;
834#if OSMO_IS_LITTLE_ENDIAN
839#elif OSMO_IS_BIG_ENDIAN
841 uint8_t arfcn_hi:2, ncc:3, bcc:3;
870#if OSMO_IS_LITTLE_ENDIAN
882#elif OSMO_IS_BIG_ENDIAN
884 uint8_t key_seq:4, spare:4;
905#if OSMO_IS_LITTLE_ENDIAN
909#elif OSMO_IS_BIG_ENDIAN
911 uint8_t spare:4, key_seq:4;
923#if OSMO_IS_LITTLE_ENDIAN
930#elif OSMO_IS_BIG_ENDIAN
932 uint8_t key_seq:4,
type:4;
949#if OSMO_IS_LITTLE_ENDIAN
954#elif OSMO_IS_BIG_ENDIAN
956 uint8_t rr_short_pd:1,
msg_type:5, l2_header:2;
963#if OSMO_IS_LITTLE_ENDIAN
965 uint8_t rr_protocol_discriminator :4,
967 uint8_t system_information;
968#elif OSMO_IS_BIG_ENDIAN
971 uint8_t skip_indicator:4, rr_protocol_discriminator:4;
972 uint8_t system_information;
978#if OSMO_IS_LITTLE_ENDIAN
979 uint8_t ms_txpwr_max_ccch:5,
981 uint8_t rxlev_acc_min:6,
984#elif OSMO_IS_BIG_ENDIAN
986 uint8_t cell_resel_hyst:3, ms_txpwr_max_ccch:5;
987 uint8_t acs:1, neci:1, rxlev_acc_min:6;
993#if OSMO_IS_LITTLE_ENDIAN
994 uint8_t ccch_conf :3,
998 uint8_t bs_pa_mfrms : 3,
1003#elif OSMO_IS_BIG_ENDIAN
1005 uint8_t mscr:1, att:1, bs_ag_blks_res:3, ccch_conf:3;
1006 uint8_t spare_2:1, cbq3:2, spare_1:2, bs_pa_mfrms:3;
1020#if OSMO_IS_LITTLE_ENDIAN
1021 uint8_t radio_link_timeout:4,
1026#elif OSMO_IS_BIG_ENDIAN
1028 uint8_t d:1, pwrc:1, dtx:2, radio_link_timeout:4;
1034#if OSMO_IS_LITTLE_ENDIAN
1035 uint8_t cm_service_type : 4,
1047#elif OSMO_IS_BIG_ENDIAN
1049 uint8_t cipher_key_seq:4, cm_service_type:4;
1125#if OSMO_IS_LITTLE_ENDIAN
1126 uint8_t rr_protocol_discriminator :4,
1128 uint8_t system_information;
1130#elif OSMO_IS_BIG_ENDIAN
1132 uint8_t skip_indicator:4, rr_protocol_discriminator:4;
1133 uint8_t system_information;
1140#if OSMO_IS_LITTLE_ENDIAN
1141 uint8_t rr_protocol_discriminator :4,
1143 uint8_t system_information;
1145#elif OSMO_IS_BIG_ENDIAN
1147 uint8_t skip_indicator:4, rr_protocol_discriminator:4;
1148 uint8_t system_information;
1155#if OSMO_IS_LITTLE_ENDIAN
1156 uint8_t rr_protocol_discriminator :4,
1158 uint8_t system_information;
1160#elif OSMO_IS_BIG_ENDIAN
1162 uint8_t skip_indicator:4, rr_protocol_discriminator:4;
1163 uint8_t system_information;
1170#if OSMO_IS_LITTLE_ENDIAN
1171 uint8_t rr_protocol_discriminator :4,
1173 uint8_t system_information;
1179#elif OSMO_IS_BIG_ENDIAN
1181 uint8_t skip_indicator:4, rr_protocol_discriminator:4;
1182 uint8_t system_information;
1193#if OSMO_IS_LITTLE_ENDIAN
1194 uint8_t l2_header:2,
1198#elif OSMO_IS_BIG_ENDIAN
1200 uint8_t rr_short_pd:1,
msg_type:5, l2_header:2;
1261#if OSMO_IS_LITTLE_ENDIAN
1266#elif OSMO_IS_BIG_ENDIAN
1268 uint8_t spare:3, cr:1, alg_id:3, sc:1;
1322#if OSMO_IS_LITTLE_ENDIAN
1331#elif OSMO_IS_BIG_ENDIAN
1336 uint8_t cneed2:2, cneed1:2, spare:2, pag_mode:2;
1343#if OSMO_IS_LITTLE_ENDIAN
1354#elif OSMO_IS_BIG_ENDIAN
1359 uint8_t cneed2:2, cneed1:2, spare:2, pag_mode:2;
1368#if OSMO_IS_LITTLE_ENDIAN
1384#elif OSMO_IS_BIG_ENDIAN
1389 uint8_t cneed2:2, cneed1:2, spare:2, pag_mode:2;
1394 uint8_t spare2:4, cneed4:2, cneed3:2;
1401#if OSMO_IS_LITTLE_ENDIAN
1407#elif OSMO_IS_BIG_ENDIAN
1409 uint8_t spare:5, key_seq:3;
1434#define GSM48_PDISC_GROUP_CC 0x00
1435#define GSM48_PDISC_BCAST_CC 0x01
1436#define GSM48_PDISC_PDSS1 0x02
1437#define GSM48_PDISC_CC 0x03
1438#define GSM48_PDISC_PDSS2 0x04
1439#define GSM48_PDISC_GTTP 0x04
1440#define GSM48_PDISC_MM 0x05
1441#define GSM48_PDISC_RR 0x06
1442#define GSM48_PDISC_MM_GPRS 0x08
1443#define GSM48_PDISC_SMS 0x09
1444#define GSM48_PDISC_SM_GPRS 0x0a
1445#define GSM48_PDISC_NC_SS 0x0b
1446#define GSM48_PDISC_LOC 0x0c
1447#define GSM48_PDISC_EXTEND 0x0e
1448#define GSM48_PDISC_TEST 0x0f
1449#define GSM48_PDISC_MASK 0x0f
1452#define GSM48_PDISC_SH_RR 0
1481#define GSM48_TA_INVALID 220
1547#define gsm48_hdr_msg_type gsm48_hdr_msg_type_r99
1550#define GSM48_MT_RR_INIT_REQ 0x3c
1551#define GSM48_MT_RR_ADD_ASS 0x3b
1552#define GSM48_MT_RR_IMM_ASS 0x3f
1553#define GSM48_MT_RR_IMM_ASS_EXT 0x39
1554#define GSM48_MT_RR_IMM_ASS_REJ 0x3a
1555#define GSM48_MT_RR_DTM_ASS_FAIL 0x48
1556#define GSM48_MT_RR_DTM_REJECT 0x49
1557#define GSM48_MT_RR_DTM_REQUEST 0x4A
1558#define GSM48_MT_RR_PACKET_ASS 0x4B
1560#define GSM48_MT_RR_CIPH_M_CMD 0x35
1561#define GSM48_MT_RR_CIPH_M_COMPL 0x32
1563#define GSM48_MT_RR_CFG_CHG_CMD 0x30
1564#define GSM48_MT_RR_CFG_CHG_ACK 0x31
1565#define GSM48_MT_RR_CFG_CHG_REJ 0x33
1567#define GSM48_MT_RR_ASS_CMD 0x2e
1568#define GSM48_MT_RR_ASS_COMPL 0x29
1569#define GSM48_MT_RR_ASS_FAIL 0x2f
1570#define GSM48_MT_RR_HANDO_CMD 0x2b
1571#define GSM48_MT_RR_HANDO_COMPL 0x2c
1572#define GSM48_MT_RR_HANDO_FAIL 0x28
1573#define GSM48_MT_RR_HANDO_INFO 0x2d
1574#define GSM48_MT_RR_HANDO_INFO 0x2d
1575#define GSM48_MT_RR_DTM_ASS_CMD 0x4c
1577#define GSM48_MT_RR_CELL_CHG_ORDER 0x08
1578#define GSM48_MT_RR_PDCH_ASS_CMD 0x23
1580#define GSM48_MT_RR_CHAN_REL 0x0d
1581#define GSM48_MT_RR_PART_REL 0x0a
1582#define GSM48_MT_RR_PART_REL_COMP 0x0f
1584#define GSM48_MT_RR_PAG_REQ_1 0x21
1585#define GSM48_MT_RR_PAG_REQ_2 0x22
1586#define GSM48_MT_RR_PAG_REQ_3 0x24
1587#define GSM48_MT_RR_PAG_RESP 0x27
1588#define GSM48_MT_RR_NOTIF_NCH 0x20
1589#define GSM48_MT_RR_NOTIF_FACCH 0x25
1590#define GSM48_MT_RR_NOTIF_RESP 0x26
1591#define GSM48_MT_RR_PACKET_NOTIF 0x4e
1592#define GSM48_MT_RR_UTRAN_CLSM_CHG 0x60
1593#define GSM48_MT_RR_CDMA2K_CLSM_CHG 0x62
1594#define GSM48_MT_RR_IS_TO_UTRAN_HANDO 0x63
1595#define GSM48_MT_RR_IS_TO_CDMA2K_HANDO 0x64
1597#define GSM48_MT_RR_SYSINFO_8 0x18
1598#define GSM48_MT_RR_SYSINFO_1 0x19
1599#define GSM48_MT_RR_SYSINFO_2 0x1a
1600#define GSM48_MT_RR_SYSINFO_3 0x1b
1601#define GSM48_MT_RR_SYSINFO_4 0x1c
1602#define GSM48_MT_RR_SYSINFO_5 0x1d
1603#define GSM48_MT_RR_SYSINFO_6 0x1e
1604#define GSM48_MT_RR_SYSINFO_7 0x1f
1606#define GSM48_MT_RR_SYSINFO_2bis 0x02
1607#define GSM48_MT_RR_SYSINFO_2ter 0x03
1608#define GSM48_MT_RR_SYSINFO_2quater 0x07
1609#define GSM48_MT_RR_SYSINFO_5bis 0x05
1610#define GSM48_MT_RR_SYSINFO_5ter 0x06
1611#define GSM48_MT_RR_SYSINFO_9 0x04
1612#define GSM48_MT_RR_SYSINFO_13 0x00
1614#define GSM48_MT_RR_SYSINFO_16 0x3d
1615#define GSM48_MT_RR_SYSINFO_17 0x3e
1617#define GSM48_MT_RR_SYSINFO_18 0x40
1618#define GSM48_MT_RR_SYSINFO_19 0x41
1619#define GSM48_MT_RR_SYSINFO_20 0x42
1621#define GSM48_MT_RR_CHAN_MODE_MODIF 0x10
1622#define GSM48_MT_RR_STATUS 0x12
1623#define GSM48_MT_RR_CHAN_MODE_MODIF_ACK 0x17
1624#define GSM48_MT_RR_FREQ_REDEF 0x14
1625#define GSM48_MT_RR_MEAS_REP 0x15
1626#define GSM48_MT_RR_CLSM_CHG 0x16
1627#define GSM48_MT_RR_CLSM_ENQ 0x13
1628#define GSM48_MT_RR_EXT_MEAS_REP 0x36
1629#define GSM48_MT_RR_EXT_MEAS_REP_ORD 0x37
1630#define GSM48_MT_RR_GPRS_SUSP_REQ 0x34
1631#define GSM48_MT_RR_DTM_INFO 0x4d
1633#define GSM48_MT_RR_VGCS_UPL_GRANT 0x09
1634#define GSM48_MT_RR_UPLINK_RELEASE 0x0e
1635#define GSM48_MT_RR_UPLINK_FREE 0x0c
1636#define GSM48_MT_RR_UPLINK_BUSY 0x2a
1637#define GSM48_MT_RR_TALKER_IND 0x11
1639#define GSM48_MT_RR_APP_INFO 0x38
1642#define GSM48_MT_RR_SH_SI10 0x0
1643#define GSM48_MT_RR_SH_FACCH 0x1
1644#define GSM48_MT_RR_SH_UL_FREE 0x2
1645#define GSM48_MT_RR_SH_MEAS_REP 0x4
1646#define GSM48_MT_RR_SH_MEAS_INFO 0x5
1647#define GSM48_MT_RR_SH_VGCS_RECON 0x6
1648#define GSM48_MT_RR_SH_VGCS_RECON2 0x7
1649#define GSM48_MT_RR_SH_VGCS_INFO 0x8
1650#define GSM48_MT_RR_SH_VGCS_SMS 0x9
1651#define GSM48_MT_RR_SH_SI10bis 0xA
1652#define GSM48_MT_RR_SH_SI10ter 0xB
1653#define GSM48_MT_RR_SH_VGCS_NEIGH 0xC
1654#define GSM48_MT_RR_SH_APP_DATA 0xD
1657#define GSM48_MT_MM_IMSI_DETACH_IND 0x01
1658#define GSM48_MT_MM_LOC_UPD_ACCEPT 0x02
1659#define GSM48_MT_MM_LOC_UPD_REJECT 0x04
1660#define GSM48_MT_MM_LOC_UPD_REQUEST 0x08
1662#define GSM48_MT_MM_AUTH_REJ 0x11
1663#define GSM48_MT_MM_AUTH_REQ 0x12
1664#define GSM48_MT_MM_AUTH_RESP 0x14
1665#define GSM48_MT_MM_AUTH_FAIL 0x1c
1666#define GSM48_MT_MM_ID_REQ 0x18
1667#define GSM48_MT_MM_ID_RESP 0x19
1668#define GSM48_MT_MM_TMSI_REALL_CMD 0x1a
1669#define GSM48_MT_MM_TMSI_REALL_COMPL 0x1b
1671#define GSM48_MT_MM_CM_SERV_ACC 0x21
1672#define GSM48_MT_MM_CM_SERV_REJ 0x22
1673#define GSM48_MT_MM_CM_SERV_ABORT 0x23
1674#define GSM48_MT_MM_CM_SERV_REQ 0x24
1675#define GSM48_MT_MM_CM_SERV_PROMPT 0x25
1676#define GSM48_MT_MM_CM_REEST_REQ 0x28
1677#define GSM48_MT_MM_ABORT 0x29
1679#define GSM48_MT_MM_NULL 0x30
1680#define GSM48_MT_MM_STATUS 0x31
1681#define GSM48_MT_MM_INFO 0x32
1684#define GSM48_MT_CC_ALERTING 0x01
1685#define GSM48_MT_CC_CALL_CONF 0x08
1686#define GSM48_MT_CC_CALL_PROC 0x02
1687#define GSM48_MT_CC_CONNECT 0x07
1688#define GSM48_MT_CC_CONNECT_ACK 0x0f
1689#define GSM48_MT_CC_EMERG_SETUP 0x0e
1690#define GSM48_MT_CC_PROGRESS 0x03
1691#define GSM48_MT_CC_ESTAB 0x04
1692#define GSM48_MT_CC_ESTAB_CONF 0x06
1693#define GSM48_MT_CC_RECALL 0x0b
1694#define GSM48_MT_CC_START_CC 0x09
1695#define GSM48_MT_CC_SETUP 0x05
1697#define GSM48_MT_CC_MODIFY 0x17
1698#define GSM48_MT_CC_MODIFY_COMPL 0x1f
1699#define GSM48_MT_CC_MODIFY_REJECT 0x13
1700#define GSM48_MT_CC_USER_INFO 0x10
1701#define GSM48_MT_CC_HOLD 0x18
1702#define GSM48_MT_CC_HOLD_ACK 0x19
1703#define GSM48_MT_CC_HOLD_REJ 0x1a
1704#define GSM48_MT_CC_RETR 0x1c
1705#define GSM48_MT_CC_RETR_ACK 0x1d
1706#define GSM48_MT_CC_RETR_REJ 0x1e
1708#define GSM48_MT_CC_DISCONNECT 0x25
1709#define GSM48_MT_CC_RELEASE 0x2d
1710#define GSM48_MT_CC_RELEASE_COMPL 0x2a
1712#define GSM48_MT_CC_CONG_CTRL 0x39
1713#define GSM48_MT_CC_NOTIFY 0x3e
1714#define GSM48_MT_CC_STATUS 0x3d
1715#define GSM48_MT_CC_STATUS_ENQ 0x34
1716#define GSM48_MT_CC_START_DTMF 0x35
1717#define GSM48_MT_CC_STOP_DTMF 0x31
1718#define GSM48_MT_CC_STOP_DTMF_ACK 0x32
1719#define GSM48_MT_CC_START_DTMF_ACK 0x36
1720#define GSM48_MT_CC_START_DTMF_REJ 0x37
1721#define GSM48_MT_CC_FACILITY 0x3a
1749#define GSM48_PM_MASK 0x03
1750#define GSM48_PM_NORMAL 0x00
1751#define GSM48_PM_EXTENDED 0x01
1752#define GSM48_PM_REORG 0x02
1753#define GSM48_PM_SAME 0x03
1756#define GSM48_LUPD_NORMAL 0x0
1757#define GSM48_LUPD_PERIODIC 0x1
1758#define GSM48_LUPD_IMSI_ATT 0x2
1759#define GSM48_LUPD_RESERVED 0x3
1766#define GSM_MI_TYPE_MASK 0x07
1767#define GSM_MI_TYPE_NONE 0x00
1768#define GSM_MI_TYPE_IMSI 0x01
1769#define GSM_MI_TYPE_IMEI 0x02
1770#define GSM_MI_TYPE_IMEISV 0x03
1771#define GSM_MI_TYPE_TMSI 0x04
1772#define GSM_MI_ODD 0x08
1774#define GSM48_IE_MOBILE_ID 0x17
1775#define GSM48_IE_NAME_LONG 0x43
1776#define GSM48_IE_NAME_SHORT 0x45
1777#define GSM48_IE_UTC 0x46
1778#define GSM48_IE_NET_TIME_TZ 0x47
1779#define GSM48_IE_LSA_IDENT 0x48
1780#define GSM48_IE_NET_DST 0x49
1782#define GSM48_IE_BEARER_CAP 0x04
1783#define GSM48_IE_CAUSE 0x08
1784#define GSM48_IE_CC_CAP 0x15
1785#define GSM48_IE_ALERT 0x19
1786#define GSM48_IE_FACILITY 0x1c
1787#define GSM48_IE_PROGR_IND 0x1e
1788#define GSM48_IE_AUX_STATUS 0x24
1789#define GSM48_IE_NOTIFY 0x27
1790#define GSM48_IE_KPD_FACILITY 0x2c
1791#define GSM48_IE_SIGNAL 0x34
1792#define GSM48_IE_CONN_BCD 0x4c
1793#define GSM48_IE_CONN_SUB 0x4d
1794#define GSM48_IE_CALLING_BCD 0x5c
1795#define GSM48_IE_CALLING_SUB 0x5d
1796#define GSM48_IE_CALLED_BCD 0x5e
1797#define GSM48_IE_CALLED_SUB 0x6d
1798#define GSM48_IE_REDIR_BCD 0x74
1799#define GSM48_IE_REDIR_SUB 0x75
1800#define GSM48_IE_LOWL_COMPAT 0x7c
1801#define GSM48_IE_HIGHL_COMPAT 0x7d
1802#define GSM48_IE_USER_USER 0x7e
1803#define GSM48_IE_SS_VERS 0x7f
1804#define GSM48_IE_MORE_DATA 0xa0
1805#define GSM48_IE_CLIR_SUPP 0xa1
1806#define GSM48_IE_CLIR_INVOC 0xa2
1807#define GSM48_IE_REV_C_SETUP 0xa3
1808#define GSM48_IE_REPEAT_CIR 0xd1
1809#define GSM48_IE_REPEAT_SEQ 0xd3
1812#define GSM48_CAUSE_CS_GSM 0x60
1816#define GSM48_IE_VGCS_TARGET 0x01
1818#define GSM48_IE_FRQSHORT_AFTER 0x02
1819#define GSM48_IE_MUL_RATE_CFG 0x03
1820#define GSM48_IE_FREQ_L_AFTER 0x05
1821#define GSM48_IE_GROUP_CIP_SEQ_HO 0x08
1822#define GSM48_IE_CIP_MODE_SET_HO 0x09
1823#define GSM48_IE_GPRS_RESUMPT_HO 0xc0
1824#define GSM48_IE_SYNC_IND_HO 0x0d
1825#define GSM48_IE_MSLOT_DESC 0x10
1826#define GSM48_IE_CHANMODE_2 0x11
1827#define GSM48_IE_FRQSHORT_BEFORE 0x12
1829#define GSM48_IE_CHANMODE_3 0x13
1830#define GSM48_IE_CHANMODE_4 0x14
1831#define GSM48_IE_CHANMODE_5 0x15
1832#define GSM48_IE_CHANMODE_6 0x16
1833#define GSM48_IE_CHANMODE_7 0x17
1834#define GSM48_IE_CHANMODE_8 0x18
1835#define GSM48_IE_CHANDESC_2 0x64
1836#define GSM48_IE_MA_AFTER 0x72
1837#define GSM48_IE_START_TIME 0x7c
1838#define GSM48_IE_FREQ_L_BEFORE 0x19
1840#define GSM48_IE_CH_DESC_1_BEFORE 0x1c
1842#define GSM48_IE_CH_DESC_2_BEFORE 0x1d
1844#define GSM48_IE_F_CH_SEQ_BEFORE 0x1e
1846#define GSM48_IE_CLASSMARK3 0x20
1847#define GSM48_IE_MA_BEFORE 0x21
1848#define GSM48_IE_RR_PACKET_UL 0x22
1849#define GSM48_IE_RR_PACKET_DL 0x23
1850#define GSM48_IE_CELL_CH_DESC 0x62
1851#define GSM48_IE_CHANMODE_1 0x63
1852#define GSM48_IE_CHDES_2_AFTER 0x64
1853#define GSM48_IE_MODE_SEC_CH 0x66
1854#define GSM48_IE_F_CH_SEQ_AFTER 0x69
1855#define GSM48_IE_EXTENDED_TSC_SET 0x6d
1856#define GSM48_IE_MA_AFTER 0x72
1857#define GSM48_IE_BA_RANGE 0x73
1858#define GSM48_IE_GROUP_CHDES 0x74
1859#define GSM48_IE_BA_LIST_PREF 0x75
1860#define GSM48_IE_MOB_OVSERV_DIF 0x77
1861#define GSM48_IE_CELL_SEL_IND_AFTER_REL 0x77
1862#define GSM48_IE_REALTIME_DIFF 0x7b
1863#define GSM48_IE_START_TIME 0x7c
1864#define GSM48_IE_INDIVIDUAL_PRIORITIES 0x7c
1865#define GSM48_IE_TIMING_ADVANCE 0x7d
1866#define GSM48_IE_GROUP_CIP_SEQ 0x80
1867#define GSM48_IE_CIP_MODE_SET 0x90
1868#define GSM48_IE_GPRS_RESUMPT 0xc0
1869#define GSM48_IE_SYNC_IND 0xd0
1871#define GSM48_IE_CBCH_CHAN_DESC 0x64
1872#define GSM48_IE_CBCH_MOB_AL 0x72
1875#define GSM48_IE_PRIORITY_LEV_HO 0x08
1876#define GSM48_IE_LOCATION_AREA 0x13
1877#define GSM48_IE_AUTN 0x20
1878#define GSM48_IE_AUTH_RES_EXT 0x21
1879#define GSM48_IE_AUTS 0x22
1880#define GSM48_IE_PRIORITY_LEV 0x80
1881#define GSM48_IE_FOLLOW_ON_PROC 0xa1
1882#define GSM48_IE_CTS_PERMISSION 0xa2
2080#define GSM48_T301 180, 0
2081#define GSM48_T303 30, 0
2082#define GSM48_T305 30, 0
2083#define GSM48_T306 30, 0
2084#define GSM48_T308 10, 0
2085#define GSM48_T310 30, 0
2086#define GSM48_T313 30, 0
2087#define GSM48_T323 30, 0
2088#define GSM48_T331 30, 0
2089#define GSM48_T333 30, 0
2090#define GSM48_T334 25, 0
2091#define GSM48_T338 30, 0
2092#define GSM48_T303_MS 30, 0
2093#define GSM48_T305_MS 30, 0
2094#define GSM48_T308_MS 30, 0
2095#define GSM48_T310_MS 30, 0
2096#define GSM48_T313_MS 30, 0
2097#define GSM48_T323_MS 30, 0
2098#define GSM48_T332_MS 30, 0
2099#define GSM48_T335_MS 30, 0
2102#define GSM_CSTATE_NULL 0
2103#define GSM_CSTATE_INITIATED 1
2104#define GSM_CSTATE_MM_CONNECTION_PEND 2
2105#define GSM_CSTATE_MO_CALL_PROC 3
2106#define GSM_CSTATE_CALL_DELIVERED 4
2107#define GSM_CSTATE_CALL_PRESENT 6
2108#define GSM_CSTATE_CALL_RECEIVED 7
2109#define GSM_CSTATE_CONNECT_REQUEST 8
2110#define GSM_CSTATE_MO_TERM_CALL_CONF 9
2111#define GSM_CSTATE_ACTIVE 10
2112#define GSM_CSTATE_DISCONNECT_REQ 12
2113#define GSM_CSTATE_DISCONNECT_IND 12
2114#define GSM_CSTATE_RELEASE_REQ 19
2115#define GSM_CSTATE_MO_ORIG_MODIFY 26
2116#define GSM_CSTATE_MO_TERM_MODIFY 27
2117#define GSM_CSTATE_CONNECT_IND 28
2119#define SBIT(a) (1 << a)
2120#define ALL_STATES 0xffffffff
2123#define GSM_LAC_RESERVED_DETACHED 0x0
2124#define GSM_LAC_RESERVED_ALL_BTS 0xfffe
2256#define GSM48_TMSI_LEN 5
2257#define GSM48_MID_TMSI_LEN (GSM48_TMSI_LEN + 2)
2258#define GSM48_MI_SIZE 32
2267#define GSM48_CELL_CHAN_DESC_SIZE 16
2269#define GSM_MACBLOCK_LEN 23
2270#define GSM_MACBLOCK_PADDING 0x2b
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:1953
const struct value_string gsm48_rr_msgtype_names[]
TS 04.08 RR Message Type names.
Definition: gsm48.c:1550
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:1234
bool osmo_gsm48_classmark2_is_r99(const struct gsm48_classmark2 *cm2, uint8_t cm2_len)
Definition: gsm48.c:1931
const struct value_string gsm48_reject_value_names[]
Definition: gsm48.c:1848
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:1826
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:2080
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:2012
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:1997
bool osmo_gsm48_classmark1_is_r99(const struct gsm48_classmark1 *cm1)
Definition: gsm48.c:1926
const struct value_string gsm48_pdisc_names[]
TS 04.08 Protocol Descriptor names.
Definition: gsm48.c:1531
const struct value_string gsm48_mm_msgtype_names[]
TS 04.08 MM Message Type names.
Definition: gsm48.c:1643
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:1786
const struct value_string osmo_lu_type_names[]
Definition: gsm48.c:1907
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:2037
static int32_t smod(int32_t n, int32_t m)
Definition: gsm48_ie.c:886
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:1120
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:1840
const struct value_string gsm48_cc_msgtype_names[]
TS 04.08 CC Message Type names.
Definition: gsm48.c:1673
const struct value_string osmo_cm_service_type_names[]
Definition: gsm48.c:1915
const struct value_string gsm48_cc_cause_names[]
TS 04.08 10.5..4.11 Call Control Cause Values.
Definition: gsm48.c:1716
const struct value_string gsm48_chan_mode_names[]
Definition: gsm48.c:475
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:1942
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:1985
const char * get_value_string(const struct value_string *vs, uint32_t val)
uint8_t rest_octets[0]
Definition: gsm_04_08.h:3
static const char * osmo_cm_service_type_name(enum osmo_cm_service_type val)
Definition: gsm_04_08.h:1745
uint8_t ncc_permitted
Definition: gsm_04_08.h:2
static const char * gsm48_pdisc_name(uint8_t val)
Definition: gsm_04_08.h:1455
gsm48_bcap_user_rate
Definition: gsm_04_08.h:2173
@ GSM48_BCAP_UR_4800
Definition: gsm_04_08.h:2177
@ GSM48_BCAP_UR_300
Definition: gsm_04_08.h:2174
@ GSM48_BCAP_UR_1200_75
Definition: gsm_04_08.h:2180
@ GSM48_BCAP_UR_9600
Definition: gsm_04_08.h:2178
@ GSM48_BCAP_UR_2400
Definition: gsm_04_08.h:2176
@ GSM48_BCAP_UR_1200
Definition: gsm_04_08.h:2175
@ GSM48_BCAP_UR_12000
Definition: gsm_04_08.h:2179
#define GSM48_PDISC_MASK
Definition: gsm_04_08.h:1449
#define GSM48_PDISC_EXTEND
Definition: gsm_04_08.h:1447
gsm48_numbering_plan
Definition: gsm_04_08.h:2283
@ GSM48_NPI_TELEX_F69
Definition: gsm_04_08.h:2287
@ GSM48_NPI_DATA_X121
Definition: gsm_04_08.h:2286
@ GSM48_NPI_CTS
Definition: gsm_04_08.h:2290
@ GSM48_NPI_PRIVATE
Definition: gsm_04_08.h:2289
@ GSM48_NPI_NATIONAL
Definition: gsm_04_08.h:2288
@ GSM48_NPI_ISDN_E164
Definition: gsm_04_08.h:2285
@ GSM48_NPI_UNKNOWN
Definition: gsm_04_08.h:2284
#define GSM48_PDISC_LOC
Definition: gsm_04_08.h:1446
gsm48_type_of_number
Definition: gsm_04_08.h:2273
@ GSM48_TON_UNKNOWN
Definition: gsm_04_08.h:2274
@ GSM48_TON_INTERNATIONAL
Definition: gsm_04_08.h:2275
@ GSM48_TON_NET_SPEC
Definition: gsm_04_08.h:2277
@ GSM48_TON_SHORT_CODE
Definition: gsm_04_08.h:2278
@ GSM48_TON_NATIONAL
Definition: gsm_04_08.h:2276
struct gsm48_hdr hdr
Definition: gsm_04_08.h:0
osmo_cm_service_type
Definition: gsm_04_08.h:1733
@ GSM48_CMSERV_MAX_VAL
Definition: gsm_04_08.h:1741
@ GSM48_CMSERV_MO_CALL_PACKET
Definition: gsm_04_08.h:1734
@ GSM48_CMSERV_VBS
Definition: gsm_04_08.h:1739
@ GSM48_CMSERV_SUP_SERV
Definition: gsm_04_08.h:1737
@ GSM48_CMSERV_VGCS
Definition: gsm_04_08.h:1738
@ GSM48_CMSERV_SMS
Definition: gsm_04_08.h:1736
@ GSM48_CMSERV_EMERGENCY
Definition: gsm_04_08.h:1735
@ GSM48_CMSERV_LOC_SERV
Definition: gsm_04_08.h:1740
gsm48_signal_val
Definition: gsm_04_08.h:1897
@ GSM48_SIGNAL_CALL_WAIT
Definition: gsm_04_08.h:1905
@ GSM48_SIGNAL_INTERCEPT
Definition: gsm_04_08.h:1900
@ GSM48_SIGNAL_RINGBACK
Definition: gsm_04_08.h:1899
@ GSM48_SIGNAL_DIALTONE
Definition: gsm_04_08.h:1898
@ GSM48_SIGNAL_OFF_HOOK
Definition: gsm_04_08.h:1906
@ GSM48_SIGNAL_OFF
Definition: gsm_04_08.h:1907
@ GSM48_SIGNAL_NET_CONG
Definition: gsm_04_08.h:1901
@ GSM48_SIGNAL_CONFIRM
Definition: gsm_04_08.h:1903
@ GSM48_SIGNAL_ANSWER
Definition: gsm_04_08.h:1904
@ GSM48_SIGNAL_ALERT_OFF
Definition: gsm_04_08.h:1908
@ GSM48_SIGNAL_BUSY
Definition: gsm_04_08.h:1902
gsm48_chan_mode
10.5.2.6 Channel Mode value
Definition: gsm_04_08.h:750
@ GSM48_CMODE_DATA_6k0
CSD: 6.0 kbit/s radio interface rate, 4.8 kbit/s services (TCH/{F,H}4.8)
Definition: gsm_04_08.h:790
@ GSM48_CMODE_SPEECH_V3_VAMOS
Same as GSM48_CMODE_SPEECH_AMR, in VAMOS mode.
Definition: gsm_04_08.h:799
@ GSM48_CMODE_DATA_14k5_29k0
Definition: gsm_04_08.h:775
@ GSM48_CMODE_DATA_29k0_43k5
Definition: gsm_04_08.h:777
@ GSM48_CMODE_SPEECH_V5_VAMOS
Speech: GSM48_CMODE_SPEECH_V5, in VAMOS mode.
Definition: gsm_04_08.h:801
@ GSM48_CMODE_SPEECH_V1
Speech: FR (TCH/FS) or HR (TCH/HS)
Definition: gsm_04_08.h:754
@ GSM48_CMODE_DATA_3k6
CSD: 3.6 kbit/s radio interface rate, 2.4 kbit/s and less services (TCH/{F,H}2.4)
Definition: gsm_04_08.h:792
@ GSM48_CMODE_SPEECH_V6
Speech: OHR AMR (O-TCH/AHS)
Definition: gsm_04_08.h:764
@ GSM48_CMODE_SPEECH_V1_VAMOS
Same as GSM48_CMODE_SPEECH_V1, in VAMOS mode.
Definition: gsm_04_08.h:795
@ GSM48_CMODE_SIGN
Signalling only (TCH/F or TCH/H)
Definition: gsm_04_08.h:752
@ GSM48_CMODE_DATA_32k0
ECSD: 32.0 kbit/s radio interface rate, 32.0 kbit/s services (E-TCH/F32.0)
Definition: gsm_04_08.h:782
@ GSM48_CMODE_SPEECH_V2_VAMOS
Same as GSM48_CMODE_SPEECH_EFR, in VAMOS mode.
Definition: gsm_04_08.h:797
@ GSM48_CMODE_DATA_29k0
ECSD: 29.0 kbit/s radio interface rate, 28.8 kbit/s services (E-TCH/F28.8)
Definition: gsm_04_08.h:784
@ GSM48_CMODE_SPEECH_V5
Speech: FR AMR-WB (TCH/WFS)
Definition: gsm_04_08.h:762
@ GSM48_CMODE_DATA_12k0
CSD: 12.0 kbit/s radio interface rate, 9.6 kbit/s services (TCH/F9.6)
Definition: gsm_04_08.h:788
@ GSM48_CMODE_DATA_14k5_43k5
Definition: gsm_04_08.h:773
@ GSM48_CMODE_SPEECH_AMR
Speech: AMR (TCH/AFS or TCH/AHS)
Definition: gsm_04_08.h:758
@ GSM48_CMODE_DATA_43k5_14k5
Definition: gsm_04_08.h:767
@ GSM48_CMODE_SPEECH_V4
Speech: OFR AMR-WB (O-TCH/WFS) or OHR AMR-WB (O-TCH/WHS)
Definition: gsm_04_08.h:760
@ GSM48_CMODE_DATA_43k5_29k0
Definition: gsm_04_08.h:771
@ GSM48_CMODE_DATA_29k0_14k5
Definition: gsm_04_08.h:769
@ GSM48_CMODE_DATA_43k5
ECSD: 43.5 kbit/s radio interface rate, 43.2 kbit/s services (E-TCH/F43.2)
Definition: gsm_04_08.h:780
@ GSM48_CMODE_SPEECH_EFR
Speech: EFR (TCH/EFS)
Definition: gsm_04_08.h:756
@ GSM48_CMODE_DATA_14k5
CSD: 14.5 kbit/s radio interface rate, 14.4 kbit/s services (TCH/F14.4)
Definition: gsm_04_08.h:786
uint8_t cm2_len
Definition: gsm_04_08.h:0
static uint8_t gsm48_hdr_msg_type_r98(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1503
gsm48_bcap_parity
Definition: gsm_04_08.h:2184
@ GSM48_BCAP_PAR_NONE
Definition: gsm_04_08.h:2187
@ GSM48_BCAP_PAR_ODD
Definition: gsm_04_08.h:2185
@ GSM48_BCAP_PAR_ZERO
Definition: gsm_04_08.h:2188
@ GSM48_BCAP_PAR_ONE
Definition: gsm_04_08.h:2189
@ GSM48_BCAP_PAR_EVEN
Definition: gsm_04_08.h:2186
chreq_type
Definition: gsm_04_08.h:2057
@ CHREQ_T_DATA_CALL_TCH_H
Definition: gsm_04_08.h:2065
@ CHREQ_T_PAG_R_TCH_F
Definition: gsm_04_08.h:2069
@ CHREQ_T_CALL_REEST_TCH_H
Definition: gsm_04_08.h:2060
@ CHREQ_T_CALL_REEST_TCH_H_DBL
Definition: gsm_04_08.h:2061
@ CHREQ_T_PAG_R_ANY_NECI0
Definition: gsm_04_08.h:2067
@ CHREQ_T_PAG_R_TCH_FH
Definition: gsm_04_08.h:2070
@ CHREQ_T_LMU
Definition: gsm_04_08.h:2071
@ CHREQ_T_EMERG_CALL
Definition: gsm_04_08.h:2058
@ CHREQ_T_PDCH_ONE_PHASE
Definition: gsm_04_08.h:2074
@ CHREQ_T_SDCCH
Definition: gsm_04_08.h:2062
@ CHREQ_T_PDCH_TWO_PHASE
Definition: gsm_04_08.h:2075
@ CHREQ_T_VOICE_CALL_TCH_H
Definition: gsm_04_08.h:2064
@ CHREQ_T_PAG_R_ANY_NECI1
Definition: gsm_04_08.h:2068
@ CHREQ_T_TCH_F
Definition: gsm_04_08.h:2063
@ CHREQ_T_CALL_REEST_TCH_F
Definition: gsm_04_08.h:2059
@ CHREQ_T_RESERVED_IGNORE
Definition: gsm_04_08.h:2073
@ CHREQ_T_RESERVED_SDCCH
Definition: gsm_04_08.h:2072
@ _NUM_CHREQ_T
Definition: gsm_04_08.h:2076
@ CHREQ_T_LOCATION_UPD
Definition: gsm_04_08.h:2066
static void gsm48_barr_acc(struct gsm48_rach_control *rach_control, unsigned int acc)
Definition: gsm_04_08.h:659
gsm48_cc_cause
Definition: gsm_04_08.h:1956
@ GSM48_CC_CAUSE_SEMANTIC_INCORR
Definition: gsm_04_08.h:1996
@ GSM48_CC_CAUSE_FACILITY_REJ
Definition: gsm_04_08.h:1971
@ GSM48_CC_CAUSE_SERV_OPT_UNAVAIL
Definition: gsm_04_08.h:1986
@ GSM48_CC_CAUSE_SWITCH_CONG
Definition: gsm_04_08.h:1977
@ GSM48_CC_CAUSE_INCOMPAT_DEST
Definition: gsm_04_08.h:1994
@ GSM48_CC_CAUSE_ACC_INF_DISCARD
Definition: gsm_04_08.h:1978
@ GSM48_CC_CAUSE_INTERWORKING
Definition: gsm_04_08.h:2005
@ GSM48_CC_CAUSE_MSGTYPE_NOTEXIST
Definition: gsm_04_08.h:1998
@ GSM48_CC_CAUSE_UNASSIGNED_NR
Definition: gsm_04_08.h:1957
@ GSM48_CC_CAUSE_QOS_UNAVAIL
Definition: gsm_04_08.h:1981
@ GSM48_CC_CAUSE_REQ_FAC_NOTIMPL
Definition: gsm_04_08.h:1989
@ GSM48_CC_CAUSE_MSGTYPE_INCOMPAT
Definition: gsm_04_08.h:1999
@ GSM48_CC_CAUSE_REQ_CHAN_UNAVAIL
Definition: gsm_04_08.h:1979
@ GSM48_CC_CAUSE_NORMAL_UNSPEC
Definition: gsm_04_08.h:1973
@ GSM48_CC_CAUSE_CHAN_UNACCEPT
Definition: gsm_04_08.h:1959
@ GSM48_CC_CAUSE_NONSE_USER_CLR
Definition: gsm_04_08.h:1968
@ GSM48_CC_CAUSE_INVAL_MAND_INF
Definition: gsm_04_08.h:1997
@ GSM48_CC_CAUSE_USER_ALERTING_NA
Definition: gsm_04_08.h:1964
@ GSM48_CC_CAUSE_MSG_INCOMP_STATE
Definition: gsm_04_08.h:2002
@ GSM48_CC_CAUSE_USER_NOTRESPOND
Definition: gsm_04_08.h:1963
@ GSM48_CC_CAUSE_RESTR_BCAP_AVAIL
Definition: gsm_04_08.h:1990
@ GSM48_CC_CAUSE_CALL_REJECTED
Definition: gsm_04_08.h:1965
@ GSM48_CC_CAUSE_INC_BARRED_CUG
Definition: gsm_04_08.h:1983
@ GSM48_CC_CAUSE_RESP_STATUS_INQ
Definition: gsm_04_08.h:1972
@ GSM48_CC_CAUSE_USER_NOT_IN_CUG
Definition: gsm_04_08.h:1993
@ GSM48_CC_CAUSE_INVAL_TRANS_ID
Definition: gsm_04_08.h:1992
@ GSM48_CC_CAUSE_NORM_CALL_CLEAR
Definition: gsm_04_08.h:1961
@ GSM48_CC_CAUSE_INV_NR_FORMAT
Definition: gsm_04_08.h:1970
@ GSM48_CC_CAUSE_BEARER_CA_UNAVAIL
Definition: gsm_04_08.h:1985
@ GSM48_CC_CAUSE_BEARERSERV_UNIMPL
Definition: gsm_04_08.h:1987
@ GSM48_CC_CAUSE_COND_IE_ERR
Definition: gsm_04_08.h:2001
@ GSM48_CC_CAUSE_USER_BUSY
Definition: gsm_04_08.h:1962
@ GSM48_CC_CAUSE_DEST_OOO
Definition: gsm_04_08.h:1969
@ GSM48_CC_CAUSE_RESOURCE_UNAVAIL
Definition: gsm_04_08.h:1980
@ GSM48_CC_CAUSE_PRE_EMPTION
Definition: gsm_04_08.h:1967
@ GSM48_CC_CAUSE_TEMP_FAILURE
Definition: gsm_04_08.h:1976
@ GSM48_CC_CAUSE_REQ_FAC_NOT_SUBSC
Definition: gsm_04_08.h:1982
@ GSM48_CC_CAUSE_NUMBER_CHANGED
Definition: gsm_04_08.h:1966
@ GSM48_CC_CAUSE_NETWORK_OOO
Definition: gsm_04_08.h:1975
@ GSM48_CC_CAUSE_SERV_OPT_UNIMPL
Definition: gsm_04_08.h:1991
@ GSM48_CC_CAUSE_NO_ROUTE
Definition: gsm_04_08.h:1958
@ GSM48_CC_CAUSE_IE_NOTEXIST
Definition: gsm_04_08.h:2000
@ GSM48_CC_CAUSE_BEARER_CAP_UNAUTH
Definition: gsm_04_08.h:1984
@ GSM48_CC_CAUSE_ACM_GE_ACM_MAX
Definition: gsm_04_08.h:1988
@ GSM48_CC_CAUSE_OP_DET_BARRING
Definition: gsm_04_08.h:1960
@ GSM48_CC_CAUSE_INVAL_TRANS_NET
Definition: gsm_04_08.h:1995
@ GSM48_CC_CAUSE_PROTO_ERR
Definition: gsm_04_08.h:2004
@ GSM48_CC_CAUSE_NO_CIRCUIT_CHAN
Definition: gsm_04_08.h:1974
@ GSM48_CC_CAUSE_RECOVERY_TIMER
Definition: gsm_04_08.h:2003
#define GSM48_PDISC_MM
Definition: gsm_04_08.h:1440
static uint8_t gsm48_hdr_msg_type_r99(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1523
gsm48_bcap_itcap
Definition: gsm_04_08.h:2127
@ GSM48_BCAP_ITCAP_OTHER
Definition: gsm_04_08.h:2132
@ GSM48_BCAP_ITCAP_3k1_AUDIO
Definition: gsm_04_08.h:2130
@ GSM48_BCAP_ITCAP_FAX_G3
Definition: gsm_04_08.h:2131
@ GSM48_BCAP_ITCAP_SPEECH
Definition: gsm_04_08.h:2128
@ GSM48_BCAP_ITCAP_UNR_DIG_INF
Definition: gsm_04_08.h:2129
@ GSM48_BCAP_ITCAP_RESERVED
Definition: gsm_04_08.h:2133
uint8_t mi_len
Definition: gsm_04_08.h:1
static const char * gsm48_cc_cause_name(enum gsm48_cc_cause val)
Definition: gsm_04_08.h:2009
gsm48_bcap_interm_rate
Definition: gsm_04_08.h:2193
@ GSM48_BCAP_IR_8k
Definition: gsm_04_08.h:2194
@ GSM48_BCAP_IR_16k
Definition: gsm_04_08.h:2195
static void gsm48_allow_acc(struct gsm48_rach_control *rach_control, unsigned int acc)
Definition: gsm_04_08.h:673
gsm48_progress_desc
Definition: gsm_04_08.h:1886
@ GSM48_PROGR_NOT_E2E
Definition: gsm_04_08.h:1887
@ GSM48_PROGR_CALL_E2E
Definition: gsm_04_08.h:1892
@ GSM48_PROGR_ORIG_NOT_PLMN
Definition: gsm_04_08.h:1889
@ GSM48_PROGR_IN_BAND_AVAIL
Definition: gsm_04_08.h:1891
@ GSM48_PROGR_DEST_NOT_PLMN
Definition: gsm_04_08.h:1888
@ GSM48_PROGR_QUEUEING
Definition: gsm_04_08.h:1893
@ GSM48_PROGR_RETURNED
Definition: gsm_04_08.h:1890
static bool gsm48_meas_res_is_valid(const struct gsm48_meas_res *mr)
Check if the given mr contains valid measurement results.
Definition: gsm_04_08.h:597
gsm48_bcap_transp
Definition: gsm_04_08.h:2199
@ GSM48_BCAP_TR_RLP_PREF
Definition: gsm_04_08.h:2203
@ GSM48_BCAP_TR_TRANSP
Definition: gsm_04_08.h:2200
@ GSM48_BCAP_TR_RLP
Definition: gsm_04_08.h:2201
@ GSM48_BCAP_TR_TR_PREF
Definition: gsm_04_08.h:2202
static uint8_t gsm48_hdr_pdisc(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1460
gsm48_rr_cause
Definition: gsm_04_08.h:1932
@ GSM48_RR_CAUSE_HNDOVER_IMP
Definition: gsm_04_08.h:1940
@ GSM48_RR_CAUSE_COND_IE_ERROR
Definition: gsm_04_08.h:1950
@ GSM48_RR_CAUSE_CALL_CLEARED
Definition: gsm_04_08.h:1945
@ GSM48_RR_CAUSE_ABNORMAL_UNACCT
Definition: gsm_04_08.h:1935
@ GSM48_RR_CAUSE_MSG_TYPE_N
Definition: gsm_04_08.h:1948
@ GSM48_RR_CAUSE_PROT_ERROR_UNSPC
Definition: gsm_04_08.h:1952
@ GSM48_RR_CAUSE_ABNORMAL_UNSPEC
Definition: gsm_04_08.h:1934
@ GSM48_RR_CAUSE_NORMAL
Definition: gsm_04_08.h:1933
@ GSM48_RR_CAUSE_INVALID_MAND_INF
Definition: gsm_04_08.h:1947
@ GSM48_RR_CAUSE_FREQ_NOT_IMPL
Definition: gsm_04_08.h:1942
@ GSM48_RR_CAUSE_ABNORMAL_TIMER
Definition: gsm_04_08.h:1936
@ GSM48_RR_CAUSE_PREMPTIVE_REL
Definition: gsm_04_08.h:1938
@ GSM48_RR_CAUSE_CHAN_MODE_UNACCT
Definition: gsm_04_08.h:1941
@ GSM48_RR_CAUSE_SEMANT_INCORR
Definition: gsm_04_08.h:1946
@ GSM48_RR_CAUSE_MSG_TYPE_N_COMPAT
Definition: gsm_04_08.h:1949
@ GSM48_RR_CAUSE_UTRAN_CFG_UNK
Definition: gsm_04_08.h:1939
@ GSM48_RR_CAUSE_NO_CELL_ALLOC_A
Definition: gsm_04_08.h:1951
@ GSM48_RR_CAUSE_LEAVE_GROUP_CA
Definition: gsm_04_08.h:1943
@ GSM48_RR_CAUSE_ABNORMAL_NOACT
Definition: gsm_04_08.h:1937
@ GSM48_RR_CAUSE_LOW_LEVEL_FAIL
Definition: gsm_04_08.h:1944
gsm48_bcap_rrq
Definition: gsm_04_08.h:2148
@ GSM48_BCAP_RRQ_DUAL_HR
Definition: gsm_04_08.h:2150
@ GSM48_BCAP_RRQ_FR_ONLY
Definition: gsm_04_08.h:2149
@ GSM48_BCAP_RRQ_DUAL_FR
Definition: gsm_04_08.h:2151
struct gsm48_classmark1 classmark1
Definition: gsm_04_08.h:0
gsm48_bcap_sig_access
Definition: gsm_04_08.h:2163
@ GSM48_BCAP_SA_X28_DP_UN
Definition: gsm_04_08.h:2167
@ GSM48_BCAP_SA_X21
Definition: gsm_04_08.h:2165
@ GSM48_BCAP_SA_I440_I450
Definition: gsm_04_08.h:2164
@ GSM48_BCAP_SA_X32
Definition: gsm_04_08.h:2169
@ GSM48_BCAP_SA_X28_NDP
Definition: gsm_04_08.h:2168
@ GSM48_BCAP_SA_X28_DP_IN
Definition: gsm_04_08.h:2166
gsm48_bcap_fixed_net_user_rate
Table 10.5.112/3GPP TS 24.008: Fixed network user rate (octet 6d)
Definition: gsm_04_08.h:2226
@ GSM48_BCAP_FNUR_BT_33600
33.6 kbit/s bit transparent
Definition: gsm_04_08.h:2236
@ GSM48_BCAP_FNUR_X1_V110_9600
9.6 kbit/s (according to ITU-T Rec.
Definition: gsm_04_08.h:2228
@ GSM48_BCAP_FNUR_V34_31200
31.2 kbit/s (according to ITU-T Rec.
Definition: gsm_04_08.h:2238
@ GSM48_BCAP_FNUR_I460_32000
32.0 kbit/s (according to ITU-T Rec.
Definition: gsm_04_08.h:2237
@ GSM48_BCAP_FNUR_X1_V110_28800
28.8 kbit/s (according to ITU-T Rec.
Definition: gsm_04_08.h:2231
@ GSM48_BCAP_FNUR_BT_64000
64.0 kbit/s bit transparent
Definition: gsm_04_08.h:2235
@ GSM48_BCAP_FNUR_NONE
FNUR not applicable / No meaning associated.
Definition: gsm_04_08.h:2227
@ GSM48_BCAP_FNUR_X1_V110_14400
14.4 kbit/s (according to ITU-T Rec.
Definition: gsm_04_08.h:2229
@ GSM48_BCAP_FNUR_X1_V110_19200
19.2 kbit/s (according to ITU-T Rec.
Definition: gsm_04_08.h:2230
@ GSM48_BCAP_FNUR_X1_V110_56000
56.0 kbit/s (according to ITU-T Rec.
Definition: gsm_04_08.h:2234
@ GSM48_BCAP_FNUR_X1_V110_48000
48.0 kbit/s (according to ITU-T Rec.
Definition: gsm_04_08.h:2233
@ GSM48_BCAP_FNUR_X1_V110_38400
38.4 kbit/s (according to ITU-T Rec.
Definition: gsm_04_08.h:2232
#define GSM48_PDISC_GROUP_CC
Definition: gsm_04_08.h:1434
uint8_t bcch_frequency_list[16]
Definition: gsm_04_08.h:1
#define GSM48_PDISC_BCAST_CC
Definition: gsm_04_08.h:1435
uint8_t rest[0]
Definition: gsm_04_08.h:12
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:2244
@ GSM48_BCAP_SV_AMR_OH
GSM HR V6 (OHR AMR)
Definition: gsm_04_08.h:2253
@ GSM48_BCAP_SV_AMR_FW
GSM FR V5 (FR AMR-WB)
Definition: gsm_04_08.h:2252
@ GSM48_BCAP_SV_HR
GSM HR V1 (GSM HR)
Definition: gsm_04_08.h:2246
@ GSM48_BCAP_SV_AMR_OHW
GSM HR V4 (OHR AMR-WB)
Definition: gsm_04_08.h:2251
@ GSM48_BCAP_SV_AMR_H
GSM HR V3 (HR_AMR)
Definition: gsm_04_08.h:2249
@ GSM48_BCAP_SV_AMR_OFW
GSM FR V4 (OFR AMR-WB)
Definition: gsm_04_08.h:2250
@ GSM48_BCAP_SV_AMR_F
GSM FR V3 (FR AMR)
Definition: gsm_04_08.h:2248
@ GSM48_BCAP_SV_FR
GSM FR V1 (GSM FR)
Definition: gsm_04_08.h:2245
@ GSM48_BCAP_SV_EFR
GSM FR V2 (GSM EFR)
Definition: gsm_04_08.h:2247
static uint8_t gsm48_hdr_trans_id_flip_ti(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1493
gsm48_dtx_mode
Definition: gsm_04_08.h:1011
@ GSM48_DTX_SHALL_NOT_BE_USED
Definition: gsm_04_08.h:1014
@ GSM48_DTX_MAY_BE_USED
Definition: gsm_04_08.h:1012
@ GSM48_DTX_SHALL_BE_USED
Definition: gsm_04_08.h:1013
struct gsm48_classmark3 __attribute__
struct gsm48_loc_area_id lai
Definition: gsm_04_08.h:2
gsm48_bcap_modem_type
Definition: gsm_04_08.h:2207
@ GSM48_BCAP_MT_V26ter
Definition: gsm_04_08.h:2213
@ GSM48_BCAP_MT_V23
Definition: gsm_04_08.h:2212
@ GSM48_BCAP_MT_V21
Definition: gsm_04_08.h:2209
@ GSM48_BCAP_MT_V22
Definition: gsm_04_08.h:2210
@ GSM48_BCAP_MT_V32
Definition: gsm_04_08.h:2214
@ GSM48_BCAP_MT_V22bis
Definition: gsm_04_08.h:2211
@ GSM48_BCAP_MT_AUTO_1
Definition: gsm_04_08.h:2216
@ GSM48_BCAP_MT_NONE
Definition: gsm_04_08.h:2208
@ GSM48_BCAP_MT_UNDEF
Definition: gsm_04_08.h:2215
static const char * gsm48_reject_value_name(enum gsm48_reject_value val)
Definition: gsm_04_08.h:2054
static uint8_t gsm48_hdr_trans_id(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1472
struct gsm48_cell_options cell_options
Definition: gsm_04_08.h:4
struct gsm48_rach_control rach_control
Definition: gsm_04_08.h:2
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:1488
uint8_t ta
Definition: gsm_04_08.h:2
static const char * osmo_lu_type_name(uint8_t lu_type)
Definition: gsm_04_08.h:1762
struct gsm48_classmark2 cm2
Definition: gsm_04_08.h:1
uint16_t cell_identity
Definition: gsm_04_08.h:1
gsm48_cause_loc
Definition: gsm_04_08.h:1919
@ GSM48_CAUSE_LOC_PRN_S_LU
Definition: gsm_04_08.h:1921
@ GSM48_CAUSE_LOC_PRN_S_RU
Definition: gsm_04_08.h:1925
@ GSM48_CAUSE_LOC_INN_NET
Definition: gsm_04_08.h:1927
@ GSM48_CAUSE_LOC_TRANS_NET
Definition: gsm_04_08.h:1923
@ GSM48_CAUSE_LOC_PUN_S_RU
Definition: gsm_04_08.h:1924
@ GSM48_CAUSE_LOC_PUN_S_LU
Definition: gsm_04_08.h:1922
@ GSM48_CAUSE_LOC_USER
Definition: gsm_04_08.h:1920
@ GSM48_CAUSE_LOC_NET_BEYOND
Definition: gsm_04_08.h:1928
uint8_t data[0]
Definition: gsm_04_08.h:3
gsm48_reject_value
Definition: gsm_04_08.h:2013
@ GSM48_REJECT_SRV_OPT_TMP_OUT_OF_ORDER
Definition: gsm_04_08.h:2031
@ GSM48_REJECT_INVALID_MANDANTORY_INF
Definition: gsm_04_08.h:2034
@ GSM48_REJECT_NETWORK_FAILURE
Definition: gsm_04_08.h:2023
@ GSM48_REJECT_GPRS_NOT_ALLOWED
Definition: gsm_04_08.h:2043
@ GSM48_REJECT_SMS_PROV_VIA_GPRS_IN_RA
Definition: gsm_04_08.h:2049
@ GSM48_REJECT_MSC_TMP_NOT_REACHABLE
Definition: gsm_04_08.h:2048
@ GSM48_REJECT_MSG_TYPE_NOT_COMPATIBLE
Definition: gsm_04_08.h:2036
@ GSM48_REJECT_IMSI_UNKNOWN_IN_VLR
Definition: gsm_04_08.h:2016
@ GSM48_REJECT_CONGESTION
Definition: gsm_04_08.h:2026
@ GSM48_REJECT_MSG_TYPE_NOT_IMPLEMENTED
Definition: gsm_04_08.h:2035
@ GSM48_REJECT_CALL_CAN_NOT_BE_IDENTIFIED
Definition: gsm_04_08.h:2032
@ GSM48_REJECT_ROAMING_NOT_ALLOWED
Definition: gsm_04_08.h:2021
@ GSM48_REJECT_SRV_OPT_NOT_SUPPORTED
Definition: gsm_04_08.h:2029
@ GSM48_REJECT_SERVICES_NOT_ALLOWED
Definition: gsm_04_08.h:2044
@ GSM48_REJECT_MSG_NOT_COMPATIBLE
Definition: gsm_04_08.h:2039
@ GSM48_REJECT_PLMN_NOT_ALLOWED
Definition: gsm_04_08.h:2019
@ GSM48_REJECT_ILLEGAL_ME
Definition: gsm_04_08.h:2018
@ GSM48_REJECT_INCORRECT_MESSAGE
Definition: gsm_04_08.h:2033
@ GSM48_REJECT_MAC_FAILURE
Definition: gsm_04_08.h:2024
@ GSM48_REJECT_NO_SUIT_CELL_IN_LA
Definition: gsm_04_08.h:2022
@ GSM48_REJECT_IMEI_NOT_ACCEPTED
Definition: gsm_04_08.h:2017
@ GSM48_REJECT_GSM_AUTH_UNACCEPTABLE
Definition: gsm_04_08.h:2027
@ GSM48_REJECT_MS_IDENTITY_NOT_DERVIVABLE
Definition: gsm_04_08.h:2045
@ GSM48_REJECT_NOT_AUTH_FOR_CSG
Definition: gsm_04_08.h:2028
@ GSM48_REJECT_IMSI_UNKNOWN_IN_HLR
Definition: gsm_04_08.h:2014
@ GSM48_REJECT_INF_ELEME_NOT_IMPLEMENTED
Definition: gsm_04_08.h:2037
@ GSM48_REJECT_NO_PDP_CONTEXT_ACTIVATED
Definition: gsm_04_08.h:2050
@ GSM48_REJECT_CONDTIONAL_IE_ERROR
Definition: gsm_04_08.h:2038
@ GSM48_REJECT_IMPLICITLY_DETACHED
Definition: gsm_04_08.h:2046
@ GSM48_REJECT_LOC_NOT_ALLOWED
Definition: gsm_04_08.h:2020
@ GSM48_REJECT_SYNCH_FAILURE
Definition: gsm_04_08.h:2025
@ GSM48_REJECT_PROTOCOL_ERROR
Definition: gsm_04_08.h:2040
@ GSM48_REJECT_RQD_SRV_OPT_NOT_SUPPORTED
Definition: gsm_04_08.h:2030
@ GSM48_REJECT_ILLEGAL_MS
Definition: gsm_04_08.h:2015
@ GSM48_REJECT_GPRS_NOT_ALLOWED_IN_PLMN
Definition: gsm_04_08.h:2047
#define GSM48_PDISC_NC_SS
Definition: gsm_04_08.h:1445
gsm48_cause_coding
Definition: gsm_04_08.h:1912
@ GSM48_CAUSE_CODING_RESERVED
Definition: gsm_04_08.h:1914
@ GSM48_CAUSE_CODING_NATIONAL
Definition: gsm_04_08.h:1915
@ GSM48_CAUSE_CODING_GSM
Definition: gsm_04_08.h:1916
@ GSM48_CAUSE_CODING_CCITT_Q931
Definition: gsm_04_08.h:1913
static const char * gsm48_chan_mode_name(enum gsm48_chan_mode val)
Definition: gsm_04_08.h:805
gsm48_bcap_coding
Definition: gsm_04_08.h:2143
@ GSM48_BCAP_CODING_GSM_STD
Definition: gsm_04_08.h:2144
uint8_t mi[0]
Definition: gsm_04_08.h:2
uint8_t l2_plen
Definition: gsm_04_08.h:0
gsm48_bcap_other_modem_type
Table 10.5.112/3GPP TS 24.008: Other modem type (octet 6d)
Definition: gsm_04_08.h:2220
@ GSM48_BCAP_OTHER_MT_V34
According to ITU-T Rec.
Definition: gsm_04_08.h:2222
@ GSM48_BCAP_OTHER_MT_NONE
No other modem type specified.
Definition: gsm_04_08.h:2221
static uint8_t gsm48_hdr_trans_id_no_ti(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1498
#define GSM48_PDISC_CC
Definition: gsm_04_08.h:1437
gsm48_bcap_ra
Definition: gsm_04_08.h:2155
@ GSM48_BCAP_RA_NONE
Definition: gsm_04_08.h:2156
@ GSM48_BCAP_RA_V110_X30
Definition: gsm_04_08.h:2157
@ GSM48_BCAP_RA_OTHER
Definition: gsm_04_08.h:2159
@ GSM48_BCAP_RA_X31
Definition: gsm_04_08.h:2158
static bool gsm48_acc_is_barred(struct gsm48_rach_control *rach_control, unsigned int acc)
Definition: gsm_04_08.h:688
uint8_t proto_discr
Definition: gsm_04_08.h:1
gsm48_bcap_tmod
Definition: gsm_04_08.h:2137
@ GSM48_BCAP_TMOD_PACKET
Definition: gsm_04_08.h:2139
@ GSM48_BCAP_TMOD_CIRCUIT
Definition: gsm_04_08.h:2138
uint8_t msg_type
Definition: gsm_04_08.h:2
uint8_t type
Definition: gsm_04_08_gprs.h:7
struct gad_raw_head h
type = GAD_TYPE_ELL_POINT
Definition: gsm_23_032.h:0
GSM utility functions, e.g.
gsm_band
Definition: gsm_utils.h:49
Definition: gsm_04_08.h:1206
struct gsm48_req_ref req_ref
Definition: gsm_04_08.h:1208
struct gsm48_hdr hdr
Definition: gsm_04_08.h:1207
uint8_t ta
Definition: gsm_04_08.h:1209
Definition: gsm_04_08.h:1226
uint8_t data[0]
Definition: gsm_04_08.h:1229
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:1228
Definition: gsm_04_08.h:809
uint8_t power_command
Definition: gsm_04_08.h:812
uint8_t data[0]
Definition: gsm_04_08.h:813
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:811
Definition: gsm_04_08.h:1233
uint8_t rr_cause
Definition: gsm_04_08.h:1234
Definition: gsm_04_08.h:1238
uint8_t rr_cause
Definition: gsm_04_08.h:1239
Definition: gsm_04_08.h:904
Definition: gsm_04_08.h:917
uint8_t sres[4]
Definition: gsm_04_08.h:918
Definition: gsm_04_08.h:833
Definition: gsm_04_08.h:1019
Definition: gsm_04_08.h:977
Definition: gsm_04_08.h:501
uint8_t chan_nr
Definition: gsm_04_08.h:502
union gsm48_chan_desc::@61 __attribute__((packed))
Definition: gsm_04_08.h:744
uint8_t mode
Definition: gsm_04_08.h:746
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:745
Definition: gsm_04_08.h:1254
uint8_t rr_cause
Definition: gsm_04_08.h:1255
uint8_t data[0]
Definition: gsm_04_08.h:1256
Definition: gsm_04_08.h:1260
Definition: gsm_04_08.h:17
Definition: gsm_04_08.h:31
Definition: gsm_04_08.h:62
uint8_t vamos_level
Definition: gsm_04_08.h:213
bool geran_net_sharing
Definition: gsm_04_08.h:221
bool extended_earfcn_val_range
Definition: gsm_04_08.h:227
bool utra_mult_band_ind_supp
Definition: gsm_04_08.h:224
uint8_t sms_value
Definition: gsm_04_08.h:83
bool umts_1_28_mcps_tdd_rat_cap
Definition: gsm_04_08.h:153
struct gsm48_classmark3::@49 gsm_750_assoc_radio_cap
struct gsm48_classmark3::@40 ms_meas_cap
uint8_t assoc_radio_cap_2
Definition: gsm_04_08.h:66
uint8_t cs_ps_srvcc_geran_utra
Definition: gsm_04_08.h:218
struct gsm48_classmark3::@44 gsm_400_bands_supp
bool mod_cap
Definition: gsm_04_08.h:99
uint8_t cs_ps_srvcc_geran_eutra
Definition: gsm_04_08.h:219
uint8_t sm_value
Definition: gsm_04_08.h:84
bool dtm_enhancements_cap
Definition: gsm_04_08.h:181
uint8_t mult_band_supp
Definition: gsm_04_08.h:64
bool e_utra_fdd_supp
Definition: gsm_04_08.h:207
bool ciphering_mode_setting_cap
Definition: gsm_04_08.h:205
bool single_slot_dtm
Definition: gsm_04_08.h:136
bool e_utra_mult_band_ind_supp
Definition: gsm_04_08.h:225
struct gsm48_classmark3::@53 dtm_gprs_high_multislot_cap
bool offset_required
Definition: gsm_04_08.h:186
bool geran_feature_package
Definition: gsm_04_08.h:154
bool extended_meas_cap
Definition: gsm_04_08.h:79
uint8_t tighter_capability
Definition: gsm_04_08.h:214
bool e_utra_tdd_supp
Definition: gsm_04_08.h:208
bool cdma200_rat_cap
Definition: gsm_04_08.h:131
struct gsm48_classmark3::@48 single_band_supp
uint8_t dl_advanced_rx_perf
Definition: gsm_04_08.h:180
bool er_band_support
Definition: gsm_04_08.h:223
bool umts_tdd_rat_cap
Definition: gsm_04_08.h:130
struct gsm48_classmark3::@47 dtm_gprs_multislot_cap
uint8_t mslot_class
Definition: gsm_04_08.h:75
bool present
Definition: gsm_04_08.h:69
struct gsm48_classmark3::@42 ecsd_multislot_cap
struct gsm48_classmark3::@39 hscsd_mult_slot_cap
bool prio_resel_supp
Definition: gsm_04_08.h:210
uint8_t assoc_radio_cap_1
Definition: gsm_04_08.h:65
struct gsm48_classmark3::@41 ms_pos_method_cap
struct gsm48_classmark3::@53::@60 dtm_egprs_high_multislot_cap
uint8_t r_gsm_assoc_radio_cap
Definition: gsm_04_08.h:70
struct gsm48_classmark3::@55 t_gsm_810_assoc_radio_cap
bool extended_tsc_set_cap_supp
Definition: gsm_04_08.h:226
bool utra_csg_cells_rep
Definition: gsm_04_08.h:211
struct gsm48_classmark3::@50 extended_dtm_gprs_multislot_cap
struct gsm48_classmark3::@43::@57 rf_pwr_cap_2
uint8_t a5_bits
Definition: gsm_04_08.h:63
struct gsm48_classmark3::@43::@56 rf_pwr_cap_1
uint8_t psk8_multislot_power_prof
Definition: gsm_04_08.h:172
struct gsm48_classmark3::@51 high_multislot_cap
struct gsm48_classmark3::@43 psk8_struct
bool e_utra_wb_rsrq_meas_supp
Definition: gsm_04_08.h:222
bool ucs2_treatment
Definition: gsm_04_08.h:78
bool umts_fdd_rat_cap
Definition: gsm_04_08.h:129
bool add_pos_cap
Definition: gsm_04_08.h:206
bool sel_ciph_dl_sacch
Definition: gsm_04_08.h:216
bool e_utra_meas_rep_supp
Definition: gsm_04_08.h:209
struct gsm48_classmark3::@54 gsm_710_assoc_radio_cap
struct gsm48_classmark3::@45 gsm_850_assoc_radio_cap
uint8_t gmsk_multislot_power_prof
Definition: gsm_04_08.h:171
struct gsm48_classmark3::@46 gsm_1900_assoc_radio_cap
uint8_t value
Definition: gsm_04_08.h:103
bool geran_feature_package_2
Definition: gsm_04_08.h:170
struct gsm48_classmark3::@50::@59 extended_dtm_egprs_multislot_cap
uint8_t assoc_radio_cap
Definition: gsm_04_08.h:116
struct gsm48_classmark3::@47::@58 dtm_egprs_multislot_cap
bool repeated_acch_capability
Definition: gsm_04_08.h:193
uint8_t method
Definition: gsm_04_08.h:89
struct gsm48_classmark3::@52 t_gsm_400_bands_supp
struct gsm48_classmark3::@38 r_support
Definition: gsm_04_08.h:1273
uint8_t cm2_len
Definition: gsm_04_08.h:1274
struct gsm48_classmark2 cm2
Definition: gsm_04_08.h:1275
uint8_t data[0]
Definition: gsm_04_08.h:1276
Definition: gsm_04_08.h:992
Definition: gsm_04_08.h:817
uint8_t mob_alloc[0]
Definition: gsm_04_08.h:821
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:819
uint8_t mob_alloc_len
Definition: gsm_04_08.h:820
Definition: gsm_04_08.h:825
uint8_t cause
Definition: gsm_04_08.h:828
uint32_t tlli
Definition: gsm_04_08.h:826
uint8_t ra_id[6]
Definition: gsm_04_08.h:827
uint8_t options[0]
Definition: gsm_04_08.h:829
Definition: gsm_04_08.h:948
Definition: gsm_04_08.h:941
uint8_t proto_discr
Definition: gsm_04_08.h:942
uint8_t msg_type
Definition: gsm_04_08.h:943
uint8_t data[0]
Definition: gsm_04_08.h:944
Definition: gsm_04_08.h:847
uint8_t ho_ref
Definition: gsm_04_08.h:850
uint8_t data[0]
Definition: gsm_04_08.h:852
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:849
struct gsm48_cell_desc cell_desc
Definition: gsm_04_08.h:848
uint8_t power_command
Definition: gsm_04_08.h:851
Definition: gsm_04_08.h:1243
uint8_t data[0]
Definition: gsm_04_08.h:1245
uint8_t rr_cause
Definition: gsm_04_08.h:1244
Definition: gsm_04_08.h:1249
uint8_t rr_cause
Definition: gsm_04_08.h:1250
Definition: gsm_04_08.h:1280
uint8_t proto_discr
Definition: gsm_04_08.h:1282
struct gsm48_req_ref req_ref1
Definition: gsm_04_08.h:1286
uint8_t timing_advance2
Definition: gsm_04_08.h:1290
uint8_t l2_plen
Definition: gsm_04_08.h:1281
uint8_t page_mode
Definition: gsm_04_08.h:1284
struct gsm48_chan_desc chan_desc2
Definition: gsm_04_08.h:1288
uint8_t mob_alloc_len
Definition: gsm_04_08.h:1291
uint8_t msg_type
Definition: gsm_04_08.h:1283
struct gsm48_chan_desc chan_desc1
Definition: gsm_04_08.h:1285
uint8_t mob_alloc[0]
Definition: gsm_04_08.h:1292
uint8_t timing_advance1
Definition: gsm_04_08.h:1287
struct gsm48_req_ref req_ref2
Definition: gsm_04_08.h:1289
Definition: gsm_04_08.h:1296
uint8_t page_mode
Definition: gsm_04_08.h:1300
uint8_t wait_ind4
Definition: gsm_04_08.h:1308
uint8_t msg_type
Definition: gsm_04_08.h:1299
uint8_t wait_ind1
Definition: gsm_04_08.h:1302
struct gsm48_req_ref req_ref3
Definition: gsm_04_08.h:1305
struct gsm48_req_ref req_ref2
Definition: gsm_04_08.h:1303
struct gsm48_req_ref req_ref1
Definition: gsm_04_08.h:1301
struct gsm48_req_ref req_ref4
Definition: gsm_04_08.h:1307
uint8_t wait_ind3
Definition: gsm_04_08.h:1306
uint8_t proto_discr
Definition: gsm_04_08.h:1298
uint8_t wait_ind2
Definition: gsm_04_08.h:1304
uint8_t rest[0]
Definition: gsm_04_08.h:1309
uint8_t l2_plen
Definition: gsm_04_08.h:1297
Definition: gsm_04_08.h:856
uint8_t mob_alloc[0]
Definition: gsm_04_08.h:865
uint8_t mob_alloc_len
Definition: gsm_04_08.h:864
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:861
uint8_t timing_advance
Definition: gsm_04_08.h:863
uint8_t proto_discr
Definition: gsm_04_08.h:858
uint8_t msg_type
Definition: gsm_04_08.h:859
struct gsm48_req_ref req_ref
Definition: gsm_04_08.h:862
uint8_t l2_plen
Definition: gsm_04_08.h:857
uint8_t page_mode
Definition: gsm_04_08.h:860
Definition: gsm_04_08.h:1219
struct gsm48_classmark1 classmark1
Definition: gsm_04_08.h:1220
uint8_t mi_len
Definition: gsm_04_08.h:1221
uint8_t mi[0]
Definition: gsm_04_08.h:1222
Definition: gsm_04_08.h:898
uint16_t lac
Definition: gsm_04_08.h:900
uint8_t digits[3]
Definition: gsm_04_08.h:899
Definition: gsm_04_08.h:922
Definition: gsm_04_08.h:534
Definition: gsm_04_08.h:603
Definition: gsm_04_08.h:1313
uint8_t msg_type
Definition: gsm_04_08.h:1316
uint8_t proto_discr
Definition: gsm_04_08.h:1315
uint8_t data[0]
Definition: gsm_04_08.h:1317
uint8_t l2_plen
Definition: gsm_04_08.h:1314
Definition: gsm_04_08.h:869
Definition: gsm_04_08.h:1400
Definition: gsm_04_08.h:1321
Definition: gsm_04_08.h:1342
Definition: gsm_04_08.h:1367
Definition: gsm_04_08.h:626
Definition: gsm_04_08.h:2261
uint8_t rac
Definition: gsm_04_08.h:2264
uint8_t digits[3]
Definition: gsm_04_08.h:2262
uint16_t lac
Definition: gsm_04_08.h:2263
Definition: gsm_04_08.h:638
Definition: gsm_04_08.h:249
Definition: gsm_04_08.h:420
Definition: gsm_04_08.h:359
Definition: gsm_04_08.h:304
Definition: gsm_04_08.h:697
Definition: gsm_04_08.h:1417
uint8_t rr_cause
Definition: gsm_04_08.h:1418
Definition: gsm_04_08.h:1033
Definition: gsm_04_08.h:713
Definition: gsm_04_08.h:727
Definition: gsm_04_08.h:1422
uint8_t cm2_len
Definition: gsm_04_08.h:1423
struct gsm48_classmark2 cm2
Definition: gsm_04_08.h:1424
uint8_t data[0]
Definition: gsm_04_08.h:1425
Definition: gsm_04_08.h:1429
uint8_t rr_cause
Definition: gsm_04_08.h:1430
Definition: gsm_04_08.h:483
Definition: gsm_04_08.h:230
struct gsm48_classmark1 classmark1
Definition: gsm_04_08.h:232
uint8_t classmark3_len
Definition: gsm_04_08.h:235
bool classmark1_set
Definition: gsm_04_08.h:231
uint8_t classmark2_len
Definition: gsm_04_08.h:233
struct gsm48_classmark2 classmark2
Definition: gsm_04_08.h:234
uint8_t classmark3[14]
Definition: gsm_04_08.h:236