libosmocore/src/gsm
Pau Espin 559a6ee683 Fix parsing of TLV_TYPE_SINGLE_TV
The decoding path of TLV_TYPE_SINGLE_TV is wrong, since it is not
shifting right the tag before using it. On the other hand, the encoding
path (tlv_encode_one) is doing that, so it is clear there's a bug.

It seems that in order to workaround the bug some IEs in gsm_04_08.h (TS
24.008 and TS 44.018) were defined incorrectly (eg 0x80) while the spec
clearly assigns eg. "8" to it, and makes sure no full byte IEI collides.
Some other IEIs like GSM48_IE_GMM_CIPH_CKSN which are also of the same
type were already correctly defined as 0x08.

Change-Id: I799e35dc8d4d153fa63bf50563a5482cdf4de2d7
2023-03-22 14:23:51 +01:00
..
kdf kdf: add key derivation functions 2021-06-08 02:38:15 +02:00
milenage add osmo_auth_c3() (separate from gsm_milenage()) 2017-12-18 23:05:24 +00:00
Makefile.am gsm: TS 44.021 modified V.110 frame encoding/decoding support 2023-03-08 20:43:15 +01:00
a5.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
abis_nm.c Rename osmo dyn ts enums 2021-06-30 13:14:08 +02:00
apn.c Use internal <osmocom/core/talloc.h> everywhere 2022-04-27 12:42:15 +00:00
auth_comp128v1.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
auth_comp128v23.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
auth_core.c Rename OSMO_AUTH_ALG_XOR to OSMO_AUTH_ALG_XOR_3G 2023-02-22 09:45:15 +01:00
auth_milenage.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
auth_xor.c Rename OSMO_AUTH_ALG_XOR to OSMO_AUTH_ALG_XOR_3G 2023-02-22 09:45:15 +01:00
auth_xor_2g.c Implement the XOR-2G authentication algorithm 2023-02-21 22:25:04 +01:00
bsslap.c gsm/{bsslap,bssmap_le}: zero-initialize structs using memset() 2023-02-25 08:15:11 +00:00
bssmap_le.c gsm/{bsslap,bssmap_le}: zero-initialize structs using memset() 2023-02-25 08:15:11 +00:00
bts_features.c gsm: ensure completeness of osmo_bts_features_{descs,names}[] 2023-02-24 17:06:21 +07:00
cbsp.c fix _thread order 2023-03-07 14:27:59 +01:00
comp128.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
comp128v23.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
gad.c gad.c: fix rc for osmo_gad_enc_ell_point_unc_circle() 2020-10-15 01:02:04 +00:00
gan.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
gea.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
gprs_cipher_core.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
gprs_gea.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
gprs_rlc.c Move libosmogsm TS 44.060 declarations under include/osmocom/gsm/ 2023-02-20 12:21:30 +01:00
gsm48.c Fix parsing of TLV_TYPE_SINGLE_TV 2023-03-22 14:23:51 +01:00
gsm48_arfcn_range_encode.c range_enc_determine_range(): Don't dereference array on size=0 2021-06-01 14:04:20 +02:00
gsm48_ie.c doxygen: fix various typos in commands \param and \returns 2023-02-28 18:48:56 +00:00
gsm48_rest_octets.c gsm: Introduce API osmo_gsm48_rest_octets_si13_decode 2021-02-18 00:54:33 +00:00
gsm0341.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
gsm0411_smc.c gsm0411_{smc,smr}.c: Work around newlib bug 2020-07-30 21:35:10 +02:00
gsm0411_smr.c fix spelling in 'value_string' arrays: existAnt -> existEnt 2020-10-29 18:09:36 +07:00
gsm0411_utils.c doxygen: fix various typos in commands \param and \returns 2023-02-28 18:48:56 +00:00
gsm0414.c doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
gsm0480.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
gsm0502.c gsm: constify several readonly params 2022-11-24 17:09:03 +01:00
gsm0808.c add gsm0808_amr_modes_from_cfg 2023-02-28 23:00:45 +00:00
gsm0808_utils.c gsm0808_enc/dec_channel_type: fix transparent flag 2023-02-27 13:49:34 +00:00
gsm23003.c gsm: [ABI BREAK] Support CellId SAI, change CellId CGI-PS id number 2022-02-16 17:59:23 +01:00
gsm23236.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
gsm29118.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
gsm29205.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
gsm44021.c gsm: TS 44.021 modified V.110 frame encoding/decoding support 2023-03-08 20:43:15 +01:00
gsm48049.c gsm/gsm48049.c: fix use of GNU 'missing =' extension in designator 2020-01-21 18:34:04 +07:00
gsm_04_08_gprs.c fix spelling in 'value_string' arrays: existAnt -> existEnt 2020-10-29 18:09:36 +07:00
gsm_utils.c gsm: gsm_gsmtime2fn(): constify param 2023-03-06 13:59:40 +01:00
gsup.c gsup: Introduce OSMO_GSUP_NUM_VECTORS_REQ_IE 2019-12-09 10:54:30 +00:00
gsup_sms.c GSUP/SMS: introduce MO-/MT-FORWARD-SM messages 2018-12-18 21:52:01 +07:00
ipa.c ipa_ccm_make_id_resp: Make it work at all 2021-04-29 19:59:12 +02:00
iuup.c gsm: use OSMO_ASSERT() in osmo_iuup_msgb_alloc_c() 2023-02-27 09:58:46 +00:00
kasumi.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
kdf.c Fix all references to config.h 2023-01-18 19:04:36 +01:00
lapdm.c doxygen: fix various typos in commands \param and \returns 2023-02-28 18:48:56 +00:00
libosmogsm.map gsm: TS 44.021 modified V.110 frame encoding/decoding support 2023-03-08 20:43:15 +01:00
mncc.c Fix all references to config.h 2023-01-18 19:04:36 +01:00
oap.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
oap_client.c oap_client: Fix license: GPLv2+ instead of AGPLv3+ 2019-05-27 23:26:45 +02:00
rsl.c gsm: rsl: Define new osmocom extension TLV IE to pass Osmux CID 2022-08-09 08:35:55 +00:00
rxlev_stat.c treewide: remove FSF address 2021-12-14 12:44:03 +01:00
sysinfo.c Add SI10 support 2023-02-04 10:07:28 +00:00
tlv_parser.c Fix parsing of TLV_TYPE_SINGLE_TV 2023-03-22 14:23:51 +01:00