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>
struct gsm_lchan;
/* Chapter 10.5.1.5 */
struct gsm48_classmark1 {
#if OSMO_IS_LITTLE_ENDIAN == 1
uint8_t pwr_lev:3,
a5_1:1,
es_ind:1,
rev_lev:2,
spare:1;
#else
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 == 1
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;
#else
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.2.1b.3 */
#if OSMO_IS_LITTLE_ENDIAN == 1
struct gsm48_range_1024 {
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;
} __attribute__ ((packed));
#else
struct gsm48_range_1024 {
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;
} __attribute__ ((packed));
#endif
/* Chapter 10.5.2.1b.4 */
#if OSMO_IS_LITTLE_ENDIAN == 1
struct gsm48_range_512 {
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;
} __attribute__ ((packed));
#else
struct gsm48_range_512 {
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;
} __attribute__ ((packed));
#endif
/* Chapter 10.5.2.1b.5 */
#if OSMO_IS_LITTLE_ENDIAN == 1
struct gsm48_range_256 {
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;
} __attribute__ ((packed));
#else
struct gsm48_range_256 {
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;
} __attribute__ ((packed));
#endif
/* Chapter 10.5.2.1b.6 */
#if OSMO_IS_LITTLE_ENDIAN == 1
struct gsm48_range_128 {
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;
} __attribute__ ((packed));
#else
struct gsm48_range_128 {
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;
} __attribute__ ((packed));
#endif
/* Chapter 10.5.2.1b.7 */
struct gsm48_var_bit {
#if OSMO_IS_LITTLE_ENDIAN == 1
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];
#else
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 == 1
uint8_t maio_high:4,
h:1,
tsc:3;
uint8_t hsn:6,
maio_low:2;
#else
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 == 1
uint8_t arfcn_high:2,
spare:2,
h:1,
tsc:3;
#else
uint8_t tsc:3,
h:1,
spare:2,
arfcn_high:2;
#endif
uint8_t arfcn_low;
} __attribute__ ((packed)) h0;
} __attribute__ ((packed));
} __attribute__ ((packed));
/* Chapter 10.5.2.20 */
struct gsm48_meas_res {
#if OSMO_IS_LITTLE_ENDIAN == 1
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;
#else
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));
/* Chapter 10.5.2.21aa */
struct gsm48_multi_rate_conf {
#if OSMO_IS_LITTLE_ENDIAN == 1
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;
#else
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 == 1
uint8_t power_level:5,
spare:2,
atc:1;
#else
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 == 1
uint8_t re :1,
cell_bar :1,
tx_integer :4,
max_trans :2;
#else
uint8_t max_trans :2,
tx_integer :4,
cell_bar :1,
re :1;
#endif
uint8_t t2; /* ACC 8-15 barred flags */
uint8_t t3; /* ACC 0-7 barred flags */
} __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 >= 0 && 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 >= 0 && 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 >= 0 && 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 {
uint8_t ra;
#if OSMO_IS_LITTLE_ENDIAN == 1
uint8_t t3_high:3,
t1:5;
uint8_t t2:5,
t3_low:3;
#else
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 == 1
uint8_t t3_high:3,
t1:5;
uint8_t t2:5,
t3_low:3;
#else
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 == 1
uint8_t si:2,
rot:1,
nci:1,
sync_ie:4;
#else
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_DATA_14k5 = 0x0f,
GSM48_CMODE_DATA_12k0 = 0x03,
GSM48_CMODE_DATA_6k0 = 0x0b,
GSM48_CMODE_DATA_3k6 = 0x13,
};
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 == 1
uint8_t bcc:3,
ncc:3,
arfcn_hi:2;
#else
uint8_t arfcn_hi:2,
ncc:3,
bcc:3;
#endif
uint8_t arfcn_lo;
} __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 == 1
uint8_t spare:4,
key_seq:4;
#else
uint8_t key_seq:4,
spare:4;
#endif
uint32_t classmark2;
uint8_t mi_len;
uint8_t mi[0];
} __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 == 1
uint8_t key_seq:4,
spare:4;
#else
uint8_t spare:4,
key_seq:4;
#endif
uint8_t rand[16];
} __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 == 1
uint8_t type:4,
key_seq:4;
#else
uint8_t key_seq:4,
type:4;
#endif
struct gsm48_loc_area_id lai;
struct gsm48_classmark1 classmark1;
uint8_t mi_len;
uint8_t mi[0];
} __attribute__ ((packed));
/* Section 10.1 */
struct gsm48_hdr {
uint8_t proto_discr;
uint8_t msg_type;
uint8_t data[0];
} __attribute__ ((packed));
/* Section 9.1.3x System information Type header */
struct gsm48_system_information_type_header {
uint8_t l2_plen;
#if OSMO_IS_LITTLE_ENDIAN == 1
uint8_t rr_protocol_discriminator :4,
skip_indicator:4;
#else
uint8_t skip_indicator:4,
rr_protocol_discriminator :4;
#endif
uint8_t system_information;
} __attribute__ ((packed));
/* Section 10.5.2.4 Cell Selection Parameters */
struct gsm48_cell_sel_par {
#if OSMO_IS_LITTLE_ENDIAN == 1
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;
#else
uint8_t cell_resel_hyst:3, /* GSM 05.08 CELL-RESELECT-HYSTERESIS */
ms_txpwr_max_ccch:5; /* GSM 05.08 MS-TXPWR-MAX-CCCH */
uint8_t acs:1,
neci:1,
rxlev_acc_min:6; /* GSM 05.08 RXLEV-ACCESS-MIN */
#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 == 1
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;
#else
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;
#endif
uint8_t t3212;
} __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 == 1
uint8_t radio_link_timeout:4,
dtx:2,
pwrc:1,
/* either DN-IND or top bit of DTX IND */
d:1;
#else
uint8_t
/* either DN-IND or top bit of DTX IND */
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 == 1
uint8_t cm_service_type : 4,
cipher_key_seq : 4;
#else
uint8_t cipher_key_seq : 4,
cm_service_type : 4;
#endif
/* length + 3 bytes */
uint32_t classmark;
uint8_t mi_len;
uint8_t mi[0];
/* optional priority level */
} __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 == 1
uint8_t rr_protocol_discriminator :4,
skip_indicator:4;
#else
uint8_t skip_indicator:4,
rr_protocol_discriminator :4;
#endif
uint8_t system_information;
uint8_t bcch_frequency_list[16];
} __attribute__ ((packed));
/* Section 9.1.38 System information Type 5bis */
struct gsm48_system_information_type_5bis {
#if OSMO_IS_LITTLE_ENDIAN == 1
uint8_t rr_protocol_discriminator :4,
skip_indicator:4;
#else
uint8_t skip_indicator:4,
rr_protocol_discriminator :4;
#endif
uint8_t system_information;
uint8_t bcch_frequency_list[16];
} __attribute__ ((packed));
/* Section 9.1.39 System information Type 5ter */
struct gsm48_system_information_type_5ter {
#if OSMO_IS_LITTLE_ENDIAN == 1
uint8_t rr_protocol_discriminator :4,
skip_indicator:4;
#else
uint8_t skip_indicator:4,
rr_protocol_discriminator :4;
#endif
uint8_t system_information;
uint8_t bcch_frequency_list[16];
} __attribute__ ((packed));
/* Section 9.1.40 System information Type 6 */
struct gsm48_system_information_type_6 {
#if OSMO_IS_LITTLE_ENDIAN == 1
uint8_t rr_protocol_discriminator :4,
skip_indicator:4;
#else
uint8_t skip_indicator:4,
rr_protocol_discriminator :4;
#endif
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];
} __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 == 1
uint8_t sc:1,
alg_id:3,
cr:1,
spare:3;
#else
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.22 */
struct gsm48_paging1 {
uint8_t l2_plen;
uint8_t proto_discr;
uint8_t msg_type;
#if OSMO_IS_LITTLE_ENDIAN == 1
uint8_t pag_mode:2,
spare:2,
cneed1:2,
cneed2:2;
#else
uint8_t cneed2:2,
cneed1:2,
spare:2,
pag_mode:2;
#endif
uint8_t data[0];
} __attribute__((packed));
/* Section 9.1.23 */
struct gsm48_paging2 {
uint8_t l2_plen;
uint8_t proto_discr;
uint8_t msg_type;
#if OSMO_IS_LITTLE_ENDIAN == 1
uint8_t pag_mode:2,
spare:2,
cneed1:2,
cneed2:2;
#else
uint8_t
cneed2:2,
cneed1:2,
spare:2,
pag_mode:2;
#endif
uint32_t tmsi1;
uint32_t tmsi2;
uint8_t data[0];
} __attribute__((packed));
/* Section 9.1.24 */
struct gsm48_paging3 {
uint8_t l2_plen;
uint8_t proto_discr;
uint8_t msg_type;
#if OSMO_IS_LITTLE_ENDIAN == 1
uint8_t pag_mode:2,
spare:2,
cneed1:2,
cneed2:2;
#else
uint8_t cneed2:2,
cneed1:2,
spare:2,
pag_mode:2;
#endif
uint32_t tmsi1;
uint32_t tmsi2;
uint32_t tmsi3;
uint32_t tmsi4;
#if OSMO_IS_LITTLE_ENDIAN == 1
uint8_t cneed3:2,
cneed4:2,
spare2:4;
#else
uint8_t spare2:4,
cneed4:2,
cneed3:2;
#endif
uint8_t rest[0];
} __attribute__((packed));
/* Section 9.1.25 */
struct gsm48_pag_rsp {
#if OSMO_IS_LITTLE_ENDIAN == 1
uint8_t key_seq:3,
spare:5;
#else
uint8_t spare:5,
key_seq:3;
#endif
uint8_t cm2_len;
struct gsm48_classmark2 cm2;
uint8_t data[0];
} __attribute__((packed));
/* Section 9.1.29 */
struct gsm48_rr_status {
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
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
/* 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);
/* FIXME: Table 10.4 / 10.4a (GPRS) */
/* Section 10.5.3.3 CM service type */
#define GSM48_CMSERV_MO_CALL_PACKET 1
#define GSM48_CMSERV_EMERGENCY 2
#define GSM48_CMSERV_SMS 4
#define GSM48_CMSERV_SUP_SERV 8
#define GSM48_CMSERV_VGCS 9
#define GSM48_CMSERV_VBS 10
#define GSM48_CMSERV_LOC_SERV 11
/* 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
/* 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_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_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_REALTIME_DIFF 0x7b
#define GSM48_IE_START_TIME 0x7c
#define GSM48_IE_TIMING_ADVANCE 0x7d
#define GSM48_IE_GROUP_CIP_SEQ 0x80
#define GSM48_IE_CIP_MODE_SET 0x90
#define GSM48_IE_GPRS_RESUMPT 0xc0
#define GSM48_IE_SYNC_IND 0xd0
/* 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_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
#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,
};
/* Section 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_HNDOVER_IMP = 0x08,
GSM48_RR_CAUSE_CHAN_MODE_UNACCT = 0x09,
GSM48_RR_CAUSE_FREQ_NOT_IMPL = 0x0a,
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,
};
/* 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_NETWORK_FAILURE = 17,
GSM48_REJECT_SYNCH_FAILURE = 21,
GSM48_REJECT_CONGESTION = 22,
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,
};
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_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 */
};
GSM48_REJECT_INVALID_MANDANTORY_INF
@ GSM48_REJECT_INVALID_MANDANTORY_INF
Definition: gsm_04_08.h:1786
gsm48_range_256::w3
uint8_t w3
Definition: gsm_04_08.h:272
gsm48_chan_mode_modify::mode
uint8_t mode
Definition: gsm_04_08.h:692
gsm48_start_time::t2
uint8_t t2
Definition: gsm_04_08.h:666
GSM48_SIGNAL_DIALTONE
@ GSM48_SIGNAL_DIALTONE
Definition: gsm_04_08.h:1661
gsm48_range_1024::w1_hi
uint8_t w1_hi
Definition: gsm_04_08.h:119
gsm48_range_256::w1_hi
uint8_t w1_hi
Definition: gsm_04_08.h:269
gsm48_meas_res::rxlev_nc6_hi
uint8_t rxlev_nc6_hi
Definition: gsm_04_08.h:525
GSM48_BCAP_SA_X21
@ GSM48_BCAP_SA_X21
Definition: gsm_04_08.h:1915
gsm48_system_information_type_header::skip_indicator
uint8_t skip_indicator
Definition: gsm_04_08.h:836
gsm48_classmark2::vgcs
uint8_t vgcs
Definition: gsm_04_08.h:66
gsm48_range_128::orig_arfcn_hi
uint8_t orig_arfcn_hi
Definition: gsm_04_08.h:351
GSM48_CC_CAUSE_INC_BARRED_CUG
@ GSM48_CC_CAUSE_INC_BARRED_CUG
Definition: gsm_04_08.h:1743
gsm48_meas_res::bcch_f_nc5_hi
uint8_t bcch_f_nc5_hi
Definition: gsm_04_08.h:522
gsm48_range_128::w21_lo
uint8_t w21_lo
Definition: gsm_04_08.h:379
GSM48_REJECT_IMSI_UNKNOWN_IN_HLR
@ GSM48_REJECT_IMSI_UNKNOWN_IN_HLR
Definition: gsm_04_08.h:1770
gsm48_loc_upd_req::key_seq
uint8_t key_seq
Definition: gsm_04_08.h:813
GSM48_CC_CAUSE_NORM_CALL_CLEAR
@ GSM48_CC_CAUSE_NORM_CALL_CLEAR
Definition: gsm_04_08.h:1721
GSM48_CC_CAUSE_SERV_OPT_UNIMPL
@ GSM48_CC_CAUSE_SERV_OPT_UNIMPL
Definition: gsm_04_08.h:1751
gsm48_rach_control::cell_bar
uint8_t cell_bar
Definition: gsm_04_08.h:590
gsm48_sync_ind::si
uint8_t si
Definition: gsm_04_08.h:681
GSM48_CAUSE_CODING_RESERVED
@ GSM48_CAUSE_CODING_RESERVED
Definition: gsm_04_08.h:1677
gsm48_range_128::w7
uint8_t w7
Definition: gsm_04_08.h:363
GSM48_CC_CAUSE_IE_NOTEXIST
@ GSM48_CC_CAUSE_IE_NOTEXIST
Definition: gsm_04_08.h:1760
GSM48_BCAP_SV_HR
@ GSM48_BCAP_SV_HR
GSM HR V1 (GSM HR)
Definition: gsm_04_08.h:1973
GSM48_BCAP_PAR_EVEN
@ GSM48_BCAP_PAR_EVEN
Definition: gsm_04_08.h:1936
gsm48_cm_change::cm2
struct gsm48_classmark2 cm2
Definition: gsm_04_08.h:1106
gsm48_paging3::proto_discr
uint8_t proto_discr
Definition: gsm_04_08.h:1187
gsm48_req_ref
Definition: gsm_04_08.h:640
GSM48_CC_CAUSE_ACC_INF_DISCARD
@ GSM48_CC_CAUSE_ACC_INF_DISCARD
Definition: gsm_04_08.h:1738
CHREQ_T_SDCCH
@ CHREQ_T_SDCCH
Definition: gsm_04_08.h:1812
gsm48_system_information_type_6::cell_options
struct gsm48_cell_options cell_options
Definition: gsm_04_08.h:1036
gsm48_range_512::w16_lo
uint8_t w16_lo
Definition: gsm_04_08.h:217
GSM48_REJECT_IMPLICITLY_DETACHED
@ GSM48_REJECT_IMPLICITLY_DETACHED
Definition: gsm_04_08.h:1798
gsm48_range_1024::w15_lo
uint8_t w15_lo
Definition: gsm_04_08.h:146
gsm48_paging1::l2_plen
uint8_t l2_plen
Definition: gsm_04_08.h:1145
gsm48_pag_rsp::cm2_len
uint8_t cm2_len
Definition: gsm_04_08.h:1225
gsm48_meas_res::bsic_nc1_hi
uint8_t bsic_nc1_hi
Definition: gsm_04_08.h:504
gsm48_range_1024::w6_lo
uint8_t w6_lo
Definition: gsm_04_08.h:130
gsm48_range_128::w1
uint8_t w1
Definition: gsm_04_08.h:354
GSM48_CC_CAUSE_INTERWORKING
@ GSM48_CC_CAUSE_INTERWORKING
Definition: gsm_04_08.h:1765
GSM48_BCAP_RRQ_DUAL_HR
@ GSM48_BCAP_RRQ_DUAL_HR
Definition: gsm_04_08.h:1900
GSM48_BCAP_TMOD_CIRCUIT
@ GSM48_BCAP_TMOD_CIRCUIT
Definition: gsm_04_08.h:1888
gsm48_range_512
Definition: gsm_04_08.h:187
GSM48_PDISC_NC_SS
#define GSM48_PDISC_NC_SS
Definition: gsm_04_08.h:1247
GSM48_RR_CAUSE_CHAN_MODE_UNACCT
@ GSM48_RR_CAUSE_CHAN_MODE_UNACCT
Definition: gsm_04_08.h:1703
GSM48_CC_CAUSE_USER_NOT_IN_CUG
@ GSM48_CC_CAUSE_USER_NOT_IN_CUG
Definition: gsm_04_08.h:1753
GSM48_CAUSE_LOC_NET_BEYOND
@ GSM48_CAUSE_LOC_NET_BEYOND
Definition: gsm_04_08.h:1691
gsm48_gprs_susp_req
Definition: gsm_04_08.h:727
gsm48_range_256::w18_hi
uint8_t w18_hi
Definition: gsm_04_08.h:295
gsm48_system_information_type_4
Definition: gsm_04_08.h:974
gsm48_range_1024::w2_hi
uint8_t w2_hi
Definition: gsm_04_08.h:121
GSM48_CC_CAUSE_MSG_INCOMP_STATE
@ GSM48_CC_CAUSE_MSG_INCOMP_STATE
Definition: gsm_04_08.h:1762
gsm48_service_request::mi_len
uint8_t mi_len
Definition: gsm_04_08.h:919
gsm48_signal_val
gsm48_signal_val
Definition: gsm_04_08.h:1660
gsm48_frq_redef::mob_alloc_len
uint8_t mob_alloc_len
Definition: gsm_04_08.h:722
gsm48_meas_res::bcch_f_nc4
uint8_t bcch_f_nc4
Definition: gsm_04_08.h:518
gsm48_ra_id::lac
uint16_t lac
Definition: gsm_04_08.h:1990
gsm48_paging3::tmsi4
uint32_t tmsi4
Definition: gsm_04_08.h:1203
gsm48_imm_ass::mob_alloc
uint8_t mob_alloc[0]
Definition: gsm_04_08.h:767
gsm48_imm_ass_ext
Definition: gsm_04_08.h:1111
gsm48_range_256::w11_lo
uint8_t w11_lo
Definition: gsm_04_08.h:286
gsm48_hdr::proto_discr
uint8_t proto_discr
Definition: gsm_04_08.h:824
gsm48_range_1024::w7_hi
uint8_t w7_hi
Definition: gsm_04_08.h:131
GSM48_CC_CAUSE_NONSE_USER_CLR
@ GSM48_CC_CAUSE_NONSE_USER_CLR
Definition: gsm_04_08.h:1728
gsm48_hdr::data
uint8_t data[0]
Definition: gsm_04_08.h:826
GSM48_NPI_ISDN_E164
@ GSM48_NPI_ISDN_E164
Definition: gsm_04_08.h:2012
gsm48_control_channel_descr::spare_2
uint8_t spare_2
Definition: gsm_04_08.h:875
gsm48_var_bit::rrfcn8_111
uint8_t rrfcn8_111[13]
Definition: gsm_04_08.h:408
gsm48_pag_rsp::key_seq
uint8_t key_seq
Definition: gsm_04_08.h:1223
gsm48_multi_rate_conf::m10_2
uint8_t m10_2
Definition: gsm_04_08.h:557
gsm48_classmark2::es_ind
uint8_t es_ind
Definition: gsm_04_08.h:57
gsm48_classmark2
Definition: gsm_04_08.h:32
gsm48_range_1024::form_id
uint8_t form_id
Definition: gsm_04_08.h:117
gsm48_meas_res::rxlev_nc3_lo
uint8_t rxlev_nc3_lo
Definition: gsm_04_08.h:512
gsm48_power_cmd
Definition: gsm_04_08.h:568
gsm48_range_256::w11_hi
uint8_t w11_hi
Definition: gsm_04_08.h:285
GSM48_CC_CAUSE_NO_CIRCUIT_CHAN
@ GSM48_CC_CAUSE_NO_CIRCUIT_CHAN
Definition: gsm_04_08.h:1734
gsm48_system_information_type_header::system_information
uint8_t system_information
Definition: gsm_04_08.h:839
gsm48_auth_req
Definition: gsm_04_08.h:791
gsm48_system_information_type_4::lai
struct gsm48_loc_area_id lai
Definition: gsm_04_08.h:976
gsm48_type_of_number
gsm48_type_of_number
Definition: gsm_04_08.h:2000
gsm48_paging1::msg_type
uint8_t msg_type
Definition: gsm_04_08.h:1147
GSM48_BCAP_RA_V110_X30
@ GSM48_BCAP_RA_V110_X30
Definition: gsm_04_08.h:1907
gsm48_rr_msgtype_names
const struct value_string gsm48_rr_msgtype_names[]
TS 04.08 RR Message Type names.
Definition: gsm48.c:783
gsm48_chan_desc::hsn
uint8_t hsn
Definition: gsm_04_08.h:428
GSM48_BCAP_RA_NONE
@ GSM48_BCAP_RA_NONE
Definition: gsm_04_08.h:1906
GSM48_CC_CAUSE_SERV_OPT_UNAVAIL
@ GSM48_CC_CAUSE_SERV_OPT_UNAVAIL
Definition: gsm_04_08.h:1746
GSM48_BCAP_MT_V26ter
@ GSM48_BCAP_MT_V26ter
Definition: gsm_04_08.h:1963
gsm48_var_bit::orig_arfcn_hi
uint8_t orig_arfcn_hi
Definition: gsm_04_08.h:403
GSM48_REJECT_ILLEGAL_MS
@ GSM48_REJECT_ILLEGAL_MS
Definition: gsm_04_08.h:1771
GSM48_BCAP_SV_AMR_OHW
@ GSM48_BCAP_SV_AMR_OHW
GSM HR V4 (OHR AMR-WB)
Definition: gsm_04_08.h:1978
gsm48_cip_mode_cmd::cr
uint8_t cr
Definition: gsm_04_08.h:1097
gsm48_range_128::form_id
uint8_t form_id
Definition: gsm_04_08.h:350
gsm48_ass_cmd::power_command
uint8_t power_command
Definition: gsm_04_08.h:714
CHREQ_T_LMU
@ CHREQ_T_LMU
Definition: gsm_04_08.h:1821
gsm48_range_128::w8
uint8_t w8
Definition: gsm_04_08.h:364
GSM48_BCAP_UR_9600
@ GSM48_BCAP_UR_9600
Definition: gsm_04_08.h:1928
gsm48_cm_change::data
uint8_t data[0]
Definition: gsm_04_08.h:1107
GSM48_DTX_MAY_BE_USED
@ GSM48_DTX_MAY_BE_USED
Definition: gsm_04_08.h:884
GSM48_CC_CAUSE_INV_NR_FORMAT
@ GSM48_CC_CAUSE_INV_NR_FORMAT
Definition: gsm_04_08.h:1730
gsm48_rach_control::re
uint8_t re
Definition: gsm_04_08.h:591
gsm48_loc_area_id::digits
uint8_t digits[3]
Definition: gsm_04_08.h:786
GSM48_CC_CAUSE_PRE_EMPTION
@ GSM48_CC_CAUSE_PRE_EMPTION
Definition: gsm_04_08.h:1727
GSM48_CMODE_DATA_12k0
@ GSM48_CMODE_DATA_12k0
Definition: gsm_04_08.h:701
GSM48_BCAP_SA_X28_DP_IN
@ GSM48_BCAP_SA_X28_DP_IN
Definition: gsm_04_08.h:1916
gsm48_system_information_type_5::bcch_frequency_list
uint8_t bcch_frequency_list[16]
Definition: gsm_04_08.h:995
GSM48_REJECT_GPRS_NOT_ALLOWED_IN_PLMN
@ GSM48_REJECT_GPRS_NOT_ALLOWED_IN_PLMN
Definition: gsm_04_08.h:1799
GSM48_REJECT_NETWORK_FAILURE
@ GSM48_REJECT_NETWORK_FAILURE
Definition: gsm_04_08.h:1778
gsm48_system_information_type_6::rest_octets
uint8_t rest_octets[0]
Definition: gsm_04_08.h:1038
GSM48_BCAP_MT_NONE
@ GSM48_BCAP_MT_NONE
Definition: gsm_04_08.h:1958
GSM48_CC_CAUSE_USER_NOTRESPOND
@ GSM48_CC_CAUSE_USER_NOTRESPOND
Definition: gsm_04_08.h:1723
gsm48_range_128::w21_hi
uint8_t w21_hi
Definition: gsm_04_08.h:378
gsm48_pag_rsp::cm2
struct gsm48_classmark2 cm2
Definition: gsm_04_08.h:1226
gsm48_imm_ass_rej::wait_ind4
uint8_t wait_ind4
Definition: gsm_04_08.h:1139
gsm48_range_128::orig_arfcn_mid
uint8_t orig_arfcn_mid
Definition: gsm_04_08.h:352
GSM48_BCAP_MT_V21
@ GSM48_BCAP_MT_V21
Definition: gsm_04_08.h:1959
gsm48_control_channel_descr::spare_1
uint8_t spare_1
Definition: gsm_04_08.h:877
gsm48_range_256::w6_hi
uint8_t w6_hi
Definition: gsm_04_08.h:277
gsm48_control_channel_descr::cbq3
uint8_t cbq3
Definition: gsm_04_08.h:876
gsm48_req_ref::t2
uint8_t t2
Definition: gsm_04_08.h:651
gsm48_meas_res::no_nc_n_lo
uint8_t no_nc_n_lo
Definition: gsm_04_08.h:501
GSM48_BCAP_IR_8k
@ GSM48_BCAP_IR_8k
Definition: gsm_04_08.h:1944
gsm48_imm_ass_ext::req_ref2
struct gsm48_req_ref req_ref2
Definition: gsm_04_08.h:1120
GSM48_BCAP_ITCAP_OTHER
@ GSM48_BCAP_ITCAP_OTHER
Definition: gsm_04_08.h:1882
GSM48_REJECT_ROAMING_NOT_ALLOWED
@ GSM48_REJECT_ROAMING_NOT_ALLOWED
Definition: gsm_04_08.h:1777
GSM48_BCAP_RA_X31
@ GSM48_BCAP_RA_X31
Definition: gsm_04_08.h:1908
GSM48_CC_CAUSE_UNASSIGNED_NR
@ GSM48_CC_CAUSE_UNASSIGNED_NR
Definition: gsm_04_08.h:1717
GSM48_DTX_SHALL_NOT_BE_USED
@ GSM48_DTX_SHALL_NOT_BE_USED
Definition: gsm_04_08.h:886
GSM48_BCAP_TR_TRANSP
@ GSM48_BCAP_TR_TRANSP
Definition: gsm_04_08.h:1950
GSM48_RR_CAUSE_PREMPTIVE_REL
@ GSM48_RR_CAUSE_PREMPTIVE_REL
Definition: gsm_04_08.h:1701
gsm48_chan_desc::chan_nr
uint8_t chan_nr
Definition: gsm_04_08.h:414
gsm48_ho_cmd::data
uint8_t data[0]
Definition: gsm_04_08.h:754
gsm48_paging1::proto_discr
uint8_t proto_discr
Definition: gsm_04_08.h:1146
gsm48_imm_ass::req_ref
struct gsm48_req_ref req_ref
Definition: gsm_04_08.h:764
gsm48_range_256::w9_hi
uint8_t w9_hi
Definition: gsm_04_08.h:282
gsm48_gprs_susp_req::ra_id
uint8_t ra_id[6]
Definition: gsm_04_08.h:729
gsm48_classmark2::ss_scr
uint8_t ss_scr
Definition: gsm_04_08.h:63
gsm48_meas_res::bsic_nc3_lo
uint8_t bsic_nc3_lo
Definition: gsm_04_08.h:515
GSM48_REJECT_INF_ELEME_NOT_IMPLEMENTED
@ GSM48_REJECT_INF_ELEME_NOT_IMPLEMENTED
Definition: gsm_04_08.h:1789
gsm48_pag_resp::key_seq
uint8_t key_seq
Definition: gsm_04_08.h:776
GSM48_CC_CAUSE_DEST_OOO
@ GSM48_CC_CAUSE_DEST_OOO
Definition: gsm_04_08.h:1729
gsm48_meas_res::bsic_nc2_lo
uint8_t bsic_nc2_lo
Definition: gsm_04_08.h:510
GSM48_BCAP_TMOD_PACKET
@ GSM48_BCAP_TMOD_PACKET
Definition: gsm_04_08.h:1889
GSM48_SIGNAL_OFF
@ GSM48_SIGNAL_OFF
Definition: gsm_04_08.h:1670
gsm48_range_256::w14_lo
uint8_t w14_lo
Definition: gsm_04_08.h:290
gsm48_range_128::w4_lo
uint8_t w4_lo
Definition: gsm_04_08.h:359
gsm48_range_1024::w8_hi
uint8_t w8_hi
Definition: gsm_04_08.h:133
GSM48_CC_CAUSE_REQ_FAC_NOTIMPL
@ GSM48_CC_CAUSE_REQ_FAC_NOTIMPL
Definition: gsm_04_08.h:1749
gsm48_req_ref::t3_high
uint8_t t3_high
Definition: gsm_04_08.h:649
gsm48_loc_upd_req::mi
uint8_t mi[0]
Definition: gsm_04_08.h:819
GSM48_CC_CAUSE_BEARER_CAP_UNAUTH
@ GSM48_CC_CAUSE_BEARER_CAP_UNAUTH
Definition: gsm_04_08.h:1744
gsm48_req_ref::ra
uint8_t ra
Definition: gsm_04_08.h:641
GSM48_BCAP_SA_X32
@ GSM48_BCAP_SA_X32
Definition: gsm_04_08.h:1919
gsm48_meas_res::rxlev_nc1
uint8_t rxlev_nc1
Definition: gsm_04_08.h:502
gsm48_classmark1::es_ind
uint8_t es_ind
Definition: gsm_04_08.h:25
gsm48_meas_res::bsic_nc2_hi
uint8_t bsic_nc2_hi
Definition: gsm_04_08.h:509
gsm48_multi_rate_conf
Definition: gsm_04_08.h:535
gsm48_range_128::w20
uint8_t w20
Definition: gsm_04_08.h:377
gsm48_imm_ass_ext::msg_type
uint8_t msg_type
Definition: gsm_04_08.h:1114
gsm48_meas_res::rxlev_nc2_hi
uint8_t rxlev_nc2_hi
Definition: gsm_04_08.h:506
gsm48_paging2::tmsi2
uint32_t tmsi2
Definition: gsm_04_08.h:1180
gsm48_system_information_type_5ter
Definition: gsm_04_08.h:1012
gsm48_classmark2::a5_3
uint8_t a5_3
Definition: gsm_04_08.h:75
GSM48_BCAP_SV_AMR_OFW
@ GSM48_BCAP_SV_AMR_OFW
GSM FR V4 (OFR AMR-WB)
Definition: gsm_04_08.h:1977
gsm48_classmark2::rev_lev
uint8_t rev_lev
Definition: gsm_04_08.h:56
gsm48_cell_sel_par::acs
uint8_t acs
Definition: gsm_04_08.h:853
GSM48_CC_CAUSE_MSGTYPE_INCOMPAT
@ GSM48_CC_CAUSE_MSGTYPE_INCOMPAT
Definition: gsm_04_08.h:1759
gsm48_range_256::w6_lo
uint8_t w6_lo
Definition: gsm_04_08.h:278
gsm48_ho_cmd
Definition: gsm_04_08.h:749
gsm48_meas_res::bsic_nc4
uint8_t bsic_nc4
Definition: gsm_04_08.h:519
gsm48_ho_cpl::rr_cause
uint8_t rr_cause
Definition: gsm_04_08.h:1073
CHREQ_T_VOICE_CALL_TCH_H
@ CHREQ_T_VOICE_CALL_TCH_H
Definition: gsm_04_08.h:1814
gsm48_range_128::w18_hi
uint8_t w18_hi
Definition: gsm_04_08.h:374
gsm48_range_1024::w8_lo
uint8_t w8_lo
Definition: gsm_04_08.h:134
GSM48_CC_CAUSE_INCOMPAT_DEST
@ GSM48_CC_CAUSE_INCOMPAT_DEST
Definition: gsm_04_08.h:1754
gsm48_multi_rate_conf::m6_70
uint8_t m6_70
Definition: gsm_04_08.h:560
gsm48_cell_sel_par
Definition: gsm_04_08.h:843
GSM48_RR_CAUSE_MSG_TYPE_N_COMPAT
@ GSM48_RR_CAUSE_MSG_TYPE_N_COMPAT
Definition: gsm_04_08.h:1709
GSM48_PDISC_MASK
#define GSM48_PDISC_MASK
Definition: gsm_04_08.h:1251
gsm48_progress_desc
gsm48_progress_desc
Definition: gsm_04_08.h:1649
gsm48_add_ass
Definition: gsm_04_08.h:1055
gsm48_imm_ass_rej
Definition: gsm_04_08.h:1127
gsm48_system_information_type_3::cell_sel_par
struct gsm48_cell_sel_par cell_sel_par
Definition: gsm_04_08.h:968
GSM48_BCAP_UR_12000
@ GSM48_BCAP_UR_12000
Definition: gsm_04_08.h:1929
gsm48_imm_ass_rej::msg_type
uint8_t msg_type
Definition: gsm_04_08.h:1130
gsm48_cip_mode_cmd::sc
uint8_t sc
Definition: gsm_04_08.h:1099
gsm48_paging3
Definition: gsm_04_08.h:1185
gsm48_chan_desc::tsc
uint8_t tsc
Definition: gsm_04_08.h:424
gsm48_chan_desc::__attribute__
union gsm48_chan_desc::@22 __attribute__((packed))
gsm48_var_bit::rrfcn1_7
uint8_t rrfcn1_7
Definition: gsm_04_08.h:407
gsm48_range_1024::w3_hi
uint8_t w3_hi
Definition: gsm_04_08.h:123
GSM48_SIGNAL_BUSY
@ GSM48_SIGNAL_BUSY
Definition: gsm_04_08.h:1665
gsm48_service_request::classmark
uint32_t classmark
Definition: gsm_04_08.h:918
gsm48_frq_redef
Definition: gsm_04_08.h:719
gsm48_bcap_interm_rate
gsm48_bcap_interm_rate
Definition: gsm_04_08.h:1943
CHREQ_T_EMERG_CALL
@ CHREQ_T_EMERG_CALL
Definition: gsm_04_08.h:1808
gsm48_system_information_type_2ter::rest_octets
uint8_t rest_octets[0]
Definition: gsm_04_08.h:952
gsm48_imm_ass_ext::chan_desc1
struct gsm48_chan_desc chan_desc1
Definition: gsm_04_08.h:1116
GSM48_REJECT_MSG_TYPE_NOT_COMPATIBLE
@ GSM48_REJECT_MSG_TYPE_NOT_COMPATIBLE
Definition: gsm_04_08.h:1788
gsm48_cell_desc::ncc
uint8_t ncc
Definition: gsm_04_08.h:742
GSM48_RR_CAUSE_FREQ_NOT_IMPL
@ GSM48_RR_CAUSE_FREQ_NOT_IMPL
Definition: gsm_04_08.h:1704
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:441
gsm48_range_128::w17
uint8_t w17
Definition: gsm_04_08.h:373
gsm48_range_256::w4_hi
uint8_t w4_hi
Definition: gsm_04_08.h:273
gsm48_system_information_type_3
Definition: gsm_04_08.h:962
GSM48_CC_CAUSE_SEMANTIC_INCORR
@ GSM48_CC_CAUSE_SEMANTIC_INCORR
Definition: gsm_04_08.h:1756
gsm48_system_information_type_5bis::bcch_frequency_list
uint8_t bcch_frequency_list[16]
Definition: gsm_04_08.h:1008
GSM48_CC_CAUSE_NO_ROUTE
@ GSM48_CC_CAUSE_NO_ROUTE
Definition: gsm_04_08.h:1718
gsm48_system_information_type_2::rach_control
struct gsm48_rach_control rach_control
Definition: gsm_04_08.h:937
gsm48_hdr_msg_type_r98
static uint8_t gsm48_hdr_msg_type_r98(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1302
gsm48_range_128::w27
uint8_t w27
Definition: gsm_04_08.h:386
gsm48_system_information_type_6::skip_indicator
uint8_t skip_indicator
Definition: gsm_04_08.h:1030
gsm48_paging3::rest
uint8_t rest[0]
Definition: gsm_04_08.h:1213
GSM48_TON_UNKNOWN
@ GSM48_TON_UNKNOWN
Definition: gsm_04_08.h:2001
gsm48_multi_rate_conf::m4_75
uint8_t m4_75
Definition: gsm_04_08.h:563
gsm48_range_128::w10
uint8_t w10
Definition: gsm_04_08.h:366
gsm48_meas_res::bsic_nc5
uint8_t bsic_nc5
Definition: gsm_04_08.h:524
gsm48_imm_ass_ext::proto_discr
uint8_t proto_discr
Definition: gsm_04_08.h:1113
gsm48_system_information_type_2quater::header
struct gsm48_system_information_type_header header
Definition: gsm_04_08.h:957
GSM48_BCAP_MT_AUTO_1
@ GSM48_BCAP_MT_AUTO_1
Definition: gsm_04_08.h:1966
gsm48_bcap_parity
gsm48_bcap_parity
Definition: gsm_04_08.h:1934
gsm48_meas_res::spare
uint8_t spare
Definition: gsm_04_08.h:494
GSM48_CC_CAUSE_USER_BUSY
@ GSM48_CC_CAUSE_USER_BUSY
Definition: gsm_04_08.h:1722
GSM48_RR_CAUSE_MSG_TYPE_N
@ GSM48_RR_CAUSE_MSG_TYPE_N
Definition: gsm_04_08.h:1708
gsm48_range_256::w4_lo
uint8_t w4_lo
Definition: gsm_04_08.h:274
gsm48_multi_rate_conf::m7_40
uint8_t m7_40
Definition: gsm_04_08.h:559
gsm48_range_128::w6_lo
uint8_t w6_lo
Definition: gsm_04_08.h:362
gsm48_classmark1
Definition: gsm_04_08.h:15
gsm48_rach_control::max_trans
uint8_t max_trans
Definition: gsm_04_08.h:588
gsm48_start_time
Definition: gsm_04_08.h:656
gsm48_range_512::w17
uint8_t w17
Definition: gsm_04_08.h:218
gsm48_multi_rate_conf::nscb
uint8_t nscb
Definition: gsm_04_08.h:552
gsm48_hdr_trans_id
static uint8_t gsm48_hdr_trans_id(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1271
gsm48_imm_ass_rej::wait_ind2
uint8_t wait_ind2
Definition: gsm_04_08.h:1135
gsm48_chan_desc::maio_high
uint8_t maio_high
Definition: gsm_04_08.h:426
gsm48_system_information_type_header
Definition: gsm_04_08.h:830
GSM48_CMODE_DATA_6k0
@ GSM48_CMODE_DATA_6k0
Definition: gsm_04_08.h:702
gsm48_paging2::l2_plen
uint8_t l2_plen
Definition: gsm_04_08.h:1164
gsm48_cc_msgtype_names
const struct value_string gsm48_cc_msgtype_names[]
TS 04.08 CC Message Type names.
Definition: gsm48.c:906
gsm48_paging3::msg_type
uint8_t msg_type
Definition: gsm_04_08.h:1188
gsm48_auth_resp::sres
uint8_t sres[4]
Definition: gsm_04_08.h:804
GSM48_BCAP_RRQ_FR_ONLY
@ GSM48_BCAP_RRQ_FR_ONLY
Definition: gsm_04_08.h:1899
gsm48_control_channel_descr::bs_pa_mfrms
uint8_t bs_pa_mfrms
Definition: gsm_04_08.h:878
GSM48_REJECT_SRV_OPT_NOT_SUPPORTED
@ GSM48_REJECT_SRV_OPT_NOT_SUPPORTED
Definition: gsm_04_08.h:1781
gsm48_cell_sel_par::ms_txpwr_max_ccch
uint8_t ms_txpwr_max_ccch
Definition: gsm_04_08.h:852
gsm48_paging3::l2_plen
uint8_t l2_plen
Definition: gsm_04_08.h:1186
gsm48_system_information_type_2bis::rach_control
struct gsm48_rach_control rach_control
Definition: gsm_04_08.h:944
gsm48_range_1024::w14_hi
uint8_t w14_hi
Definition: gsm_04_08.h:143
gsm48_range_1024::w5_lo
uint8_t w5_lo
Definition: gsm_04_08.h:128
gsm48_numbering_plan
gsm48_numbering_plan
Definition: gsm_04_08.h:2010
gsm48_range_256::w16_lo
uint8_t w16_lo
Definition: gsm_04_08.h:293
GSM48_CAUSE_LOC_TRANS_NET
@ GSM48_CAUSE_LOC_TRANS_NET
Definition: gsm_04_08.h:1686
gsm48_meas_res::rxlev_nc4_lo
uint8_t rxlev_nc4_lo
Definition: gsm_04_08.h:517
GSM48_PROGR_CALL_E2E
@ GSM48_PROGR_CALL_E2E
Definition: gsm_04_08.h:1655
gsm48_chan_rel::rr_cause
uint8_t rr_cause
Definition: gsm_04_08.h:1084
gsm48_system_information_type_5bis::skip_indicator
uint8_t skip_indicator
Definition: gsm_04_08.h:1004
gsm48_imm_ass_rej::rest
uint8_t rest[0]
Definition: gsm_04_08.h:1140
gsm48_bcap_sig_access
gsm48_bcap_sig_access
Definition: gsm_04_08.h:1913
gsm48_system_information_type_3::header
struct gsm48_system_information_type_header header
Definition: gsm_04_08.h:963
gsm48_range_256::w8_lo
uint8_t w8_lo
Definition: gsm_04_08.h:281
gsm48_range_256
Definition: gsm_04_08.h:264
GSM48_BCAP_ITCAP_FAX_G3
@ GSM48_BCAP_ITCAP_FAX_G3
Definition: gsm_04_08.h:1881
GSM48_CAUSE_CODING_CCITT_Q931
@ GSM48_CAUSE_CODING_CCITT_Q931
Definition: gsm_04_08.h:1676
GSM48_REJECT_MS_IDENTITY_NOT_DERVIVABLE
@ GSM48_REJECT_MS_IDENTITY_NOT_DERVIVABLE
Definition: gsm_04_08.h:1797
gsm48_system_information_type_13
Definition: gsm_04_08.h:1042
gsm48_start_time::t3_low
uint8_t t3_low
Definition: gsm_04_08.h:665
gsm48_range_256::w10
uint8_t w10
Definition: gsm_04_08.h:284
GSM48_CC_CAUSE_RESOURCE_UNAVAIL
@ GSM48_CC_CAUSE_RESOURCE_UNAVAIL
Definition: gsm_04_08.h:1740
gsm48_ass_cmd::chan_desc
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:713
gsm48_range_128::w3_hi
uint8_t w3_hi
Definition: gsm_04_08.h:356
GSM48_CAUSE_LOC_PRN_S_RU
@ GSM48_CAUSE_LOC_PRN_S_RU
Definition: gsm_04_08.h:1688
gsm48_system_information_type_2ter
Definition: gsm_04_08.h:949
GSM48_RR_CAUSE_SEMANT_INCORR
@ GSM48_RR_CAUSE_SEMANT_INCORR
Definition: gsm_04_08.h:1706
GSM48_BCAP_TR_TR_PREF
@ GSM48_BCAP_TR_TR_PREF
Definition: gsm_04_08.h:1952
gsm48_paging3::tmsi3
uint32_t tmsi3
Definition: gsm_04_08.h:1202
gsm48_service_request::cm_service_type
uint8_t cm_service_type
Definition: gsm_04_08.h:915
GSM48_BCAP_TR_RLP
@ GSM48_BCAP_TR_RLP
Definition: gsm_04_08.h:1951
GSM48_CAUSE_LOC_PRN_S_LU
@ GSM48_CAUSE_LOC_PRN_S_LU
Definition: gsm_04_08.h:1684
gsm48_range_128::w26_hi
uint8_t w26_hi
Definition: gsm_04_08.h:384
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:555
gsm48_range_512::w7_hi
uint8_t w7_hi
Definition: gsm_04_08.h:202
gsm48_system_information_type_2bis::bcch_frequency_list
uint8_t bcch_frequency_list[16]
Definition: gsm_04_08.h:943
gsm48_system_information_type_3::cell_identity
uint16_t cell_identity
Definition: gsm_04_08.h:964
gsm48_var_bit::orig_arfcn_lo
uint8_t orig_arfcn_lo
Definition: gsm_04_08.h:406
gsm48_ra_id::rac
uint8_t rac
Definition: gsm_04_08.h:1991
gsm48_imm_ass_ext::timing_advance1
uint8_t timing_advance1
Definition: gsm_04_08.h:1118
gsm48_range_1024
Definition: gsm_04_08.h:116
GSM48_BCAP_UR_1200_75
@ GSM48_BCAP_UR_1200_75
Definition: gsm_04_08.h:1930
GSM48_BCAP_ITCAP_SPEECH
@ GSM48_BCAP_ITCAP_SPEECH
Definition: gsm_04_08.h:1878
gsm48_system_information_type_1::rach_control
struct gsm48_rach_control rach_control
Definition: gsm_04_08.h:928
gsm48_paging1::pag_mode
uint8_t pag_mode
Definition: gsm_04_08.h:1157
gsm48_gprs_susp_req::options
uint8_t options[0]
Definition: gsm_04_08.h:731
gsm48_pag_resp::mi_len
uint8_t mi_len
Definition: gsm_04_08.h:780
gsm48_bcap_rrq
gsm48_bcap_rrq
Definition: gsm_04_08.h:1898
gsm48_system_information_type_13::header
struct gsm48_system_information_type_header header
Definition: gsm_04_08.h:1043
gsm48_rach_control::t2
uint8_t t2
Definition: gsm_04_08.h:593
gsm48_reject_value_names
const struct value_string gsm48_reject_value_names[]
Definition: gsm48.c:994
gsm48_range_1024::w7_lo
uint8_t w7_lo
Definition: gsm_04_08.h:132
gsm48_range_1024::w11_hi
uint8_t w11_hi
Definition: gsm_04_08.h:137
gsm48_cell_sel_par::cell_resel_hyst
uint8_t cell_resel_hyst
Definition: gsm_04_08.h:851
gsm48_range_256::w1_lo
uint8_t w1_lo
Definition: gsm_04_08.h:270
gsm48_imm_ass_rej::req_ref1
struct gsm48_req_ref req_ref1
Definition: gsm_04_08.h:1132
GSM48_CC_CAUSE_REQ_FAC_NOT_SUBSC
@ GSM48_CC_CAUSE_REQ_FAC_NOT_SUBSC
Definition: gsm_04_08.h:1742
gsm48_ho_cmd::cell_desc
struct gsm48_cell_desc cell_desc
Definition: gsm_04_08.h:750
GSM48_SIGNAL_CALL_WAIT
@ GSM48_SIGNAL_CALL_WAIT
Definition: gsm_04_08.h:1668
gsm48_paging1::cneed1
uint8_t cneed1
Definition: gsm_04_08.h:1155
gsm48_imm_ass::l2_plen
uint8_t l2_plen
Definition: gsm_04_08.h:759
gsm48_range_256::w14_hi
uint8_t w14_hi
Definition: gsm_04_08.h:289
gsm48_range_1024::w11_lo
uint8_t w11_lo
Definition: gsm_04_08.h:138
GSM48_BCAP_PAR_NONE
@ GSM48_BCAP_PAR_NONE
Definition: gsm_04_08.h:1937
GSM48_PROGR_ORIG_NOT_PLMN
@ GSM48_PROGR_ORIG_NOT_PLMN
Definition: gsm_04_08.h:1652
gsm48_system_information_type_6::cell_identity
uint16_t cell_identity
Definition: gsm_04_08.h:1034
GSM48_CAUSE_LOC_PUN_S_LU
@ GSM48_CAUSE_LOC_PUN_S_LU
Definition: gsm_04_08.h:1685
gsm48_rr_status::rr_cause
uint8_t rr_cause
Definition: gsm_04_08.h:1232
GSM48_CC_CAUSE_PROTO_ERR
@ GSM48_CC_CAUSE_PROTO_ERR
Definition: gsm_04_08.h:1764
gsm48_paging1
Definition: gsm_04_08.h:1144
GSM48_TON_SHORT_CODE
@ GSM48_TON_SHORT_CODE
Definition: gsm_04_08.h:2005
gsm48_pag_rsp
Definition: gsm_04_08.h:1217
gsm48_range_1024::w10
uint8_t w10
Definition: gsm_04_08.h:136
CHREQ_T_RESERVED_SDCCH
@ CHREQ_T_RESERVED_SDCCH
Definition: gsm_04_08.h:1822
gsm48_control_channel_descr::t3212
uint8_t t3212
Definition: gsm_04_08.h:880
gsm48_meas_res::bsic_nc3_hi
uint8_t bsic_nc3_hi
Definition: gsm_04_08.h:514
gsm48_range_512::w13_hi
uint8_t w13_hi
Definition: gsm_04_08.h:212
gsm48_meas_res::bcch_f_nc1
uint8_t bcch_f_nc1
Definition: gsm_04_08.h:503
gsm48_chan_desc::arfcn_low
uint8_t arfcn_low
Definition: gsm_04_08.h:443
GSM48_DTX_SHALL_BE_USED
@ GSM48_DTX_SHALL_BE_USED
Definition: gsm_04_08.h:885
gsm48_loc_upd_req::lai
struct gsm48_loc_area_id lai
Definition: gsm_04_08.h:816
gsm48_classmark2::ps_cap
uint8_t ps_cap
Definition: gsm_04_08.h:62
gsm48_cm_change
Definition: gsm_04_08.h:1104
gsm48_rr_status
Definition: gsm_04_08.h:1231
gsm48_meas_res::rxqual_sub
uint8_t rxqual_sub
Definition: gsm_04_08.h:499
GSM48_REJECT_MSG_TYPE_NOT_IMPLEMENTED
@ GSM48_REJECT_MSG_TYPE_NOT_IMPLEMENTED
Definition: gsm_04_08.h:1787
GSM48_BCAP_UR_4800
@ GSM48_BCAP_UR_4800
Definition: gsm_04_08.h:1927
GSM48_CMODE_DATA_3k6
@ GSM48_CMODE_DATA_3k6
Definition: gsm_04_08.h:703
gsm48_bcap_transp
gsm48_bcap_transp
Definition: gsm_04_08.h:1949
gsm48_var_bit::form_id
uint8_t form_id
Definition: gsm_04_08.h:402
gsm48_range_1024::w4_hi
uint8_t w4_hi
Definition: gsm_04_08.h:125
GSM48_RR_CAUSE_ABNORMAL_TIMER
@ GSM48_RR_CAUSE_ABNORMAL_TIMER
Definition: gsm_04_08.h:1699
gsm48_loc_upd_req::mi_len
uint8_t mi_len
Definition: gsm_04_08.h:818
gsm48_classmark2::cmsp
uint8_t cmsp
Definition: gsm_04_08.h:74
gsm48_classmark1::rev_lev
uint8_t rev_lev
Definition: gsm_04_08.h:24
gsm48_paging2::spare
uint8_t spare
Definition: gsm_04_08.h:1176
gsm48_range_512::w10
uint8_t w10
Definition: gsm_04_08.h:208
gsm48_classmark2::pwr_lev
uint8_t pwr_lev
Definition: gsm_04_08.h:59
gsm48_meas_res::meas_valid
uint8_t meas_valid
Definition: gsm_04_08.h:495
GSM48_CAUSE_CODING_GSM
@ GSM48_CAUSE_CODING_GSM
Definition: gsm_04_08.h:1679
GSM48_BCAP_SV_AMR_H
@ GSM48_BCAP_SV_AMR_H
GSM HR V3 (HR_AMR)
Definition: gsm_04_08.h:1976
GSM48_PDISC_CC
#define GSM48_PDISC_CC
Definition: gsm_04_08.h:1239
gsm48_system_information_type_3::rest_octets
uint8_t rest_octets[0]
Definition: gsm_04_08.h:970
gsm48_meas_res
Definition: gsm_04_08.h:449
gsm48_range_256::w15
uint8_t w15
Definition: gsm_04_08.h:291
gsm48_ass_cmd::data
uint8_t data[0]
Definition: gsm_04_08.h:715
GSM48_CC_CAUSE_BEARERSERV_UNIMPL
@ GSM48_CC_CAUSE_BEARERSERV_UNIMPL
Definition: gsm_04_08.h:1747
gsm48_gprs_susp_req::cause
uint8_t cause
Definition: gsm_04_08.h:730
GSM48_CMODE_SPEECH_EFR
@ GSM48_CMODE_SPEECH_EFR
Definition: gsm_04_08.h:698
gsm48_range_256::spare
uint8_t spare
Definition: gsm_04_08.h:301
gsm48_range_1024::w3_lo
uint8_t w3_lo
Definition: gsm_04_08.h:124
gsm48_range_256::w16_hi
uint8_t w16_hi
Definition: gsm_04_08.h:292
GSM48_NPI_CTS
@ GSM48_NPI_CTS
Definition: gsm_04_08.h:2017
gsm48_meas_res::rxlev_nc5_hi
uint8_t rxlev_nc5_hi
Definition: gsm_04_08.h:520
gsm48_system_information_type_4::data
uint8_t data[0]
Definition: gsm_04_08.h:982
gsm48_paging2::cneed2
uint8_t cneed2
Definition: gsm_04_08.h:1174
gsm48_system_information_type_2quater
Definition: gsm_04_08.h:956
pdisc
uint8_t pdisc
Definition: gsm_44_318.h:8
GSM48_PDISC_MM
#define GSM48_PDISC_MM
Definition: gsm_04_08.h:1242
gsm48_mm_msgtype_names
const struct value_string gsm48_mm_msgtype_names[]
TS 04.08 MM Message Type names.
Definition: gsm48.c:876
GSM48_RR_CAUSE_HNDOVER_IMP
@ GSM48_RR_CAUSE_HNDOVER_IMP
Definition: gsm_04_08.h:1702
gsm48_system_information_type_2bis::header
struct gsm48_system_information_type_header header
Definition: gsm_04_08.h:942
GSM48_CC_CAUSE_NORMAL_UNSPEC
@ GSM48_CC_CAUSE_NORMAL_UNSPEC
Definition: gsm_04_08.h:1733
gsm48_range_1024::w1_lo
uint8_t w1_lo
Definition: gsm_04_08.h:120
GSM48_REJECT_CONDTIONAL_IE_ERROR
@ GSM48_REJECT_CONDTIONAL_IE_ERROR
Definition: gsm_04_08.h:1790
gsm48_meas_res::bcch_f_nc6_lo
uint8_t bcch_f_nc6_lo
Definition: gsm_04_08.h:529
gsm48_imsi_detach_ind::mi
uint8_t mi[0]
Definition: gsm_04_08.h:1051
gsm48_bcap_user_rate
gsm48_bcap_user_rate
Definition: gsm_04_08.h:1923
gsm48_chan_desc::spare
uint8_t spare
Definition: gsm_04_08.h:440
gsm48_multi_rate_conf::m5_15
uint8_t m5_15
Definition: gsm_04_08.h:562
GSM48_REJECT_CONGESTION
@ GSM48_REJECT_CONGESTION
Definition: gsm_04_08.h:1780
GSM48_PROGR_RETURNED
@ GSM48_PROGR_RETURNED
Definition: gsm_04_08.h:1653
GSM48_REJECT_IMEI_NOT_ACCEPTED
@ GSM48_REJECT_IMEI_NOT_ACCEPTED
Definition: gsm_04_08.h:1773
GSM48_PROGR_QUEUEING
@ GSM48_PROGR_QUEUEING
Definition: gsm_04_08.h:1656
gsm48_multi_rate_conf::icmi
uint8_t icmi
Definition: gsm_04_08.h:553
GSM48_CC_CAUSE_REQ_CHAN_UNAVAIL
@ GSM48_CC_CAUSE_REQ_CHAN_UNAVAIL
Definition: gsm_04_08.h:1739
GSM48_BCAP_MT_UNDEF
@ GSM48_BCAP_MT_UNDEF
Definition: gsm_04_08.h:1965
gsm48_system_information_type_6
Definition: gsm_04_08.h:1025
gsm48_service_request::cipher_key_seq
uint8_t cipher_key_seq
Definition: gsm_04_08.h:914
gsm48_ho_cmd::ho_ref
uint8_t ho_ref
Definition: gsm_04_08.h:752
gsm48_multi_rate_conf::m5_90
uint8_t m5_90
Definition: gsm_04_08.h:561
GSM48_NPI_UNKNOWN
@ GSM48_NPI_UNKNOWN
Definition: gsm_04_08.h:2011
gsm48_system_information_type_2ter::header
struct gsm48_system_information_type_header header
Definition: gsm_04_08.h:950
gsm48_system_information_type_4::rach_control
struct gsm48_rach_control rach_control
Definition: gsm_04_08.h:978
CHREQ_T_RESERVED_IGNORE
@ CHREQ_T_RESERVED_IGNORE
Definition: gsm_04_08.h:1823
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:1292
gsm48_range_512::w6
uint8_t w6
Definition: gsm_04_08.h:201
gsm48_system_information_type_2ter::ext_bcch_frequency_list
uint8_t ext_bcch_frequency_list[16]
Definition: gsm_04_08.h:951
gsm48_system_information_type_5ter::bcch_frequency_list
uint8_t bcch_frequency_list[16]
Definition: gsm_04_08.h:1021
gsm48_range_512::w4_lo
uint8_t w4_lo
Definition: gsm_04_08.h:199
gsm48_imm_ass_ext::mob_alloc
uint8_t mob_alloc[0]
Definition: gsm_04_08.h:1123
gsm48_imsi_detach_ind::mi_len
uint8_t mi_len
Definition: gsm_04_08.h:1050
GSM48_CAUSE_CODING_NATIONAL
@ GSM48_CAUSE_CODING_NATIONAL
Definition: gsm_04_08.h:1678
GSM48_CMODE_SPEECH_V1
@ GSM48_CMODE_SPEECH_V1
Definition: gsm_04_08.h:697
GSM48_REJECT_IMSI_UNKNOWN_IN_VLR
@ GSM48_REJECT_IMSI_UNKNOWN_IN_VLR
Definition: gsm_04_08.h:1772
gsm48_range_1024::w13_hi
uint8_t w13_hi
Definition: gsm_04_08.h:141
GSM48_RR_CAUSE_NO_CELL_ALLOC_A
@ GSM48_RR_CAUSE_NO_CELL_ALLOC_A
Definition: gsm_04_08.h:1711
GSM48_RR_CAUSE_ABNORMAL_UNSPEC
@ GSM48_RR_CAUSE_ABNORMAL_UNSPEC
Definition: gsm_04_08.h:1697
GSM48_TON_NATIONAL
@ GSM48_TON_NATIONAL
Definition: gsm_04_08.h:2003
gsm48_ass_cmd
Definition: gsm_04_08.h:711
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:1297
GSM48_BCAP_SV_AMR_OH
@ GSM48_BCAP_SV_AMR_OH
GSM HR V6 (OHR AMR)
Definition: gsm_04_08.h:1980
gsm48_auth_req::rand
uint8_t rand[16]
Definition: gsm_04_08.h:799
gsm48_allow_acc
static void gsm48_allow_acc(struct gsm48_rach_control *rach_control, unsigned int acc)
Definition: gsm_04_08.h:616
GSM48_SIGNAL_ANSWER
@ GSM48_SIGNAL_ANSWER
Definition: gsm_04_08.h:1667
GSM48_BCAP_SV_AMR_FW
@ GSM48_BCAP_SV_AMR_FW
GSM FR V5 (FR AMR-WB)
Definition: gsm_04_08.h:1979
gsm48_paging2::tmsi1
uint32_t tmsi1
Definition: gsm_04_08.h:1179
gsm48_system_information_type_5::rr_protocol_discriminator
uint8_t rr_protocol_discriminator
Definition: gsm_04_08.h:992
GSM48_BCAP_SA_I440_I450
@ GSM48_BCAP_SA_I440_I450
Definition: gsm_04_08.h:1914
gsm48_chan_mode_names
const struct value_string gsm48_chan_mode_names[]
Definition: gsm48.c:397
gsm48_power_cmd::spare
uint8_t spare
Definition: gsm_04_08.h:575
gsm48_control_channel_descr::att
uint8_t att
Definition: gsm_04_08.h:872
gsm48_system_information_type_2bis::rest_octets
uint8_t rest_octets[0]
Definition: gsm_04_08.h:945
gsm48_ass_cpl
Definition: gsm_04_08.h:1062
gsm48_meas_res::bsic_nc1_lo
uint8_t bsic_nc1_lo
Definition: gsm_04_08.h:505
_NUM_CHREQ_T
@ _NUM_CHREQ_T
Definition: gsm_04_08.h:1826
gsm48_classmark1::pwr_lev
uint8_t pwr_lev
Definition: gsm_04_08.h:27
gsm48_range_256::w2
uint8_t w2
Definition: gsm_04_08.h:271
gsm48_cell_desc::arfcn_hi
uint8_t arfcn_hi
Definition: gsm_04_08.h:741
GSM48_NPI_TELEX_F69
@ GSM48_NPI_TELEX_F69
Definition: gsm_04_08.h:2014
gsm48_range_128::w11
uint8_t w11
Definition: gsm_04_08.h:367
gsm48_cip_mode_cmd::spare
uint8_t spare
Definition: gsm_04_08.h:1096
GSM48_SIGNAL_OFF_HOOK
@ GSM48_SIGNAL_OFF_HOOK
Definition: gsm_04_08.h:1669
GSM48_REJECT_ILLEGAL_ME
@ GSM48_REJECT_ILLEGAL_ME
Definition: gsm_04_08.h:1774
gsm48_loc_area_id::lac
uint16_t lac
Definition: gsm_04_08.h:787
gsm48_range_1024::w15_hi
uint8_t w15_hi
Definition: gsm_04_08.h:145
gsm48_paging3::pag_mode
uint8_t pag_mode
Definition: gsm_04_08.h:1198
gsm48_range_512::orig_arfcn_mid
uint8_t orig_arfcn_mid
Definition: gsm_04_08.h:190
GSM48_CC_CAUSE_USER_ALERTING_NA
@ GSM48_CC_CAUSE_USER_ALERTING_NA
Definition: gsm_04_08.h:1724
gsm48_system_information_type_2::bcch_frequency_list
uint8_t bcch_frequency_list[16]
Definition: gsm_04_08.h:935
gsm48_control_channel_descr::bs_ag_blks_res
uint8_t bs_ag_blks_res
Definition: gsm_04_08.h:873
gsm48_paging3::cneed4
uint8_t cneed4
Definition: gsm_04_08.h:1210
GSM48_CMODE_DATA_14k5
@ GSM48_CMODE_DATA_14k5
Definition: gsm_04_08.h:700
gsm48_ho_fail
Definition: gsm_04_08.h:1078
gsm48_range_256::w21
uint8_t w21
Definition: gsm_04_08.h:300
gsm48_imm_ass::timing_advance
uint8_t timing_advance
Definition: gsm_04_08.h:765
gsm48_range_1024::w12_hi
uint8_t w12_hi
Definition: gsm_04_08.h:139
gsm48_cell_sel_par::rxlev_acc_min
uint8_t rxlev_acc_min
Definition: gsm_04_08.h:855
GSM48_REJECT_CALL_CAN_NOT_BE_IDENTIFIED
@ GSM48_REJECT_CALL_CAN_NOT_BE_IDENTIFIED
Definition: gsm_04_08.h:1784
gsm48_meas_res::bcch_f_nc6_hi
uint8_t bcch_f_nc6_hi
Definition: gsm_04_08.h:527
GSM48_REJECT_MSG_NOT_COMPATIBLE
@ GSM48_REJECT_MSG_NOT_COMPATIBLE
Definition: gsm_04_08.h:1791
gsm48_ho_fail::rr_cause
uint8_t rr_cause
Definition: gsm_04_08.h:1079
gsm48_system_information_type_3::cell_options
struct gsm48_cell_options cell_options
Definition: gsm_04_08.h:967
GSM48_CC_CAUSE_RESP_STATUS_INQ
@ GSM48_CC_CAUSE_RESP_STATUS_INQ
Definition: gsm_04_08.h:1732
gsm48_paging2::cneed1
uint8_t cneed1
Definition: gsm_04_08.h:1175
gsm48_system_information_type_6::ncc_permitted
uint8_t ncc_permitted
Definition: gsm_04_08.h:1037
gsm48_cc_cause
gsm48_cc_cause
Definition: gsm_04_08.h:1716
gsm48_imm_ass_ext::mob_alloc_len
uint8_t mob_alloc_len
Definition: gsm_04_08.h:1122
gsm48_system_information_type_header::rr_protocol_discriminator
uint8_t rr_protocol_discriminator
Definition: gsm_04_08.h:837
gsm48_cell_desc::arfcn_lo
uint8_t arfcn_lo
Definition: gsm_04_08.h:745
gsm48_sync_ind::rot
uint8_t rot
Definition: gsm_04_08.h:680
GSM48_NPI_PRIVATE
@ GSM48_NPI_PRIVATE
Definition: gsm_04_08.h:2016
GSM48_CC_CAUSE_CALL_REJECTED
@ GSM48_CC_CAUSE_CALL_REJECTED
Definition: gsm_04_08.h:1725
gsm48_range_512::w15
uint8_t w15
Definition: gsm_04_08.h:215
gsm48_paging3::cneed2
uint8_t cneed2
Definition: gsm_04_08.h:1195
GSM48_CC_CAUSE_RECOVERY_TIMER
@ GSM48_CC_CAUSE_RECOVERY_TIMER
Definition: gsm_04_08.h:1763
gsm48_classmark1::spare
uint8_t spare
Definition: gsm_04_08.h:23
gsm48_range_256::w7
uint8_t w7
Definition: gsm_04_08.h:279
gsm48_imm_ass_ext::l2_plen
uint8_t l2_plen
Definition: gsm_04_08.h:1112
gsm48_paging1::spare
uint8_t spare
Definition: gsm_04_08.h:1156
gsm48_range_512::orig_arfcn_lo
uint8_t orig_arfcn_lo
Definition: gsm_04_08.h:191
gsm48_system_information_type_2::ncc_permitted
uint8_t ncc_permitted
Definition: gsm_04_08.h:936
gsm48_range_128::w13
uint8_t w13
Definition: gsm_04_08.h:369
CHREQ_T_CALL_REEST_TCH_H_DBL
@ CHREQ_T_CALL_REEST_TCH_H_DBL
Definition: gsm_04_08.h:1811
gsm48_imm_ass_rej::wait_ind1
uint8_t wait_ind1
Definition: gsm_04_08.h:1133
CHREQ_T_LOCATION_UPD
@ CHREQ_T_LOCATION_UPD
Definition: gsm_04_08.h:1816
GSM48_RR_CAUSE_ABNORMAL_UNACCT
@ GSM48_RR_CAUSE_ABNORMAL_UNACCT
Definition: gsm_04_08.h:1698
gsm48_range_128::w12
uint8_t w12
Definition: gsm_04_08.h:368
gsm48_control_channel_descr
Definition: gsm_04_08.h:860
gsm48_pdisc_names
const struct value_string gsm48_pdisc_names[]
TS 04.08 Protocol Descriptor names.
Definition: gsm48.c:764
gsm48_paging1::data
uint8_t data[0]
Definition: gsm_04_08.h:1159
GSM48_TON_NET_SPEC
@ GSM48_TON_NET_SPEC
Definition: gsm_04_08.h:2004
gsm48_imm_ass::page_mode
uint8_t page_mode
Definition: gsm_04_08.h:762
gsm48_imm_ass_ext::chan_desc2
struct gsm48_chan_desc chan_desc2
Definition: gsm_04_08.h:1119
GSM48_BCAP_UR_2400
@ GSM48_BCAP_UR_2400
Definition: gsm_04_08.h:1926
gsm48_meas_res::rxlev_nc3_hi
uint8_t rxlev_nc3_hi
Definition: gsm_04_08.h:511
GSM48_REJECT_SERVICES_NOT_ALLOWED
@ GSM48_REJECT_SERVICES_NOT_ALLOWED
Definition: gsm_04_08.h:1796
gsm48_pdisc_name
static const char * gsm48_pdisc_name(uint8_t val)
Definition: gsm_04_08.h:1254
GSM48_NPI_NATIONAL
@ GSM48_NPI_NATIONAL
Definition: gsm_04_08.h:2015
GSM48_REJECT_LOC_NOT_ALLOWED
@ GSM48_REJECT_LOC_NOT_ALLOWED
Definition: gsm_04_08.h:1776
GSM48_CC_CAUSE_BEARER_CA_UNAVAIL
@ GSM48_CC_CAUSE_BEARER_CA_UNAVAIL
Definition: gsm_04_08.h:1745
gsm48_range_512::w16_hi
uint8_t w16_hi
Definition: gsm_04_08.h:216
gsm48_cell_options::dtx
uint8_t dtx
Definition: gsm_04_08.h:903
gsm48_range_512::w13_lo
uint8_t w13_lo
Definition: gsm_04_08.h:213
GSM48_NPI_DATA_X121
@ GSM48_NPI_DATA_X121
Definition: gsm_04_08.h:2013
gsm48_range_512::w8_lo
uint8_t w8_lo
Definition: gsm_04_08.h:205
GSM48_CC_CAUSE_FACILITY_REJ
@ GSM48_CC_CAUSE_FACILITY_REJ
Definition: gsm_04_08.h:1731
GSM48_BCAP_RA_OTHER
@ GSM48_BCAP_RA_OTHER
Definition: gsm_04_08.h:1909
gsm48_cip_mode_cmd::alg_id
uint8_t alg_id
Definition: gsm_04_08.h:1098
gsm48_auth_req::key_seq
uint8_t key_seq
Definition: gsm_04_08.h:797
gsm48_range_128::w2
uint8_t w2
Definition: gsm_04_08.h:355
gsm48_classmark2::sm_cap
uint8_t sm_cap
Definition: gsm_04_08.h:64
GSM48_PDISC_GROUP_CC
#define GSM48_PDISC_GROUP_CC
Definition: gsm_04_08.h:1236
gsm48_range_256::w20_lo
uint8_t w20_lo
Definition: gsm_04_08.h:299
gsm48_range_256::w13
uint8_t w13
Definition: gsm_04_08.h:288
gsm48_paging3::spare
uint8_t spare
Definition: gsm_04_08.h:1197
rach_control
struct gsm48_rach_control rach_control
Definition: gsm_04_08.h:710
gsm48_system_information_type_header::l2_plen
uint8_t l2_plen
Definition: gsm_04_08.h:831
GSM48_BCAP_TR_RLP_PREF
@ GSM48_BCAP_TR_RLP_PREF
Definition: gsm_04_08.h:1953
CHREQ_T_PAG_R_TCH_F
@ CHREQ_T_PAG_R_TCH_F
Definition: gsm_04_08.h:1819
GSM48_PROGR_IN_BAND_AVAIL
@ GSM48_PROGR_IN_BAND_AVAIL
Definition: gsm_04_08.h:1654
gsm48_paging2
Definition: gsm_04_08.h:1163
gsm48_range_128::w26_lo
uint8_t w26_lo
Definition: gsm_04_08.h:385
GSM48_REJECT_INCORRECT_MESSAGE
@ GSM48_REJECT_INCORRECT_MESSAGE
Definition: gsm_04_08.h:1785
gsm48_system_information_type_2
Definition: gsm_04_08.h:933
gsm48_bcap_coding
gsm48_bcap_coding
Definition: gsm_04_08.h:1893
CHREQ_T_PAG_R_TCH_FH
@ CHREQ_T_PAG_R_TCH_FH
Definition: gsm_04_08.h:1820
gsm48_range_512::w3_lo
uint8_t w3_lo
Definition: gsm_04_08.h:197
gsm48_meas_res::bcch_f_nc5_lo
uint8_t bcch_f_nc5_lo
Definition: gsm_04_08.h:523
gsm48_classmark2::fc
uint8_t fc
Definition: gsm_04_08.h:67
GSM48_REJECT_MSC_TMP_NOT_REACHABLE
@ GSM48_REJECT_MSC_TMP_NOT_REACHABLE
Definition: gsm_04_08.h:1800
gsm48_range_1024::w6_hi
uint8_t w6_hi
Definition: gsm_04_08.h:129
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.
Definition: gsm48.c:963
GSM48_RR_CAUSE_CALL_CLEARED
@ GSM48_RR_CAUSE_CALL_CLEARED
Definition: gsm_04_08.h:1705
gsm48_system_information_type_4::header
struct gsm48_system_information_type_header header
Definition: gsm_04_08.h:975
gsm48_classmark2::spare4
uint8_t spare4
Definition: gsm_04_08.h:70
gsm48_cell_options::pwrc
uint8_t pwrc
Definition: gsm_04_08.h:902
GSM48_REJECT_PROTOCOL_ERROR
@ GSM48_REJECT_PROTOCOL_ERROR
Definition: gsm_04_08.h:1792
gsm48_system_information_type_2::header
struct gsm48_system_information_type_header header
Definition: gsm_04_08.h:934
GSM48_CC_CAUSE_INVAL_MAND_INF
@ GSM48_CC_CAUSE_INVAL_MAND_INF
Definition: gsm_04_08.h:1757
GSM48_CMODE_SIGN
@ GSM48_CMODE_SIGN
Definition: gsm_04_08.h:696
gsm48_paging3::cneed1
uint8_t cneed1
Definition: gsm_04_08.h:1196
GSM48_SIGNAL_ALERT_OFF
@ GSM48_SIGNAL_ALERT_OFF
Definition: gsm_04_08.h:1671
GSM48_BCAP_PAR_ZERO
@ GSM48_BCAP_PAR_ZERO
Definition: gsm_04_08.h:1938
gsm48_imm_ass_ext::page_mode
uint8_t page_mode
Definition: gsm_04_08.h:1115
gsm48_system_information_type_5::system_information
uint8_t system_information
Definition: gsm_04_08.h:994
gsm48_bcap_ra
gsm48_bcap_ra
Definition: gsm_04_08.h:1905
gsm48_range_1024::w13_lo
uint8_t w13_lo
Definition: gsm_04_08.h:142
gsm48_ass_cpl::rr_cause
uint8_t rr_cause
Definition: gsm_04_08.h:1063
gsm48_range_256::w5_lo
uint8_t w5_lo
Definition: gsm_04_08.h:276
gsm48_range_1024::w16
uint8_t w16
Definition: gsm_04_08.h:147
gsm48_range_512::w11
uint8_t w11
Definition: gsm_04_08.h:209
GSM48_PROGR_NOT_E2E
@ GSM48_PROGR_NOT_E2E
Definition: gsm_04_08.h:1650
gsm48_system_information_type_5bis::rr_protocol_discriminator
uint8_t rr_protocol_discriminator
Definition: gsm_04_08.h:1005
gsm48_range_256::orig_arfcn_hi
uint8_t orig_arfcn_hi
Definition: gsm_04_08.h:266
GSM48_PDISC_EXTEND
#define GSM48_PDISC_EXTEND
Definition: gsm_04_08.h:1249
gsm48_system_information_type_4::cell_sel_par
struct gsm48_cell_sel_par cell_sel_par
Definition: gsm_04_08.h:977
gsm48_system_information_type_1::rest_octets
uint8_t rest_octets[0]
Definition: gsm_04_08.h:929
gsm48_range_512::w1_lo
uint8_t w1_lo
Definition: gsm_04_08.h:193
gsm48_pag_rsp::data
uint8_t data[0]
Definition: gsm_04_08.h:1227
gsm48_imsi_detach_ind::classmark1
struct gsm48_classmark1 classmark1
Definition: gsm_04_08.h:1049
gsm48_range_512::w5
uint8_t w5
Definition: gsm_04_08.h:200
gsm48_range_128::w6_hi
uint8_t w6_hi
Definition: gsm_04_08.h:361
gsm48_gprs_susp_req::tlli
uint32_t tlli
Definition: gsm_04_08.h:728
gsm48_meas_res::ba_used
uint8_t ba_used
Definition: gsm_04_08.h:491
gsm48_pag_resp::spare
uint8_t spare
Definition: gsm_04_08.h:777
gsm48_range_128::spare
uint8_t spare
Definition: gsm_04_08.h:388
gsm48_ass_fail
Definition: gsm_04_08.h:1067
gsm48_imm_ass_rej::l2_plen
uint8_t l2_plen
Definition: gsm_04_08.h:1128
gsm48_imm_ass_ext::req_ref1
struct gsm48_req_ref req_ref1
Definition: gsm_04_08.h:1117
gsm48_range_128::w9
uint8_t w9
Definition: gsm_04_08.h:365
gsm48_system_information_type_3::control_channel_desc
struct gsm48_control_channel_descr control_channel_desc
Definition: gsm_04_08.h:966
gsm48_paging2::proto_discr
uint8_t proto_discr
Definition: gsm_04_08.h:1165
gsm48_imm_ass::msg_type
uint8_t msg_type
Definition: gsm_04_08.h:761
gsm48_bcap_tmod
gsm48_bcap_tmod
Definition: gsm_04_08.h:1887
gsm48_pag_resp::mi
uint8_t mi[0]
Definition: gsm_04_08.h:781
GSM48_REJECT_PLMN_NOT_ALLOWED
@ GSM48_REJECT_PLMN_NOT_ALLOWED
Definition: gsm_04_08.h:1775
gsm48_system_information_type_6::lai
struct gsm48_loc_area_id lai
Definition: gsm_04_08.h:1035
GSM48_SIGNAL_CONFIRM
@ GSM48_SIGNAL_CONFIRM
Definition: gsm_04_08.h:1666
gsm48_acc_is_barred
static bool gsm48_acc_is_barred(struct gsm48_rach_control *rach_control, unsigned int acc)
Definition: gsm_04_08.h:631
GSM48_BCAP_SV_FR
@ GSM48_BCAP_SV_FR
GSM FR V1 (GSM FR)
Definition: gsm_04_08.h:1972
CHREQ_T_CALL_REEST_TCH_F
@ CHREQ_T_CALL_REEST_TCH_F
Definition: gsm_04_08.h:1809
gsm48_chan_desc
Definition: gsm_04_08.h:413
GSM48_CMODE_SPEECH_AMR
@ GSM48_CMODE_SPEECH_AMR
Definition: gsm_04_08.h:699
gsm48_system_information_type_5
Definition: gsm_04_08.h:986
gsm48_range_512::w7_lo
uint8_t w7_lo
Definition: gsm_04_08.h:203
gsm48_ho_cmd::chan_desc
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:751
gsm48_imsi_detach_ind
Definition: gsm_04_08.h:1048
gsm48_cell_options::radio_link_timeout
uint8_t radio_link_timeout
Definition: gsm_04_08.h:904
GSM48_CAUSE_LOC_INN_NET
@ GSM48_CAUSE_LOC_INN_NET
Definition: gsm_04_08.h:1690
GSM48_BCAP_ITCAP_UNR_DIG_INF
@ GSM48_BCAP_ITCAP_UNR_DIG_INF
Definition: gsm_04_08.h:1879
gsm48_cause_loc
gsm48_cause_loc
Definition: gsm_04_08.h:1682
gsm48_range_512::w4_hi
uint8_t w4_hi
Definition: gsm_04_08.h:198
gsm48_rach_control::tx_integer
uint8_t tx_integer
Definition: gsm_04_08.h:589
GSM48_REJECT_GPRS_NOT_ALLOWED
@ GSM48_REJECT_GPRS_NOT_ALLOWED
Definition: gsm_04_08.h:1795
GSM48_PDISC_BCAST_CC
#define GSM48_PDISC_BCAST_CC
Definition: gsm_04_08.h:1237
GSM48_SIGNAL_INTERCEPT
@ GSM48_SIGNAL_INTERCEPT
Definition: gsm_04_08.h:1663
gsm48_classmark2::a5_2
uint8_t a5_2
Definition: gsm_04_08.h:76
gsm48_paging2::data
uint8_t data[0]
Definition: gsm_04_08.h:1181
gsm48_classmark2::vbs
uint8_t vbs
Definition: gsm_04_08.h:65
CHREQ_T_DATA_CALL_TCH_H
@ CHREQ_T_DATA_CALL_TCH_H
Definition: gsm_04_08.h:1815
gsm48_bcap_itcap
gsm48_bcap_itcap
Definition: gsm_04_08.h:1877
gsm48_range_1024::w2_lo
uint8_t w2_lo
Definition: gsm_04_08.h:122
gsm48_multi_rate_conf::spare
uint8_t spare
Definition: gsm_04_08.h:554
gsm48_imm_ass_ext::timing_advance2
uint8_t timing_advance2
Definition: gsm_04_08.h:1121
CHREQ_T_PDCH_ONE_PHASE
@ CHREQ_T_PDCH_ONE_PHASE
Definition: gsm_04_08.h:1824
gsm48_system_information_type_2quater::rest_octets
uint8_t rest_octets[0]
Definition: gsm_04_08.h:958
gsm48_var_bit
Definition: gsm_04_08.h:393
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:1971
gsm48_loc_upd_req
Definition: gsm_04_08.h:808
gsm48_imm_ass::chan_desc
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:763
gsm48_meas_res::dtx_used
uint8_t dtx_used
Definition: gsm_04_08.h:492
gsm48_range_128::w15
uint8_t w15
Definition: gsm_04_08.h:371
gsm48_cell_options
Definition: gsm_04_08.h:891
gsm48_reject_value_name
static const char * gsm48_reject_value_name(enum gsm48_reject_value val)
Definition: gsm_04_08.h:1804
GSM48_BCAP_ITCAP_RESERVED
@ GSM48_BCAP_ITCAP_RESERVED
Definition: gsm_04_08.h:1883
gsm48_classmark1::a5_1
uint8_t a5_1
Definition: gsm_04_08.h:26
GSM48_CC_CAUSE_CHAN_UNACCEPT
@ GSM48_CC_CAUSE_CHAN_UNACCEPT
Definition: gsm_04_08.h:1719
gsm48_system_information_type_1::cell_channel_description
uint8_t cell_channel_description[16]
Definition: gsm_04_08.h:927
gsm48_system_information_type_3::lai
struct gsm48_loc_area_id lai
Definition: gsm_04_08.h:965
CHREQ_T_PAG_R_ANY_NECI1
@ CHREQ_T_PAG_R_ANY_NECI1
Definition: gsm_04_08.h:1818
GSM48_SIGNAL_NET_CONG
@ GSM48_SIGNAL_NET_CONG
Definition: gsm_04_08.h:1664
gsm48_pag_resp::classmark2
uint32_t classmark2
Definition: gsm_04_08.h:779
GSM48_BCAP_MT_V22
@ GSM48_BCAP_MT_V22
Definition: gsm_04_08.h:1960
gsm48_pag_rsp::spare
uint8_t spare
Definition: gsm_04_08.h:1222
gsm48_imm_ass_rej::wait_ind3
uint8_t wait_ind3
Definition: gsm_04_08.h:1137
gsm48_meas_res::rxlev_nc6_lo
uint8_t rxlev_nc6_lo
Definition: gsm_04_08.h:526
gsm48_range_256::w17
uint8_t w17
Definition: gsm_04_08.h:294
gsm48_range_256::w12
uint8_t w12
Definition: gsm_04_08.h:287
GSM48_CC_CAUSE_MSGTYPE_NOTEXIST
@ GSM48_CC_CAUSE_MSGTYPE_NOTEXIST
Definition: gsm_04_08.h:1758
gsm48_range_512::w8_hi
uint8_t w8_hi
Definition: gsm_04_08.h:204
gsm48_add_ass::chan_desc
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:1057
gsm48_chan_desc::h
uint8_t h
Definition: gsm_04_08.h:425
gsm48_frq_redef::mob_alloc
uint8_t mob_alloc[0]
Definition: gsm_04_08.h:723
gsm48_classmark2::lcsva_cap
uint8_t lcsva_cap
Definition: gsm_04_08.h:71
gsm48_meas_res::bcch_f_nc3
uint8_t bcch_f_nc3
Definition: gsm_04_08.h:513
gsm48_sync_ind
Definition: gsm_04_08.h:671
gsm48_meas_res::rxlev_nc5_lo
uint8_t rxlev_nc5_lo
Definition: gsm_04_08.h:521
GSM48_BCAP_RRQ_DUAL_FR
@ GSM48_BCAP_RRQ_DUAL_FR
Definition: gsm_04_08.h:1901
gsm48_meas_res::spare2
uint8_t spare2
Definition: gsm_04_08.h:497
GSM48_CC_CAUSE_ACM_GE_ACM_MAX
@ GSM48_CC_CAUSE_ACM_GE_ACM_MAX
Definition: gsm_04_08.h:1748
CHREQ_T_PAG_R_ANY_NECI0
@ CHREQ_T_PAG_R_ANY_NECI0
Definition: gsm_04_08.h:1817
gsm48_range_128::w16
uint8_t w16
Definition: gsm_04_08.h:372
gsm48_range_128::w22
uint8_t w22
Definition: gsm_04_08.h:380
gsm48_range_1024::w5_hi
uint8_t w5_hi
Definition: gsm_04_08.h:127
gsm48_range_256::w18_lo
uint8_t w18_lo
Definition: gsm_04_08.h:296
gsm48_range_128::w24
uint8_t w24
Definition: gsm_04_08.h:382
gsm48_chan_desc::arfcn_high
uint8_t arfcn_high
Definition: gsm_04_08.h:441
gsm48_paging3::tmsi2
uint32_t tmsi2
Definition: gsm_04_08.h:1201
GSM48_BCAP_IR_16k
@ GSM48_BCAP_IR_16k
Definition: gsm_04_08.h:1945
GSM48_CAUSE_LOC_PUN_S_RU
@ GSM48_CAUSE_LOC_PUN_S_RU
Definition: gsm_04_08.h:1687
gsm48_hdr::msg_type
uint8_t msg_type
Definition: gsm_04_08.h:825
GSM48_RR_CAUSE_COND_IE_ERROR
@ GSM48_RR_CAUSE_COND_IE_ERROR
Definition: gsm_04_08.h:1710
gsm48_cell_desc::bcc
uint8_t bcc
Definition: gsm_04_08.h:743
GSM48_PROGR_DEST_NOT_PLMN
@ GSM48_PROGR_DEST_NOT_PLMN
Definition: gsm_04_08.h:1651
__attribute__
enum gsm48_chan_mode __attribute__
gsm48_system_information_type_6::system_information
uint8_t system_information
Definition: gsm_04_08.h:1033
GSM48_CC_CAUSE_SWITCH_CONG
@ GSM48_CC_CAUSE_SWITCH_CONG
Definition: gsm_04_08.h:1737
gsm48_system_information_type_6::rr_protocol_discriminator
uint8_t rr_protocol_discriminator
Definition: gsm_04_08.h:1031
gsm48_meas_res::rxlev_nc4_hi
uint8_t rxlev_nc4_hi
Definition: gsm_04_08.h:516
gsm48_dtx_mode
gsm48_dtx_mode
Definition: gsm_04_08.h:883
gsm48_paging3::tmsi1
uint32_t tmsi1
Definition: gsm_04_08.h:1200
gsm48_barr_acc
static void gsm48_barr_acc(struct gsm48_rach_control *rach_control, unsigned int acc)
Definition: gsm_04_08.h:602
CHREQ_T_PDCH_TWO_PHASE
@ CHREQ_T_PDCH_TWO_PHASE
Definition: gsm_04_08.h:1825
gsm48_meas_res::rxlev_sub
uint8_t rxlev_sub
Definition: gsm_04_08.h:496
gsm48_range_512::w2_hi
uint8_t w2_hi
Definition: gsm_04_08.h:194
GSM48_RR_CAUSE_NORMAL
@ GSM48_RR_CAUSE_NORMAL
Definition: gsm_04_08.h:1696
gsm48_cm_change::cm2_len
uint8_t cm2_len
Definition: gsm_04_08.h:1105
gsm48_cip_mode_cmd
Definition: gsm_04_08.h:1089
gsm48_cause_coding
gsm48_cause_coding
Definition: gsm_04_08.h:1675
GSM48_BCAP_UR_1200
@ GSM48_BCAP_UR_1200
Definition: gsm_04_08.h:1925
GSM48_CC_CAUSE_INVAL_TRANS_NET
@ GSM48_CC_CAUSE_INVAL_TRANS_NET
Definition: gsm_04_08.h:1755
gsm48_range_128::w3_lo
uint8_t w3_lo
Definition: gsm_04_08.h:357
gsm48_hdr_msg_type_r99
static uint8_t gsm48_hdr_msg_type_r99(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1322
GSM48_RR_CAUSE_INVALID_MAND_INF
@ GSM48_RR_CAUSE_INVALID_MAND_INF
Definition: gsm_04_08.h:1707
gsm48_meas_res::rxqual_full
uint8_t rxqual_full
Definition: gsm_04_08.h:498
gsm48_add_ass::data
uint8_t data[0]
Definition: gsm_04_08.h:1058
gsm48_req_ref::t1
uint8_t t1
Definition: gsm_04_08.h:648
gsm48_hdr_pdisc
static uint8_t gsm48_hdr_pdisc(const struct gsm48_hdr *hdr)
Definition: gsm_04_08.h:1259
gsm48_ho_cpl
Definition: gsm_04_08.h:1072
gsm48_chan_rel
Definition: gsm_04_08.h:1083
gsm48_imm_ass::proto_discr
uint8_t proto_discr
Definition: gsm_04_08.h:760
gsm48_chan_rel::data
uint8_t data[0]
Definition: gsm_04_08.h:1085
gsm48_classmark2::spare
uint8_t spare
Definition: gsm_04_08.h:55
GSM48_BCAP_SA_X28_NDP
@ GSM48_BCAP_SA_X28_NDP
Definition: gsm_04_08.h:1918
gsm48_reject_value
gsm48_reject_value
Definition: gsm_04_08.h:1769
gsm48_range_512::w9_lo
uint8_t w9_lo
Definition: gsm_04_08.h:207
gsm48_ra_id::digits
uint8_t digits[3]
Definition: gsm_04_08.h:1989
gsm48_range_128::w4_hi
uint8_t w4_hi
Definition: gsm_04_08.h:358
gsm48_chan_mode_modify::chan_desc
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:691
GSM48_CC_CAUSE_NUMBER_CHANGED
@ GSM48_CC_CAUSE_NUMBER_CHANGED
Definition: gsm_04_08.h:1726
GSM48_SIGNAL_RINGBACK
@ GSM48_SIGNAL_RINGBACK
Definition: gsm_04_08.h:1662
gsm48_chan_mode_modify
Definition: gsm_04_08.h:690
gsm48_range_512::w3_hi
uint8_t w3_hi
Definition: gsm_04_08.h:196
CHREQ_T_CALL_REEST_TCH_H
@ CHREQ_T_CALL_REEST_TCH_H
Definition: gsm_04_08.h:1810
gsm48_classmark2::spare3
uint8_t spare3
Definition: gsm_04_08.h:72
gsm48_multi_rate_conf::m12_2
uint8_t m12_2
Definition: gsm_04_08.h:556
gsm48_range_1024::w12_lo
uint8_t w12_lo
Definition: gsm_04_08.h:140
gsm48_cell_options::d
uint8_t d
Definition: gsm_04_08.h:901
GSM48_BCAP_CODING_GSM_STD
@ GSM48_BCAP_CODING_GSM_STD
Definition: gsm_04_08.h:1894
gsm48_paging1::cneed2
uint8_t cneed2
Definition: gsm_04_08.h:1154
gsm48_rr_cause
gsm48_rr_cause
Definition: gsm_04_08.h:1695
gsm48_cell_desc
Definition: gsm_04_08.h:735
GSM48_BCAP_ITCAP_3k1_AUDIO
@ GSM48_BCAP_ITCAP_3k1_AUDIO
Definition: gsm_04_08.h:1880
gsm48_sync_ind::sync_ie
uint8_t sync_ie
Definition: gsm_04_08.h:678
GSM48_BCAP_MT_V32
@ GSM48_BCAP_MT_V32
Definition: gsm_04_08.h:1964
gsm48_range_128::w19
uint8_t w19
Definition: gsm_04_08.h:376
gsm48_cell_sel_par::neci
uint8_t neci
Definition: gsm_04_08.h:854
gsm48_range_256::w8_hi
uint8_t w8_hi
Definition: gsm_04_08.h:280
GSM48_REJECT_SYNCH_FAILURE
@ GSM48_REJECT_SYNCH_FAILURE
Definition: gsm_04_08.h:1779
gsm48_loc_upd_req::classmark1
struct gsm48_classmark1 classmark1
Definition: gsm_04_08.h:817
gsm48_range_128::orig_arfcn_lo
uint8_t orig_arfcn_lo
Definition: gsm_04_08.h:353
gsm48_ho_cmd::power_command
uint8_t power_command
Definition: gsm_04_08.h:753
GSM48_CC_CAUSE_COND_IE_ERR
@ GSM48_CC_CAUSE_COND_IE_ERR
Definition: gsm_04_08.h:1761
gsm48_range_512::w12_hi
uint8_t w12_hi
Definition: gsm_04_08.h:210
gsm48_system_information_type_1::header
struct gsm48_system_information_type_header header
Definition: gsm_04_08.h:926
gsm48_range_512::w12_lo
uint8_t w12_lo
Definition: gsm_04_08.h:211
GSM48_BCAP_PAR_ODD
@ GSM48_BCAP_PAR_ODD
Definition: gsm_04_08.h:1935
GSM48_RR_CAUSE_PROT_ERROR_UNSPC
@ GSM48_RR_CAUSE_PROT_ERROR_UNSPC
Definition: gsm_04_08.h:1712
gsm48_imm_ass_rej::req_ref4
struct gsm48_req_ref req_ref4
Definition: gsm_04_08.h:1138
GSM48_CC_CAUSE_INVAL_TRANS_ID
@ GSM48_CC_CAUSE_INVAL_TRANS_ID
Definition: gsm_04_08.h:1752
gsm48_system_information_type_1
Definition: gsm_04_08.h:925
GSM48_BCAP_SA_X28_DP_UN
@ GSM48_BCAP_SA_X28_DP_UN
Definition: gsm_04_08.h:1917
gsm48_imm_ass::mob_alloc_len
uint8_t mob_alloc_len
Definition: gsm_04_08.h:766
gsm48_range_512::w2_lo
uint8_t w2_lo
Definition: gsm_04_08.h:195
gsm48_multi_rate_conf::m7_95
uint8_t m7_95
Definition: gsm_04_08.h:558
gsm48_multi_rate_conf::ver
uint8_t ver
Definition: gsm_04_08.h:551
gsm48_meas_res::bsic_nc6
uint8_t bsic_nc6
Definition: gsm_04_08.h:530
chreq_type
chreq_type
Definition: gsm_04_08.h:1807
gsm48_range_512::orig_arfcn_hi
uint8_t orig_arfcn_hi
Definition: gsm_04_08.h:189
gsm48_loc_area_id
Definition: gsm_04_08.h:785
gsm48_range_256::orig_arfcn_lo
uint8_t orig_arfcn_lo
Definition: gsm_04_08.h:268
gsm48_range_256::w19
uint8_t w19
Definition: gsm_04_08.h:297
gsm48_paging2::pag_mode
uint8_t pag_mode
Definition: gsm_04_08.h:1177
gsm48_range_512::w14
uint8_t w14
Definition: gsm_04_08.h:214
gsm48_imm_ass_rej::req_ref2
struct gsm48_req_ref req_ref2
Definition: gsm_04_08.h:1134
GSM48_CC_CAUSE_NETWORK_OOO
@ GSM48_CC_CAUSE_NETWORK_OOO
Definition: gsm_04_08.h:1735
gsm48_classmark2::solsa
uint8_t solsa
Definition: gsm_04_08.h:73
gsm48_range_512::form_id
uint8_t form_id
Definition: gsm_04_08.h:188
gsm48_range_1024::f0
uint8_t f0
Definition: gsm_04_08.h:118
msg_type
uint8_t msg_type
Definition: gsm_04_08.h:710
gsm48_system_information_type_13::rest_octets
uint8_t rest_octets[0]
Definition: gsm_04_08.h:1044
gsm48_paging2::msg_type
uint8_t msg_type
Definition: gsm_04_08.h:1166
gsm48_start_time::t3_high
uint8_t t3_high
Definition: gsm_04_08.h:664
gsm48_range_512::w9_hi
uint8_t w9_hi
Definition: gsm_04_08.h:206
gsm48_range_256::form_id
uint8_t form_id
Definition: gsm_04_08.h:265
GSM48_BCAP_MT_V22bis
@ GSM48_BCAP_MT_V22bis
Definition: gsm_04_08.h:1961
GSM48_BCAP_SV_EFR
@ GSM48_BCAP_SV_EFR
GSM FR V2 (GSM EFR)
Definition: gsm_04_08.h:1974
gsm48_control_channel_descr::ccch_conf
uint8_t ccch_conf
Definition: gsm_04_08.h:874
gsm48_control_channel_descr::mscr
uint8_t mscr
Definition: gsm_04_08.h:871
gsm48_chan_mode_name
static const char * gsm48_chan_mode_name(enum gsm48_chan_mode val)
Definition: gsm_04_08.h:707
GSM48_RR_CAUSE_ABNORMAL_NOACT
@ GSM48_RR_CAUSE_ABNORMAL_NOACT
Definition: gsm_04_08.h:1700
gsm48_system_information_type_2bis
Definition: gsm_04_08.h:941
GSM48_REJECT_RQD_SRV_OPT_NOT_SUPPORTED
@ GSM48_REJECT_RQD_SRV_OPT_NOT_SUPPORTED
Definition: gsm_04_08.h:1782
GSM48_CC_CAUSE_OP_DET_BARRING
@ GSM48_CC_CAUSE_OP_DET_BARRING
Definition: gsm_04_08.h:1720
gsm48_range_512::w1_hi
uint8_t w1_hi
Definition: gsm_04_08.h:192
gsm48_range_128::w28
uint8_t w28
Definition: gsm_04_08.h:387
gsm48_power_cmd::power_level
uint8_t power_level
Definition: gsm_04_08.h:576
gsm48_range_128
Definition: gsm_04_08.h:349
gsm48_range_256::w20_hi
uint8_t w20_hi
Definition: gsm_04_08.h:298
GSM48_BCAP_MT_V23
@ GSM48_BCAP_MT_V23
Definition: gsm_04_08.h:1962
gsm48_imm_ass_rej::page_mode
uint8_t page_mode
Definition: gsm_04_08.h:1131
gsm48_system_information_type_3::rach_control
struct gsm48_rach_control rach_control
Definition: gsm_04_08.h:969
gsm48_chan_mode
gsm48_chan_mode
Definition: gsm_04_08.h:695
gsm48_range_256::orig_arfcn_mid
uint8_t orig_arfcn_mid
Definition: gsm_04_08.h:267
GSM48_CAUSE_LOC_USER
@ GSM48_CAUSE_LOC_USER
Definition: gsm_04_08.h:1683
gsm48_paging3::cneed3
uint8_t cneed3
Definition: gsm_04_08.h:1211
gsm48_meas_res::rxlev_nc2_lo
uint8_t rxlev_nc2_lo
Definition: gsm_04_08.h:507
gsm48_system_information_type_5ter::system_information
uint8_t system_information
Definition: gsm_04_08.h:1020
GSM48_REJECT_SRV_OPT_TMP_OUT_OF_ORDER
@ GSM48_REJECT_SRV_OPT_TMP_OUT_OF_ORDER
Definition: gsm_04_08.h:1783
gsm48_loc_upd_req::type
uint8_t type
Definition: gsm_04_08.h:814
gsm48_sync_ind::nci
uint8_t nci
Definition: gsm_04_08.h:679
gsm48_rach_control
Definition: gsm_04_08.h:581
gsm48_auth_resp
Definition: gsm_04_08.h:803
gsm48_meas_res::bcch_f_nc2
uint8_t bcch_f_nc2
Definition: gsm_04_08.h:508
gsm48_meas_res::no_nc_n_hi
uint8_t no_nc_n_hi
Definition: gsm_04_08.h:500
GSM48_CC_CAUSE_QOS_UNAVAIL
@ GSM48_CC_CAUSE_QOS_UNAVAIL
Definition: gsm_04_08.h:1741
gsm48_imm_ass_rej::req_ref3
struct gsm48_req_ref req_ref3
Definition: gsm_04_08.h:1136
gsm48_system_information_type_5::skip_indicator
uint8_t skip_indicator
Definition: gsm_04_08.h:991
GSM48_BCAP_UR_300
@ GSM48_BCAP_UR_300
Definition: gsm_04_08.h:1924
gsm48_range_256::w5_hi
uint8_t w5_hi
Definition: gsm_04_08.h:275
gsm48_range_1024::w9
uint8_t w9
Definition: gsm_04_08.h:135
gsm48_req_ref::t3_low
uint8_t t3_low
Definition: gsm_04_08.h:650
gsm48_ho_cpl::data
uint8_t data[0]
Definition: gsm_04_08.h:1074
GSM48_CC_CAUSE_RESTR_BCAP_AVAIL
@ GSM48_CC_CAUSE_RESTR_BCAP_AVAIL
Definition: gsm_04_08.h:1750
gsm48_imm_ass_rej::proto_discr
uint8_t proto_discr
Definition: gsm_04_08.h:1129
gsm48_range_128::w25
uint8_t w25
Definition: gsm_04_08.h:383
gsm48_power_cmd::atc
uint8_t atc
Definition: gsm_04_08.h:574
gsm48_range_1024::w4_lo
uint8_t w4_lo
Definition: gsm_04_08.h:126
GSM48_CC_CAUSE_TEMP_FAILURE
@ GSM48_CC_CAUSE_TEMP_FAILURE
Definition: gsm_04_08.h:1736
gsm48_bcap_modem_type
gsm48_bcap_modem_type
Definition: gsm_04_08.h:1957
gsm48_classmark2::spare2
uint8_t spare2
Definition: gsm_04_08.h:61
gsm48_service_request::mi
uint8_t mi[0]
Definition: gsm_04_08.h:920
gsm48_hdr
Definition: gsm_04_08.h:823
gsm48_frq_redef::chan_desc
struct gsm48_chan_desc chan_desc
Definition: gsm_04_08.h:721
gsm48_classmark2::cm3
uint8_t cm3
Definition: gsm_04_08.h:69
gsm48_start_time::t1
uint8_t t1
Definition: gsm_04_08.h:663
GSM48_PDISC_LOC
#define GSM48_PDISC_LOC
Definition: gsm_04_08.h:1248
gsm48_rach_control::t3
uint8_t t3
Definition: gsm_04_08.h:594
gsm48_range_1024::w14_lo
uint8_t w14_lo
Definition: gsm_04_08.h:144
gsm48_paging3::spare2
uint8_t spare2
Definition: gsm_04_08.h:1209
gsm48_auth_req::spare
uint8_t spare
Definition: gsm_04_08.h:796
gsm48_multi_rate_conf::smod
uint8_t smod
Definition: gsm_04_08.h:555
gsm48_classmark2::a5_1
uint8_t a5_1
Definition: gsm_04_08.h:58
gsm48_system_information_type_5bis
Definition: gsm_04_08.h:999
GSM48_BCAP_PAR_ONE
@ GSM48_BCAP_PAR_ONE
Definition: gsm_04_08.h:1939
gsm48_range_128::w18_lo
uint8_t w18_lo
Definition: gsm_04_08.h:375
gsm48_range_128::w23
uint8_t w23
Definition: gsm_04_08.h:381
GSM48_BCAP_SV_AMR_F
@ GSM48_BCAP_SV_AMR_F
GSM FR V3 (FR AMR)
Definition: gsm_04_08.h:1975
gsm48_meas_res::rxlev_full
uint8_t rxlev_full
Definition: gsm_04_08.h:493
CHREQ_T_TCH_F
@ CHREQ_T_TCH_F
Definition: gsm_04_08.h:1813
gsm48_system_information_type_5ter::skip_indicator
uint8_t skip_indicator
Definition: gsm_04_08.h:1017
gsm48_pag_resp
Definition: gsm_04_08.h:771
gsm48_system_information_type_5ter::rr_protocol_discriminator
uint8_t rr_protocol_discriminator
Definition: gsm_04_08.h:1018
gsm48_imm_ass
Definition: gsm_04_08.h:758
gsm48_chan_desc::maio_low
uint8_t maio_low
Definition: gsm_04_08.h:427
gsm48_ra_id
Definition: gsm_04_08.h:1988
GSM48_TON_INTERNATIONAL
@ GSM48_TON_INTERNATIONAL
Definition: gsm_04_08.h:2002
gsm48_range_256::w9_lo
uint8_t w9_lo
Definition: gsm_04_08.h:283
gsm48_ass_fail::rr_cause
uint8_t rr_cause
Definition: gsm_04_08.h:1068
gsm48_service_request
Definition: gsm_04_08.h:909
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:1287
gsm48_var_bit::orig_arfcn_mid
uint8_t orig_arfcn_mid
Definition: gsm_04_08.h:404
gsm48_system_information_type_5bis::system_information
uint8_t system_information
Definition: gsm_04_08.h:1007
gsm48_range_128::w5
uint8_t w5
Definition: gsm_04_08.h:360
gsm48_range_128::w14
uint8_t w14
Definition: gsm_04_08.h:370