libosmocore/include/osmocom/gsm
Philipp Maier 4f4905fac5 gsm0808: add encoder for cause codes and use it
At the moment the all gsm0808 cause codes are encoded directly using the
tlv API directly to put a one byte TLV field. This works ok for most
situations where the cause code consists of a single byte. However,
gsm0808 specifies a two byte cause code model where cause codes may be
extended up to two bytes. Instead of implementing the encoding over and
over and again, let's rather have an encoder function we can call.

- Add an encoder function that can generate single byte and extended
  cause codeds and makes the length decision automatically.

- Use only this function to append cause codes

Change-Id: I71d58fad89502a43532f60717ca022c15c73f8bb
2018-12-08 19:29:34 +00:00
..
protocol gsm29118: add generator functions for GSM29118 messages 2018-12-07 18:35:10 +01:00
a5.h [doc] gea has separate group; A5 is not part of crypto but a5 group 2017-10-17 07:53:02 +02:00
abis_nm.h abis_nm: Introduce abis_nm_dump_foh() 2018-03-17 11:28:31 +00:00
apn.h cosmetic apn: correct whitespace error 2018-12-07 11:53:23 +00:00
bitvec_gsm.h doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
bts_features.h features: define osmo_bts_*_feature() as static inline 2018-03-05 17:37:46 +00:00
comp128.h doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
comp128v23.h doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
gan.h doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
gea.h [doc] gea has separate group; A5 is not part of crypto but a5 group 2017-10-17 07:53:02 +02:00
gsm48.h libosmogsm: (re)introduce gsm48_push_l3hdr() 2018-08-05 23:21:43 +07:00
gsm48_ie.h doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
gsm0341.h [doc] make sure all SMS related code is part of the 'sms' group 2017-10-17 07:53:02 +02:00
gsm0411_smc.h SMS: Add value_string for TS 04.11 CP and RP state 2018-01-24 16:50:59 +01:00
gsm0411_smr.h SMS: Add value_string for TS 04.11 CP and RP state 2018-01-24 16:50:59 +01:00
gsm0411_utils.h [doc] make sure all SMS related code is part of the 'sms' group 2017-10-17 07:53:02 +02:00
gsm0480.h libosmogsm: (re)introduce gsm48_push_l3hdr() 2018-08-05 23:21:43 +07:00
gsm0502.h doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
gsm0808.h gsm0808: add message generator for BSSMAP HANDOVER PERFORMED 2018-12-03 13:54:31 +00:00
gsm0808_utils.h gsm0808: add encoder for cause codes and use it 2018-12-08 19:29:34 +00:00
gsm23003.h gsm23003: Add MME domain name related helper functions 2018-10-28 14:16:18 +01:00
gsm29118.h gsm29118: add generator functions for GSM29118 messages 2018-12-07 18:35:10 +01:00
gsm_utils.h gsm: Deprecate buggy gsm_arfcn2band API and introduce gsm_arfcn2band_rc 2018-11-20 16:56:28 +00:00
gsup.h gsm/gsup.h: cosmetic: use tab for comment alignment 2018-11-06 18:24:49 +07:00
ipa.h re-introduce ipa_ccm_idtag_parse_off() 2018-08-01 17:42:06 +02:00
kasumi.h doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
l1sap.h l1sap: Add fields for higher-precision timing offset values 2018-02-27 17:30:08 +01:00
lapd_core.h doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
lapdm.h doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
meas_rep.h doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
mncc.h use __FILE__, not __BASE_FILE__ 2018-08-20 20:23:18 +00:00
oap.h Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
oap_client.h oap_client: Rename symbols with osmo_ prefix 2018-07-30 12:50:51 +02:00
prim.h doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
rsl.h [doc] Rename "RSL" to "A-bis RSL" in documentation. 2017-10-16 15:32:06 +02:00
rxlev_stat.h doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
sysinfo.h extend osmo_sysinfo_type with missing SYSINFO_TYPE 2017-07-15 22:49:19 +02:00
tlv.h Add msgb_tl_put() helper 2018-12-04 10:26:42 +01:00