Loading...
Searching...
No Matches
gsm_04_08.h
Go to the documentation of this file.
#pragma once
#include <stdint.h>
#include <stdbool.h>
#include <osmocom/core/utils.h>
#include <osmocom/core/endian.h>
#include <osmocom/gsm/gsm_utils.h>
struct gsm_lchan;
/* Chapter 10.5.1.5 */
struct gsm48_classmark1 {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t pwr_lev:3,
a5_1:1,
es_ind:1,
rev_lev:2,
spare:1;
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t spare:1, rev_lev:2, es_ind:1, a5_1:1, pwr_lev:3;
#endif
} __attribute__ ((packed));
/* Chapter 10.5.1.6 */
struct gsm48_classmark2 {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t pwr_lev:3,
a5_1:1,
es_ind:1,
rev_lev:2,
spare:1;
uint8_t fc:1,
vgcs:1,
vbs:1,
sm_cap:1,
ss_scr:2,
ps_cap:1,
spare2:1;
uint8_t a5_2:1,
a5_3:1,
cmsp:1,
solsa:1,
spare3:1,
lcsva_cap:1,
spare4:1,
cm3:1;
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t spare:1, rev_lev:2, es_ind:1, a5_1:1, pwr_lev:3;
uint8_t spare2:1, ps_cap:1, ss_scr:2, sm_cap:1, vbs:1, vgcs:1, fc:1;
uint8_t cm3:1, spare4:1, lcsva_cap:1, spare3:1, solsa:1, cmsp:1, a5_3:1, a5_2:1;
#endif
} __attribute__ ((packed));
/* Chapter 10.5.1.7 */
struct gsm48_classmark3 {
uint8_t a5_bits;
uint8_t mult_band_supp;
uint8_t assoc_radio_cap_1;
uint8_t assoc_radio_cap_2;
struct {
bool present;
uint8_t r_gsm_assoc_radio_cap;
} r_support;
struct {
bool present;
uint8_t mslot_class;
} hscsd_mult_slot_cap;
bool ucs2_treatment;
bool extended_meas_cap;
struct {
bool present;
uint8_t sms_value;
uint8_t sm_value;
} ms_meas_cap;
struct {
bool present;
uint8_t method;
} ms_pos_method_cap;
struct {
bool present;
uint8_t mslot_class;
} ecsd_multislot_cap;
struct {
bool present;
bool mod_cap;
struct {
bool present;
uint8_t value;
} rf_pwr_cap_1;
struct {
bool present;
uint8_t value;
} rf_pwr_cap_2;
} psk8_struct;
struct {
bool present;
uint8_t value;
uint8_t assoc_radio_cap;
} gsm_400_bands_supp;
struct {
bool present;
uint8_t value;
} gsm_850_assoc_radio_cap;
struct {
bool present;
uint8_t value;
} gsm_1900_assoc_radio_cap;
bool umts_fdd_rat_cap;
bool umts_tdd_rat_cap;
bool cdma200_rat_cap;
struct {
bool present;
uint8_t mslot_class;
bool single_slot_dtm;
struct {
bool present;
uint8_t mslot_class;
} dtm_egprs_multislot_cap;
} dtm_gprs_multislot_cap;
struct {
bool present;
uint8_t value;
} single_band_supp;
struct {
bool present;
uint8_t value;
} gsm_750_assoc_radio_cap;
bool umts_1_28_mcps_tdd_rat_cap;
bool geran_feature_package;
struct {
bool present;
uint8_t mslot_class;
struct {
bool present;
uint8_t mslot_class;
} extended_dtm_egprs_multislot_cap;
} extended_dtm_gprs_multislot_cap;
struct {
bool present;
uint8_t value;
} high_multislot_cap;
bool geran_feature_package_2;
uint8_t gmsk_multislot_power_prof;
uint8_t psk8_multislot_power_prof;
struct {
bool present;
uint8_t value;
uint8_t assoc_radio_cap;
} t_gsm_400_bands_supp;
uint8_t dl_advanced_rx_perf;
bool dtm_enhancements_cap;
struct {
bool present;
uint8_t mslot_class;
bool offset_required;
struct {
bool present;
uint8_t mslot_class;
} dtm_egprs_high_multislot_cap;
} dtm_gprs_high_multislot_cap;
bool repeated_acch_capability;
struct {
bool present;
uint8_t value;
} gsm_710_assoc_radio_cap;
struct {
bool present;
uint8_t value;
} t_gsm_810_assoc_radio_cap;
bool ciphering_mode_setting_cap;
bool add_pos_cap;
bool e_utra_fdd_supp;
bool e_utra_tdd_supp;
bool e_utra_meas_rep_supp;
bool prio_resel_supp;
bool utra_csg_cells_rep;
uint8_t vamos_level;
uint8_t tighter_capability;
bool sel_ciph_dl_sacch;
uint8_t cs_ps_srvcc_geran_utra;
uint8_t cs_ps_srvcc_geran_eutra;
bool geran_net_sharing;
bool e_utra_wb_rsrq_meas_supp;
bool er_band_support;
bool utra_mult_band_ind_supp;
bool e_utra_mult_band_ind_supp;
bool extended_tsc_set_cap_supp;
bool extended_earfcn_val_range;
};
struct osmo_gsm48_classmark {
bool classmark1_set;
struct gsm48_classmark1 classmark1;
uint8_t classmark2_len;
struct gsm48_classmark2 classmark2;
uint8_t classmark3_len;
uint8_t classmark3[14]; /* if cm3 gets extended by spec, it will be truncated */
};
bool osmo_gsm48_classmark_is_r99(const struct osmo_gsm48_classmark *cm);
bool osmo_gsm48_classmark1_is_r99(const struct gsm48_classmark1 *cm1);
bool osmo_gsm48_classmark2_is_r99(const struct gsm48_classmark2 *cm2, uint8_t cm2_len);
int osmo_gsm48_classmark_supports_a5(const struct osmo_gsm48_classmark *cm, uint8_t a5);
const char *osmo_gsm48_classmark_a5_name(const struct osmo_gsm48_classmark *cm);
char *osmo_gsm48_classmark_a5_name_buf(char *buf, size_t buf_len, const struct osmo_gsm48_classmark *cm);
char *osmo_gsm48_classmark_a5_name_c(const void *ctx, const struct osmo_gsm48_classmark *cm);
void osmo_gsm48_classmark_update(struct osmo_gsm48_classmark *dst, const struct osmo_gsm48_classmark *src);
int8_t osmo_gsm48_rfpowercap2powerclass(enum gsm_band band, uint8_t rf_power_cap);
/* Chapter 10.5.2.1b.3 */
struct gsm48_range_1024 {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t w1_hi:2,
f0:1,
form_id:5;
uint8_t w1_lo;
uint8_t w2_hi;
uint8_t w3_hi:7,
w2_lo:1;
uint8_t w4_hi:6,
w3_lo:2;
uint8_t w5_hi:6,
w4_lo:2;
uint8_t w6_hi:6,
w5_lo:2;
uint8_t w7_hi:6,
w6_lo:2;
uint8_t w8_hi:6,
w7_lo:2;
uint8_t w9:7,
w8_lo:1;
uint8_t w11_hi:1,
w10:7;
uint8_t w12_hi:2,
w11_lo:6;
uint8_t w13_hi:3,
w12_lo:5;
uint8_t w14_hi:4,
w13_lo:4;
uint8_t w15_hi:5,
w14_lo:3;
uint8_t w16:6,
w15_lo:2;
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t form_id:5, f0:1, w1_hi:2;
uint8_t w1_lo;
uint8_t w2_hi;
uint8_t w2_lo:1, w3_hi:7;
uint8_t w3_lo:2, w4_hi:6;
uint8_t w4_lo:2, w5_hi:6;
uint8_t w5_lo:2, w6_hi:6;
uint8_t w6_lo:2, w7_hi:6;
uint8_t w7_lo:2, w8_hi:6;
uint8_t w8_lo:1, w9:7;
uint8_t w10:7, w11_hi:1;
uint8_t w11_lo:6, w12_hi:2;
uint8_t w12_lo:5, w13_hi:3;
uint8_t w13_lo:4, w14_hi:4;
uint8_t w14_lo:3, w15_hi:5;
uint8_t w15_lo:2, w16:6;
#endif
} __attribute__ ((packed));
/* Chapter 10.5.2.1b.4 */
struct gsm48_range_512 {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t orig_arfcn_hi:1,
form_id:7;
uint8_t orig_arfcn_mid;
uint8_t w1_hi:7,
orig_arfcn_lo:1;
uint8_t w2_hi:6,
w1_lo:2;
uint8_t w3_hi:6,
w2_lo:2;
uint8_t w4_hi:6,
w3_lo:2;
uint8_t w5:7,
w4_lo:1;
uint8_t w7_hi:1,
w6:7;
uint8_t w8_hi:2,
w7_lo:6;
uint8_t w9_hi:4,
w8_lo:4;
uint8_t w10:6,
w9_lo:2;
uint8_t w12_hi:2,
w11:6;
uint8_t w13_hi:4,
w12_lo:4;
uint8_t w14:6,
w13_lo:2;
uint8_t w16_hi:2,
w15:6;
uint8_t w17:5,
w16_lo:3;
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t form_id:7, orig_arfcn_hi:1;
uint8_t orig_arfcn_mid;
uint8_t orig_arfcn_lo:1, w1_hi:7;
uint8_t w1_lo:2, w2_hi:6;
uint8_t w2_lo:2, w3_hi:6;
uint8_t w3_lo:2, w4_hi:6;
uint8_t w4_lo:1, w5:7;
uint8_t w6:7, w7_hi:1;
uint8_t w7_lo:6, w8_hi:2;
uint8_t w8_lo:4, w9_hi:4;
uint8_t w9_lo:2, w10:6;
uint8_t w11:6, w12_hi:2;
uint8_t w12_lo:4, w13_hi:4;
uint8_t w13_lo:2, w14:6;
uint8_t w15:6, w16_hi:2;
uint8_t w16_lo:3, w17:5;
#endif
} __attribute__ ((packed));
/* Chapter 10.5.2.1b.5 */
struct gsm48_range_256 {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t orig_arfcn_hi:1,
form_id:7;
uint8_t orig_arfcn_mid;
uint8_t w1_hi:7,
orig_arfcn_lo:1;
uint8_t w2:7,
w1_lo:1;
uint8_t w4_hi:1,
w3:7;
uint8_t w5_hi:3,
w4_lo:5;
uint8_t w6_hi:5,
w5_lo:3;
uint8_t w8_hi:1,
w7:6,
w6_lo:1;
uint8_t w9_hi:4,
w8_lo:4;
uint8_t w11_hi:2,
w10:5,
w9_lo:1;
uint8_t w12:5,
w11_lo:3;
uint8_t w14_hi:3,
w13:5;
uint8_t w16_hi:1,
w15:5,
w14_lo:2;
uint8_t w18_hi:1,
w17:4,
w16_lo:3;
uint8_t w20_hi:1,
w19:4,
w18_lo:3;
uint8_t spare:1,
w21:4,
w20_lo:3;
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t form_id:7, orig_arfcn_hi:1;
uint8_t orig_arfcn_mid;
uint8_t orig_arfcn_lo:1, w1_hi:7;
uint8_t w1_lo:1, w2:7;
uint8_t w3:7, w4_hi:1;
uint8_t w4_lo:5, w5_hi:3;
uint8_t w5_lo:3, w6_hi:5;
uint8_t w6_lo:1, w7:6, w8_hi:1;
uint8_t w8_lo:4, w9_hi:4;
uint8_t w9_lo:1, w10:5, w11_hi:2;
uint8_t w11_lo:3, w12:5;
uint8_t w13:5, w14_hi:3;
uint8_t w14_lo:2, w15:5, w16_hi:1;
uint8_t w16_lo:3, w17:4, w18_hi:1;
uint8_t w18_lo:3, w19:4, w20_hi:1;
uint8_t w20_lo:3, w21:4, spare:1;
#endif
} __attribute__ ((packed));
/* Chapter 10.5.2.1b.6 */
struct gsm48_range_128 {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t orig_arfcn_hi:1,
form_id:7;
uint8_t orig_arfcn_mid;
uint8_t w1:7,
orig_arfcn_lo:1;
uint8_t w3_hi:2,
w2:6;
uint8_t w4_hi:4,
w3_lo:4;
uint8_t w6_hi:2,
w5:5,
w4_lo:1;
uint8_t w7:5,
w6_lo:3;
uint8_t w9:4,
w8:4;
uint8_t w11:4,
w10:4;
uint8_t w13:4,
w12:4;
uint8_t w15:4,
w14:4;
uint8_t w18_hi:2,
w17:3,
w16:3;
uint8_t w21_hi:1,
w20:3,
w19:3,
w18_lo:1;
uint8_t w23:3,
w22:3,
w21_lo:2;
uint8_t w26_hi:2,
w25:3,
w24:3;
uint8_t spare:1,
w28:3,
w27:3,
w26_lo:1;
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t form_id:7, orig_arfcn_hi:1;
uint8_t orig_arfcn_mid;
uint8_t orig_arfcn_lo:1, w1:7;
uint8_t w2:6, w3_hi:2;
uint8_t w3_lo:4, w4_hi:4;
uint8_t w4_lo:1, w5:5, w6_hi:2;
uint8_t w6_lo:3, w7:5;
uint8_t w8:4, w9:4;
uint8_t w10:4, w11:4;
uint8_t w12:4, w13:4;
uint8_t w14:4, w15:4;
uint8_t w16:3, w17:3, w18_hi:2;
uint8_t w18_lo:1, w19:3, w20:3, w21_hi:1;
uint8_t w21_lo:2, w22:3, w23:3;
uint8_t w24:3, w25:3, w26_hi:2;
uint8_t w26_lo:1, w27:3, w28:3, spare:1;
#endif
} __attribute__ ((packed));
/* Chapter 10.5.2.1b.7 */
struct gsm48_var_bit {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t orig_arfcn_hi:1,
form_id:7;
uint8_t orig_arfcn_mid;
uint8_t rrfcn1_7:7,
orig_arfcn_lo:1;
uint8_t rrfcn8_111[13];
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t form_id:7, orig_arfcn_hi:1;
uint8_t orig_arfcn_mid;
uint8_t orig_arfcn_lo:1, rrfcn1_7:7;
uint8_t rrfcn8_111[13];
#endif
} __attribute__ ((packed));
/* Chapter 10.5.2.5 */
struct gsm48_chan_desc {
uint8_t chan_nr;
union {
struct {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t maio_high:4,
h:1,
tsc:3;
uint8_t hsn:6,
maio_low:2;
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t tsc:3, h:1, maio_high:4;
uint8_t maio_low:2, hsn:6;
#endif
} __attribute__ ((packed)) h1;
struct {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t arfcn_high:2,
spare:2,
h:1,
tsc:3;
uint8_t arfcn_low;
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t tsc:3, h:1, spare:2, arfcn_high:2;
uint8_t arfcn_low;
#endif
} __attribute__ ((packed)) h0;
} __attribute__ ((packed));
} __attribute__ ((packed));
/* Chapter 10.5.2.20 */
struct gsm48_meas_res {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t rxlev_full:6,
dtx_used:1,
ba_used:1;
uint8_t rxlev_sub:6,
meas_valid:1,
spare:1;
uint8_t no_nc_n_hi:1,
rxqual_sub:3,
rxqual_full:3,
spare2:1;
uint8_t rxlev_nc1:6,
no_nc_n_lo:2;
uint8_t bsic_nc1_hi:3,
bcch_f_nc1:5;
uint8_t rxlev_nc2_hi:5,
bsic_nc1_lo:3;
uint8_t bsic_nc2_hi:2,
bcch_f_nc2:5,
rxlev_nc2_lo:1;
uint8_t rxlev_nc3_hi:4,
bsic_nc2_lo:4;
uint8_t bsic_nc3_hi:1,
bcch_f_nc3:5,
rxlev_nc3_lo:2;
uint8_t rxlev_nc4_hi:3,
bsic_nc3_lo:5;
uint8_t bcch_f_nc4:5,
rxlev_nc4_lo:3;
uint8_t rxlev_nc5_hi:2,
bsic_nc4:6;
uint8_t bcch_f_nc5_hi:4,
rxlev_nc5_lo:4;
uint8_t rxlev_nc6_hi:1,
bsic_nc5:6,
bcch_f_nc5_lo:1;
uint8_t bcch_f_nc6_hi:3,
rxlev_nc6_lo:5;
uint8_t bsic_nc6:6,
bcch_f_nc6_lo:2;
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t ba_used:1, dtx_used:1, rxlev_full:6;
uint8_t spare:1, meas_valid:1, rxlev_sub:6;
uint8_t spare2:1, rxqual_full:3, rxqual_sub:3, no_nc_n_hi:1;
uint8_t no_nc_n_lo:2, rxlev_nc1:6;
uint8_t bcch_f_nc1:5, bsic_nc1_hi:3;
uint8_t bsic_nc1_lo:3, rxlev_nc2_hi:5;
uint8_t rxlev_nc2_lo:1, bcch_f_nc2:5, bsic_nc2_hi:2;
uint8_t bsic_nc2_lo:4, rxlev_nc3_hi:4;
uint8_t rxlev_nc3_lo:2, bcch_f_nc3:5, bsic_nc3_hi:1;
uint8_t bsic_nc3_lo:5, rxlev_nc4_hi:3;
uint8_t rxlev_nc4_lo:3, bcch_f_nc4:5;
uint8_t bsic_nc4:6, rxlev_nc5_hi:2;
uint8_t rxlev_nc5_lo:4, bcch_f_nc5_hi:4;
uint8_t bcch_f_nc5_lo:1, bsic_nc5:6, rxlev_nc6_hi:1;
uint8_t rxlev_nc6_lo:5, bcch_f_nc6_hi:3;
uint8_t bcch_f_nc6_lo:2, bsic_nc6:6;
#endif
} __attribute__ ((packed));
static inline bool gsm48_meas_res_is_valid(const struct gsm48_meas_res *mr)
{
return (mr->meas_valid == 0); /* 0 means valid */
}
/* Chapter 10.5.2.21aa */
struct gsm48_multi_rate_conf {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t smod : 2,
spare: 1,
icmi : 1,
nscb : 1,
ver : 3;
uint8_t m4_75 : 1,
m5_15 : 1,
m5_90 : 1,
m6_70 : 1,
m7_40 : 1,
m7_95 : 1,
m10_2 : 1,
m12_2 : 1;
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t ver:3, nscb:1, icmi:1, spare:1, smod:2;
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;
#endif
} __attribute__((packed));
/* Chapter 10.5.2.28(a) */
struct gsm48_power_cmd {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t power_level:5,
spare:2,
atc:1;
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t atc:1, spare:2, power_level:5;
#endif
} __attribute__((packed));
/* Chapter 10.5.2.29 */
struct gsm48_rach_control {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t re :1,
cell_bar :1,
tx_integer :4,
max_trans :2;
uint8_t t2; /* ACC 8-15 barred flags */
uint8_t t3; /* ACC 0-7 barred flags */
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t max_trans:2, tx_integer:4, cell_bar:1, re:1;
uint8_t t2;
uint8_t t3;
#endif
} __attribute__ ((packed));
/*
* Mark an Access Control Class as barred.
* \param[in] rach_control A Rach Control Information Element.
* \param[in] acc Access Control Class number (0 - 15) which shall be barred.
*/
static inline void gsm48_barr_acc(struct gsm48_rach_control *rach_control, unsigned int acc)
{
OSMO_ASSERT(acc <= 15);
if (acc >= 8)
rach_control->t2 |= (1 << (acc - 8));
else
rach_control->t3 |= (1 << (acc));
}
/*
* Mark an Access Control Class as allowed.
* \param[in] rach_control A Rach Control Information Element.
* \param[in] acc Access Control Class number (0 - 15) which shall be allowed.
*/
static inline void gsm48_allow_acc(struct gsm48_rach_control *rach_control, unsigned int acc)
{
OSMO_ASSERT(acc <= 15);
if (acc >= 8)
rach_control->t2 &= ~(1 << (acc - 8));
else
rach_control->t3 &= ~(1 << (acc));
}
/*
* Indicate whether an Access Control Class is barred.
* \param[in] rach_control A Rach Control Information Element.
* \param[in] acc Access Control Class number (0 - 15).
* \returns true if the Access Control class is barred, false otherwise
*/
static inline bool gsm48_acc_is_barred(struct gsm48_rach_control *rach_control, unsigned int acc)
{
OSMO_ASSERT(acc <= 15);
if (acc >= 8)
return (rach_control->t2 & (1 << (acc - 8))) != 0;
return (rach_control->t3 & (1 << (acc))) != 0;
}
/* Chapter 10.5.2.30 */
struct gsm48_req_ref {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t ra;
uint8_t t3_high:3,
t1:5;
uint8_t t2:5,
t3_low:3;
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t ra;
uint8_t t1:5, t3_high:3;
uint8_t t3_low:3, t2:5;
#endif
} __attribute__ ((packed));
/* Chapter 10.5.2.38 */
struct gsm48_start_time {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t t3_high:3,
t1:5;
uint8_t t2:5,
t3_low:3;
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t t1:5, t3_high:3;
uint8_t t3_low:3, t2:5;
#endif
} __attribute__ ((packed));
/* Chapter 10.5.2.39 */
struct gsm48_sync_ind {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t si:2,
rot:1,
nci:1,
sync_ie:4;
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t sync_ie:4, nci:1, rot:1, si:2;
#endif
} __attribute__((packed));
/*
* Chapter 9.1.5/9.1.6
*
* For 9.1.6 the chan_desc has the meaning of 10.5.2.5a
*/
struct gsm48_chan_mode_modify {
struct gsm48_chan_desc chan_desc;
uint8_t mode;
} __attribute__ ((packed));
enum gsm48_chan_mode {
GSM48_CMODE_SIGN = 0x00,
GSM48_CMODE_SPEECH_V1 = 0x01,
GSM48_CMODE_SPEECH_EFR = 0x21,
GSM48_CMODE_SPEECH_AMR = 0x41,
GSM48_CMODE_SPEECH_V4 = 0x81,
GSM48_CMODE_SPEECH_V5 = 0x82,
GSM48_CMODE_SPEECH_V6 = 0x83,
/* ECSD: 43.5 kbit/s (DL) + 14.5 kbit/s (UL) */
GSM48_CMODE_DATA_43k5_14k5 = 0x61,
/* ECSD: 29.0 kbit/s (DL) + 14.5 kbit/s (UL) */
GSM48_CMODE_DATA_29k0_14k5 = 0x62,
/* ECSD: 43.5 kbit/s (DL) + 29.0 kbit/s (UL) */
GSM48_CMODE_DATA_43k5_29k0 = 0x64,
/* ECSD: 14.5 kbit/s (DL) + 43.5 kbit/s (UL) */
GSM48_CMODE_DATA_14k5_43k5 = 0x67,
/* ECSD: 14.5 kbit/s (DL) + 29.0 kbit/s (UL) */
GSM48_CMODE_DATA_14k5_29k0 = 0x65,
/* ECSD: 29.0 kbit/s (DL) + 43.5 kbit/s (UL) */
GSM48_CMODE_DATA_29k0_43k5 = 0x66,
GSM48_CMODE_DATA_43k5 = 0x27,
GSM48_CMODE_DATA_32k0 = 0x63,
GSM48_CMODE_DATA_29k0 = 0x43,
GSM48_CMODE_DATA_14k5 = 0x0f,
GSM48_CMODE_DATA_12k0 = 0x03,
GSM48_CMODE_DATA_6k0 = 0x0b,
GSM48_CMODE_DATA_3k6 = 0x13,
GSM48_CMODE_SPEECH_V1_VAMOS = 0xc1,
GSM48_CMODE_SPEECH_V2_VAMOS = 0xc2,
GSM48_CMODE_SPEECH_V3_VAMOS = 0xc3,
GSM48_CMODE_SPEECH_V5_VAMOS = 0xc5,
};
extern const struct value_string gsm48_chan_mode_names[];
static inline const char *gsm48_chan_mode_name(enum gsm48_chan_mode val)
{ return get_value_string(gsm48_chan_mode_names, val); }
/* Chapter 9.1.2 */
struct gsm48_ass_cmd {
/* Semantic is from 10.5.2.5a */
struct gsm48_chan_desc chan_desc;
uint8_t power_command;
uint8_t data[0];
} __attribute__((packed));
/* Chapter 9.1.13 */
struct gsm48_frq_redef {
/* Semantic is from 10.5.2.5a */
struct gsm48_chan_desc chan_desc;
uint8_t mob_alloc_len;
uint8_t mob_alloc[0];
} __attribute__((packed));
/* Chapter 9.1.13b GPRS suspension request */
struct gsm48_gprs_susp_req {
uint32_t tlli;
uint8_t ra_id[6];
uint8_t cause;
uint8_t options[0];
} __attribute__ ((packed));
/* Chapter 10.5.2.2 */
struct gsm48_cell_desc {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t bcc:3,
ncc:3,
arfcn_hi:2;
uint8_t arfcn_lo;
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t arfcn_hi:2, ncc:3, bcc:3;
uint8_t arfcn_lo;
#endif
} __attribute__((packed));
/* Chapter 9.1.15 */
struct gsm48_ho_cmd {
struct gsm48_cell_desc cell_desc;
struct gsm48_chan_desc chan_desc;
uint8_t ho_ref;
uint8_t power_command;
uint8_t data[0];
} __attribute__((packed));
/* Chapter 9.1.18 */
struct gsm48_imm_ass {
uint8_t l2_plen;
uint8_t proto_discr;
uint8_t msg_type;
uint8_t page_mode;
struct gsm48_chan_desc chan_desc;
struct gsm48_req_ref req_ref;
uint8_t timing_advance;
uint8_t mob_alloc_len;
uint8_t mob_alloc[0];
} __attribute__ ((packed));
/* Chapter 9.1.25 */
struct gsm48_pag_resp {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t spare:4,
key_seq:4;
union {
uint32_t classmark2; /* Backward compatibility */
struct {
uint8_t cm2_len;
struct gsm48_classmark2 cm2;
};
};
uint8_t mi_len;
uint8_t mi[0];
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t key_seq:4, spare:4;
union {
uint32_t classmark2;
struct {
uint8_t cm2_len;
struct gsm48_classmark2 cm2;
};
};
uint8_t mi_len;
uint8_t mi[0];
#endif
} __attribute__ ((packed));
/* Chapter 10.5.1.3 */
struct gsm48_loc_area_id {
uint8_t digits[3]; /* BCD! */
uint16_t lac;
} __attribute__ ((packed));
/* Section 9.2.2 */
struct gsm48_auth_req {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t key_seq:4,
spare:4;
uint8_t rand[16];
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t spare:4, key_seq:4;
uint8_t rand[16];
#endif
} __attribute__ ((packed));
/* Section 9.2.3 */
struct gsm48_auth_resp {
uint8_t sres[4];
} __attribute__ ((packed));
/* Section 9.2.15 */
struct gsm48_loc_upd_req {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t type:4,
key_seq:4;
struct gsm48_loc_area_id lai;
struct gsm48_classmark1 classmark1;
uint8_t mi_len;
uint8_t mi[0];
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t key_seq:4, type:4;
struct gsm48_loc_area_id lai;
struct gsm48_classmark1 classmark1;
uint8_t mi_len;
uint8_t mi[0];
#endif
} __attribute__ ((packed));
/* Section 10.1 */
struct gsm48_hdr {
uint8_t proto_discr;
uint8_t msg_type;
uint8_t data[0];
} __attribute__ ((packed));
/* Short header */
struct gsm48_hdr_sh {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t l2_header:2, /* < short layer 2 header : bit(2) > See 3GPP TS 44.006 §6.4a */
msg_type:5, /* < message type : bit(5) > See 3GPP TS 44.018 Table 10.4.2 */
rr_short_pd:1; /* < RR short PD : bit > See 3GPP TS 24.007 §11.3.2 */
uint8_t data[0];
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t rr_short_pd:1, msg_type:5, l2_header:2;
uint8_t data[0];
#endif
} __attribute__ ((packed));
/* Section 9.1.3x System information Type header */
struct gsm48_system_information_type_header {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t l2_plen;
uint8_t rr_protocol_discriminator :4,
skip_indicator:4;
uint8_t system_information;
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t l2_plen;
uint8_t skip_indicator:4, rr_protocol_discriminator:4;
uint8_t system_information;
#endif
} __attribute__ ((packed));
/* Section 10.5.2.4 Cell Selection Parameters */
struct gsm48_cell_sel_par {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t ms_txpwr_max_ccch:5, /* GSM 05.08 MS-TXPWR-MAX-CCCH */
cell_resel_hyst:3; /* GSM 05.08 CELL-RESELECT-HYSTERESIS */
uint8_t rxlev_acc_min:6, /* GSM 05.08 RXLEV-ACCESS-MIN */
neci:1,
acs:1;
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t cell_resel_hyst:3, ms_txpwr_max_ccch:5;
uint8_t acs:1, neci:1, rxlev_acc_min:6;
#endif
} __attribute__ ((packed));
/* 3GPP TS 44.018 Section 10.5.2.11 Control Channel Description */
struct gsm48_control_channel_descr {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t ccch_conf :3,
bs_ag_blks_res :3,
att :1,
mscr :1;
uint8_t bs_pa_mfrms : 3,
spare_1 :2,
cbq3 :2,
spare_2 :1;
uint8_t t3212;
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t mscr:1, att:1, bs_ag_blks_res:3, ccch_conf:3;
uint8_t spare_2:1, cbq3:2, spare_1:2, bs_pa_mfrms:3;
uint8_t t3212;
#endif
} __attribute__ ((packed));
enum gsm48_dtx_mode {
GSM48_DTX_MAY_BE_USED,
GSM48_DTX_SHALL_BE_USED,
GSM48_DTX_SHALL_NOT_BE_USED
};
/* Cell Options for SI6, SACCH (10.5.2.3a.2) or SI3, BCCH (Table 10.5.2.3.1),
3GPP TS 44.018 */
struct gsm48_cell_options {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t radio_link_timeout:4,
dtx:2,
pwrc:1,
/* either DN-IND or top bit of DTX IND */
d:1;
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t d:1, pwrc:1, dtx:2, radio_link_timeout:4;
#endif
} __attribute__ ((packed));
/* Section 9.2.9 CM service request */
struct gsm48_service_request {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t cm_service_type : 4,
cipher_key_seq : 4;
union {
uint32_t classmark; /* Backward compatibility */
struct {
uint8_t cm2_len;
struct gsm48_classmark2 classmark2;
};
};
uint8_t mi_len;
uint8_t mi[0];
/* optional priority level */
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t cipher_key_seq:4, cm_service_type:4;
union {
uint32_t classmark;
struct {
uint8_t cm2_len;
struct gsm48_classmark2 classmark2;
};
};
uint8_t mi_len;
uint8_t mi[0];
#endif
} __attribute__ ((packed));
/* Section 9.1.31 System information Type 1 */
struct gsm48_system_information_type_1 {
struct gsm48_system_information_type_header header;
uint8_t cell_channel_description[16];
struct gsm48_rach_control rach_control;
uint8_t rest_octets[0]; /* NCH position on the CCCH */
} __attribute__ ((packed));
/* Section 9.1.32 System information Type 2 */
struct gsm48_system_information_type_2 {
struct gsm48_system_information_type_header header;
uint8_t bcch_frequency_list[16];
uint8_t ncc_permitted;
struct gsm48_rach_control rach_control;
} __attribute__ ((packed));
/* Section 9.1.33 System information Type 2bis */
struct gsm48_system_information_type_2bis {
struct gsm48_system_information_type_header header;
uint8_t bcch_frequency_list[16];
struct gsm48_rach_control rach_control;
uint8_t rest_octets[0];
} __attribute__ ((packed));
/* Section 9.1.34 System information Type 2ter */
struct gsm48_system_information_type_2ter {
struct gsm48_system_information_type_header header;
uint8_t ext_bcch_frequency_list[16];
uint8_t rest_octets[0];
} __attribute__ ((packed));
/* Section 9.1.34a System information Type 2quater */
struct gsm48_system_information_type_2quater {
struct gsm48_system_information_type_header header;
uint8_t rest_octets[0];
} __attribute__ ((packed));
/* Section 9.1.35 System information Type 3 */
struct gsm48_system_information_type_3 {
struct gsm48_system_information_type_header header;
uint16_t cell_identity;
struct gsm48_loc_area_id lai;
struct gsm48_control_channel_descr control_channel_desc;
struct gsm48_cell_options cell_options;
struct gsm48_cell_sel_par cell_sel_par;
struct gsm48_rach_control rach_control;
uint8_t rest_octets[0];
} __attribute__ ((packed));
/* Section 9.1.36 System information Type 4 */
struct gsm48_system_information_type_4 {
struct gsm48_system_information_type_header header;
struct gsm48_loc_area_id lai;
struct gsm48_cell_sel_par cell_sel_par;
struct gsm48_rach_control rach_control;
/* optional CBCH conditional CBCH... followed by
mandantory SI 4 Reset Octets
*/
uint8_t data[0];
} __attribute__ ((packed));
/* Section 9.1.37 System information Type 5 */
struct gsm48_system_information_type_5 {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t rr_protocol_discriminator :4,
skip_indicator:4;
uint8_t system_information;
uint8_t bcch_frequency_list[16];
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t skip_indicator:4, rr_protocol_discriminator:4;
uint8_t system_information;
uint8_t bcch_frequency_list[16];
#endif
} __attribute__ ((packed));
/* Section 9.1.38 System information Type 5bis */
struct gsm48_system_information_type_5bis {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t rr_protocol_discriminator :4,
skip_indicator:4;
uint8_t system_information;
uint8_t bcch_frequency_list[16];
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t skip_indicator:4, rr_protocol_discriminator:4;
uint8_t system_information;
uint8_t bcch_frequency_list[16];
#endif
} __attribute__ ((packed));
/* Section 9.1.39 System information Type 5ter */
struct gsm48_system_information_type_5ter {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t rr_protocol_discriminator :4,
skip_indicator:4;
uint8_t system_information;
uint8_t bcch_frequency_list[16];
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t skip_indicator:4, rr_protocol_discriminator:4;
uint8_t system_information;
uint8_t bcch_frequency_list[16];
#endif
} __attribute__ ((packed));
/* Section 9.1.40 System information Type 6 */
struct gsm48_system_information_type_6 {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t rr_protocol_discriminator :4,
skip_indicator:4;
uint8_t system_information;
uint16_t cell_identity;
struct gsm48_loc_area_id lai;
struct gsm48_cell_options cell_options;
uint8_t ncc_permitted;
uint8_t rest_octets[0];
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t skip_indicator:4, rr_protocol_discriminator:4;
uint8_t system_information;
uint16_t cell_identity;
struct gsm48_loc_area_id lai;
struct gsm48_cell_options cell_options;
uint8_t ncc_permitted;
uint8_t rest_octets[0];
#endif
} __attribute__ ((packed));
/* Section 9.1.50 System Information type 10 (ASCI) */
struct gsm48_system_information_type_10 {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t l2_header:2, /* < short layer 2 header : bit(2) > See 3GPP TS 44.006 §6.4a */
msg_type:5, /* < message type : bit(5) > See 3GPP TS 44.018 Table 10.4.2 */
rr_short_pd:1; /* < RR short PD : bit > See 3GPP TS 24.007 §11.3.2 */
uint8_t rest_octets[0]; /* < SI10 Rest Octets : bit(160) > See 3GPP TS 44.018 §10.5.2.44 */
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t rr_short_pd:1, msg_type:5, l2_header:2;
uint8_t rest_octets[0];
#endif
} __attribute__ ((packed));
/* TS 44.018 Section 9.1.49 */
struct gsm0408_vgcs_ul_grant {
struct gsm48_hdr hdr;
struct gsm48_req_ref req_ref;
uint8_t ta;
} __attribute__ ((packed));
/* Section 9.1.43a System Information type 13 */
struct gsm48_system_information_type_13 {
struct gsm48_system_information_type_header header;
uint8_t rest_octets[0];
} __attribute__ ((packed));
/* Section 9.2.12 IMSI Detach Indication */
struct gsm48_imsi_detach_ind {
struct gsm48_classmark1 classmark1;
uint8_t mi_len;
uint8_t mi[0];
} __attribute__ ((packed));
/* Section 9.1.1 */
struct gsm48_add_ass {
/* Semantic is from 10.5.2.5 */
struct gsm48_chan_desc chan_desc;
uint8_t data[0];
} __attribute__((packed));
/* Section 9.1.3 */
struct gsm48_ass_cpl {
uint8_t rr_cause;
} __attribute__((packed));
/* Section 9.1.4 */
struct gsm48_ass_fail {
uint8_t rr_cause;
} __attribute__((packed));
/* Section 9.1.3 */
struct gsm48_ho_cpl {
uint8_t rr_cause;
uint8_t data[0];
} __attribute__((packed));
/* Section 9.1.4 */
struct gsm48_ho_fail {
uint8_t rr_cause;
} __attribute__((packed));
/* Section 9.1.7 */
struct gsm48_chan_rel {
uint8_t rr_cause;
uint8_t data[0];
} __attribute__((packed));
/* Section 9.1.9 */
struct gsm48_cip_mode_cmd {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t sc:1,
alg_id:3,
cr:1,
spare:3;
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t spare:3, cr:1, alg_id:3, sc:1;
#endif
} __attribute__((packed));
/* Section 9.1.11 */
struct gsm48_cm_change {
uint8_t cm2_len;
struct gsm48_classmark2 cm2;
uint8_t data[0];
} __attribute__((packed));
/* Section 9.1.19 */
struct gsm48_imm_ass_ext {
uint8_t l2_plen;
uint8_t proto_discr;
uint8_t msg_type;
uint8_t page_mode;
struct gsm48_chan_desc chan_desc1;
struct gsm48_req_ref req_ref1;
uint8_t timing_advance1;
struct gsm48_chan_desc chan_desc2;
struct gsm48_req_ref req_ref2;
uint8_t timing_advance2;
uint8_t mob_alloc_len;
uint8_t mob_alloc[0];
} __attribute__ ((packed));
/* Section 9.1.20 */
struct gsm48_imm_ass_rej {
uint8_t l2_plen;
uint8_t proto_discr;
uint8_t msg_type;
uint8_t page_mode;
struct gsm48_req_ref req_ref1;
uint8_t wait_ind1;
struct gsm48_req_ref req_ref2;
uint8_t wait_ind2;
struct gsm48_req_ref req_ref3;
uint8_t wait_ind3;
struct gsm48_req_ref req_ref4;
uint8_t wait_ind4;
uint8_t rest[0];
} __attribute__ ((packed));
/* Section 9.1.21b */
struct gsm48_notification_nch {
uint8_t l2_plen;
uint8_t proto_discr;
uint8_t msg_type;
uint8_t data[0];
} __attribute__((packed));
/* Section 9.1.22 */
struct gsm48_paging1 {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t l2_plen;
uint8_t proto_discr;
uint8_t msg_type;
uint8_t pag_mode:2,
spare:2,
cneed1:2,
cneed2:2;
uint8_t data[0];
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t l2_plen;
uint8_t proto_discr;
uint8_t msg_type;
uint8_t cneed2:2, cneed1:2, spare:2, pag_mode:2;
uint8_t data[0];
#endif
} __attribute__((packed));
/* Section 9.1.23 */
struct gsm48_paging2 {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t l2_plen;
uint8_t proto_discr;
uint8_t msg_type;
uint8_t pag_mode:2,
spare:2,
cneed1:2,
cneed2:2;
uint32_t tmsi1;
uint32_t tmsi2;
uint8_t data[0];
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t l2_plen;
uint8_t proto_discr;
uint8_t msg_type;
uint8_t cneed2:2, cneed1:2, spare:2, pag_mode:2;
uint32_t tmsi1;
uint32_t tmsi2;
uint8_t data[0];
#endif
} __attribute__((packed));
/* Section 9.1.24 */
struct gsm48_paging3 {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t l2_plen;
uint8_t proto_discr;
uint8_t msg_type;
uint8_t pag_mode:2,
spare:2,
cneed1:2,
cneed2:2;
uint32_t tmsi1;
uint32_t tmsi2;
uint32_t tmsi3;
uint32_t tmsi4;
uint8_t cneed3:2,
cneed4:2,
spare2:4;
uint8_t rest[0];
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t l2_plen;
uint8_t proto_discr;
uint8_t msg_type;
uint8_t cneed2:2, cneed1:2, spare:2, pag_mode:2;
uint32_t tmsi1;
uint32_t tmsi2;
uint32_t tmsi3;
uint32_t tmsi4;
uint8_t spare2:4, cneed4:2, cneed3:2;
uint8_t rest[0];
#endif
} __attribute__((packed));
/* Section 9.1.25 */
struct gsm48_pag_rsp {
#if OSMO_IS_LITTLE_ENDIAN
uint8_t key_seq:3,
spare:5;
uint8_t cm2_len;
struct gsm48_classmark2 cm2;
uint8_t data[0];
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
uint8_t spare:5, key_seq:3;
uint8_t cm2_len;
struct gsm48_classmark2 cm2;
uint8_t data[0];
#endif
} __attribute__((packed));
/* Section 9.1.29 */
struct gsm48_rr_status {
uint8_t rr_cause;
} __attribute__((packed));
/* Section 9.1.44 */
struct gsm48_talker_indication {
uint8_t cm2_len;
struct gsm48_classmark2 cm2;
uint8_t data[0];
} __attribute__((packed));
/* Section 9.1.48 */
struct gsm48_uplink_release {
uint8_t rr_cause;
} __attribute__((packed));
/* Section 10.2 + GSM 04.07 12.2.3.1.1 + 3GPP TS 24.007 11.2.3.1.1 */
#define GSM48_PDISC_GROUP_CC 0x00
#define GSM48_PDISC_BCAST_CC 0x01
#define GSM48_PDISC_PDSS1 0x02 /* 04.07 only */
#define GSM48_PDISC_CC 0x03
#define GSM48_PDISC_PDSS2 0x04 /* 04.07 only */
#define GSM48_PDISC_GTTP 0x04 /* 24.007 only */
#define GSM48_PDISC_MM 0x05
#define GSM48_PDISC_RR 0x06
#define GSM48_PDISC_MM_GPRS 0x08
#define GSM48_PDISC_SMS 0x09
#define GSM48_PDISC_SM_GPRS 0x0a
#define GSM48_PDISC_NC_SS 0x0b
#define GSM48_PDISC_LOC 0x0c
#define GSM48_PDISC_EXTEND 0x0e
#define GSM48_PDISC_TEST 0x0f /* as per 11.10, 04.14 */
#define GSM48_PDISC_MASK 0x0f
/* Section 11.3.2.1 3GPP TS 24.007: Short PDISC */
#define GSM48_PDISC_SH_RR 0
extern const struct value_string gsm48_pdisc_names[];
static inline const char *gsm48_pdisc_name(uint8_t val)
{ return get_value_string(gsm48_pdisc_names, val); }
bool gsm48_hdr_gmm_cipherable(const struct gsm48_hdr *hdr);
static inline uint8_t gsm48_hdr_pdisc(const struct gsm48_hdr *hdr)
{
/*
* 3GPP TS 24.007 version 12.0.0 Release 12,
* 11.2.3.1.1 Protocol discriminator
*/
uint8_t pdisc = hdr->proto_discr & GSM48_PDISC_MASK;
if (pdisc == GSM48_PDISC_EXTEND)
return hdr->proto_discr;
return pdisc;
}
static inline uint8_t gsm48_hdr_trans_id(const struct gsm48_hdr *hdr)
{
/*
* 3GPP TS 24.007 version 12.0.0 Release 12,
* 11.2.3.1.3 Transaction identifier
*/
return (hdr->proto_discr & 0xf0) >> 4;
}
#define GSM48_TA_INVALID 220
static inline bool gsm48_ta_is_valid(uint8_t ta)
{
return (ta < 64);
}
static inline uint8_t gsm48_hdr_trans_id_flip_ti(const struct gsm48_hdr *hdr)
{
return gsm48_hdr_trans_id(hdr) ^ 0x08;
}
static inline uint8_t gsm48_hdr_trans_id_no_ti(const struct gsm48_hdr *hdr)
{
return gsm48_hdr_trans_id(hdr) & 0x07;
}
static inline uint8_t gsm48_hdr_msg_type_r98(const struct gsm48_hdr *hdr)
{
/*
* 3GPP TS 24.007 version 12.0.0 Release 12,
* 11.2.3.2.1 Message type octet (when accessing Release 98 and older
* networks only)
*/
switch (gsm48_hdr_pdisc(hdr)) {
case GSM48_PDISC_MM:
case GSM48_PDISC_CC:
case GSM48_PDISC_NC_SS:
case GSM48_PDISC_GROUP_CC:
case GSM48_PDISC_BCAST_CC:
case GSM48_PDISC_LOC:
return hdr->msg_type & 0x3f;
default:
return hdr->msg_type;
}
}
static inline uint8_t gsm48_hdr_msg_type_r99(const struct gsm48_hdr *hdr)
{
/*
* 3GPP TS 24.007 version 12.0.0 Release 12,
* 11.2.3.2.2 Message type octet (when accessing Release 99 and newer
* networks)
*/
switch (gsm48_hdr_pdisc(hdr)) {
case GSM48_PDISC_MM:
case GSM48_PDISC_CC:
case GSM48_PDISC_NC_SS:
return hdr->msg_type & 0x3f;
case GSM48_PDISC_GROUP_CC:
case GSM48_PDISC_BCAST_CC:
case GSM48_PDISC_LOC:
return hdr->msg_type & 0x3f;
default:
return hdr->msg_type;
}
}
void gsm48_set_dtx(struct gsm48_cell_options *op, enum gsm48_dtx_mode full,
enum gsm48_dtx_mode half, bool is_bcch);
#define gsm48_hdr_msg_type gsm48_hdr_msg_type_r99
/* Section 10.4 */
#define GSM48_MT_RR_INIT_REQ 0x3c
#define GSM48_MT_RR_ADD_ASS 0x3b
#define GSM48_MT_RR_IMM_ASS 0x3f
#define GSM48_MT_RR_IMM_ASS_EXT 0x39
#define GSM48_MT_RR_IMM_ASS_REJ 0x3a
#define GSM48_MT_RR_DTM_ASS_FAIL 0x48
#define GSM48_MT_RR_DTM_REJECT 0x49
#define GSM48_MT_RR_DTM_REQUEST 0x4A
#define GSM48_MT_RR_PACKET_ASS 0x4B
#define GSM48_MT_RR_CIPH_M_CMD 0x35
#define GSM48_MT_RR_CIPH_M_COMPL 0x32
#define GSM48_MT_RR_CFG_CHG_CMD 0x30
#define GSM48_MT_RR_CFG_CHG_ACK 0x31
#define GSM48_MT_RR_CFG_CHG_REJ 0x33
#define GSM48_MT_RR_ASS_CMD 0x2e
#define GSM48_MT_RR_ASS_COMPL 0x29
#define GSM48_MT_RR_ASS_FAIL 0x2f
#define GSM48_MT_RR_HANDO_CMD 0x2b
#define GSM48_MT_RR_HANDO_COMPL 0x2c
#define GSM48_MT_RR_HANDO_FAIL 0x28
#define GSM48_MT_RR_HANDO_INFO 0x2d
#define GSM48_MT_RR_HANDO_INFO 0x2d
#define GSM48_MT_RR_DTM_ASS_CMD 0x4c
#define GSM48_MT_RR_CELL_CHG_ORDER 0x08
#define GSM48_MT_RR_PDCH_ASS_CMD 0x23
#define GSM48_MT_RR_CHAN_REL 0x0d
#define GSM48_MT_RR_PART_REL 0x0a
#define GSM48_MT_RR_PART_REL_COMP 0x0f
#define GSM48_MT_RR_PAG_REQ_1 0x21
#define GSM48_MT_RR_PAG_REQ_2 0x22
#define GSM48_MT_RR_PAG_REQ_3 0x24
#define GSM48_MT_RR_PAG_RESP 0x27
#define GSM48_MT_RR_NOTIF_NCH 0x20
#define GSM48_MT_RR_NOTIF_FACCH 0x25 /* (Reserved) */
#define GSM48_MT_RR_NOTIF_RESP 0x26
#define GSM48_MT_RR_PACKET_NOTIF 0x4e
#define GSM48_MT_RR_UTRAN_CLSM_CHG 0x60
#define GSM48_MT_RR_CDMA2K_CLSM_CHG 0x62
#define GSM48_MT_RR_IS_TO_UTRAN_HANDO 0x63
#define GSM48_MT_RR_IS_TO_CDMA2K_HANDO 0x64
#define GSM48_MT_RR_SYSINFO_8 0x18
#define GSM48_MT_RR_SYSINFO_1 0x19
#define GSM48_MT_RR_SYSINFO_2 0x1a
#define GSM48_MT_RR_SYSINFO_3 0x1b
#define GSM48_MT_RR_SYSINFO_4 0x1c
#define GSM48_MT_RR_SYSINFO_5 0x1d
#define GSM48_MT_RR_SYSINFO_6 0x1e
#define GSM48_MT_RR_SYSINFO_7 0x1f
#define GSM48_MT_RR_SYSINFO_2bis 0x02
#define GSM48_MT_RR_SYSINFO_2ter 0x03
#define GSM48_MT_RR_SYSINFO_2quater 0x07
#define GSM48_MT_RR_SYSINFO_5bis 0x05
#define GSM48_MT_RR_SYSINFO_5ter 0x06
#define GSM48_MT_RR_SYSINFO_9 0x04
#define GSM48_MT_RR_SYSINFO_13 0x00
#define GSM48_MT_RR_SYSINFO_16 0x3d
#define GSM48_MT_RR_SYSINFO_17 0x3e
#define GSM48_MT_RR_SYSINFO_18 0x40
#define GSM48_MT_RR_SYSINFO_19 0x41
#define GSM48_MT_RR_SYSINFO_20 0x42
#define GSM48_MT_RR_CHAN_MODE_MODIF 0x10
#define GSM48_MT_RR_STATUS 0x12
#define GSM48_MT_RR_CHAN_MODE_MODIF_ACK 0x17
#define GSM48_MT_RR_FREQ_REDEF 0x14
#define GSM48_MT_RR_MEAS_REP 0x15
#define GSM48_MT_RR_CLSM_CHG 0x16
#define GSM48_MT_RR_CLSM_ENQ 0x13
#define GSM48_MT_RR_EXT_MEAS_REP 0x36
#define GSM48_MT_RR_EXT_MEAS_REP_ORD 0x37
#define GSM48_MT_RR_GPRS_SUSP_REQ 0x34
#define GSM48_MT_RR_DTM_INFO 0x4d
#define GSM48_MT_RR_VGCS_UPL_GRANT 0x09
#define GSM48_MT_RR_UPLINK_RELEASE 0x0e
#define GSM48_MT_RR_UPLINK_FREE 0x0c
#define GSM48_MT_RR_UPLINK_BUSY 0x2a
#define GSM48_MT_RR_TALKER_IND 0x11
#define GSM48_MT_RR_APP_INFO 0x38
/* 3GPP TS 44.018 Table 10.4.2 */
#define GSM48_MT_RR_SH_SI10 0x0
#define GSM48_MT_RR_SH_FACCH 0x1
#define GSM48_MT_RR_SH_UL_FREE 0x2
#define GSM48_MT_RR_SH_MEAS_REP 0x4
#define GSM48_MT_RR_SH_MEAS_INFO 0x5
#define GSM48_MT_RR_SH_VGCS_RECON 0x6
#define GSM48_MT_RR_SH_VGCS_RECON2 0x7
#define GSM48_MT_RR_SH_VGCS_INFO 0x8
#define GSM48_MT_RR_SH_VGCS_SMS 0x9
#define GSM48_MT_RR_SH_SI10bis 0xA
#define GSM48_MT_RR_SH_SI10ter 0xB
#define GSM48_MT_RR_SH_VGCS_NEIGH 0xC
#define GSM48_MT_RR_SH_APP_DATA 0xD
/* Table 10.2/3GPP TS 04.08 */
#define GSM48_MT_MM_IMSI_DETACH_IND 0x01
#define GSM48_MT_MM_LOC_UPD_ACCEPT 0x02
#define GSM48_MT_MM_LOC_UPD_REJECT 0x04
#define GSM48_MT_MM_LOC_UPD_REQUEST 0x08
#define GSM48_MT_MM_AUTH_REJ 0x11
#define GSM48_MT_MM_AUTH_REQ 0x12
#define GSM48_MT_MM_AUTH_RESP 0x14
#define GSM48_MT_MM_AUTH_FAIL 0x1c
#define GSM48_MT_MM_ID_REQ 0x18
#define GSM48_MT_MM_ID_RESP 0x19
#define GSM48_MT_MM_TMSI_REALL_CMD 0x1a
#define GSM48_MT_MM_TMSI_REALL_COMPL 0x1b
#define GSM48_MT_MM_CM_SERV_ACC 0x21
#define GSM48_MT_MM_CM_SERV_REJ 0x22
#define GSM48_MT_MM_CM_SERV_ABORT 0x23
#define GSM48_MT_MM_CM_SERV_REQ 0x24
#define GSM48_MT_MM_CM_SERV_PROMPT 0x25
#define GSM48_MT_MM_CM_REEST_REQ 0x28
#define GSM48_MT_MM_ABORT 0x29
#define GSM48_MT_MM_NULL 0x30
#define GSM48_MT_MM_STATUS 0x31
#define GSM48_MT_MM_INFO 0x32
/* Table 10.3/3GPP TS 04.08 */
#define GSM48_MT_CC_ALERTING 0x01
#define GSM48_MT_CC_CALL_CONF 0x08
#define GSM48_MT_CC_CALL_PROC 0x02
#define GSM48_MT_CC_CONNECT 0x07
#define GSM48_MT_CC_CONNECT_ACK 0x0f
#define GSM48_MT_CC_EMERG_SETUP 0x0e
#define GSM48_MT_CC_PROGRESS 0x03
#define GSM48_MT_CC_ESTAB 0x04
#define GSM48_MT_CC_ESTAB_CONF 0x06
#define GSM48_MT_CC_RECALL 0x0b
#define GSM48_MT_CC_START_CC 0x09
#define GSM48_MT_CC_SETUP 0x05
#define GSM48_MT_CC_MODIFY 0x17
#define GSM48_MT_CC_MODIFY_COMPL 0x1f
#define GSM48_MT_CC_MODIFY_REJECT 0x13
#define GSM48_MT_CC_USER_INFO 0x10
#define GSM48_MT_CC_HOLD 0x18
#define GSM48_MT_CC_HOLD_ACK 0x19
#define GSM48_MT_CC_HOLD_REJ 0x1a
#define GSM48_MT_CC_RETR 0x1c
#define GSM48_MT_CC_RETR_ACK 0x1d
#define GSM48_MT_CC_RETR_REJ 0x1e
#define GSM48_MT_CC_DISCONNECT 0x25
#define GSM48_MT_CC_RELEASE 0x2d
#define GSM48_MT_CC_RELEASE_COMPL 0x2a
#define GSM48_MT_CC_CONG_CTRL 0x39
#define GSM48_MT_CC_NOTIFY 0x3e
#define GSM48_MT_CC_STATUS 0x3d
#define GSM48_MT_CC_STATUS_ENQ 0x34
#define GSM48_MT_CC_START_DTMF 0x35
#define GSM48_MT_CC_STOP_DTMF 0x31
#define GSM48_MT_CC_STOP_DTMF_ACK 0x32
#define GSM48_MT_CC_START_DTMF_ACK 0x36
#define GSM48_MT_CC_START_DTMF_REJ 0x37
#define GSM48_MT_CC_FACILITY 0x3a
extern const struct value_string gsm48_rr_msgtype_names[];
extern const struct value_string gsm48_mm_msgtype_names[];
extern const struct value_string gsm48_cc_msgtype_names[];
const char *gsm48_pdisc_msgtype_name(uint8_t pdisc, uint8_t msg_type);
char *gsm48_pdisc_msgtype_name_buf(char *buf, size_t buf_len, uint8_t pdisc, uint8_t msg_type);
char *gsm48_pdisc_msgtype_name_c(const void *ctx, uint8_t pdisc, uint8_t msg_type);
/* FIXME: Table 10.4 / 10.4a (GPRS) */
/* Section 10.5.3.3 CM service type */
enum osmo_cm_service_type {
GSM48_CMSERV_MO_CALL_PACKET = 1,
GSM48_CMSERV_EMERGENCY = 2,
GSM48_CMSERV_SMS = 4,
GSM48_CMSERV_SUP_SERV = 8,
GSM48_CMSERV_VGCS = 9,
GSM48_CMSERV_VBS = 10,
GSM48_CMSERV_LOC_SERV = 11,
GSM48_CMSERV_MAX_VAL = GSM48_CMSERV_LOC_SERV
};
extern const struct value_string osmo_cm_service_type_names[];
static inline const char *osmo_cm_service_type_name(enum osmo_cm_service_type val)
{ return get_value_string(osmo_cm_service_type_names, val); }
/* Section 10.5.2.26, Table 10.5.64 */
#define GSM48_PM_MASK 0x03
#define GSM48_PM_NORMAL 0x00
#define GSM48_PM_EXTENDED 0x01
#define GSM48_PM_REORG 0x02
#define GSM48_PM_SAME 0x03
/* Chapter 10.5.3.5 / Table 10.5.93 */
#define GSM48_LUPD_NORMAL 0x0
#define GSM48_LUPD_PERIODIC 0x1
#define GSM48_LUPD_IMSI_ATT 0x2
#define GSM48_LUPD_RESERVED 0x3
extern const struct value_string osmo_lu_type_names[];
static inline const char *osmo_lu_type_name(uint8_t lu_type)
{ return get_value_string(osmo_lu_type_names, lu_type); }
/* Table 10.5.4 */
#define GSM_MI_TYPE_MASK 0x07
#define GSM_MI_TYPE_NONE 0x00
#define GSM_MI_TYPE_IMSI 0x01
#define GSM_MI_TYPE_IMEI 0x02
#define GSM_MI_TYPE_IMEISV 0x03
#define GSM_MI_TYPE_TMSI 0x04
#define GSM_MI_ODD 0x08
#define GSM48_IE_MOBILE_ID 0x17 /* 10.5.1.4 */
#define GSM48_IE_NAME_LONG 0x43 /* 10.5.3.5a */
#define GSM48_IE_NAME_SHORT 0x45 /* 10.5.3.5a */
#define GSM48_IE_UTC 0x46 /* 10.5.3.8 */
#define GSM48_IE_NET_TIME_TZ 0x47 /* 10.5.3.9 */
#define GSM48_IE_LSA_IDENT 0x48 /* 10.5.3.11 */
#define GSM48_IE_NET_DST 0x49 /* 10.5.3.12 [24.008] */
#define GSM48_IE_BEARER_CAP 0x04 /* 10.5.4.5 */
#define GSM48_IE_CAUSE 0x08 /* 10.5.4.11 */
#define GSM48_IE_CC_CAP 0x15 /* 10.5.4.5a */
#define GSM48_IE_ALERT 0x19 /* 10.5.4.26 */
#define GSM48_IE_FACILITY 0x1c /* 10.5.4.15 */
#define GSM48_IE_PROGR_IND 0x1e /* 10.5.4.21 */
#define GSM48_IE_AUX_STATUS 0x24 /* 10.5.4.4 */
#define GSM48_IE_NOTIFY 0x27 /* 10.5.4.20 */
#define GSM48_IE_KPD_FACILITY 0x2c /* 10.5.4.17 */
#define GSM48_IE_SIGNAL 0x34 /* 10.5.4.23 */
#define GSM48_IE_CONN_BCD 0x4c /* 10.5.4.13 */
#define GSM48_IE_CONN_SUB 0x4d /* 10.5.4.14 */
#define GSM48_IE_CALLING_BCD 0x5c /* 10.5.4.9 */
#define GSM48_IE_CALLING_SUB 0x5d /* 10.5.4.10 */
#define GSM48_IE_CALLED_BCD 0x5e /* 10.5.4.7 */
#define GSM48_IE_CALLED_SUB 0x6d /* 10.5.4.8 */
#define GSM48_IE_REDIR_BCD 0x74 /* 10.5.4.21a */
#define GSM48_IE_REDIR_SUB 0x75 /* 10.5.4.21b */
#define GSM48_IE_LOWL_COMPAT 0x7c /* 10.5.4.18 */
#define GSM48_IE_HIGHL_COMPAT 0x7d /* 10.5.4.16 */
#define GSM48_IE_USER_USER 0x7e /* 10.5.4.25 */
#define GSM48_IE_SS_VERS 0x7f /* 10.5.4.24 */
#define GSM48_IE_MORE_DATA 0xa0 /* 10.5.4.19 */
#define GSM48_IE_CLIR_SUPP 0xa1 /* 10.5.4.11a */
#define GSM48_IE_CLIR_INVOC 0xa2 /* 10.5.4.11b */
#define GSM48_IE_REV_C_SETUP 0xa3 /* 10.5.4.22a */
#define GSM48_IE_REPEAT_CIR 0xd1 /* 10.5.4.22 */
#define GSM48_IE_REPEAT_SEQ 0xd3 /* 10.5.4.22 */
/* Section 10.5.4.11 / Table 10.5.122 */
#define GSM48_CAUSE_CS_GSM 0x60
/* Section 9.1.2 / Table 9.3 */
/* RR elements */
#define GSM48_IE_VGCS_TARGET 0x01
//#define GSM48_IE_VGCS_T_MODE_I 0x01
#define GSM48_IE_FRQSHORT_AFTER 0x02
#define GSM48_IE_MUL_RATE_CFG 0x03 /* 10.5.2.21aa */
#define GSM48_IE_FREQ_L_AFTER 0x05
#define GSM48_IE_GROUP_CIP_SEQ_HO 0x08 /* HO = Half Octet Tag */
#define GSM48_IE_CIP_MODE_SET_HO 0x09 /* HO = Half Octet Tag */
#define GSM48_IE_GPRS_RESUMPT_HO 0xc0 /* HO = Half Octet Tag */
#define GSM48_IE_SYNC_IND_HO 0x0d /* HO = Half Octet Tag */
#define GSM48_IE_MSLOT_DESC 0x10
#define GSM48_IE_CHANMODE_2 0x11
#define GSM48_IE_FRQSHORT_BEFORE 0x12
//#define GSM48_IE_FRQSHORT_BEFOR 0x12
#define GSM48_IE_CHANMODE_3 0x13
#define GSM48_IE_CHANMODE_4 0x14
#define GSM48_IE_CHANMODE_5 0x15
#define GSM48_IE_CHANMODE_6 0x16
#define GSM48_IE_CHANMODE_7 0x17
#define GSM48_IE_CHANMODE_8 0x18
#define GSM48_IE_CHANDESC_2 0x64
#define GSM48_IE_MA_AFTER 0x72
#define GSM48_IE_START_TIME 0x7c
#define GSM48_IE_FREQ_L_BEFORE 0x19
//#define GSM48_IE_FRQLIST_BEFORE 0x19
#define GSM48_IE_CH_DESC_1_BEFORE 0x1c
//#define GSM48_IE_CHDES_1_BEFORE 0x1c
#define GSM48_IE_CH_DESC_2_BEFORE 0x1d
//#define GSM48_IE_CHDES_2_BEFORE 0x1d
#define GSM48_IE_F_CH_SEQ_BEFORE 0x1e
//#define GSM48_IE_FRQSEQ_BEFORE 0x1e
#define GSM48_IE_CLASSMARK3 0x20
#define GSM48_IE_MA_BEFORE 0x21
#define GSM48_IE_RR_PACKET_UL 0x22
#define GSM48_IE_RR_PACKET_DL 0x23
#define GSM48_IE_CELL_CH_DESC 0x62
#define GSM48_IE_CHANMODE_1 0x63
#define GSM48_IE_CHDES_2_AFTER 0x64
#define GSM48_IE_MODE_SEC_CH 0x66
#define GSM48_IE_F_CH_SEQ_AFTER 0x69
#define GSM48_IE_EXTENDED_TSC_SET 0x6d
#define GSM48_IE_MA_AFTER 0x72
#define GSM48_IE_BA_RANGE 0x73
#define GSM48_IE_GROUP_CHDES 0x74
#define GSM48_IE_BA_LIST_PREF 0x75
#define GSM48_IE_MOB_OVSERV_DIF 0x77
#define GSM48_IE_CELL_SEL_IND_AFTER_REL 0x77 /* 44.018 Section 9.1.7 */
#define GSM48_IE_REALTIME_DIFF 0x7b
#define GSM48_IE_START_TIME 0x7c
#define GSM48_IE_INDIVIDUAL_PRIORITIES 0x7c /* 44.018 Section 9.1.7 */
#define GSM48_IE_TIMING_ADVANCE 0x7d
#define GSM48_IE_GROUP_CIP_SEQ 0x80 /* DEPRECATED, use GSM48_IE_GROUP_CIP_SEQ_HO instead */
#define GSM48_IE_CIP_MODE_SET 0x90 /* DEPRECATED, use GSM48_IE_CIP_MODE_SET_HO instead */
#define GSM48_IE_GPRS_RESUMPT 0xc0 /* DEPRECATED, use GSM48_IE_GPRS_RESUMPT_HO instead */
#define GSM48_IE_SYNC_IND 0xd0 /* DEPRECATED, use GSM48_IE_SYNC_IND_HO instead */
/* System Information 4 (types are equal IEs above) */
#define GSM48_IE_CBCH_CHAN_DESC 0x64
#define GSM48_IE_CBCH_MOB_AL 0x72
/* Additional MM elements */
#define GSM48_IE_PRIORITY_LEV_HO 0x08 /* HO = Half Octet Tag */
#define GSM48_IE_LOCATION_AREA 0x13
#define GSM48_IE_AUTN 0x20
#define GSM48_IE_AUTH_RES_EXT 0x21
#define GSM48_IE_AUTS 0x22
#define GSM48_IE_PRIORITY_LEV 0x80 /* DEPRECATED, use GSM48_IE_PRIORITY_LEV_HO instead */
#define GSM48_IE_FOLLOW_ON_PROC 0xa1
#define GSM48_IE_CTS_PERMISSION 0xa2
/* Section 10.5.4.21 / Table 10.5.127 */
enum gsm48_progress_desc {
GSM48_PROGR_NOT_E2E = 0x00,
GSM48_PROGR_DEST_NOT_PLMN = 0x02,
GSM48_PROGR_ORIG_NOT_PLMN = 0x03,
GSM48_PROGR_RETURNED = 0x04,
GSM48_PROGR_IN_BAND_AVAIL = 0x08,
GSM48_PROGR_CALL_E2E = 0x20,
GSM48_PROGR_QUEUEING = 0x40,
};
/* Section 10.5.4.23 / Table 10.5.130 */
enum gsm48_signal_val {
GSM48_SIGNAL_DIALTONE = 0x00,
GSM48_SIGNAL_RINGBACK = 0x01,
GSM48_SIGNAL_INTERCEPT = 0x02,
GSM48_SIGNAL_NET_CONG = 0x03,
GSM48_SIGNAL_BUSY = 0x04,
GSM48_SIGNAL_CONFIRM = 0x05,
GSM48_SIGNAL_ANSWER = 0x06,
GSM48_SIGNAL_CALL_WAIT = 0x07,
GSM48_SIGNAL_OFF_HOOK = 0x08,
GSM48_SIGNAL_OFF = 0x3f,
GSM48_SIGNAL_ALERT_OFF = 0x4f,
};
/* Section 10.5.4.11 / Table 10.5.122 */
enum gsm48_cause_coding {
GSM48_CAUSE_CODING_CCITT_Q931 = 0x00,
GSM48_CAUSE_CODING_RESERVED = 0x01,
GSM48_CAUSE_CODING_NATIONAL = 0x02,
GSM48_CAUSE_CODING_GSM = 0x03,
};
enum gsm48_cause_loc {
GSM48_CAUSE_LOC_USER = 0x00,
GSM48_CAUSE_LOC_PRN_S_LU = 0x01,
GSM48_CAUSE_LOC_PUN_S_LU = 0x02,
GSM48_CAUSE_LOC_TRANS_NET = 0x03,
GSM48_CAUSE_LOC_PUN_S_RU = 0x04,
GSM48_CAUSE_LOC_PRN_S_RU = 0x05,
/* not defined */
GSM48_CAUSE_LOC_INN_NET = 0x07,
GSM48_CAUSE_LOC_NET_BEYOND = 0x0a,
};
/* 3GPP TS 44.018 10.5.2.31 RR Cause / Table 10.5.70 */
enum gsm48_rr_cause {
GSM48_RR_CAUSE_NORMAL = 0x00,
GSM48_RR_CAUSE_ABNORMAL_UNSPEC = 0x01,
GSM48_RR_CAUSE_ABNORMAL_UNACCT = 0x02,
GSM48_RR_CAUSE_ABNORMAL_TIMER = 0x03,
GSM48_RR_CAUSE_ABNORMAL_NOACT = 0x04,
GSM48_RR_CAUSE_PREMPTIVE_REL = 0x05,
GSM48_RR_CAUSE_UTRAN_CFG_UNK = 0x06,
GSM48_RR_CAUSE_HNDOVER_IMP = 0x08,
GSM48_RR_CAUSE_CHAN_MODE_UNACCT = 0x09,
GSM48_RR_CAUSE_FREQ_NOT_IMPL = 0x0a,
GSM48_RR_CAUSE_LEAVE_GROUP_CA = 0x0b,
GSM48_RR_CAUSE_LOW_LEVEL_FAIL = 0x0c,
GSM48_RR_CAUSE_CALL_CLEARED = 0x41,
GSM48_RR_CAUSE_SEMANT_INCORR = 0x5f,
GSM48_RR_CAUSE_INVALID_MAND_INF = 0x60,
GSM48_RR_CAUSE_MSG_TYPE_N = 0x61,
GSM48_RR_CAUSE_MSG_TYPE_N_COMPAT= 0x62,
GSM48_RR_CAUSE_COND_IE_ERROR = 0x64,
GSM48_RR_CAUSE_NO_CELL_ALLOC_A = 0x65,
GSM48_RR_CAUSE_PROT_ERROR_UNSPC = 0x6f,
};
/* Section 10.5.4.11 CC Cause / Table 10.5.123 */
enum gsm48_cc_cause {
GSM48_CC_CAUSE_UNASSIGNED_NR = 1,
GSM48_CC_CAUSE_NO_ROUTE = 3,
GSM48_CC_CAUSE_CHAN_UNACCEPT = 6,
GSM48_CC_CAUSE_OP_DET_BARRING = 8,
GSM48_CC_CAUSE_NORM_CALL_CLEAR = 16,
GSM48_CC_CAUSE_USER_BUSY = 17,
GSM48_CC_CAUSE_USER_NOTRESPOND = 18,
GSM48_CC_CAUSE_USER_ALERTING_NA = 19,
GSM48_CC_CAUSE_CALL_REJECTED = 21,
GSM48_CC_CAUSE_NUMBER_CHANGED = 22,
GSM48_CC_CAUSE_PRE_EMPTION = 25,
GSM48_CC_CAUSE_NONSE_USER_CLR = 26,
GSM48_CC_CAUSE_DEST_OOO = 27,
GSM48_CC_CAUSE_INV_NR_FORMAT = 28,
GSM48_CC_CAUSE_FACILITY_REJ = 29,
GSM48_CC_CAUSE_RESP_STATUS_INQ = 30,
GSM48_CC_CAUSE_NORMAL_UNSPEC = 31,
GSM48_CC_CAUSE_NO_CIRCUIT_CHAN = 34,
GSM48_CC_CAUSE_NETWORK_OOO = 38,
GSM48_CC_CAUSE_TEMP_FAILURE = 41,
GSM48_CC_CAUSE_SWITCH_CONG = 42,
GSM48_CC_CAUSE_ACC_INF_DISCARD = 43,
GSM48_CC_CAUSE_REQ_CHAN_UNAVAIL = 44,
GSM48_CC_CAUSE_RESOURCE_UNAVAIL = 47,
GSM48_CC_CAUSE_QOS_UNAVAIL = 49,
GSM48_CC_CAUSE_REQ_FAC_NOT_SUBSC= 50,
GSM48_CC_CAUSE_INC_BARRED_CUG = 55,
GSM48_CC_CAUSE_BEARER_CAP_UNAUTH= 57,
GSM48_CC_CAUSE_BEARER_CA_UNAVAIL= 58,
GSM48_CC_CAUSE_SERV_OPT_UNAVAIL = 63,
GSM48_CC_CAUSE_BEARERSERV_UNIMPL= 65,
GSM48_CC_CAUSE_ACM_GE_ACM_MAX = 68,
GSM48_CC_CAUSE_REQ_FAC_NOTIMPL = 69,
GSM48_CC_CAUSE_RESTR_BCAP_AVAIL = 70,
GSM48_CC_CAUSE_SERV_OPT_UNIMPL = 79,
GSM48_CC_CAUSE_INVAL_TRANS_ID = 81,
GSM48_CC_CAUSE_USER_NOT_IN_CUG = 87,
GSM48_CC_CAUSE_INCOMPAT_DEST = 88,
GSM48_CC_CAUSE_INVAL_TRANS_NET = 91,
GSM48_CC_CAUSE_SEMANTIC_INCORR = 95,
GSM48_CC_CAUSE_INVAL_MAND_INF = 96,
GSM48_CC_CAUSE_MSGTYPE_NOTEXIST = 97,
GSM48_CC_CAUSE_MSGTYPE_INCOMPAT = 98,
GSM48_CC_CAUSE_IE_NOTEXIST = 99,
GSM48_CC_CAUSE_COND_IE_ERR = 100,
GSM48_CC_CAUSE_MSG_INCOMP_STATE = 101,
GSM48_CC_CAUSE_RECOVERY_TIMER = 102,
GSM48_CC_CAUSE_PROTO_ERR = 111,
GSM48_CC_CAUSE_INTERWORKING = 127,
};
extern const struct value_string gsm48_cc_cause_names[];
static inline const char *gsm48_cc_cause_name(enum gsm48_cc_cause val)
{ return get_value_string(gsm48_cc_cause_names, val); }
/* Annex G, GSM specific cause values for mobility management */
enum gsm48_reject_value {
GSM48_REJECT_IMSI_UNKNOWN_IN_HLR = 2,
GSM48_REJECT_ILLEGAL_MS = 3,
GSM48_REJECT_IMSI_UNKNOWN_IN_VLR = 4,
GSM48_REJECT_IMEI_NOT_ACCEPTED = 5,
GSM48_REJECT_ILLEGAL_ME = 6,
GSM48_REJECT_PLMN_NOT_ALLOWED = 11,
GSM48_REJECT_LOC_NOT_ALLOWED = 12,
GSM48_REJECT_ROAMING_NOT_ALLOWED = 13,
GSM48_REJECT_NO_SUIT_CELL_IN_LA = 15,
GSM48_REJECT_NETWORK_FAILURE = 17,
GSM48_REJECT_MAC_FAILURE = 20,
GSM48_REJECT_SYNCH_FAILURE = 21,
GSM48_REJECT_CONGESTION = 22,
GSM48_REJECT_GSM_AUTH_UNACCEPTABLE = 23,
GSM48_REJECT_NOT_AUTH_FOR_CSG = 25,
GSM48_REJECT_SRV_OPT_NOT_SUPPORTED = 32,
GSM48_REJECT_RQD_SRV_OPT_NOT_SUPPORTED = 33,
GSM48_REJECT_SRV_OPT_TMP_OUT_OF_ORDER = 34,
GSM48_REJECT_CALL_CAN_NOT_BE_IDENTIFIED = 38,
GSM48_REJECT_INCORRECT_MESSAGE = 95,
GSM48_REJECT_INVALID_MANDANTORY_INF = 96,
GSM48_REJECT_MSG_TYPE_NOT_IMPLEMENTED = 97,
GSM48_REJECT_MSG_TYPE_NOT_COMPATIBLE = 98,
GSM48_REJECT_INF_ELEME_NOT_IMPLEMENTED = 99,
GSM48_REJECT_CONDTIONAL_IE_ERROR = 100,
GSM48_REJECT_MSG_NOT_COMPATIBLE = 101,
GSM48_REJECT_PROTOCOL_ERROR = 111,
/* according to G.6 Additional cause codes for GMM */
GSM48_REJECT_GPRS_NOT_ALLOWED = 7,
GSM48_REJECT_SERVICES_NOT_ALLOWED = 8,
GSM48_REJECT_MS_IDENTITY_NOT_DERVIVABLE = 9,
GSM48_REJECT_IMPLICITLY_DETACHED = 10,
GSM48_REJECT_GPRS_NOT_ALLOWED_IN_PLMN = 14,
GSM48_REJECT_MSC_TMP_NOT_REACHABLE = 16,
GSM48_REJECT_SMS_PROV_VIA_GPRS_IN_RA = 28,
GSM48_REJECT_NO_PDP_CONTEXT_ACTIVATED = 40,
};
extern const struct value_string gsm48_reject_value_names[];
static inline const char *gsm48_reject_value_name(enum gsm48_reject_value val)
{ return get_value_string(gsm48_reject_value_names, val); }
enum chreq_type {
CHREQ_T_EMERG_CALL,
CHREQ_T_CALL_REEST_TCH_F,
CHREQ_T_CALL_REEST_TCH_H,
CHREQ_T_CALL_REEST_TCH_H_DBL,
CHREQ_T_SDCCH,
CHREQ_T_TCH_F,
CHREQ_T_VOICE_CALL_TCH_H,
CHREQ_T_DATA_CALL_TCH_H,
CHREQ_T_LOCATION_UPD,
CHREQ_T_PAG_R_ANY_NECI0,
CHREQ_T_PAG_R_ANY_NECI1,
CHREQ_T_PAG_R_TCH_F,
CHREQ_T_PAG_R_TCH_FH,
CHREQ_T_LMU,
CHREQ_T_RESERVED_SDCCH,
CHREQ_T_RESERVED_IGNORE,
CHREQ_T_PDCH_ONE_PHASE,
CHREQ_T_PDCH_TWO_PHASE,
_NUM_CHREQ_T,
};
/* Chapter 11.3 */
#define GSM48_T301 180, 0
#define GSM48_T303 30, 0
#define GSM48_T305 30, 0
#define GSM48_T306 30, 0
#define GSM48_T308 10, 0 /* no spec default */
#define GSM48_T310 30, 0 /* no spec default */
#define GSM48_T313 30, 0 /* no spec default */
#define GSM48_T323 30, 0
#define GSM48_T331 30, 0 /* no spec default */
#define GSM48_T333 30, 0 /* no spec default */
#define GSM48_T334 25, 0 /* min 15s */
#define GSM48_T338 30, 0 /* no spec default */
#define GSM48_T303_MS 30, 0
#define GSM48_T305_MS 30, 0
#define GSM48_T308_MS 30, 0
#define GSM48_T310_MS 30, 0
#define GSM48_T313_MS 30, 0
#define GSM48_T323_MS 30, 0
#define GSM48_T332_MS 30, 0
#define GSM48_T335_MS 30, 0
/* Chapter 5.1.2.2 */
#define GSM_CSTATE_NULL 0
#define GSM_CSTATE_INITIATED 1
#define GSM_CSTATE_MM_CONNECTION_PEND 2 /* see 10.5.4.6 */
#define GSM_CSTATE_MO_CALL_PROC 3
#define GSM_CSTATE_CALL_DELIVERED 4
#define GSM_CSTATE_CALL_PRESENT 6
#define GSM_CSTATE_CALL_RECEIVED 7
#define GSM_CSTATE_CONNECT_REQUEST 8
#define GSM_CSTATE_MO_TERM_CALL_CONF 9
#define GSM_CSTATE_ACTIVE 10
#define GSM_CSTATE_DISCONNECT_REQ 12
#define GSM_CSTATE_DISCONNECT_IND 12
#define GSM_CSTATE_RELEASE_REQ 19
#define GSM_CSTATE_MO_ORIG_MODIFY 26
#define GSM_CSTATE_MO_TERM_MODIFY 27
#define GSM_CSTATE_CONNECT_IND 28
#define SBIT(a) (1 << a)
#define ALL_STATES 0xffffffff
/* Table 10.5.3/3GPP TS 04.08: Location Area Identification information element */
#define GSM_LAC_RESERVED_DETACHED 0x0
#define GSM_LAC_RESERVED_ALL_BTS 0xfffe
/* GSM 04.08 Bearer Capability: Information Transfer Capability */
enum gsm48_bcap_itcap {
GSM48_BCAP_ITCAP_SPEECH = 0,
GSM48_BCAP_ITCAP_UNR_DIG_INF = 1,
GSM48_BCAP_ITCAP_3k1_AUDIO = 2,
GSM48_BCAP_ITCAP_FAX_G3 = 3,
GSM48_BCAP_ITCAP_OTHER = 5,
GSM48_BCAP_ITCAP_RESERVED = 7,
};
/* GSM 04.08 Bearer Capability: Transfer Mode */
enum gsm48_bcap_tmod {
GSM48_BCAP_TMOD_CIRCUIT = 0,
GSM48_BCAP_TMOD_PACKET = 1,
};
/* GSM 04.08 Bearer Capability: Coding Standard */
enum gsm48_bcap_coding {
GSM48_BCAP_CODING_GSM_STD = 0,
};
/* GSM 04.08 Bearer Capability: Radio Channel Requirements */
enum gsm48_bcap_rrq {
GSM48_BCAP_RRQ_FR_ONLY = 1,
GSM48_BCAP_RRQ_DUAL_HR = 2,
GSM48_BCAP_RRQ_DUAL_FR = 3,
};
/* GSM 04.08 Bearer Capability: Rate Adaption */
enum gsm48_bcap_ra {
GSM48_BCAP_RA_NONE = 0,
GSM48_BCAP_RA_V110_X30 = 1,
GSM48_BCAP_RA_X31 = 2,
GSM48_BCAP_RA_OTHER = 3,
};
/* GSM 04.08 Bearer Capability: Signalling access protocol */
enum gsm48_bcap_sig_access {
GSM48_BCAP_SA_I440_I450 = 1,
GSM48_BCAP_SA_X21 = 2,
GSM48_BCAP_SA_X28_DP_IN = 3,
GSM48_BCAP_SA_X28_DP_UN = 4,
GSM48_BCAP_SA_X28_NDP = 5,
GSM48_BCAP_SA_X32 = 6,
};
/* GSM 04.08 Bearer Capability: User Rate */
enum gsm48_bcap_user_rate {
GSM48_BCAP_UR_300 = 1,
GSM48_BCAP_UR_1200 = 2,
GSM48_BCAP_UR_2400 = 3,
GSM48_BCAP_UR_4800 = 4,
GSM48_BCAP_UR_9600 = 5,
GSM48_BCAP_UR_12000 = 6,
GSM48_BCAP_UR_1200_75 = 7,
};
/* GSM 04.08 Bearer Capability: Parity */
enum gsm48_bcap_parity {
GSM48_BCAP_PAR_ODD = 0,
GSM48_BCAP_PAR_EVEN = 2,
GSM48_BCAP_PAR_NONE = 3,
GSM48_BCAP_PAR_ZERO = 4,
GSM48_BCAP_PAR_ONE = 5,
};
/* GSM 04.08 Bearer Capability: Intermediate Rate */
enum gsm48_bcap_interm_rate {
GSM48_BCAP_IR_8k = 2,
GSM48_BCAP_IR_16k = 3,
};
/* GSM 04.08 Bearer Capability: Transparency */
enum gsm48_bcap_transp {
GSM48_BCAP_TR_TRANSP = 0,
GSM48_BCAP_TR_RLP = 1,
GSM48_BCAP_TR_TR_PREF = 2,
GSM48_BCAP_TR_RLP_PREF = 3,
};
/* GSM 04.08 Bearer Capability: Modem Type */
enum gsm48_bcap_modem_type {
GSM48_BCAP_MT_NONE = 0,
GSM48_BCAP_MT_V21 = 1,
GSM48_BCAP_MT_V22 = 2,
GSM48_BCAP_MT_V22bis = 3,
GSM48_BCAP_MT_V23 = 4,
GSM48_BCAP_MT_V26ter = 5,
GSM48_BCAP_MT_V32 = 6,
GSM48_BCAP_MT_UNDEF = 7,
GSM48_BCAP_MT_AUTO_1 = 8,
};
enum gsm48_bcap_other_modem_type {
GSM48_BCAP_OTHER_MT_NONE = 0,
GSM48_BCAP_OTHER_MT_V34 = 2,
};
enum gsm48_bcap_fixed_net_user_rate {
GSM48_BCAP_FNUR_NONE = 0,
GSM48_BCAP_FNUR_X1_V110_9600 = 1,
GSM48_BCAP_FNUR_X1_V110_14400 = 2,
GSM48_BCAP_FNUR_X1_V110_19200 = 3,
GSM48_BCAP_FNUR_X1_V110_28800 = 4,
GSM48_BCAP_FNUR_X1_V110_38400 = 5,
GSM48_BCAP_FNUR_X1_V110_48000 = 6,
GSM48_BCAP_FNUR_X1_V110_56000 = 7,
GSM48_BCAP_FNUR_BT_64000 = 8,
GSM48_BCAP_FNUR_BT_33600 = 9,
GSM48_BCAP_FNUR_I460_32000 = 10,
GSM48_BCAP_FNUR_V34_31200 = 11,
};
enum gsm48_bcap_speech_ver {
GSM48_BCAP_SV_FR = 0,
GSM48_BCAP_SV_HR = 1,
GSM48_BCAP_SV_EFR = 2,
GSM48_BCAP_SV_AMR_F = 4,
GSM48_BCAP_SV_AMR_H = 5,
GSM48_BCAP_SV_AMR_OFW = 6,
GSM48_BCAP_SV_AMR_OHW = 7,
GSM48_BCAP_SV_AMR_FW = 8,
GSM48_BCAP_SV_AMR_OH = 11,
};
#define GSM48_TMSI_LEN 5
#define GSM48_MID_TMSI_LEN (GSM48_TMSI_LEN + 2)
#define GSM48_MI_SIZE 32
/* 3GPP TS 24.008 § 10.5.5.15 Routing area identification */
struct gsm48_ra_id {
uint8_t digits[3]; /* MCC + MNC BCD digits */
uint16_t lac; /* Location Area Code */
uint8_t rac; /* Routing Area Code */
} __attribute__ ((packed));
#define GSM48_CELL_CHAN_DESC_SIZE 16
#define GSM_MACBLOCK_LEN 23
#define GSM_MACBLOCK_PADDING 0x2b
/* Table 10.5.118 / 3GPP TS 24.008 Section 10.5.4.7 */
enum gsm48_type_of_number {
GSM48_TON_UNKNOWN = 0,
GSM48_TON_INTERNATIONAL = 1,
GSM48_TON_NATIONAL = 2,
GSM48_TON_NET_SPEC = 3,
GSM48_TON_SHORT_CODE = 4,
/* reserved */
};
/* Table 10.5.118 / 3GPP TS 24.008 Section 10.5.4.7 */
enum gsm48_numbering_plan {
GSM48_NPI_UNKNOWN = 0,
GSM48_NPI_ISDN_E164 = 1,
GSM48_NPI_DATA_X121 = 3,
GSM48_NPI_TELEX_F69 = 4,
GSM48_NPI_NATIONAL = 8,
GSM48_NPI_PRIVATE = 9,
GSM48_NPI_CTS = 11,
/* reserved */
};
endian.h
osmo_gsm48_classmark_a5_name_buf
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
gsm48_rr_msgtype_names
const struct value_string gsm48_rr_msgtype_names[]
TS 04.08 RR Message Type names.
Definition gsm48.c:1550
gsm48_set_dtx
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
osmo_gsm48_classmark2_is_r99
bool osmo_gsm48_classmark2_is_r99(const struct gsm48_classmark2 *cm2, uint8_t cm2_len)
Definition gsm48.c:1931
gsm48_reject_value_names
const struct value_string gsm48_reject_value_names[]
Definition gsm48.c:1848
gsm48_pdisc_msgtype_name
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
osmo_gsm48_rfpowercap2powerclass
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
osmo_gsm48_classmark_update
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
osmo_gsm48_classmark_a5_name_c
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
osmo_gsm48_classmark1_is_r99
bool osmo_gsm48_classmark1_is_r99(const struct gsm48_classmark1 *cm1)
Definition gsm48.c:1926
gsm48_pdisc_names
const struct value_string gsm48_pdisc_names[]
TS 04.08 Protocol Descriptor names.
Definition gsm48.c:1531
gsm48_mm_msgtype_names
const struct value_string gsm48_mm_msgtype_names[]
TS 04.08 MM Message Type names.
Definition gsm48.c:1643
gsm48_pdisc_msgtype_name_buf
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
osmo_lu_type_names
const struct value_string osmo_lu_type_names[]
Definition gsm48.c:1907
osmo_gsm48_classmark_supports_a5
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
smod
static int32_t smod(int32_t n, int32_t m)
Definition gsm48_ie.c:886
gsm48_hdr_gmm_cipherable
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
gsm48_pdisc_msgtype_name_c
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
gsm48_cc_msgtype_names
const struct value_string gsm48_cc_msgtype_names[]
TS 04.08 CC Message Type names.
Definition gsm48.c:1673
osmo_cm_service_type_names
const struct value_string osmo_cm_service_type_names[]
Definition gsm48.c:1915
gsm48_cc_cause_names
const struct value_string gsm48_cc_cause_names[]
TS 04.08 10.5..4.11 Call Control Cause Values.
Definition gsm48.c:1716
gsm48_chan_mode_names
const struct value_string gsm48_chan_mode_names[]
Definition gsm48.c:475
osmo_gsm48_classmark_is_r99
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
osmo_gsm48_classmark_a5_name
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
OSMO_ASSERT
#define OSMO_ASSERT(exp)
get_value_string
const char * get_value_string(const struct value_string *vs, uint32_t val)
rest_octets
uint8_t rest_octets[0]
Definition gsm_04_08.h:3
osmo_cm_service_type_name
static const char * osmo_cm_service_type_name(enum osmo_cm_service_type val)
Definition gsm_04_08.h:1745
ncc_permitted
uint8_t ncc_permitted
Definition gsm_04_08.h:2
gsm48_pdisc_name
static const char * gsm48_pdisc_name(uint8_t val)
Definition gsm_04_08.h:1455
gsm48_bcap_user_rate
gsm48_bcap_user_rate
Definition gsm_04_08.h:2173
GSM48_BCAP_UR_4800
@ GSM48_BCAP_UR_4800
Definition gsm_04_08.h:2177
GSM48_BCAP_UR_300
@ GSM48_BCAP_UR_300
Definition gsm_04_08.h:2174
GSM48_BCAP_UR_1200_75
@ GSM48_BCAP_UR_1200_75
Definition gsm_04_08.h:2180
GSM48_BCAP_UR_9600
@ GSM48_BCAP_UR_9600
Definition gsm_04_08.h:2178
GSM48_BCAP_UR_2400
@ GSM48_BCAP_UR_2400
Definition gsm_04_08.h:2176
GSM48_BCAP_UR_1200
@ GSM48_BCAP_UR_1200
Definition gsm_04_08.h:2175
GSM48_BCAP_UR_12000
@ GSM48_BCAP_UR_12000
Definition gsm_04_08.h:2179
GSM48_PDISC_MASK
#define GSM48_PDISC_MASK
Definition gsm_04_08.h:1449
GSM48_PDISC_EXTEND
#define GSM48_PDISC_EXTEND
Definition gsm_04_08.h:1447
gsm48_numbering_plan
gsm48_numbering_plan
Definition gsm_04_08.h:2283
GSM48_NPI_TELEX_F69
@ GSM48_NPI_TELEX_F69
Definition gsm_04_08.h:2287
GSM48_NPI_DATA_X121
@ GSM48_NPI_DATA_X121
Definition gsm_04_08.h:2286
GSM48_NPI_CTS
@ GSM48_NPI_CTS
Definition gsm_04_08.h:2290
GSM48_NPI_PRIVATE
@ GSM48_NPI_PRIVATE
Definition gsm_04_08.h:2289
GSM48_NPI_NATIONAL
@ GSM48_NPI_NATIONAL
Definition gsm_04_08.h:2288
GSM48_NPI_ISDN_E164
@ GSM48_NPI_ISDN_E164
Definition gsm_04_08.h:2285
GSM48_NPI_UNKNOWN
@ GSM48_NPI_UNKNOWN
Definition gsm_04_08.h:2284
GSM48_PDISC_LOC
#define GSM48_PDISC_LOC
Definition gsm_04_08.h:1446
gsm48_type_of_number
gsm48_type_of_number
Definition gsm_04_08.h:2273
GSM48_TON_UNKNOWN
@ GSM48_TON_UNKNOWN
Definition gsm_04_08.h:2274
GSM48_TON_INTERNATIONAL
@ GSM48_TON_INTERNATIONAL
Definition gsm_04_08.h:2275
GSM48_TON_NET_SPEC
@ GSM48_TON_NET_SPEC
Definition gsm_04_08.h:2277
GSM48_TON_SHORT_CODE
@ GSM48_TON_SHORT_CODE
Definition gsm_04_08.h:2278
GSM48_TON_NATIONAL
@ GSM48_TON_NATIONAL
Definition gsm_04_08.h:2276
hdr
struct gsm48_hdr hdr
Definition gsm_04_08.h:0
osmo_cm_service_type
osmo_cm_service_type
Definition gsm_04_08.h:1733
GSM48_CMSERV_MAX_VAL
@ GSM48_CMSERV_MAX_VAL
Definition gsm_04_08.h:1741
GSM48_CMSERV_MO_CALL_PACKET
@ GSM48_CMSERV_MO_CALL_PACKET
Definition gsm_04_08.h:1734
GSM48_CMSERV_VBS
@ GSM48_CMSERV_VBS
Definition gsm_04_08.h:1739
GSM48_CMSERV_SUP_SERV
@ GSM48_CMSERV_SUP_SERV
Definition gsm_04_08.h:1737
GSM48_CMSERV_VGCS
@ GSM48_CMSERV_VGCS
Definition gsm_04_08.h:1738
GSM48_CMSERV_SMS
@ GSM48_CMSERV_SMS
Definition gsm_04_08.h:1736
GSM48_CMSERV_EMERGENCY
@ GSM48_CMSERV_EMERGENCY
Definition gsm_04_08.h:1735
GSM48_CMSERV_LOC_SERV
@ GSM48_CMSERV_LOC_SERV
Definition gsm_04_08.h:1740
gsm48_signal_val
gsm48_signal_val
Definition gsm_04_08.h:1897
GSM48_SIGNAL_CALL_WAIT
@ GSM48_SIGNAL_CALL_WAIT
Definition gsm_04_08.h:1905
GSM48_SIGNAL_INTERCEPT
@ GSM48_SIGNAL_INTERCEPT
Definition gsm_04_08.h:1900
GSM48_SIGNAL_RINGBACK
@ GSM48_SIGNAL_RINGBACK
Definition gsm_04_08.h:1899
GSM48_SIGNAL_DIALTONE
@ GSM48_SIGNAL_DIALTONE
Definition gsm_04_08.h:1898
GSM48_SIGNAL_OFF_HOOK
@ GSM48_SIGNAL_OFF_HOOK
Definition gsm_04_08.h:1906
GSM48_SIGNAL_OFF
@ GSM48_SIGNAL_OFF
Definition gsm_04_08.h:1907
GSM48_SIGNAL_NET_CONG
@ GSM48_SIGNAL_NET_CONG
Definition gsm_04_08.h:1901
GSM48_SIGNAL_CONFIRM
@ GSM48_SIGNAL_CONFIRM
Definition gsm_04_08.h:1903
GSM48_SIGNAL_ANSWER
@ GSM48_SIGNAL_ANSWER
Definition gsm_04_08.h:1904
GSM48_SIGNAL_ALERT_OFF
@ GSM48_SIGNAL_ALERT_OFF
Definition gsm_04_08.h:1908
GSM48_SIGNAL_BUSY
@ GSM48_SIGNAL_BUSY
Definition gsm_04_08.h:1902
gsm48_chan_mode
gsm48_chan_mode
10.5.2.6 Channel Mode value
Definition gsm_04_08.h:750
GSM48_CMODE_DATA_6k0
@ 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
@ 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
@ GSM48_CMODE_DATA_14k5_29k0
Definition gsm_04_08.h:775
GSM48_CMODE_DATA_29k0_43k5
@ GSM48_CMODE_DATA_29k0_43k5
Definition gsm_04_08.h:777
GSM48_CMODE_SPEECH_V5_VAMOS
@ GSM48_CMODE_SPEECH_V5_VAMOS
Speech: GSM48_CMODE_SPEECH_V5, in VAMOS mode.
Definition gsm_04_08.h:801
GSM48_CMODE_SPEECH_V1
@ GSM48_CMODE_SPEECH_V1
Speech: FR (TCH/FS) or HR (TCH/HS)
Definition gsm_04_08.h:754
GSM48_CMODE_DATA_3k6
@ 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
@ GSM48_CMODE_SPEECH_V6
Speech: OHR AMR (O-TCH/AHS)
Definition gsm_04_08.h:764
GSM48_CMODE_SPEECH_V1_VAMOS
@ GSM48_CMODE_SPEECH_V1_VAMOS
Same as GSM48_CMODE_SPEECH_V1, in VAMOS mode.
Definition gsm_04_08.h:795
GSM48_CMODE_SIGN
@ GSM48_CMODE_SIGN
Signalling only (TCH/F or TCH/H)
Definition gsm_04_08.h:752
GSM48_CMODE_DATA_32k0
@ 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
@ GSM48_CMODE_SPEECH_V2_VAMOS
Same as GSM48_CMODE_SPEECH_EFR, in VAMOS mode.
Definition gsm_04_08.h:797
GSM48_CMODE_DATA_29k0
@ 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
@ GSM48_CMODE_SPEECH_V5
Speech: FR AMR-WB (TCH/WFS)
Definition gsm_04_08.h:762
GSM48_CMODE_DATA_12k0
@ 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
@ GSM48_CMODE_DATA_14k5_43k5
Definition gsm_04_08.h:773
GSM48_CMODE_SPEECH_AMR
@ GSM48_CMODE_SPEECH_AMR
Speech: AMR (TCH/AFS or TCH/AHS)
Definition gsm_04_08.h:758
GSM48_CMODE_DATA_43k5_14k5
@ GSM48_CMODE_DATA_43k5_14k5
Definition gsm_04_08.h:767
GSM48_CMODE_SPEECH_V4
@ 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
@ GSM48_CMODE_DATA_43k5_29k0
Definition gsm_04_08.h:771
GSM48_CMODE_DATA_29k0_14k5
@ GSM48_CMODE_DATA_29k0_14k5
Definition gsm_04_08.h:769
GSM48_CMODE_DATA_43k5
@ 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
@ GSM48_CMODE_SPEECH_EFR
Speech: EFR (TCH/EFS)
Definition gsm_04_08.h:756
GSM48_CMODE_DATA_14k5
@ 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
cm2_len
uint8_t cm2_len
Definition gsm_04_08.h:0
gsm48_hdr_msg_type_r98
static uint8_t gsm48_hdr_msg_type_r98(const struct gsm48_hdr *hdr)
Definition gsm_04_08.h:1503
gsm48_bcap_parity
gsm48_bcap_parity
Definition gsm_04_08.h:2184
GSM48_BCAP_PAR_NONE
@ GSM48_BCAP_PAR_NONE
Definition gsm_04_08.h:2187
GSM48_BCAP_PAR_ODD
@ GSM48_BCAP_PAR_ODD
Definition gsm_04_08.h:2185
GSM48_BCAP_PAR_ZERO
@ GSM48_BCAP_PAR_ZERO
Definition gsm_04_08.h:2188
GSM48_BCAP_PAR_ONE
@ GSM48_BCAP_PAR_ONE
Definition gsm_04_08.h:2189
GSM48_BCAP_PAR_EVEN
@ GSM48_BCAP_PAR_EVEN
Definition gsm_04_08.h:2186
chreq_type
chreq_type
Definition gsm_04_08.h:2057
CHREQ_T_DATA_CALL_TCH_H
@ CHREQ_T_DATA_CALL_TCH_H
Definition gsm_04_08.h:2065
CHREQ_T_PAG_R_TCH_F
@ CHREQ_T_PAG_R_TCH_F
Definition gsm_04_08.h:2069
CHREQ_T_CALL_REEST_TCH_H
@ CHREQ_T_CALL_REEST_TCH_H
Definition gsm_04_08.h:2060
CHREQ_T_CALL_REEST_TCH_H_DBL
@ CHREQ_T_CALL_REEST_TCH_H_DBL
Definition gsm_04_08.h:2061
CHREQ_T_PAG_R_ANY_NECI0
@ CHREQ_T_PAG_R_ANY_NECI0
Definition gsm_04_08.h:2067
CHREQ_T_PAG_R_TCH_FH
@ CHREQ_T_PAG_R_TCH_FH
Definition gsm_04_08.h:2070
CHREQ_T_LMU
@ CHREQ_T_LMU
Definition gsm_04_08.h:2071
CHREQ_T_EMERG_CALL
@ CHREQ_T_EMERG_CALL
Definition gsm_04_08.h:2058
CHREQ_T_PDCH_ONE_PHASE
@ CHREQ_T_PDCH_ONE_PHASE
Definition gsm_04_08.h:2074
CHREQ_T_SDCCH
@ CHREQ_T_SDCCH
Definition gsm_04_08.h:2062
CHREQ_T_PDCH_TWO_PHASE
@ CHREQ_T_PDCH_TWO_PHASE
Definition gsm_04_08.h:2075
CHREQ_T_VOICE_CALL_TCH_H
@ CHREQ_T_VOICE_CALL_TCH_H
Definition gsm_04_08.h:2064
CHREQ_T_PAG_R_ANY_NECI1
@ CHREQ_T_PAG_R_ANY_NECI1
Definition gsm_04_08.h:2068
CHREQ_T_TCH_F
@ CHREQ_T_TCH_F
Definition gsm_04_08.h:2063
CHREQ_T_CALL_REEST_TCH_F
@ CHREQ_T_CALL_REEST_TCH_F
Definition gsm_04_08.h:2059
CHREQ_T_RESERVED_IGNORE
@ CHREQ_T_RESERVED_IGNORE
Definition gsm_04_08.h:2073
CHREQ_T_RESERVED_SDCCH
@ CHREQ_T_RESERVED_SDCCH
Definition gsm_04_08.h:2072
_NUM_CHREQ_T
@ _NUM_CHREQ_T
Definition gsm_04_08.h:2076
CHREQ_T_LOCATION_UPD
@ CHREQ_T_LOCATION_UPD
Definition gsm_04_08.h:2066
gsm48_barr_acc
static void gsm48_barr_acc(struct gsm48_rach_control *rach_control, unsigned int acc)
Definition gsm_04_08.h:659
gsm48_cc_cause
gsm48_cc_cause
Definition gsm_04_08.h:1956
GSM48_CC_CAUSE_SEMANTIC_INCORR
@ GSM48_CC_CAUSE_SEMANTIC_INCORR
Definition gsm_04_08.h:1996
GSM48_CC_CAUSE_FACILITY_REJ
@ GSM48_CC_CAUSE_FACILITY_REJ
Definition gsm_04_08.h:1971
GSM48_CC_CAUSE_SERV_OPT_UNAVAIL
@ GSM48_CC_CAUSE_SERV_OPT_UNAVAIL
Definition gsm_04_08.h:1986
GSM48_CC_CAUSE_SWITCH_CONG
@ GSM48_CC_CAUSE_SWITCH_CONG
Definition gsm_04_08.h:1977
GSM48_CC_CAUSE_INCOMPAT_DEST
@ GSM48_CC_CAUSE_INCOMPAT_DEST
Definition gsm_04_08.h:1994
GSM48_CC_CAUSE_ACC_INF_DISCARD
@ GSM48_CC_CAUSE_ACC_INF_DISCARD
Definition gsm_04_08.h:1978
GSM48_CC_CAUSE_INTERWORKING
@ GSM48_CC_CAUSE_INTERWORKING
Definition gsm_04_08.h:2005
GSM48_CC_CAUSE_MSGTYPE_NOTEXIST
@ GSM48_CC_CAUSE_MSGTYPE_NOTEXIST
Definition gsm_04_08.h:1998
GSM48_CC_CAUSE_UNASSIGNED_NR
@ GSM48_CC_CAUSE_UNASSIGNED_NR
Definition gsm_04_08.h:1957
GSM48_CC_CAUSE_QOS_UNAVAIL
@ GSM48_CC_CAUSE_QOS_UNAVAIL
Definition gsm_04_08.h:1981
GSM48_CC_CAUSE_REQ_FAC_NOTIMPL
@ GSM48_CC_CAUSE_REQ_FAC_NOTIMPL
Definition gsm_04_08.h:1989
GSM48_CC_CAUSE_MSGTYPE_INCOMPAT
@ GSM48_CC_CAUSE_MSGTYPE_INCOMPAT
Definition gsm_04_08.h:1999
GSM48_CC_CAUSE_REQ_CHAN_UNAVAIL
@ GSM48_CC_CAUSE_REQ_CHAN_UNAVAIL
Definition gsm_04_08.h:1979
GSM48_CC_CAUSE_NORMAL_UNSPEC
@ GSM48_CC_CAUSE_NORMAL_UNSPEC
Definition gsm_04_08.h:1973
GSM48_CC_CAUSE_CHAN_UNACCEPT
@ GSM48_CC_CAUSE_CHAN_UNACCEPT
Definition gsm_04_08.h:1959
GSM48_CC_CAUSE_NONSE_USER_CLR
@ GSM48_CC_CAUSE_NONSE_USER_CLR
Definition gsm_04_08.h:1968
GSM48_CC_CAUSE_INVAL_MAND_INF
@ GSM48_CC_CAUSE_INVAL_MAND_INF
Definition gsm_04_08.h:1997
GSM48_CC_CAUSE_USER_ALERTING_NA
@ GSM48_CC_CAUSE_USER_ALERTING_NA
Definition gsm_04_08.h:1964
GSM48_CC_CAUSE_MSG_INCOMP_STATE
@ GSM48_CC_CAUSE_MSG_INCOMP_STATE
Definition gsm_04_08.h:2002
GSM48_CC_CAUSE_USER_NOTRESPOND
@ GSM48_CC_CAUSE_USER_NOTRESPOND
Definition gsm_04_08.h:1963
GSM48_CC_CAUSE_RESTR_BCAP_AVAIL
@ GSM48_CC_CAUSE_RESTR_BCAP_AVAIL
Definition gsm_04_08.h:1990
GSM48_CC_CAUSE_CALL_REJECTED
@ GSM48_CC_CAUSE_CALL_REJECTED
Definition gsm_04_08.h:1965
GSM48_CC_CAUSE_INC_BARRED_CUG
@ GSM48_CC_CAUSE_INC_BARRED_CUG
Definition gsm_04_08.h:1983
GSM48_CC_CAUSE_RESP_STATUS_INQ
@ GSM48_CC_CAUSE_RESP_STATUS_INQ
Definition gsm_04_08.h:1972
GSM48_CC_CAUSE_USER_NOT_IN_CUG
@ GSM48_CC_CAUSE_USER_NOT_IN_CUG
Definition gsm_04_08.h:1993
GSM48_CC_CAUSE_INVAL_TRANS_ID
@ GSM48_CC_CAUSE_INVAL_TRANS_ID
Definition gsm_04_08.h:1992
GSM48_CC_CAUSE_NORM_CALL_CLEAR
@ GSM48_CC_CAUSE_NORM_CALL_CLEAR
Definition gsm_04_08.h:1961
GSM48_CC_CAUSE_INV_NR_FORMAT
@ GSM48_CC_CAUSE_INV_NR_FORMAT
Definition gsm_04_08.h:1970
GSM48_CC_CAUSE_BEARER_CA_UNAVAIL
@ GSM48_CC_CAUSE_BEARER_CA_UNAVAIL
Definition gsm_04_08.h:1985
GSM48_CC_CAUSE_BEARERSERV_UNIMPL
@ GSM48_CC_CAUSE_BEARERSERV_UNIMPL
Definition gsm_04_08.h:1987
GSM48_CC_CAUSE_COND_IE_ERR
@ GSM48_CC_CAUSE_COND_IE_ERR
Definition gsm_04_08.h:2001
GSM48_CC_CAUSE_USER_BUSY
@ GSM48_CC_CAUSE_USER_BUSY
Definition gsm_04_08.h:1962
GSM48_CC_CAUSE_DEST_OOO
@ GSM48_CC_CAUSE_DEST_OOO
Definition gsm_04_08.h:1969
GSM48_CC_CAUSE_RESOURCE_UNAVAIL
@ GSM48_CC_CAUSE_RESOURCE_UNAVAIL
Definition gsm_04_08.h:1980
GSM48_CC_CAUSE_PRE_EMPTION
@ GSM48_CC_CAUSE_PRE_EMPTION
Definition gsm_04_08.h:1967
GSM48_CC_CAUSE_TEMP_FAILURE
@ GSM48_CC_CAUSE_TEMP_FAILURE
Definition gsm_04_08.h:1976
GSM48_CC_CAUSE_REQ_FAC_NOT_SUBSC
@ GSM48_CC_CAUSE_REQ_FAC_NOT_SUBSC
Definition gsm_04_08.h:1982
GSM48_CC_CAUSE_NUMBER_CHANGED
@ GSM48_CC_CAUSE_NUMBER_CHANGED
Definition gsm_04_08.h:1966
GSM48_CC_CAUSE_NETWORK_OOO
@ GSM48_CC_CAUSE_NETWORK_OOO
Definition gsm_04_08.h:1975
GSM48_CC_CAUSE_SERV_OPT_UNIMPL
@ GSM48_CC_CAUSE_SERV_OPT_UNIMPL
Definition gsm_04_08.h:1991
GSM48_CC_CAUSE_NO_ROUTE
@ GSM48_CC_CAUSE_NO_ROUTE
Definition gsm_04_08.h:1958
GSM48_CC_CAUSE_IE_NOTEXIST
@ GSM48_CC_CAUSE_IE_NOTEXIST
Definition gsm_04_08.h:2000
GSM48_CC_CAUSE_BEARER_CAP_UNAUTH
@ GSM48_CC_CAUSE_BEARER_CAP_UNAUTH
Definition gsm_04_08.h:1984
GSM48_CC_CAUSE_ACM_GE_ACM_MAX
@ GSM48_CC_CAUSE_ACM_GE_ACM_MAX
Definition gsm_04_08.h:1988
GSM48_CC_CAUSE_OP_DET_BARRING
@ GSM48_CC_CAUSE_OP_DET_BARRING
Definition gsm_04_08.h:1960
GSM48_CC_CAUSE_INVAL_TRANS_NET
@ GSM48_CC_CAUSE_INVAL_TRANS_NET
Definition gsm_04_08.h:1995
GSM48_CC_CAUSE_PROTO_ERR
@ GSM48_CC_CAUSE_PROTO_ERR
Definition gsm_04_08.h:2004
GSM48_CC_CAUSE_NO_CIRCUIT_CHAN
@ GSM48_CC_CAUSE_NO_CIRCUIT_CHAN
Definition gsm_04_08.h:1974
GSM48_CC_CAUSE_RECOVERY_TIMER
@ GSM48_CC_CAUSE_RECOVERY_TIMER
Definition gsm_04_08.h:2003
GSM48_PDISC_MM
#define GSM48_PDISC_MM
Definition gsm_04_08.h:1440
gsm48_hdr_msg_type_r99
static uint8_t gsm48_hdr_msg_type_r99(const struct gsm48_hdr *hdr)
Definition gsm_04_08.h:1523
gsm48_bcap_itcap
gsm48_bcap_itcap
Definition gsm_04_08.h:2127
GSM48_BCAP_ITCAP_OTHER
@ GSM48_BCAP_ITCAP_OTHER
Definition gsm_04_08.h:2132
GSM48_BCAP_ITCAP_3k1_AUDIO
@ GSM48_BCAP_ITCAP_3k1_AUDIO
Definition gsm_04_08.h:2130
GSM48_BCAP_ITCAP_FAX_G3
@ GSM48_BCAP_ITCAP_FAX_G3
Definition gsm_04_08.h:2131
GSM48_BCAP_ITCAP_SPEECH
@ GSM48_BCAP_ITCAP_SPEECH
Definition gsm_04_08.h:2128
GSM48_BCAP_ITCAP_UNR_DIG_INF
@ GSM48_BCAP_ITCAP_UNR_DIG_INF
Definition gsm_04_08.h:2129
GSM48_BCAP_ITCAP_RESERVED
@ GSM48_BCAP_ITCAP_RESERVED
Definition gsm_04_08.h:2133
mi_len
uint8_t mi_len
Definition gsm_04_08.h:1
gsm48_cc_cause_name
static const char * gsm48_cc_cause_name(enum gsm48_cc_cause val)
Definition gsm_04_08.h:2009
gsm48_bcap_interm_rate
gsm48_bcap_interm_rate
Definition gsm_04_08.h:2193
GSM48_BCAP_IR_8k
@ GSM48_BCAP_IR_8k
Definition gsm_04_08.h:2194
GSM48_BCAP_IR_16k
@ GSM48_BCAP_IR_16k
Definition gsm_04_08.h:2195
gsm48_allow_acc
static void gsm48_allow_acc(struct gsm48_rach_control *rach_control, unsigned int acc)
Definition gsm_04_08.h:673
gsm48_progress_desc
gsm48_progress_desc
Definition gsm_04_08.h:1886
GSM48_PROGR_NOT_E2E
@ GSM48_PROGR_NOT_E2E
Definition gsm_04_08.h:1887
GSM48_PROGR_CALL_E2E
@ GSM48_PROGR_CALL_E2E
Definition gsm_04_08.h:1892
GSM48_PROGR_ORIG_NOT_PLMN
@ GSM48_PROGR_ORIG_NOT_PLMN
Definition gsm_04_08.h:1889
GSM48_PROGR_IN_BAND_AVAIL
@ GSM48_PROGR_IN_BAND_AVAIL
Definition gsm_04_08.h:1891
GSM48_PROGR_DEST_NOT_PLMN
@ GSM48_PROGR_DEST_NOT_PLMN
Definition gsm_04_08.h:1888
GSM48_PROGR_QUEUEING
@ GSM48_PROGR_QUEUEING
Definition gsm_04_08.h:1893
GSM48_PROGR_RETURNED
@ GSM48_PROGR_RETURNED
Definition gsm_04_08.h:1890
gsm48_meas_res_is_valid
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
gsm48_bcap_transp
Definition gsm_04_08.h:2199
GSM48_BCAP_TR_RLP_PREF
@ GSM48_BCAP_TR_RLP_PREF
Definition gsm_04_08.h:2203
GSM48_BCAP_TR_TRANSP
@ GSM48_BCAP_TR_TRANSP
Definition gsm_04_08.h:2200
GSM48_BCAP_TR_RLP
@ GSM48_BCAP_TR_RLP
Definition gsm_04_08.h:2201
GSM48_BCAP_TR_TR_PREF
@ GSM48_BCAP_TR_TR_PREF
Definition gsm_04_08.h:2202
gsm48_hdr_pdisc
static uint8_t gsm48_hdr_pdisc(const struct gsm48_hdr *hdr)
Definition gsm_04_08.h:1460
gsm48_rr_cause
gsm48_rr_cause
Definition gsm_04_08.h:1932
GSM48_RR_CAUSE_HNDOVER_IMP
@ GSM48_RR_CAUSE_HNDOVER_IMP
Definition gsm_04_08.h:1940
GSM48_RR_CAUSE_COND_IE_ERROR
@ GSM48_RR_CAUSE_COND_IE_ERROR
Definition gsm_04_08.h:1950
GSM48_RR_CAUSE_CALL_CLEARED
@ GSM48_RR_CAUSE_CALL_CLEARED
Definition gsm_04_08.h:1945
GSM48_RR_CAUSE_ABNORMAL_UNACCT
@ GSM48_RR_CAUSE_ABNORMAL_UNACCT
Definition gsm_04_08.h:1935
GSM48_RR_CAUSE_MSG_TYPE_N
@ GSM48_RR_CAUSE_MSG_TYPE_N
Definition gsm_04_08.h:1948
GSM48_RR_CAUSE_PROT_ERROR_UNSPC
@ GSM48_RR_CAUSE_PROT_ERROR_UNSPC
Definition gsm_04_08.h:1952
GSM48_RR_CAUSE_ABNORMAL_UNSPEC
@ GSM48_RR_CAUSE_ABNORMAL_UNSPEC
Definition gsm_04_08.h:1934
GSM48_RR_CAUSE_NORMAL
@ GSM48_RR_CAUSE_NORMAL
Definition gsm_04_08.h:1933
GSM48_RR_CAUSE_INVALID_MAND_INF
@ GSM48_RR_CAUSE_INVALID_MAND_INF
Definition gsm_04_08.h:1947
GSM48_RR_CAUSE_FREQ_NOT_IMPL
@ GSM48_RR_CAUSE_FREQ_NOT_IMPL
Definition gsm_04_08.h:1942
GSM48_RR_CAUSE_ABNORMAL_TIMER
@ GSM48_RR_CAUSE_ABNORMAL_TIMER
Definition gsm_04_08.h:1936
GSM48_RR_CAUSE_PREMPTIVE_REL
@ GSM48_RR_CAUSE_PREMPTIVE_REL
Definition gsm_04_08.h:1938
GSM48_RR_CAUSE_CHAN_MODE_UNACCT
@ GSM48_RR_CAUSE_CHAN_MODE_UNACCT
Definition gsm_04_08.h:1941
GSM48_RR_CAUSE_SEMANT_INCORR
@ GSM48_RR_CAUSE_SEMANT_INCORR
Definition gsm_04_08.h:1946
GSM48_RR_CAUSE_MSG_TYPE_N_COMPAT
@ GSM48_RR_CAUSE_MSG_TYPE_N_COMPAT
Definition gsm_04_08.h:1949
GSM48_RR_CAUSE_UTRAN_CFG_UNK
@ GSM48_RR_CAUSE_UTRAN_CFG_UNK
Definition gsm_04_08.h:1939
GSM48_RR_CAUSE_NO_CELL_ALLOC_A
@ GSM48_RR_CAUSE_NO_CELL_ALLOC_A
Definition gsm_04_08.h:1951
GSM48_RR_CAUSE_LEAVE_GROUP_CA
@ GSM48_RR_CAUSE_LEAVE_GROUP_CA
Definition gsm_04_08.h:1943
GSM48_RR_CAUSE_ABNORMAL_NOACT
@ GSM48_RR_CAUSE_ABNORMAL_NOACT
Definition gsm_04_08.h:1937
GSM48_RR_CAUSE_LOW_LEVEL_FAIL
@ GSM48_RR_CAUSE_LOW_LEVEL_FAIL
Definition gsm_04_08.h:1944
gsm48_bcap_rrq
gsm48_bcap_rrq
Definition gsm_04_08.h:2148
GSM48_BCAP_RRQ_DUAL_HR
@ GSM48_BCAP_RRQ_DUAL_HR
Definition gsm_04_08.h:2150
GSM48_BCAP_RRQ_FR_ONLY
@ GSM48_BCAP_RRQ_FR_ONLY
Definition gsm_04_08.h:2149
GSM48_BCAP_RRQ_DUAL_FR
@ GSM48_BCAP_RRQ_DUAL_FR
Definition gsm_04_08.h:2151
classmark1
struct gsm48_classmark1 classmark1
Definition gsm_04_08.h:0
gsm48_bcap_sig_access
gsm48_bcap_sig_access
Definition gsm_04_08.h:2163
GSM48_BCAP_SA_X28_DP_UN
@ GSM48_BCAP_SA_X28_DP_UN
Definition gsm_04_08.h:2167
GSM48_BCAP_SA_X21
@ GSM48_BCAP_SA_X21
Definition gsm_04_08.h:2165
GSM48_BCAP_SA_I440_I450
@ GSM48_BCAP_SA_I440_I450
Definition gsm_04_08.h:2164
GSM48_BCAP_SA_X32
@ GSM48_BCAP_SA_X32
Definition gsm_04_08.h:2169
GSM48_BCAP_SA_X28_NDP
@ GSM48_BCAP_SA_X28_NDP
Definition gsm_04_08.h:2168
GSM48_BCAP_SA_X28_DP_IN
@ GSM48_BCAP_SA_X28_DP_IN
Definition gsm_04_08.h:2166
gsm48_bcap_fixed_net_user_rate
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
@ GSM48_BCAP_FNUR_BT_33600
33.6 kbit/s bit transparent
Definition gsm_04_08.h:2236
GSM48_BCAP_FNUR_X1_V110_9600
@ 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
@ 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
@ 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
@ 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
@ GSM48_BCAP_FNUR_BT_64000
64.0 kbit/s bit transparent
Definition gsm_04_08.h:2235
GSM48_BCAP_FNUR_NONE
@ GSM48_BCAP_FNUR_NONE
FNUR not applicable / No meaning associated.
Definition gsm_04_08.h:2227
GSM48_BCAP_FNUR_X1_V110_14400
@ 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
@ 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
@ 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
@ 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
@ GSM48_BCAP_FNUR_X1_V110_38400
38.4 kbit/s (according to ITU-T Rec.
Definition gsm_04_08.h:2232
GSM48_PDISC_GROUP_CC
#define GSM48_PDISC_GROUP_CC
Definition gsm_04_08.h:1434
bcch_frequency_list
uint8_t bcch_frequency_list[16]
Definition gsm_04_08.h:1
GSM48_PDISC_BCAST_CC
#define GSM48_PDISC_BCAST_CC
Definition gsm_04_08.h:1435
rest
uint8_t rest[0]
Definition gsm_04_08.h:12
gsm48_bcap_speech_ver
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
@ GSM48_BCAP_SV_AMR_OH
GSM HR V6 (OHR AMR)
Definition gsm_04_08.h:2253
GSM48_BCAP_SV_AMR_FW
@ GSM48_BCAP_SV_AMR_FW
GSM FR V5 (FR AMR-WB)
Definition gsm_04_08.h:2252
GSM48_BCAP_SV_HR
@ GSM48_BCAP_SV_HR
GSM HR V1 (GSM HR)
Definition gsm_04_08.h:2246
GSM48_BCAP_SV_AMR_OHW
@ GSM48_BCAP_SV_AMR_OHW
GSM HR V4 (OHR AMR-WB)
Definition gsm_04_08.h:2251
GSM48_BCAP_SV_AMR_H
@ GSM48_BCAP_SV_AMR_H
GSM HR V3 (HR_AMR)
Definition gsm_04_08.h:2249
GSM48_BCAP_SV_AMR_OFW
@ GSM48_BCAP_SV_AMR_OFW
GSM FR V4 (OFR AMR-WB)
Definition gsm_04_08.h:2250
GSM48_BCAP_SV_AMR_F
@ GSM48_BCAP_SV_AMR_F
GSM FR V3 (FR AMR)
Definition gsm_04_08.h:2248
GSM48_BCAP_SV_FR
@ GSM48_BCAP_SV_FR
GSM FR V1 (GSM FR)
Definition gsm_04_08.h:2245
GSM48_BCAP_SV_EFR
@ GSM48_BCAP_SV_EFR
GSM FR V2 (GSM EFR)
Definition gsm_04_08.h:2247
gsm48_hdr_trans_id_flip_ti
static uint8_t gsm48_hdr_trans_id_flip_ti(const struct gsm48_hdr *hdr)
Definition gsm_04_08.h:1493
gsm48_dtx_mode
gsm48_dtx_mode
Definition gsm_04_08.h:1011
GSM48_DTX_SHALL_NOT_BE_USED
@ GSM48_DTX_SHALL_NOT_BE_USED
Definition gsm_04_08.h:1014
GSM48_DTX_MAY_BE_USED
@ GSM48_DTX_MAY_BE_USED
Definition gsm_04_08.h:1012
GSM48_DTX_SHALL_BE_USED
@ GSM48_DTX_SHALL_BE_USED
Definition gsm_04_08.h:1013
__attribute__
struct gsm48_classmark3 __attribute__
lai
struct gsm48_loc_area_id lai
Definition gsm_04_08.h:2
gsm48_bcap_modem_type
gsm48_bcap_modem_type
Definition gsm_04_08.h:2207
GSM48_BCAP_MT_V26ter
@ GSM48_BCAP_MT_V26ter
Definition gsm_04_08.h:2213
GSM48_BCAP_MT_V23
@ GSM48_BCAP_MT_V23
Definition gsm_04_08.h:2212
GSM48_BCAP_MT_V21
@ GSM48_BCAP_MT_V21
Definition gsm_04_08.h:2209
GSM48_BCAP_MT_V22
@ GSM48_BCAP_MT_V22
Definition gsm_04_08.h:2210
GSM48_BCAP_MT_V32
@ GSM48_BCAP_MT_V32
Definition gsm_04_08.h:2214
GSM48_BCAP_MT_V22bis
@ GSM48_BCAP_MT_V22bis
Definition gsm_04_08.h:2211
GSM48_BCAP_MT_AUTO_1
@ GSM48_BCAP_MT_AUTO_1
Definition gsm_04_08.h:2216
GSM48_BCAP_MT_NONE
@ GSM48_BCAP_MT_NONE
Definition gsm_04_08.h:2208
GSM48_BCAP_MT_UNDEF
@ GSM48_BCAP_MT_UNDEF
Definition gsm_04_08.h:2215
gsm48_reject_value_name
static const char * gsm48_reject_value_name(enum gsm48_reject_value val)
Definition gsm_04_08.h:2054
gsm48_hdr_trans_id
static uint8_t gsm48_hdr_trans_id(const struct gsm48_hdr *hdr)
Definition gsm_04_08.h:1472
cell_options
struct gsm48_cell_options cell_options
Definition gsm_04_08.h:4
rach_control
struct gsm48_rach_control rach_control
Definition gsm_04_08.h:2
gsm48_ta_is_valid
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
ta
uint8_t ta
Definition gsm_04_08.h:2
osmo_lu_type_name
static const char * osmo_lu_type_name(uint8_t lu_type)
Definition gsm_04_08.h:1762
cm2
struct gsm48_classmark2 cm2
Definition gsm_04_08.h:1
cell_identity
uint16_t cell_identity
Definition gsm_04_08.h:1
gsm48_cause_loc
gsm48_cause_loc
Definition gsm_04_08.h:1919
GSM48_CAUSE_LOC_PRN_S_LU
@ GSM48_CAUSE_LOC_PRN_S_LU
Definition gsm_04_08.h:1921
GSM48_CAUSE_LOC_PRN_S_RU
@ GSM48_CAUSE_LOC_PRN_S_RU
Definition gsm_04_08.h:1925
GSM48_CAUSE_LOC_INN_NET
@ GSM48_CAUSE_LOC_INN_NET
Definition gsm_04_08.h:1927
GSM48_CAUSE_LOC_TRANS_NET
@ GSM48_CAUSE_LOC_TRANS_NET
Definition gsm_04_08.h:1923
GSM48_CAUSE_LOC_PUN_S_RU
@ GSM48_CAUSE_LOC_PUN_S_RU
Definition gsm_04_08.h:1924
GSM48_CAUSE_LOC_PUN_S_LU
@ GSM48_CAUSE_LOC_PUN_S_LU
Definition gsm_04_08.h:1922
GSM48_CAUSE_LOC_USER
@ GSM48_CAUSE_LOC_USER
Definition gsm_04_08.h:1920
GSM48_CAUSE_LOC_NET_BEYOND
@ GSM48_CAUSE_LOC_NET_BEYOND
Definition gsm_04_08.h:1928
data
uint8_t data[0]
Definition gsm_04_08.h:3
gsm48_reject_value
gsm48_reject_value
Definition gsm_04_08.h:2013
GSM48_REJECT_SRV_OPT_TMP_OUT_OF_ORDER
@ GSM48_REJECT_SRV_OPT_TMP_OUT_OF_ORDER
Definition gsm_04_08.h:2031
GSM48_REJECT_INVALID_MANDANTORY_INF
@ GSM48_REJECT_INVALID_MANDANTORY_INF
Definition gsm_04_08.h:2034
GSM48_REJECT_NETWORK_FAILURE
@ GSM48_REJECT_NETWORK_FAILURE
Definition gsm_04_08.h:2023
GSM48_REJECT_GPRS_NOT_ALLOWED
@ GSM48_REJECT_GPRS_NOT_ALLOWED
Definition gsm_04_08.h:2043
GSM48_REJECT_SMS_PROV_VIA_GPRS_IN_RA
@ GSM48_REJECT_SMS_PROV_VIA_GPRS_IN_RA
Definition gsm_04_08.h:2049
GSM48_REJECT_MSC_TMP_NOT_REACHABLE
@ GSM48_REJECT_MSC_TMP_NOT_REACHABLE
Definition gsm_04_08.h:2048
GSM48_REJECT_MSG_TYPE_NOT_COMPATIBLE
@ GSM48_REJECT_MSG_TYPE_NOT_COMPATIBLE
Definition gsm_04_08.h:2036
GSM48_REJECT_IMSI_UNKNOWN_IN_VLR
@ GSM48_REJECT_IMSI_UNKNOWN_IN_VLR
Definition gsm_04_08.h:2016
GSM48_REJECT_CONGESTION
@ GSM48_REJECT_CONGESTION
Definition gsm_04_08.h:2026
GSM48_REJECT_MSG_TYPE_NOT_IMPLEMENTED
@ GSM48_REJECT_MSG_TYPE_NOT_IMPLEMENTED
Definition gsm_04_08.h:2035
GSM48_REJECT_CALL_CAN_NOT_BE_IDENTIFIED
@ GSM48_REJECT_CALL_CAN_NOT_BE_IDENTIFIED
Definition gsm_04_08.h:2032
GSM48_REJECT_ROAMING_NOT_ALLOWED
@ GSM48_REJECT_ROAMING_NOT_ALLOWED
Definition gsm_04_08.h:2021
GSM48_REJECT_SRV_OPT_NOT_SUPPORTED
@ GSM48_REJECT_SRV_OPT_NOT_SUPPORTED
Definition gsm_04_08.h:2029
GSM48_REJECT_SERVICES_NOT_ALLOWED
@ GSM48_REJECT_SERVICES_NOT_ALLOWED
Definition gsm_04_08.h:2044
GSM48_REJECT_MSG_NOT_COMPATIBLE
@ GSM48_REJECT_MSG_NOT_COMPATIBLE
Definition gsm_04_08.h:2039
GSM48_REJECT_PLMN_NOT_ALLOWED
@ GSM48_REJECT_PLMN_NOT_ALLOWED
Definition gsm_04_08.h:2019
GSM48_REJECT_ILLEGAL_ME
@ GSM48_REJECT_ILLEGAL_ME
Definition gsm_04_08.h:2018
GSM48_REJECT_INCORRECT_MESSAGE
@ GSM48_REJECT_INCORRECT_MESSAGE
Definition gsm_04_08.h:2033
GSM48_REJECT_MAC_FAILURE
@ GSM48_REJECT_MAC_FAILURE
Definition gsm_04_08.h:2024
GSM48_REJECT_NO_SUIT_CELL_IN_LA
@ GSM48_REJECT_NO_SUIT_CELL_IN_LA
Definition gsm_04_08.h:2022
GSM48_REJECT_IMEI_NOT_ACCEPTED
@ GSM48_REJECT_IMEI_NOT_ACCEPTED
Definition gsm_04_08.h:2017
GSM48_REJECT_GSM_AUTH_UNACCEPTABLE
@ GSM48_REJECT_GSM_AUTH_UNACCEPTABLE
Definition gsm_04_08.h:2027
GSM48_REJECT_MS_IDENTITY_NOT_DERVIVABLE
@ GSM48_REJECT_MS_IDENTITY_NOT_DERVIVABLE
Definition gsm_04_08.h:2045
GSM48_REJECT_NOT_AUTH_FOR_CSG
@ GSM48_REJECT_NOT_AUTH_FOR_CSG
Definition gsm_04_08.h:2028
GSM48_REJECT_IMSI_UNKNOWN_IN_HLR
@ GSM48_REJECT_IMSI_UNKNOWN_IN_HLR
Definition gsm_04_08.h:2014
GSM48_REJECT_INF_ELEME_NOT_IMPLEMENTED
@ GSM48_REJECT_INF_ELEME_NOT_IMPLEMENTED
Definition gsm_04_08.h:2037
GSM48_REJECT_NO_PDP_CONTEXT_ACTIVATED
@ GSM48_REJECT_NO_PDP_CONTEXT_ACTIVATED
Definition gsm_04_08.h:2050
GSM48_REJECT_CONDTIONAL_IE_ERROR
@ GSM48_REJECT_CONDTIONAL_IE_ERROR
Definition gsm_04_08.h:2038
GSM48_REJECT_IMPLICITLY_DETACHED
@ GSM48_REJECT_IMPLICITLY_DETACHED
Definition gsm_04_08.h:2046
GSM48_REJECT_LOC_NOT_ALLOWED
@ GSM48_REJECT_LOC_NOT_ALLOWED
Definition gsm_04_08.h:2020
GSM48_REJECT_SYNCH_FAILURE
@ GSM48_REJECT_SYNCH_FAILURE
Definition gsm_04_08.h:2025
GSM48_REJECT_PROTOCOL_ERROR
@ GSM48_REJECT_PROTOCOL_ERROR
Definition gsm_04_08.h:2040
GSM48_REJECT_RQD_SRV_OPT_NOT_SUPPORTED
@ GSM48_REJECT_RQD_SRV_OPT_NOT_SUPPORTED
Definition gsm_04_08.h:2030
GSM48_REJECT_ILLEGAL_MS
@ GSM48_REJECT_ILLEGAL_MS
Definition gsm_04_08.h:2015
GSM48_REJECT_GPRS_NOT_ALLOWED_IN_PLMN
@ GSM48_REJECT_GPRS_NOT_ALLOWED_IN_PLMN
Definition gsm_04_08.h:2047
GSM48_PDISC_NC_SS
#define GSM48_PDISC_NC_SS
Definition gsm_04_08.h:1445
gsm48_cause_coding
gsm48_cause_coding
Definition gsm_04_08.h:1912
GSM48_CAUSE_CODING_RESERVED
@ GSM48_CAUSE_CODING_RESERVED
Definition gsm_04_08.h:1914
GSM48_CAUSE_CODING_NATIONAL
@ GSM48_CAUSE_CODING_NATIONAL
Definition gsm_04_08.h:1915
GSM48_CAUSE_CODING_GSM
@ GSM48_CAUSE_CODING_GSM
Definition gsm_04_08.h:1916
GSM48_CAUSE_CODING_CCITT_Q931
@ GSM48_CAUSE_CODING_CCITT_Q931
Definition gsm_04_08.h:1913
gsm48_chan_mode_name
static const char * gsm48_chan_mode_name(enum gsm48_chan_mode val)
Definition gsm_04_08.h:805
gsm48_bcap_coding
gsm48_bcap_coding
Definition gsm_04_08.h:2143
GSM48_BCAP_CODING_GSM_STD
@ GSM48_BCAP_CODING_GSM_STD
Definition gsm_04_08.h:2144
mi
uint8_t mi[0]
Definition gsm_04_08.h:2
l2_plen
uint8_t l2_plen
Definition gsm_04_08.h:0
gsm48_bcap_other_modem_type
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
@ GSM48_BCAP_OTHER_MT_V34
According to ITU-T Rec.
Definition gsm_04_08.h:2222
GSM48_BCAP_OTHER_MT_NONE
@ GSM48_BCAP_OTHER_MT_NONE
No other modem type specified.
Definition gsm_04_08.h:2221
gsm48_hdr_trans_id_no_ti
static uint8_t gsm48_hdr_trans_id_no_ti(const struct gsm48_hdr *hdr)
Definition gsm_04_08.h:1498
GSM48_PDISC_CC
#define GSM48_PDISC_CC
Definition gsm_04_08.h:1437
gsm48_bcap_ra
gsm48_bcap_ra
Definition gsm_04_08.h:2155
GSM48_BCAP_RA_NONE
@ GSM48_BCAP_RA_NONE
Definition gsm_04_08.h:2156
GSM48_BCAP_RA_V110_X30
@ GSM48_BCAP_RA_V110_X30
Definition gsm_04_08.h:2157
GSM48_BCAP_RA_OTHER
@ GSM48_BCAP_RA_OTHER
Definition gsm_04_08.h:2159
GSM48_BCAP_RA_X31
@ GSM48_BCAP_RA_X31
Definition gsm_04_08.h:2158
gsm48_acc_is_barred
static bool gsm48_acc_is_barred(struct gsm48_rach_control *rach_control, unsigned int acc)
Definition gsm_04_08.h:688
proto_discr
uint8_t proto_discr
Definition gsm_04_08.h:1
gsm48_bcap_tmod
gsm48_bcap_tmod
Definition gsm_04_08.h:2137
GSM48_BCAP_TMOD_PACKET
@ GSM48_BCAP_TMOD_PACKET
Definition gsm_04_08.h:2139
GSM48_BCAP_TMOD_CIRCUIT
@ GSM48_BCAP_TMOD_CIRCUIT
Definition gsm_04_08.h:2138
msg_type
uint8_t msg_type
Definition gsm_04_08.h:2
h
struct gad_raw_head h
type = GAD_TYPE_ELL_POINT
Definition gsm_23_032.h:0
gsm_utils.h
GSM utility functions, e.g.
gsm_band
gsm_band
Definition gsm_utils.h:49
type
uint8_t type
Definition gsm_08_08.h:0
gsm0408_vgcs_ul_grant
Definition gsm_04_08.h:1206
gsm0408_vgcs_ul_grant::req_ref
struct gsm48_req_ref req_ref
Definition gsm_04_08.h:1208
gsm0408_vgcs_ul_grant::hdr
struct gsm48_hdr hdr
Definition gsm_04_08.h:1207
gsm0408_vgcs_ul_grant::ta
uint8_t ta
Definition gsm_04_08.h:1209
gsm48_add_ass
Definition gsm_04_08.h:1226
gsm48_add_ass::data
uint8_t data[0]
Definition gsm_04_08.h:1229
gsm48_add_ass::chan_desc
struct gsm48_chan_desc chan_desc
Definition gsm_04_08.h:1228
gsm48_ass_cmd
Definition gsm_04_08.h:809
gsm48_ass_cmd::power_command
uint8_t power_command
Definition gsm_04_08.h:812
gsm48_ass_cmd::data
uint8_t data[0]
Definition gsm_04_08.h:813
gsm48_ass_cmd::chan_desc
struct gsm48_chan_desc chan_desc
Definition gsm_04_08.h:811
gsm48_ass_cpl
Definition gsm_04_08.h:1233
gsm48_ass_cpl::rr_cause
uint8_t rr_cause
Definition gsm_04_08.h:1234
gsm48_ass_fail
Definition gsm_04_08.h:1238
gsm48_ass_fail::rr_cause
uint8_t rr_cause
Definition gsm_04_08.h:1239
gsm48_auth_req
Definition gsm_04_08.h:904
gsm48_auth_resp
Definition gsm_04_08.h:917
gsm48_auth_resp::sres
uint8_t sres[4]
Definition gsm_04_08.h:918
gsm48_cell_desc
Definition gsm_04_08.h:833
gsm48_cell_options
Definition gsm_04_08.h:1019
gsm48_cell_sel_par
Definition gsm_04_08.h:977
gsm48_chan_desc
Definition gsm_04_08.h:501
gsm48_chan_desc::chan_nr
uint8_t chan_nr
Definition gsm_04_08.h:502
gsm48_chan_mode_modify
Definition gsm_04_08.h:744
gsm48_chan_mode_modify::mode
uint8_t mode
Definition gsm_04_08.h:746
gsm48_chan_mode_modify::chan_desc
struct gsm48_chan_desc chan_desc
Definition gsm_04_08.h:745
gsm48_chan_rel
Definition gsm_04_08.h:1254
gsm48_chan_rel::rr_cause
uint8_t rr_cause
Definition gsm_04_08.h:1255
gsm48_chan_rel::data
uint8_t data[0]
Definition gsm_04_08.h:1256
gsm48_cip_mode_cmd
Definition gsm_04_08.h:1260
gsm48_classmark1
Definition gsm_04_08.h:17
gsm48_classmark2
Definition gsm_04_08.h:31
gsm48_classmark3
Definition gsm_04_08.h:62
gsm48_classmark3::vamos_level
uint8_t vamos_level
Definition gsm_04_08.h:213
gsm48_classmark3::geran_net_sharing
bool geran_net_sharing
Definition gsm_04_08.h:221
gsm48_classmark3::extended_earfcn_val_range
bool extended_earfcn_val_range
Definition gsm_04_08.h:227
gsm48_classmark3::utra_mult_band_ind_supp
bool utra_mult_band_ind_supp
Definition gsm_04_08.h:224
gsm48_classmark3::sms_value
uint8_t sms_value
Definition gsm_04_08.h:83
gsm48_classmark3::umts_1_28_mcps_tdd_rat_cap
bool umts_1_28_mcps_tdd_rat_cap
Definition gsm_04_08.h:153
gsm48_classmark3::gsm_750_assoc_radio_cap
struct gsm48_classmark3::@49 gsm_750_assoc_radio_cap
gsm48_classmark3::ms_meas_cap
struct gsm48_classmark3::@40 ms_meas_cap
gsm48_classmark3::assoc_radio_cap_2
uint8_t assoc_radio_cap_2
Definition gsm_04_08.h:66
gsm48_classmark3::cs_ps_srvcc_geran_utra
uint8_t cs_ps_srvcc_geran_utra
Definition gsm_04_08.h:218
gsm48_classmark3::gsm_400_bands_supp
struct gsm48_classmark3::@44 gsm_400_bands_supp
gsm48_classmark3::mod_cap
bool mod_cap
Definition gsm_04_08.h:99
gsm48_classmark3::cs_ps_srvcc_geran_eutra
uint8_t cs_ps_srvcc_geran_eutra
Definition gsm_04_08.h:219
gsm48_classmark3::sm_value
uint8_t sm_value
Definition gsm_04_08.h:84
gsm48_classmark3::dtm_enhancements_cap
bool dtm_enhancements_cap
Definition gsm_04_08.h:181
gsm48_classmark3::mult_band_supp
uint8_t mult_band_supp
Definition gsm_04_08.h:64
gsm48_classmark3::e_utra_fdd_supp
bool e_utra_fdd_supp
Definition gsm_04_08.h:207
gsm48_classmark3::ciphering_mode_setting_cap
bool ciphering_mode_setting_cap
Definition gsm_04_08.h:205
gsm48_classmark3::single_slot_dtm
bool single_slot_dtm
Definition gsm_04_08.h:136
gsm48_classmark3::e_utra_mult_band_ind_supp
bool e_utra_mult_band_ind_supp
Definition gsm_04_08.h:225
gsm48_classmark3::dtm_gprs_high_multislot_cap
struct gsm48_classmark3::@53 dtm_gprs_high_multislot_cap
gsm48_classmark3::offset_required
bool offset_required
Definition gsm_04_08.h:186
gsm48_classmark3::geran_feature_package
bool geran_feature_package
Definition gsm_04_08.h:154
gsm48_classmark3::extended_meas_cap
bool extended_meas_cap
Definition gsm_04_08.h:79
gsm48_classmark3::tighter_capability
uint8_t tighter_capability
Definition gsm_04_08.h:214
gsm48_classmark3::e_utra_tdd_supp
bool e_utra_tdd_supp
Definition gsm_04_08.h:208
gsm48_classmark3::cdma200_rat_cap
bool cdma200_rat_cap
Definition gsm_04_08.h:131
gsm48_classmark3::single_band_supp
struct gsm48_classmark3::@48 single_band_supp
gsm48_classmark3::dl_advanced_rx_perf
uint8_t dl_advanced_rx_perf
Definition gsm_04_08.h:180
gsm48_classmark3::er_band_support
bool er_band_support
Definition gsm_04_08.h:223
gsm48_classmark3::umts_tdd_rat_cap
bool umts_tdd_rat_cap
Definition gsm_04_08.h:130
gsm48_classmark3::dtm_gprs_multislot_cap
struct gsm48_classmark3::@47 dtm_gprs_multislot_cap
gsm48_classmark3::mslot_class
uint8_t mslot_class
Definition gsm_04_08.h:75
gsm48_classmark3::present
bool present
Definition gsm_04_08.h:69
gsm48_classmark3::ecsd_multislot_cap
struct gsm48_classmark3::@42 ecsd_multislot_cap
gsm48_classmark3::hscsd_mult_slot_cap
struct gsm48_classmark3::@39 hscsd_mult_slot_cap
gsm48_classmark3::prio_resel_supp
bool prio_resel_supp
Definition gsm_04_08.h:210
gsm48_classmark3::assoc_radio_cap_1
uint8_t assoc_radio_cap_1
Definition gsm_04_08.h:65
gsm48_classmark3::ms_pos_method_cap
struct gsm48_classmark3::@41 ms_pos_method_cap
gsm48_classmark3::dtm_egprs_high_multislot_cap
struct gsm48_classmark3::@53::@60 dtm_egprs_high_multislot_cap
gsm48_classmark3::r_gsm_assoc_radio_cap
uint8_t r_gsm_assoc_radio_cap
Definition gsm_04_08.h:70
gsm48_classmark3::t_gsm_810_assoc_radio_cap
struct gsm48_classmark3::@55 t_gsm_810_assoc_radio_cap
gsm48_classmark3::extended_tsc_set_cap_supp
bool extended_tsc_set_cap_supp
Definition gsm_04_08.h:226
gsm48_classmark3::utra_csg_cells_rep
bool utra_csg_cells_rep
Definition gsm_04_08.h:211
gsm48_classmark3::extended_dtm_gprs_multislot_cap
struct gsm48_classmark3::@50 extended_dtm_gprs_multislot_cap
gsm48_classmark3::rf_pwr_cap_2
struct gsm48_classmark3::@43::@57 rf_pwr_cap_2
gsm48_classmark3::a5_bits
uint8_t a5_bits
Definition gsm_04_08.h:63
gsm48_classmark3::rf_pwr_cap_1
struct gsm48_classmark3::@43::@56 rf_pwr_cap_1
gsm48_classmark3::psk8_multislot_power_prof
uint8_t psk8_multislot_power_prof
Definition gsm_04_08.h:172
gsm48_classmark3::high_multislot_cap
struct gsm48_classmark3::@51 high_multislot_cap
gsm48_classmark3::psk8_struct
struct gsm48_classmark3::@43 psk8_struct
gsm48_classmark3::e_utra_wb_rsrq_meas_supp
bool e_utra_wb_rsrq_meas_supp
Definition gsm_04_08.h:222
gsm48_classmark3::ucs2_treatment
bool ucs2_treatment
Definition gsm_04_08.h:78
gsm48_classmark3::umts_fdd_rat_cap
bool umts_fdd_rat_cap
Definition gsm_04_08.h:129
gsm48_classmark3::add_pos_cap
bool add_pos_cap
Definition gsm_04_08.h:206
gsm48_classmark3::sel_ciph_dl_sacch
bool sel_ciph_dl_sacch
Definition gsm_04_08.h:216
gsm48_classmark3::e_utra_meas_rep_supp
bool e_utra_meas_rep_supp
Definition gsm_04_08.h:209
gsm48_classmark3::gsm_710_assoc_radio_cap
struct gsm48_classmark3::@54 gsm_710_assoc_radio_cap
gsm48_classmark3::gsm_850_assoc_radio_cap
struct gsm48_classmark3::@45 gsm_850_assoc_radio_cap
gsm48_classmark3::gmsk_multislot_power_prof
uint8_t gmsk_multislot_power_prof
Definition gsm_04_08.h:171
gsm48_classmark3::gsm_1900_assoc_radio_cap
struct gsm48_classmark3::@46 gsm_1900_assoc_radio_cap
gsm48_classmark3::value
uint8_t value
Definition gsm_04_08.h:103
gsm48_classmark3::geran_feature_package_2
bool geran_feature_package_2
Definition gsm_04_08.h:170
gsm48_classmark3::extended_dtm_egprs_multislot_cap
struct gsm48_classmark3::@50::@59 extended_dtm_egprs_multislot_cap
gsm48_classmark3::assoc_radio_cap
uint8_t assoc_radio_cap
Definition gsm_04_08.h:116
gsm48_classmark3::dtm_egprs_multislot_cap
struct gsm48_classmark3::@47::@58 dtm_egprs_multislot_cap
gsm48_classmark3::repeated_acch_capability
bool repeated_acch_capability
Definition gsm_04_08.h:193
gsm48_classmark3::method
uint8_t method
Definition gsm_04_08.h:89
gsm48_classmark3::t_gsm_400_bands_supp
struct gsm48_classmark3::@52 t_gsm_400_bands_supp
gsm48_classmark3::r_support
struct gsm48_classmark3::@38 r_support
gsm48_cm_change
Definition gsm_04_08.h:1273
gsm48_cm_change::cm2_len
uint8_t cm2_len
Definition gsm_04_08.h:1274
gsm48_cm_change::cm2
struct gsm48_classmark2 cm2
Definition gsm_04_08.h:1275
gsm48_cm_change::data
uint8_t data[0]
Definition gsm_04_08.h:1276
gsm48_control_channel_descr
Definition gsm_04_08.h:992
gsm48_frq_redef
Definition gsm_04_08.h:817
gsm48_frq_redef::mob_alloc
uint8_t mob_alloc[0]
Definition gsm_04_08.h:821
gsm48_frq_redef::chan_desc
struct gsm48_chan_desc chan_desc
Definition gsm_04_08.h:819
gsm48_frq_redef::mob_alloc_len
uint8_t mob_alloc_len
Definition gsm_04_08.h:820
gsm48_gprs_susp_req
Definition gsm_04_08.h:825
gsm48_gprs_susp_req::cause
uint8_t cause
Definition gsm_04_08.h:828
gsm48_gprs_susp_req::tlli
uint32_t tlli
Definition gsm_04_08.h:826
gsm48_gprs_susp_req::ra_id
uint8_t ra_id[6]
Definition gsm_04_08.h:827
gsm48_gprs_susp_req::options
uint8_t options[0]
Definition gsm_04_08.h:829
gsm48_hdr_sh
Definition gsm_04_08.h:948
gsm48_hdr
Definition gsm_04_08.h:941
gsm48_hdr::proto_discr
uint8_t proto_discr
Definition gsm_04_08.h:942
gsm48_hdr::msg_type
uint8_t msg_type
Definition gsm_04_08.h:943
gsm48_hdr::data
uint8_t data[0]
Definition gsm_04_08.h:944
gsm48_ho_cmd
Definition gsm_04_08.h:847
gsm48_ho_cmd::ho_ref
uint8_t ho_ref
Definition gsm_04_08.h:850
gsm48_ho_cmd::data
uint8_t data[0]
Definition gsm_04_08.h:852
gsm48_ho_cmd::chan_desc
struct gsm48_chan_desc chan_desc
Definition gsm_04_08.h:849
gsm48_ho_cmd::cell_desc
struct gsm48_cell_desc cell_desc
Definition gsm_04_08.h:848
gsm48_ho_cmd::power_command
uint8_t power_command
Definition gsm_04_08.h:851
gsm48_ho_cpl
Definition gsm_04_08.h:1243
gsm48_ho_cpl::data
uint8_t data[0]
Definition gsm_04_08.h:1245
gsm48_ho_cpl::rr_cause
uint8_t rr_cause
Definition gsm_04_08.h:1244
gsm48_ho_fail
Definition gsm_04_08.h:1249
gsm48_ho_fail::rr_cause
uint8_t rr_cause
Definition gsm_04_08.h:1250
gsm48_imm_ass_ext
Definition gsm_04_08.h:1280
gsm48_imm_ass_ext::proto_discr
uint8_t proto_discr
Definition gsm_04_08.h:1282
gsm48_imm_ass_ext::req_ref1
struct gsm48_req_ref req_ref1
Definition gsm_04_08.h:1286
gsm48_imm_ass_ext::timing_advance2
uint8_t timing_advance2
Definition gsm_04_08.h:1290
gsm48_imm_ass_ext::l2_plen
uint8_t l2_plen
Definition gsm_04_08.h:1281
gsm48_imm_ass_ext::page_mode
uint8_t page_mode
Definition gsm_04_08.h:1284
gsm48_imm_ass_ext::chan_desc2
struct gsm48_chan_desc chan_desc2
Definition gsm_04_08.h:1288
gsm48_imm_ass_ext::mob_alloc_len
uint8_t mob_alloc_len
Definition gsm_04_08.h:1291
gsm48_imm_ass_ext::msg_type
uint8_t msg_type
Definition gsm_04_08.h:1283
gsm48_imm_ass_ext::chan_desc1
struct gsm48_chan_desc chan_desc1
Definition gsm_04_08.h:1285
gsm48_imm_ass_ext::mob_alloc
uint8_t mob_alloc[0]
Definition gsm_04_08.h:1292
gsm48_imm_ass_ext::timing_advance1
uint8_t timing_advance1
Definition gsm_04_08.h:1287
gsm48_imm_ass_ext::req_ref2
struct gsm48_req_ref req_ref2
Definition gsm_04_08.h:1289
gsm48_imm_ass_rej
Definition gsm_04_08.h:1296
gsm48_imm_ass_rej::page_mode
uint8_t page_mode
Definition gsm_04_08.h:1300
gsm48_imm_ass_rej::wait_ind4
uint8_t wait_ind4
Definition gsm_04_08.h:1308
gsm48_imm_ass_rej::msg_type
uint8_t msg_type
Definition gsm_04_08.h:1299
gsm48_imm_ass_rej::wait_ind1
uint8_t wait_ind1
Definition gsm_04_08.h:1302
gsm48_imm_ass_rej::req_ref3
struct gsm48_req_ref req_ref3
Definition gsm_04_08.h:1305
gsm48_imm_ass_rej::req_ref2
struct gsm48_req_ref req_ref2
Definition gsm_04_08.h:1303
gsm48_imm_ass_rej::req_ref1
struct gsm48_req_ref req_ref1
Definition gsm_04_08.h:1301
gsm48_imm_ass_rej::req_ref4
struct gsm48_req_ref req_ref4
Definition gsm_04_08.h:1307
gsm48_imm_ass_rej::wait_ind3
uint8_t wait_ind3
Definition gsm_04_08.h:1306
gsm48_imm_ass_rej::proto_discr
uint8_t proto_discr
Definition gsm_04_08.h:1298
gsm48_imm_ass_rej::wait_ind2
uint8_t wait_ind2
Definition gsm_04_08.h:1304
gsm48_imm_ass_rej::rest
uint8_t rest[0]
Definition gsm_04_08.h:1309
gsm48_imm_ass_rej::l2_plen
uint8_t l2_plen
Definition gsm_04_08.h:1297
gsm48_imm_ass
Definition gsm_04_08.h:856
gsm48_imm_ass::mob_alloc
uint8_t mob_alloc[0]
Definition gsm_04_08.h:865
gsm48_imm_ass::mob_alloc_len
uint8_t mob_alloc_len
Definition gsm_04_08.h:864
gsm48_imm_ass::chan_desc
struct gsm48_chan_desc chan_desc
Definition gsm_04_08.h:861
gsm48_imm_ass::timing_advance
uint8_t timing_advance
Definition gsm_04_08.h:863
gsm48_imm_ass::proto_discr
uint8_t proto_discr
Definition gsm_04_08.h:858
gsm48_imm_ass::msg_type
uint8_t msg_type
Definition gsm_04_08.h:859
gsm48_imm_ass::req_ref
struct gsm48_req_ref req_ref
Definition gsm_04_08.h:862
gsm48_imm_ass::l2_plen
uint8_t l2_plen
Definition gsm_04_08.h:857
gsm48_imm_ass::page_mode
uint8_t page_mode
Definition gsm_04_08.h:860
gsm48_imsi_detach_ind
Definition gsm_04_08.h:1219
gsm48_imsi_detach_ind::classmark1
struct gsm48_classmark1 classmark1
Definition gsm_04_08.h:1220
gsm48_imsi_detach_ind::mi_len
uint8_t mi_len
Definition gsm_04_08.h:1221
gsm48_imsi_detach_ind::mi
uint8_t mi[0]
Definition gsm_04_08.h:1222
gsm48_loc_area_id
Definition gsm_04_08.h:898
gsm48_loc_area_id::lac
uint16_t lac
Definition gsm_04_08.h:900
gsm48_loc_area_id::digits
uint8_t digits[3]
Definition gsm_04_08.h:899
gsm48_loc_upd_req
Definition gsm_04_08.h:922
gsm48_meas_res
Definition gsm_04_08.h:534
gsm48_multi_rate_conf
Definition gsm_04_08.h:603
gsm48_notification_nch
Definition gsm_04_08.h:1313
gsm48_notification_nch::msg_type
uint8_t msg_type
Definition gsm_04_08.h:1316
gsm48_notification_nch::proto_discr
uint8_t proto_discr
Definition gsm_04_08.h:1315
gsm48_notification_nch::data
uint8_t data[0]
Definition gsm_04_08.h:1317
gsm48_notification_nch::l2_plen
uint8_t l2_plen
Definition gsm_04_08.h:1314
gsm48_pag_resp
Definition gsm_04_08.h:869
gsm48_pag_rsp
Definition gsm_04_08.h:1400
gsm48_paging1
Definition gsm_04_08.h:1321
gsm48_paging2
Definition gsm_04_08.h:1342
gsm48_paging3
Definition gsm_04_08.h:1367
gsm48_power_cmd
Definition gsm_04_08.h:626
gsm48_ra_id
Definition gsm_04_08.h:2261
gsm48_ra_id::rac
uint8_t rac
Definition gsm_04_08.h:2264
gsm48_ra_id::digits
uint8_t digits[3]
Definition gsm_04_08.h:2262
gsm48_ra_id::lac
uint16_t lac
Definition gsm_04_08.h:2263
gsm48_rach_control
Definition gsm_04_08.h:638
gsm48_range_1024
Definition gsm_04_08.h:249
gsm48_range_128
Definition gsm_04_08.h:420
gsm48_range_256
Definition gsm_04_08.h:359
gsm48_range_512
Definition gsm_04_08.h:304
gsm48_req_ref
Definition gsm_04_08.h:697
gsm48_rr_status
Definition gsm_04_08.h:1417
gsm48_rr_status::rr_cause
uint8_t rr_cause
Definition gsm_04_08.h:1418
gsm48_service_request
Definition gsm_04_08.h:1033
gsm48_start_time
Definition gsm_04_08.h:713
gsm48_sync_ind
Definition gsm_04_08.h:727
gsm48_system_information_type_10
Definition gsm_04_08.h:1192
gsm48_system_information_type_13
Definition gsm_04_08.h:1213
gsm48_system_information_type_13::rest_octets
uint8_t rest_octets[0]
Definition gsm_04_08.h:1215
gsm48_system_information_type_13::header
struct gsm48_system_information_type_header header
Definition gsm_04_08.h:1214
gsm48_system_information_type_1
Definition gsm_04_08.h:1063
gsm48_system_information_type_1::header
struct gsm48_system_information_type_header header
Definition gsm_04_08.h:1064
gsm48_system_information_type_1::rach_control
struct gsm48_rach_control rach_control
Definition gsm_04_08.h:1066
gsm48_system_information_type_1::rest_octets
uint8_t rest_octets[0]
Definition gsm_04_08.h:1067
gsm48_system_information_type_1::cell_channel_description
uint8_t cell_channel_description[16]
Definition gsm_04_08.h:1065
gsm48_system_information_type_2
Definition gsm_04_08.h:1071
gsm48_system_information_type_2::header
struct gsm48_system_information_type_header header
Definition gsm_04_08.h:1072
gsm48_system_information_type_2::rach_control
struct gsm48_rach_control rach_control
Definition gsm_04_08.h:1075
gsm48_system_information_type_2::ncc_permitted
uint8_t ncc_permitted
Definition gsm_04_08.h:1074
gsm48_system_information_type_2::bcch_frequency_list
uint8_t bcch_frequency_list[16]
Definition gsm_04_08.h:1073
gsm48_system_information_type_2bis
Definition gsm_04_08.h:1079
gsm48_system_information_type_2bis::header
struct gsm48_system_information_type_header header
Definition gsm_04_08.h:1080
gsm48_system_information_type_2bis::bcch_frequency_list
uint8_t bcch_frequency_list[16]
Definition gsm_04_08.h:1081
gsm48_system_information_type_2bis::rest_octets
uint8_t rest_octets[0]
Definition gsm_04_08.h:1083
gsm48_system_information_type_2bis::rach_control
struct gsm48_rach_control rach_control
Definition gsm_04_08.h:1082
gsm48_system_information_type_2quater
Definition gsm_04_08.h:1094
gsm48_system_information_type_2quater::rest_octets
uint8_t rest_octets[0]
Definition gsm_04_08.h:1096
gsm48_system_information_type_2quater::header
struct gsm48_system_information_type_header header
Definition gsm_04_08.h:1095
gsm48_system_information_type_2ter
Definition gsm_04_08.h:1087
gsm48_system_information_type_2ter::rest_octets
uint8_t rest_octets[0]
Definition gsm_04_08.h:1090
gsm48_system_information_type_2ter::header
struct gsm48_system_information_type_header header
Definition gsm_04_08.h:1088
gsm48_system_information_type_2ter::ext_bcch_frequency_list
uint8_t ext_bcch_frequency_list[16]
Definition gsm_04_08.h:1089
gsm48_system_information_type_3
Definition gsm_04_08.h:1100
gsm48_system_information_type_3::rest_octets
uint8_t rest_octets[0]
Definition gsm_04_08.h:1108
gsm48_system_information_type_3::control_channel_desc
struct gsm48_control_channel_descr control_channel_desc
Definition gsm_04_08.h:1104
gsm48_system_information_type_3::lai
struct gsm48_loc_area_id lai
Definition gsm_04_08.h:1103
gsm48_system_information_type_3::cell_sel_par
struct gsm48_cell_sel_par cell_sel_par
Definition gsm_04_08.h:1106
gsm48_system_information_type_3::cell_options
struct gsm48_cell_options cell_options
Definition gsm_04_08.h:1105
gsm48_system_information_type_3::cell_identity
uint16_t cell_identity
Definition gsm_04_08.h:1102
gsm48_system_information_type_3::rach_control
struct gsm48_rach_control rach_control
Definition gsm_04_08.h:1107
gsm48_system_information_type_3::header
struct gsm48_system_information_type_header header
Definition gsm_04_08.h:1101
gsm48_system_information_type_4
Definition gsm_04_08.h:1112
gsm48_system_information_type_4::data
uint8_t data[0]
Definition gsm_04_08.h:1120
gsm48_system_information_type_4::lai
struct gsm48_loc_area_id lai
Definition gsm_04_08.h:1114
gsm48_system_information_type_4::cell_sel_par
struct gsm48_cell_sel_par cell_sel_par
Definition gsm_04_08.h:1115
gsm48_system_information_type_4::header
struct gsm48_system_information_type_header header
Definition gsm_04_08.h:1113
gsm48_system_information_type_4::rach_control
struct gsm48_rach_control rach_control
Definition gsm_04_08.h:1116
gsm48_system_information_type_5
Definition gsm_04_08.h:1124
gsm48_system_information_type_5bis
Definition gsm_04_08.h:1139
gsm48_system_information_type_5ter
Definition gsm_04_08.h:1154
gsm48_system_information_type_6
Definition gsm_04_08.h:1169
gsm48_system_information_type_header
Definition gsm_04_08.h:962
gsm48_talker_indication
Definition gsm_04_08.h:1422
gsm48_talker_indication::cm2_len
uint8_t cm2_len
Definition gsm_04_08.h:1423
gsm48_talker_indication::cm2
struct gsm48_classmark2 cm2
Definition gsm_04_08.h:1424
gsm48_talker_indication::data
uint8_t data[0]
Definition gsm_04_08.h:1425
gsm48_uplink_release
Definition gsm_04_08.h:1429
gsm48_uplink_release::rr_cause
uint8_t rr_cause
Definition gsm_04_08.h:1430
gsm48_var_bit
Definition gsm_04_08.h:483
osmo_gsm48_classmark
Definition gsm_04_08.h:230
osmo_gsm48_classmark::classmark1
struct gsm48_classmark1 classmark1
Definition gsm_04_08.h:232
osmo_gsm48_classmark::classmark3_len
uint8_t classmark3_len
Definition gsm_04_08.h:235
osmo_gsm48_classmark::classmark1_set
bool classmark1_set
Definition gsm_04_08.h:231
osmo_gsm48_classmark::classmark2_len
uint8_t classmark2_len
Definition gsm_04_08.h:233
osmo_gsm48_classmark::classmark2
struct gsm48_classmark2 classmark2
Definition gsm_04_08.h:234
osmo_gsm48_classmark::classmark3
uint8_t classmark3[14]
Definition gsm_04_08.h:236
value_string
utils.h