2012-04-04 20:05:24 +00:00
|
|
|
LIBOSMOGSM_1.0 {
|
|
|
|
global:
|
|
|
|
|
|
|
|
abis_nm_adm_state_names;
|
|
|
|
abis_nm_att_settable;
|
|
|
|
abis_nm_avail_name;
|
2017-01-02 13:43:35 +00:00
|
|
|
abis_nm_fail_evt_rep;
|
2017-01-17 16:46:47 +00:00
|
|
|
abis_nm_fail_evt_vrep;
|
2012-04-04 20:05:24 +00:00
|
|
|
abis_nm_chcomb4pchan;
|
|
|
|
abis_nm_debugp_foh;
|
2018-03-17 09:32:07 +00:00
|
|
|
abis_nm_dump_foh;
|
2012-04-04 20:05:24 +00:00
|
|
|
abis_nm_event_type_name;
|
|
|
|
abis_nm_nack_cause_name;
|
|
|
|
abis_nm_nack_name;
|
|
|
|
abis_nm_att_tlvdef;
|
2017-01-02 12:42:24 +00:00
|
|
|
abis_nm_att_tlvdef_ipa;
|
2014-05-19 09:25:46 +00:00
|
|
|
abis_nm_osmo_att_tlvdef;
|
2014-08-17 17:36:26 +00:00
|
|
|
abis_nm_msg_disc_names;
|
2012-04-04 20:05:24 +00:00
|
|
|
abis_nm_obj_class_names;
|
|
|
|
abis_nm_opstate_name;
|
|
|
|
abis_nm_nacks;
|
2017-01-02 12:42:24 +00:00
|
|
|
abis_nm_t200_ms;
|
2012-04-04 20:05:24 +00:00
|
|
|
abis_nm_no_ack_nack;
|
|
|
|
abis_nm_pchan4chcomb;
|
|
|
|
abis_nm_reports;
|
|
|
|
abis_nm_severity_name;
|
|
|
|
abis_nm_sw_load_msgs;
|
|
|
|
abis_nm_test_name;
|
2014-08-17 16:42:58 +00:00
|
|
|
abis_nm_osmo_magic;
|
|
|
|
abis_nm_ipa_magic;
|
2017-01-11 10:31:19 +00:00
|
|
|
abis_mm_event_cause_names;
|
2017-01-10 16:49:23 +00:00
|
|
|
abis_nm_pcause_type_names;
|
2017-03-22 14:20:39 +00:00
|
|
|
abis_nm_msgtype_names;
|
2017-03-21 15:55:45 +00:00
|
|
|
abis_nm_att_names;
|
2017-03-24 19:16:33 +00:00
|
|
|
abis_nm_sw_desc_len;
|
|
|
|
abis_nm_put_sw_desc;
|
|
|
|
abis_nm_put_sw_file;
|
|
|
|
abis_nm_get_sw_conf;
|
|
|
|
abis_nm_get_sw_desc_len;
|
2012-04-04 20:05:24 +00:00
|
|
|
|
|
|
|
osmo_sitype_strs;
|
2016-07-07 11:00:43 +00:00
|
|
|
osmo_c4;
|
2017-07-10 12:32:48 +00:00
|
|
|
osmo_get_rand_id;
|
2016-04-22 17:28:09 +00:00
|
|
|
bitvec_add_range1024;
|
2012-04-04 20:05:24 +00:00
|
|
|
comp128;
|
2017-02-27 09:54:00 +00:00
|
|
|
comp128v2;
|
|
|
|
comp128v3;
|
2012-04-04 20:05:24 +00:00
|
|
|
dbm2rxlev;
|
|
|
|
|
2016-03-17 10:51:09 +00:00
|
|
|
osmo_earfcn_add;
|
|
|
|
osmo_earfcn_del;
|
2016-04-15 14:04:04 +00:00
|
|
|
osmo_earfcn_bit_size;
|
2017-05-11 13:38:10 +00:00
|
|
|
osmo_earfcn_bit_size_ext;
|
2016-03-17 10:51:09 +00:00
|
|
|
osmo_earfcn_init;
|
|
|
|
|
2012-04-04 20:05:24 +00:00
|
|
|
gprs_cipher_gen_input_i;
|
|
|
|
gprs_cipher_gen_input_ui;
|
|
|
|
gprs_cipher_load;
|
|
|
|
gprs_cipher_register;
|
|
|
|
gprs_cipher_run;
|
2016-06-28 12:03:21 +00:00
|
|
|
gprs_cipher_names;
|
2012-04-04 20:05:24 +00:00
|
|
|
gprs_cipher_supported;
|
2016-04-21 12:46:30 +00:00
|
|
|
gprs_cipher_key_length;
|
2012-04-04 20:05:24 +00:00
|
|
|
gprs_tlli_type;
|
|
|
|
gprs_tmsi2tlli;
|
2016-06-27 13:51:34 +00:00
|
|
|
gprs_ms_net_cap_gea_supported;
|
2016-07-05 17:17:19 +00:00
|
|
|
gprs_msgt_gmm_names;
|
2012-04-04 20:05:24 +00:00
|
|
|
|
2016-07-14 22:13:45 +00:00
|
|
|
egprs_get_cps;
|
2017-07-31 17:36:52 +00:00
|
|
|
osmo_gprs_ul_block_size_bits;
|
|
|
|
osmo_gprs_dl_block_size_bits;
|
|
|
|
osmo_gprs_ul_block_size_bytes;
|
|
|
|
osmo_gprs_dl_block_size_bytes;
|
|
|
|
osmo_gprs_ul_cs_by_block_bytes;
|
|
|
|
osmo_gprs_dl_cs_by_block_bytes;
|
2016-07-14 22:13:45 +00:00
|
|
|
|
2016-04-20 15:12:24 +00:00
|
|
|
gsm48_gmm_cause_names;
|
|
|
|
gsm48_gsm_cause_names;
|
|
|
|
gprs_att_t_strs;
|
|
|
|
gprs_upd_t_strs;
|
|
|
|
gprs_det_t_mo_strs;
|
|
|
|
gprs_det_t_mt_strs;
|
2016-08-29 11:18:56 +00:00
|
|
|
gprs_service_t_strs;
|
2016-04-20 15:12:24 +00:00
|
|
|
|
2014-12-29 16:09:11 +00:00
|
|
|
gsm0341_build_msg;
|
|
|
|
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm0480_create_notifySS;
|
|
|
|
gsm0480_create_unstructuredSS_Notify;
|
|
|
|
gsm0480_create_ussd_resp;
|
2016-11-26 14:21:15 +00:00
|
|
|
gsm0480_create_ussd_notify;
|
|
|
|
gsm0480_create_ussd_release_complete;
|
2018-06-10 20:51:11 +00:00
|
|
|
gsm0480_extract_ie_by_tag;
|
2018-06-10 21:58:53 +00:00
|
|
|
gsm0480_parse_facility_ie;
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm0480_decode_ussd_request;
|
2012-03-08 12:31:52 +00:00
|
|
|
gsm0480_decode_ss_request;
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm0480_wrap_facility;
|
|
|
|
gsm0480_wrap_invoke;
|
2018-06-16 16:34:52 +00:00
|
|
|
gsm0480_comp_type_names;
|
|
|
|
gsm0480_op_code_names;
|
2018-07-28 20:55:43 +00:00
|
|
|
gsm0480_msgb_alloc_name;
|
2018-07-28 21:02:48 +00:00
|
|
|
gsm0480_gen_ussd_resp_7bit;
|
2018-07-28 21:05:36 +00:00
|
|
|
gsm0480_gen_return_error;
|
|
|
|
gsm0480_gen_reject;
|
2012-04-04 20:05:24 +00:00
|
|
|
|
|
|
|
gsm0502_calc_paging_group;
|
|
|
|
|
2016-04-29 11:17:22 +00:00
|
|
|
gsm0503_xcch;
|
2016-09-07 16:09:49 +00:00
|
|
|
gsm0503_rach;
|
2017-10-16 12:58:00 +00:00
|
|
|
gsm0503_rach_ext;
|
2016-09-07 16:09:49 +00:00
|
|
|
gsm0503_sch;
|
2016-04-29 11:17:22 +00:00
|
|
|
gsm0503_cs2;
|
|
|
|
gsm0503_cs3;
|
2016-09-22 18:48:59 +00:00
|
|
|
gsm0503_cs2_np;
|
|
|
|
gsm0503_cs3_np;
|
2016-09-07 16:09:49 +00:00
|
|
|
gsm0503_tch_fr;
|
|
|
|
gsm0503_tch_hr;
|
2016-04-29 11:17:22 +00:00
|
|
|
gsm0503_tch_afs_12_2;
|
|
|
|
gsm0503_tch_afs_10_2;
|
|
|
|
gsm0503_tch_afs_7_95;
|
|
|
|
gsm0503_tch_afs_7_4;
|
|
|
|
gsm0503_tch_afs_6_7;
|
|
|
|
gsm0503_tch_afs_5_9;
|
|
|
|
gsm0503_tch_afs_5_15;
|
|
|
|
gsm0503_tch_afs_4_75;
|
2016-09-07 16:09:49 +00:00
|
|
|
gsm0503_tch_ahs_7_95;
|
|
|
|
gsm0503_tch_ahs_7_4;
|
|
|
|
gsm0503_tch_ahs_6_7;
|
|
|
|
gsm0503_tch_ahs_5_9;
|
|
|
|
gsm0503_tch_ahs_5_15;
|
|
|
|
gsm0503_tch_ahs_4_75;
|
2016-09-08 15:06:07 +00:00
|
|
|
gsm0503_mcs1_dl_hdr;
|
|
|
|
gsm0503_mcs1_ul_hdr;
|
|
|
|
gsm0503_mcs1;
|
|
|
|
gsm0503_mcs2;
|
|
|
|
gsm0503_mcs3;
|
|
|
|
gsm0503_mcs4;
|
|
|
|
gsm0503_mcs5_dl_hdr;
|
|
|
|
gsm0503_mcs5_ul_hdr;
|
|
|
|
gsm0503_mcs5;
|
|
|
|
gsm0503_mcs6;
|
|
|
|
gsm0503_mcs7_dl_hdr;
|
|
|
|
gsm0503_mcs7_ul_hdr;
|
|
|
|
gsm0503_mcs7;
|
|
|
|
gsm0503_mcs8;
|
|
|
|
gsm0503_mcs9;
|
2016-04-29 11:17:22 +00:00
|
|
|
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm0808_att_tlvdef;
|
|
|
|
gsm0808_bssap_name;
|
|
|
|
gsm0808_bssmap_name;
|
2018-03-29 10:55:26 +00:00
|
|
|
gsm0808_cause_name;
|
2018-11-07 12:16:54 +00:00
|
|
|
gsm0808_cause_class_name;
|
2017-03-29 15:53:43 +00:00
|
|
|
gsm0808_create_ass;
|
2018-11-30 09:44:07 +00:00
|
|
|
gsm0808_create_ass2;
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm0808_create_assignment_completed;
|
2017-03-27 14:55:32 +00:00
|
|
|
gsm0808_create_ass_compl;
|
2019-01-08 13:44:24 +00:00
|
|
|
gsm0808_create_ass_compl2;
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm0808_create_assignment_failure;
|
2017-03-27 14:55:32 +00:00
|
|
|
gsm0808_create_ass_fail;
|
2017-03-29 13:50:05 +00:00
|
|
|
gsm0808_create_cipher;
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm0808_create_cipher_complete;
|
|
|
|
gsm0808_create_cipher_reject;
|
2018-11-07 14:25:05 +00:00
|
|
|
gsm0808_create_cipher_reject_ext;
|
|
|
|
gsm0808_get_cipher_reject_cause;
|
2018-09-13 03:36:32 +00:00
|
|
|
gsm0808_create_classmark_request;
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm0808_create_classmark_update;
|
|
|
|
gsm0808_create_clear_command;
|
|
|
|
gsm0808_create_clear_complete;
|
|
|
|
gsm0808_create_clear_rqst;
|
2017-03-29 15:37:55 +00:00
|
|
|
gsm0808_create_paging;
|
2018-02-15 17:28:04 +00:00
|
|
|
gsm0808_create_paging2;
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm0808_create_dtap;
|
|
|
|
gsm0808_create_layer3;
|
2017-03-27 14:55:32 +00:00
|
|
|
gsm0808_create_layer3_aoip;
|
implement support for 3-digit MNC with leading zeros
Enable representing three-digit MNC with leading zeros. The MNCs 23 and 023 are
actually different; so far we treated both as 23. Re-encode an incoming BCD or
string of 023 as it were, i.e. not dropping the leading zero as 23.
Break ABI compatibility by changing the size and ordering of structs
gprs_ra_id, osmo_plmn_id, osmo_cell_global_id, ... by adding an mnc_3_digits
flag.
Change ordering in gprs_ra_id because the canonical oder is {Mobile Country
Code, Mobile Network Code}, so have the mcc member first.
ABI compatibility cannot be maintained for struct gprs_ra_id, since it is a
direct member of structs bssgp_bvc_ctx and bssgp_paging_info, and even just
adding a flag to the end would cause ABI changes of those structs. Similarly,
osmo_plmn_id is a direct member of osmo_location_area_id, and so forth.
Add new API to set and read this additional flag to preserve leading zeros:
- osmo_plmn_to_bcd(), osmo_plmn_from_bcd() after
gsm48_mcc_mnc_to_bcd() and gsm48_mcc_mnc_from_bcd().
- gsm48_decode_lai2(), gsm48_generate_lai2() after
gsm48_decode_lai(), gsm48_generate_lai().
- gsm0808_create_layer3_2() after gsm0808_create_layer3() and gsm0808_create_layer3_aoip().
- various osmo_*_name() functions in gsm23003.h (osmo_rai_name() still in
gsm48.h close to struct gprs_ra_id definition). The amount and duplication of
these may seem a bit overboard, but IMO they do make sense in this way.
Though most code will soon see patches unifying the data structures used, in
some cases (vty, ctrl) they are required singled out. Without these
functions, the formatting ("%0*u", mnc_3_digits ? 3 : 2, mnc) would be
duplicated all over our diverse repositories.
In various log output, include the leading MNC zeros.
Mark one TODO in card_fs_sim.c, I am not sure how to communicate a leading zero
to/from a SIM card FS. The focus here is on the core network / BSS.
To indicate ABI incompatibility, bump libosmogsm and libosmogb LIBVERSIONs;
adjust debian files accordingly.
Implementation choices:
- The default behavior upon zero-initialization will be the mnc_3_digits flag
set to false, which yields exactly the previous behavior.
- I decided against packing the mnc with the mnc_3_digits field into a
sub-struct because it would immediately break all builds of dependent
projects: it would require immediate merging of numerous patches in other
repositories, and it would make compiling older code against a newer
libosmocore unneccessarily hard.
Change-Id: Id2240f7f518494c9df6c8bda52c0d5092f90f221
2018-02-20 12:47:08 +00:00
|
|
|
gsm0808_create_layer3_2;
|
2018-05-29 19:00:56 +00:00
|
|
|
gsm0808_create_lcls_conn_ctrl;
|
|
|
|
gsm0808_create_lcls_conn_ctrl_ack;
|
|
|
|
gsm0808_create_lcls_notification;
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm0808_create_reset;
|
2017-04-05 15:55:27 +00:00
|
|
|
gsm0808_create_reset_ack;
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm0808_create_sapi_reject;
|
2018-03-13 02:40:53 +00:00
|
|
|
gsm0808_create_handover_required;
|
2018-04-16 20:31:15 +00:00
|
|
|
gsm0808_create_handover_request_ack;
|
2018-04-16 20:42:09 +00:00
|
|
|
gsm0808_create_handover_detect;
|
|
|
|
gsm0808_create_handover_complete;
|
|
|
|
gsm0808_create_handover_failure;
|
2018-10-30 13:56:59 +00:00
|
|
|
gsm0808_create_handover_performed;
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm0808_prepend_dtap_header;
|
2018-11-30 12:36:12 +00:00
|
|
|
gsm0808_enc_cause;
|
2017-03-24 16:59:26 +00:00
|
|
|
gsm0808_enc_aoip_trasp_addr;
|
|
|
|
gsm0808_dec_aoip_trasp_addr;
|
2017-03-24 17:03:17 +00:00
|
|
|
gsm0808_enc_speech_codec;
|
|
|
|
gsm0808_dec_speech_codec;
|
|
|
|
gsm0808_enc_speech_codec_list;
|
|
|
|
gsm0808_dec_speech_codec_list;
|
2017-03-28 15:05:40 +00:00
|
|
|
gsm0808_enc_channel_type;
|
|
|
|
gsm0808_dec_channel_type;
|
2017-03-28 16:36:52 +00:00
|
|
|
gsm0808_enc_encrypt_info;
|
|
|
|
gsm0808_dec_encrypt_info;
|
2017-03-29 09:35:50 +00:00
|
|
|
gsm0808_enc_cell_id_list;
|
2018-02-15 17:28:04 +00:00
|
|
|
gsm0808_enc_cell_id_list2;
|
2017-03-29 09:35:50 +00:00
|
|
|
gsm0808_dec_cell_id_list;
|
2018-02-15 17:28:04 +00:00
|
|
|
gsm0808_dec_cell_id_list2;
|
2018-03-23 00:46:42 +00:00
|
|
|
gsm0808_cell_id_list_add;
|
2018-05-25 14:56:35 +00:00
|
|
|
gsm0808_cell_id_to_list;
|
2018-04-13 01:30:14 +00:00
|
|
|
gsm0808_enc_cell_id;
|
|
|
|
gsm0808_dec_cell_id;
|
2018-04-17 00:26:10 +00:00
|
|
|
gsm0808_cell_id_name;
|
|
|
|
gsm0808_cell_id_name2;
|
|
|
|
gsm0808_cell_id_list_name;
|
|
|
|
gsm0808_cell_id_list_name_buf;
|
|
|
|
gsm0808_cell_id_discr_names;
|
|
|
|
gsm0808_cell_id_u_name;
|
2017-06-23 00:34:08 +00:00
|
|
|
gsm0808_chan_type_to_speech_codec;
|
2017-06-23 00:34:26 +00:00
|
|
|
gsm0808_speech_codec_from_chan_type;
|
2018-09-19 11:40:21 +00:00
|
|
|
gsm0808_sc_cfg_from_gsm48_mr_cfg;
|
2018-09-25 13:57:49 +00:00
|
|
|
gsm48_mr_cfg_from_gsm0808_sc_cfg;
|
2018-01-12 04:34:03 +00:00
|
|
|
gsm0808_speech_codec_type_names;
|
2018-07-12 16:21:07 +00:00
|
|
|
gsm0808_permitted_speech_names;
|
2018-07-06 15:16:41 +00:00
|
|
|
gsm0808_chosen_enc_alg_names;
|
2018-04-16 20:41:51 +00:00
|
|
|
gsm0808_channel_type_name;
|
2018-06-02 12:11:19 +00:00
|
|
|
gsm0808_lcls_config_names;
|
|
|
|
gsm0808_lcls_control_names;
|
|
|
|
gsm0808_lcls_status_names;
|
2018-12-19 17:51:00 +00:00
|
|
|
gsm0808_enc_lcls;
|
|
|
|
gsm0808_dec_lcls;
|
2012-04-04 20:05:24 +00:00
|
|
|
|
2018-12-07 11:31:08 +00:00
|
|
|
gsm29118_msgb_alloc;
|
|
|
|
gsm29118_create_alert_req;
|
|
|
|
gsm29118_create_dl_ud;
|
|
|
|
gsm29118_create_eps_det_ack;
|
|
|
|
gsm29118_create_imsi_det_ack;
|
|
|
|
gsm29118_create_lu_ack;
|
|
|
|
gsm29118_create_lu_rej;
|
|
|
|
gsm29118_create_mm_info_req;
|
|
|
|
gsm29118_create_paging_req;
|
|
|
|
gsm29118_create_reset_ack;
|
|
|
|
gsm29118_create_reset_ind;
|
|
|
|
gsm29118_create_status;
|
|
|
|
gsm29118_create_release_req;
|
|
|
|
gsm29118_create_service_abort_req;
|
|
|
|
|
2018-12-10 09:57:59 +00:00
|
|
|
osmo_enc_gcr;
|
|
|
|
osmo_dec_gcr;
|
2019-01-14 18:31:42 +00:00
|
|
|
osmo_gcr_eq;
|
2018-12-10 09:57:59 +00:00
|
|
|
|
2016-05-11 15:33:17 +00:00
|
|
|
gsm0858_rsl_ul_meas_enc;
|
|
|
|
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm338_get_sms_alphabet;
|
|
|
|
|
|
|
|
gsm340_gen_oa;
|
|
|
|
gsm340_gen_scts;
|
|
|
|
gsm340_scts;
|
|
|
|
gsm340_validity_period;
|
|
|
|
|
|
|
|
gsm411_bcdify;
|
|
|
|
gsm411_msgb_alloc;
|
|
|
|
gsm411_push_cp_header;
|
|
|
|
gsm411_push_rp_header;
|
|
|
|
gsm411_smc_clear;
|
|
|
|
gsm411_smc_init;
|
|
|
|
gsm411_smc_recv;
|
|
|
|
gsm411_smc_send;
|
|
|
|
gsm411_smr_clear;
|
|
|
|
gsm411_smr_init;
|
|
|
|
gsm411_smr_recv;
|
|
|
|
gsm411_smr_send;
|
|
|
|
gsm411_unbcdify;
|
|
|
|
gsm411_cp_cause_strs;
|
2018-01-24 15:50:11 +00:00
|
|
|
gsm411_cp_state_names;
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm411_rp_cause_strs;
|
2018-01-24 15:50:11 +00:00
|
|
|
gsm411_rp_state_names;
|
2012-04-04 20:05:24 +00:00
|
|
|
|
2017-05-29 13:58:43 +00:00
|
|
|
gsm414_msgt_names;
|
|
|
|
|
2018-08-02 22:44:00 +00:00
|
|
|
gsm48_push_l3hdr;
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm48_att_tlvdef;
|
|
|
|
gsm48_cc_msg_name;
|
2018-07-27 13:17:09 +00:00
|
|
|
gsm48_rest_octets_si1;
|
|
|
|
gsm48_rest_octets_si2quater;
|
|
|
|
gsm48_rest_octets_si2ter;
|
|
|
|
gsm48_rest_octets_si2bis;
|
|
|
|
gsm48_rest_octets_si6;
|
|
|
|
gsm48_rest_octets_si3;
|
|
|
|
gsm48_rest_octets_si4;
|
|
|
|
gsm48_rest_octets_si13;
|
2016-10-27 11:35:20 +00:00
|
|
|
gsm48_rr_msg_name;
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm48_cc_state_name;
|
|
|
|
gsm48_construct_ra;
|
2018-01-05 13:19:33 +00:00
|
|
|
gsm48_encode_ra;
|
2016-07-05 14:06:28 +00:00
|
|
|
gsm48_hdr_gmm_cipherable;
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm48_decode_bcd_number;
|
|
|
|
gsm48_decode_bearer_cap;
|
|
|
|
gsm48_decode_called;
|
|
|
|
gsm48_decode_callerid;
|
|
|
|
gsm48_decode_calling;
|
|
|
|
gsm48_decode_cause;
|
|
|
|
gsm48_decode_cccap;
|
|
|
|
gsm48_decode_connected;
|
|
|
|
gsm48_decode_facility;
|
|
|
|
gsm48_decode_freq_list;
|
|
|
|
gsm48_decode_keypad;
|
2012-07-13 19:48:35 +00:00
|
|
|
gsm48_decode_lai;
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm48_decode_notify;
|
|
|
|
gsm48_decode_progress;
|
|
|
|
gsm48_decode_redirecting;
|
|
|
|
gsm48_decode_signal;
|
|
|
|
gsm48_decode_ssversion;
|
|
|
|
gsm48_decode_useruser;
|
|
|
|
gsm48_encode_bcd_number;
|
|
|
|
gsm48_encode_bearer_cap;
|
|
|
|
gsm48_encode_called;
|
|
|
|
gsm48_encode_callerid;
|
|
|
|
gsm48_encode_calling;
|
|
|
|
gsm48_encode_cause;
|
|
|
|
gsm48_encode_cccap;
|
|
|
|
gsm48_encode_connected;
|
|
|
|
gsm48_encode_facility;
|
|
|
|
gsm48_encode_keypad;
|
|
|
|
gsm48_encode_more;
|
|
|
|
gsm48_encode_notify;
|
|
|
|
gsm48_encode_progress;
|
|
|
|
gsm48_encode_redirecting;
|
|
|
|
gsm48_encode_signal;
|
|
|
|
gsm48_encode_ssversion;
|
|
|
|
gsm48_encode_useruser;
|
|
|
|
gsm48_generate_lai;
|
2018-02-15 10:42:11 +00:00
|
|
|
gsm48_generate_mid;
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm48_generate_mid_from_imsi;
|
|
|
|
gsm48_generate_mid_from_tmsi;
|
|
|
|
gsm48_mi_to_string;
|
|
|
|
gsm48_mm_att_tlvdef;
|
|
|
|
gsm48_number_of_paging_subchannels;
|
|
|
|
gsm48_parse_ra;
|
|
|
|
gsm48_rr_att_tlvdef;
|
2016-05-10 15:17:05 +00:00
|
|
|
gsm48_set_dtx;
|
|
|
|
gsm48_dtx_mode;
|
2015-08-16 15:56:25 +00:00
|
|
|
gsm48_mi_type_name;
|
2019-01-04 23:38:54 +00:00
|
|
|
osmo_mi_name;
|
2016-03-15 12:28:10 +00:00
|
|
|
gsm48_mcc_mnc_to_bcd;
|
|
|
|
gsm48_mcc_mnc_from_bcd;
|
implement support for 3-digit MNC with leading zeros
Enable representing three-digit MNC with leading zeros. The MNCs 23 and 023 are
actually different; so far we treated both as 23. Re-encode an incoming BCD or
string of 023 as it were, i.e. not dropping the leading zero as 23.
Break ABI compatibility by changing the size and ordering of structs
gprs_ra_id, osmo_plmn_id, osmo_cell_global_id, ... by adding an mnc_3_digits
flag.
Change ordering in gprs_ra_id because the canonical oder is {Mobile Country
Code, Mobile Network Code}, so have the mcc member first.
ABI compatibility cannot be maintained for struct gprs_ra_id, since it is a
direct member of structs bssgp_bvc_ctx and bssgp_paging_info, and even just
adding a flag to the end would cause ABI changes of those structs. Similarly,
osmo_plmn_id is a direct member of osmo_location_area_id, and so forth.
Add new API to set and read this additional flag to preserve leading zeros:
- osmo_plmn_to_bcd(), osmo_plmn_from_bcd() after
gsm48_mcc_mnc_to_bcd() and gsm48_mcc_mnc_from_bcd().
- gsm48_decode_lai2(), gsm48_generate_lai2() after
gsm48_decode_lai(), gsm48_generate_lai().
- gsm0808_create_layer3_2() after gsm0808_create_layer3() and gsm0808_create_layer3_aoip().
- various osmo_*_name() functions in gsm23003.h (osmo_rai_name() still in
gsm48.h close to struct gprs_ra_id definition). The amount and duplication of
these may seem a bit overboard, but IMO they do make sense in this way.
Though most code will soon see patches unifying the data structures used, in
some cases (vty, ctrl) they are required singled out. Without these
functions, the formatting ("%0*u", mnc_3_digits ? 3 : 2, mnc) would be
duplicated all over our diverse repositories.
In various log output, include the leading MNC zeros.
Mark one TODO in card_fs_sim.c, I am not sure how to communicate a leading zero
to/from a SIM card FS. The focus here is on the core network / BSS.
To indicate ABI incompatibility, bump libosmogsm and libosmogb LIBVERSIONs;
adjust debian files accordingly.
Implementation choices:
- The default behavior upon zero-initialization will be the mnc_3_digits flag
set to false, which yields exactly the previous behavior.
- I decided against packing the mnc with the mnc_3_digits field into a
sub-struct because it would immediately break all builds of dependent
projects: it would require immediate merging of numerous patches in other
repositories, and it would make compiling older code against a newer
libosmocore unneccessarily hard.
Change-Id: Id2240f7f518494c9df6c8bda52c0d5092f90f221
2018-02-20 12:47:08 +00:00
|
|
|
gsm48_generate_lai2;
|
|
|
|
gsm48_decode_lai2;
|
2018-03-01 18:13:05 +00:00
|
|
|
osmo_bts_features_descs;
|
|
|
|
osmo_bts_feature_name;
|
implement support for 3-digit MNC with leading zeros
Enable representing three-digit MNC with leading zeros. The MNCs 23 and 023 are
actually different; so far we treated both as 23. Re-encode an incoming BCD or
string of 023 as it were, i.e. not dropping the leading zero as 23.
Break ABI compatibility by changing the size and ordering of structs
gprs_ra_id, osmo_plmn_id, osmo_cell_global_id, ... by adding an mnc_3_digits
flag.
Change ordering in gprs_ra_id because the canonical oder is {Mobile Country
Code, Mobile Network Code}, so have the mcc member first.
ABI compatibility cannot be maintained for struct gprs_ra_id, since it is a
direct member of structs bssgp_bvc_ctx and bssgp_paging_info, and even just
adding a flag to the end would cause ABI changes of those structs. Similarly,
osmo_plmn_id is a direct member of osmo_location_area_id, and so forth.
Add new API to set and read this additional flag to preserve leading zeros:
- osmo_plmn_to_bcd(), osmo_plmn_from_bcd() after
gsm48_mcc_mnc_to_bcd() and gsm48_mcc_mnc_from_bcd().
- gsm48_decode_lai2(), gsm48_generate_lai2() after
gsm48_decode_lai(), gsm48_generate_lai().
- gsm0808_create_layer3_2() after gsm0808_create_layer3() and gsm0808_create_layer3_aoip().
- various osmo_*_name() functions in gsm23003.h (osmo_rai_name() still in
gsm48.h close to struct gprs_ra_id definition). The amount and duplication of
these may seem a bit overboard, but IMO they do make sense in this way.
Though most code will soon see patches unifying the data structures used, in
some cases (vty, ctrl) they are required singled out. Without these
functions, the formatting ("%0*u", mnc_3_digits ? 3 : 2, mnc) would be
duplicated all over our diverse repositories.
In various log output, include the leading MNC zeros.
Mark one TODO in card_fs_sim.c, I am not sure how to communicate a leading zero
to/from a SIM card FS. The focus here is on the core network / BSS.
To indicate ABI incompatibility, bump libosmogsm and libosmogb LIBVERSIONs;
adjust debian files accordingly.
Implementation choices:
- The default behavior upon zero-initialization will be the mnc_3_digits flag
set to false, which yields exactly the previous behavior.
- I decided against packing the mnc with the mnc_3_digits field into a
sub-struct because it would immediately break all builds of dependent
projects: it would require immediate merging of numerous patches in other
repositories, and it would make compiling older code against a newer
libosmocore unneccessarily hard.
Change-Id: Id2240f7f518494c9df6c8bda52c0d5092f90f221
2018-02-20 12:47:08 +00:00
|
|
|
osmo_plmn_to_bcd;
|
|
|
|
osmo_plmn_from_bcd;
|
|
|
|
osmo_mcc_name;
|
|
|
|
osmo_mnc_name;
|
|
|
|
osmo_plmn_name;
|
|
|
|
osmo_plmn_name2;
|
|
|
|
osmo_lai_name;
|
|
|
|
osmo_rai_name;
|
2018-03-22 13:04:30 +00:00
|
|
|
osmo_cgi_name;
|
|
|
|
osmo_cgi_name2;
|
2018-10-08 20:27:04 +00:00
|
|
|
osmo_gummei_name;
|
2018-02-20 20:38:00 +00:00
|
|
|
osmo_mnc_from_str;
|
|
|
|
osmo_mnc_cmp;
|
|
|
|
osmo_plmn_cmp;
|
2018-10-08 20:27:04 +00:00
|
|
|
osmo_gen_home_network_domain;
|
|
|
|
osmo_parse_home_network_domain;
|
|
|
|
osmo_gen_mme_domain;
|
|
|
|
osmo_parse_mme_domain;
|
|
|
|
osmo_gen_mme_group_domain;
|
2016-03-30 19:14:53 +00:00
|
|
|
gsm48_chan_mode_names;
|
|
|
|
gsm_chan_t_names;
|
2017-03-09 22:07:02 +00:00
|
|
|
gsm48_pdisc_names;
|
2017-03-09 22:27:56 +00:00
|
|
|
gsm48_rr_msgtype_names;
|
|
|
|
gsm48_mm_msgtype_names;
|
|
|
|
gsm48_cc_msgtype_names;
|
2018-08-31 18:09:18 +00:00
|
|
|
gsm48_cc_cause_names;
|
2017-03-09 22:27:56 +00:00
|
|
|
gsm48_pdisc_msgtype_name;
|
2018-04-06 02:31:00 +00:00
|
|
|
gsm48_reject_value_names;
|
2012-04-04 20:05:24 +00:00
|
|
|
|
|
|
|
gsm_7bit_decode;
|
2013-08-08 10:38:53 +00:00
|
|
|
gsm_7bit_decode_ussd;
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm_7bit_encode;
|
2013-08-08 10:38:53 +00:00
|
|
|
gsm_7bit_encode_ussd;
|
2013-08-08 10:38:52 +00:00
|
|
|
gsm_7bit_encode_oct;
|
2012-04-04 20:05:24 +00:00
|
|
|
|
2013-08-12 15:07:53 +00:00
|
|
|
gsm_7bit_decode_n;
|
|
|
|
gsm_7bit_decode_n_ussd;
|
|
|
|
gsm_7bit_decode_n_hdr;
|
|
|
|
gsm_7bit_encode_n;
|
|
|
|
gsm_7bit_encode_n_ussd;
|
|
|
|
|
2018-11-16 11:59:46 +00:00
|
|
|
gsm_arfcn2band_rc;
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm_arfcn2band;
|
|
|
|
gsm_arfcn2freq10;
|
2012-12-11 22:44:41 +00:00
|
|
|
gsm_freq102arfcn;
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm_band_name;
|
|
|
|
gsm_band_parse;
|
|
|
|
gsm_fn2gsmtime;
|
2017-06-26 08:50:28 +00:00
|
|
|
gsm_fn_as_gsmtime_str;
|
2012-04-04 20:05:24 +00:00
|
|
|
gsm_get_octet_len;
|
|
|
|
gsm_gsmtime2fn;
|
2017-07-03 08:42:42 +00:00
|
|
|
osmo_dump_gsmtime;
|
2012-04-04 20:05:24 +00:00
|
|
|
|
|
|
|
gsm_milenage;
|
|
|
|
gsm_septet_encode;
|
|
|
|
gsm_septets2octets;
|
|
|
|
|
|
|
|
lapd_dl_exit;
|
|
|
|
lapd_dl_init;
|
|
|
|
lapd_dl_reset;
|
|
|
|
lapd_msgb_alloc;
|
|
|
|
lapd_ph_data_ind;
|
|
|
|
lapd_recv_dlsap;
|
|
|
|
lapd_set_mode;
|
|
|
|
lapd_state_names;
|
|
|
|
|
|
|
|
lapdm_channel_exit;
|
|
|
|
lapdm_channel_init;
|
|
|
|
lapdm_channel_reset;
|
|
|
|
lapdm_channel_set_flags;
|
|
|
|
lapdm_channel_set_l1;
|
|
|
|
lapdm_channel_set_l3;
|
|
|
|
lapdm_channel_set_mode;
|
2014-03-26 12:45:17 +00:00
|
|
|
lapdm_datalink_for_sapi;
|
2012-04-04 20:05:24 +00:00
|
|
|
lapdm_entity_exit;
|
|
|
|
lapdm_entity_init;
|
|
|
|
lapdm_entity_reset;
|
|
|
|
lapdm_entity_set_flags;
|
|
|
|
lapdm_entity_set_mode;
|
|
|
|
lapdm_phsap_dequeue_prim;
|
|
|
|
lapdm_phsap_up;
|
|
|
|
lapdm_rslms_recvmsg;
|
|
|
|
|
2016-05-25 13:25:02 +00:00
|
|
|
osmo_ph_prim_names;
|
|
|
|
|
2012-04-04 20:05:24 +00:00
|
|
|
milenage_auts;
|
|
|
|
milenage_check;
|
|
|
|
milenage_f1;
|
|
|
|
milenage_f2345;
|
|
|
|
milenage_generate;
|
|
|
|
milenage_opc_gen;
|
|
|
|
|
|
|
|
ms_class_gmsk_dbm;
|
|
|
|
ms_pwr_ctl_lvl;
|
|
|
|
ms_pwr_dbm;
|
|
|
|
|
|
|
|
osmo_a5;
|
|
|
|
osmo_a5_1;
|
|
|
|
osmo_a5_2;
|
|
|
|
|
|
|
|
osmo_auth_alg_name;
|
|
|
|
osmo_auth_alg_parse;
|
|
|
|
osmo_auth_gen_vec;
|
|
|
|
osmo_auth_gen_vec_auts;
|
2016-04-20 08:39:00 +00:00
|
|
|
osmo_auth_3g_from_2g;
|
2012-04-04 20:05:24 +00:00
|
|
|
osmo_auth_load;
|
|
|
|
osmo_auth_register;
|
|
|
|
osmo_auth_supported;
|
2017-12-18 02:12:01 +00:00
|
|
|
osmo_auth_c3;
|
2017-10-07 02:41:22 +00:00
|
|
|
osmo_sub_auth_type_names;
|
2012-04-04 20:05:24 +00:00
|
|
|
|
|
|
|
osmo_rsl2sitype;
|
|
|
|
osmo_sitype2rsl;
|
|
|
|
|
|
|
|
rr_cause_name;
|
|
|
|
|
|
|
|
rsl_att_tlvdef;
|
2015-12-13 10:56:36 +00:00
|
|
|
rsl_ipac_eie_tlvdef;
|
2012-04-04 20:05:24 +00:00
|
|
|
rsl_ccch_conf_to_bs_cc_chans;
|
|
|
|
rsl_ccch_conf_to_bs_ccch_sdcch_comb;
|
|
|
|
rsl_chan_nr_str;
|
|
|
|
rsl_dec_chan_nr;
|
|
|
|
rsl_enc_chan_nr;
|
|
|
|
rsl_err_name;
|
|
|
|
rsl_init_cchan_hdr;
|
|
|
|
rsl_init_rll_hdr;
|
|
|
|
rsl_ipac_msg_name;
|
|
|
|
rsl_msg_name;
|
2016-06-06 16:10:38 +00:00
|
|
|
rsl_or_ipac_msg_name;
|
2012-04-04 20:05:24 +00:00
|
|
|
rsl_rll_push_hdr;
|
|
|
|
rsl_rll_push_l3;
|
|
|
|
rsl_rll_simple;
|
|
|
|
rsl_rlm_cause_name;
|
2016-07-18 21:54:01 +00:00
|
|
|
rsl_act_type_names;
|
2012-04-04 20:05:24 +00:00
|
|
|
|
|
|
|
rxlev2dbm;
|
|
|
|
rxlev_stat_dump;
|
|
|
|
rxlev_stat_get_next;
|
|
|
|
rxlev_stat_input;
|
|
|
|
rxlev_stat_reset;
|
|
|
|
|
|
|
|
tlv_def_patch;
|
|
|
|
tlv_dump;
|
|
|
|
tlv_parse;
|
2018-04-13 01:36:49 +00:00
|
|
|
tlv_parse2;
|
2012-04-04 20:05:24 +00:00
|
|
|
tlv_parse_one;
|
2012-04-04 23:41:34 +00:00
|
|
|
tvlv_att_def;
|
2012-07-13 23:50:33 +00:00
|
|
|
vtvlv_gan_att_def;
|
2012-04-04 20:05:24 +00:00
|
|
|
|
2017-01-02 13:10:30 +00:00
|
|
|
osmo_tlvp_copy;
|
|
|
|
osmo_tlvp_merge;
|
2016-04-25 13:19:35 +00:00
|
|
|
osmo_shift_v_fixed;
|
|
|
|
osmo_match_shift_tv_fixed;
|
|
|
|
osmo_shift_tlv;
|
|
|
|
osmo_match_shift_tlv;
|
|
|
|
osmo_shift_lv;
|
|
|
|
|
2012-06-24 19:52:07 +00:00
|
|
|
gan_msgt_vals;
|
|
|
|
gan_pdisc_vals;
|
|
|
|
|
2014-08-20 20:28:23 +00:00
|
|
|
ipa_ccm_rcvmsg_base;
|
|
|
|
ipa_ccm_rcvmsg_bts_base;
|
|
|
|
ipa_ccm_send_id_ack;
|
|
|
|
ipa_ccm_send_id_req;
|
|
|
|
ipa_ccm_send_pong;
|
|
|
|
ipa_ccm_tlv_to_unitdata;
|
|
|
|
ipa_ccm_idtag_name;
|
|
|
|
ipa_ccm_idtag_parse;
|
2018-08-01 15:29:48 +00:00
|
|
|
ipa_ccm_idtag_parse_off;
|
2018-07-31 18:25:48 +00:00
|
|
|
ipa_ccm_id_get_parse;
|
|
|
|
ipa_ccm_id_resp_parse;
|
2017-04-15 17:05:33 +00:00
|
|
|
ipa_ccm_make_id_resp;
|
|
|
|
ipa_ccm_make_id_resp_from_req;
|
2014-08-20 20:28:23 +00:00
|
|
|
ipa_msg_alloc;
|
|
|
|
ipa_msg_recv;
|
|
|
|
ipa_msg_recv_buffered;
|
|
|
|
ipa_parse_unitid;
|
|
|
|
ipa_prepend_header;
|
|
|
|
ipa_prepend_header_ext;
|
|
|
|
ipa_send;
|
|
|
|
|
2014-10-01 08:18:11 +00:00
|
|
|
osmo_apn_qualify;
|
|
|
|
osmo_apn_qualify_from_imsi;
|
2015-11-17 07:42:05 +00:00
|
|
|
osmo_apn_to_str;
|
|
|
|
osmo_apn_from_str;
|
2014-10-01 08:18:11 +00:00
|
|
|
|
2018-07-27 10:19:15 +00:00
|
|
|
osmo_gsm48_range_enc_determine_range;
|
|
|
|
osmo_gsm48_range_enc_arfcns;
|
|
|
|
osmo_gsm48_range_enc_find_index;
|
|
|
|
osmo_gsm48_range_enc_filter_arfcns;
|
|
|
|
osmo_gsm48_range_enc_128;
|
|
|
|
osmo_gsm48_range_enc_256;
|
|
|
|
osmo_gsm48_range_enc_512;
|
|
|
|
osmo_gsm48_range_enc_1024;
|
|
|
|
|
2016-04-25 16:46:22 +00:00
|
|
|
osmo_gsup_encode;
|
|
|
|
osmo_gsup_decode;
|
2017-02-09 01:09:09 +00:00
|
|
|
osmo_gsup_message_type_names;
|
2018-06-16 09:10:12 +00:00
|
|
|
osmo_gsup_session_state_names;
|
2018-06-11 18:27:27 +00:00
|
|
|
osmo_gsup_get_err_msg_type;
|
2016-04-25 16:46:22 +00:00
|
|
|
|
GSUP/SMS: introduce MO-/MT-FORWARD-SM messages
According to 3GPP TS 29.002, there are two services:
- MAP-MO-FORWARD-SHORT-MESSAGE (see 12.2),
- MAP-MT-FORWARD-SHORT-MESSAGE (see 12.9),
which are used to forward MO/MT short messages.
This change replicates both services as GSUP messages:
- OSMO_GSUP_MSGT_MO_FORWARD_SM_*,
- OSMO_GSUP_MSGT_MT_FORWARD_SM_*.
Please note, that only the 'must-have' IEs are introduced
by this change, in particular the following:
- OSMO_GSUP_SM_RP_MR_IE (see note below),
- OSMO_GSUP_SM_RP_DA_IE (see 7.6.8.1),
- OSMO_GSUP_SM_RP_OA_IE (see 7.6.8.2),
- OSMO_GSUP_SM_RP_UI_IE (see 7.6.8.4),
- OSMO_GSUP_SM_RP_MMS_IE (see 7.6.8.7),
- OSMO_GSUP_SM_RP_CAUSE_IE (see GSM TS 04.11, 8.2.5.4),
where both SM_RP_DA and SM_RP_OA IEs basically contain
a single nested TV of the following format:
- T: identity type (see 'osmo_gsup_sms_sm_rp_oda_t'),
- V: encoded identity itself (optional).
According to GSM TS 04.11, every single message on the SM-RL has
an unique message reference (see 8.2.3), that is used to link
an RP-ACK or RP-ERROR message to the associated (preceding)
RP-DATA or RP-SMMA message transfer attempt.
In case of TCAP/MAP, this message reference is being mapped to the
Invoke ID. But since GSUP has no 'Invoke ID' IE, and it is not
required for other applications (other than SMS), this change
introduces a special 'SM_RP_MR' IE that doesn't exist in MAP.
Change-Id: Ibe325c64ae2d6c626b232533bb4cbc65fc2b5d71
Related Change-Id: (docs) Ie0150756c33c1352bc4eb49421824542c711175c
Related Change-Id: (TTCN) Ibf49474a81235096c032ea21f217170f523bd94e
Related: OS#3587
2018-09-25 16:03:13 +00:00
|
|
|
osmo_gsup_sms_encode_sm_rp_da;
|
|
|
|
osmo_gsup_sms_decode_sm_rp_da;
|
|
|
|
osmo_gsup_sms_encode_sm_rp_oa;
|
|
|
|
osmo_gsup_sms_decode_sm_rp_oa;
|
|
|
|
|
2016-04-27 16:32:35 +00:00
|
|
|
osmo_oap_encode;
|
|
|
|
osmo_oap_decode;
|
|
|
|
|
2017-10-04 01:15:47 +00:00
|
|
|
osmo_imsi_str_valid;
|
|
|
|
osmo_msisdn_str_valid;
|
2019-01-11 12:13:37 +00:00
|
|
|
osmo_imei_str_valid;
|
2017-10-04 01:15:47 +00:00
|
|
|
|
2018-01-01 19:31:58 +00:00
|
|
|
osmo_mncc_stringify;
|
2018-05-24 10:19:45 +00:00
|
|
|
osmo_mncc_names;
|
2018-01-01 19:31:58 +00:00
|
|
|
_osmo_mncc_log;
|
|
|
|
|
2018-07-30 10:06:31 +00:00
|
|
|
osmo_oap_client_encoded;
|
|
|
|
osmo_oap_client_handle;
|
|
|
|
osmo_oap_client_init;
|
|
|
|
osmo_oap_client_register;
|
2018-07-30 10:04:21 +00:00
|
|
|
|
2018-10-07 18:10:57 +00:00
|
|
|
sgsap_msg_type_names;
|
2018-11-15 14:04:29 +00:00
|
|
|
sgsap_iei_names;
|
2018-10-07 18:10:57 +00:00
|
|
|
sgsap_eps_lu_type_names;
|
|
|
|
sgsap_ismi_det_eps_type_names;
|
|
|
|
sgsap_ismi_det_noneps_type_names;
|
|
|
|
sgsap_service_ind_names;
|
|
|
|
sgsap_sgs_cause_names;
|
|
|
|
sgsap_ue_emm_mode_names;
|
|
|
|
sgsap_ie_tlvdef;
|
|
|
|
|
2018-12-26 17:03:17 +00:00
|
|
|
osmo_rat_type_names;
|
2019-01-04 23:39:13 +00:00
|
|
|
osmo_lu_type_names;
|
2019-01-10 22:33:32 +00:00
|
|
|
osmo_cm_service_type_names;
|
2018-12-26 17:03:17 +00:00
|
|
|
|
2012-04-04 20:05:24 +00:00
|
|
|
local: *;
|
|
|
|
};
|