libosmocore/src
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
..
codec Bump version: 0.11.0.91-9d4a3-dirty → 0.12.0 2018-07-27 17:31:47 +02:00
coding coding: Always initialize bit counters in gsm0503_pdtch_egprs_decode(). 2018-09-05 16:08:34 +03:00
ctrl ctrl: use #define for TRAP id 2018-12-03 21:42:51 +00:00
gb document unblock-ack vs. signalling in gprs_ns_process_msg() 2018-11-20 11:06:05 +01:00
gsm gsm0808: add encoder for cause codes and use it 2018-12-08 19:29:34 +00:00
pseudotalloc Fix embedded (arm-none-eabi) builds 2018-06-28 10:30:34 +02:00
sim Bump version: 0.10.2.284-bc47-dirty → 0.11.0 2018-05-03 15:47:11 +02:00
vty make 'show rate-counters' show group index 2018-10-29 17:50:30 +01:00
Makefile.am configure.ac: check clock_gettime for glib < 2.17 2018-12-03 13:52:29 +00:00
application.c fix logging talloc ctx: add osmo_init_logging2() 2018-03-28 19:06:16 +02:00
backtrace.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
bitcomp.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
bits.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
bitvec.c Don't call abort() directly, always use osmo_panic() 2018-06-28 10:57:42 +02:00
conv.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
conv_acc.c conv_acc: Our code requires SSSE3, not just SSE3 2017-11-17 11:44:22 +01:00
conv_acc_generic.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
conv_acc_sse.c conv_acc: Our code requires SSSE3, not just SSE3 2017-11-17 11:44:22 +01:00
conv_acc_sse_avx.c conv_acc: Our code requires SSSE3, not just SSE3 2017-11-17 11:44:22 +01:00
conv_acc_sse_impl.h Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
counter.c counters: add osmo_counters_count() returns the amount of counters 2017-12-05 16:06:27 +01:00
crc16.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
crcXXgen.c.tpl Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
fsm.c fsm: fix apidoc of osmo_fsm_state_name() 2018-11-16 17:45:40 +01:00
gsmtap_util.c gsmtap_util: make sure SO_REUSEADDR is applied for GSMTAP 2018-08-24 10:31:18 +00:00
isdnhdlc.c isdnhdlc: Port from kernel to userspace 2018-05-11 21:57:46 +02:00
logging.c Allow log_init() with NULL log_info 2018-12-06 15:52:28 +01:00
logging_gsmtap.c memleak: _gsmtap_raw_output(): free msg in case of vsnprintf failure 2018-02-16 01:35:08 +01:00
logging_syslog.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
loggingrb.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
macaddr.c osmo_get_macaddr: Fix buffer read out of bounds 2018-04-18 08:57:56 +00:00
msgb.c src/msgb.c: avoid using internal talloc API 2018-03-09 04:14:31 +07:00
msgfile.c memleak: osmo_config_list_parse: getline() needs free also on error 2017-11-18 10:30:57 +00:00
panic.c osmo_panic(): Annotate as __attribute__ ((noreturn)) 2018-06-29 20:32:57 +02:00
plugin.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
prbs.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
prim.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
rate_ctr.c rate_ctr: Improve logging 2018-07-21 08:22:57 +00:00
rbtree.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
select.c timerfd_create(): Fix error handling of osmo_fd_register() 2018-10-21 13:46:07 +02:00
sercomm.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
serial.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
signal.c signal: Introduce API osmo_signal_talloc_ctx_init 2018-08-16 21:03:32 +02:00
socket.c Add osmo_sockaddr_in_to_str_and_uint() 2018-12-07 10:33:29 +00:00
stat_item.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
stats.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
stats_statsd.c stats_statsd: Send all stat_items as gauges 2018-10-24 16:37:05 +02:00
strrb.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00
timer.c timer: fixup whitespace issues 2017-12-22 16:48:14 +01:00
timer_clockgettime.c Fix embedded (arm-none-eabi) builds 2018-06-28 10:30:34 +02:00
timer_gettimeofday.c timer: Document osmo_gettimeofday API 2018-03-01 12:33:03 +00:00
utils.c add osmo_str_tolower() and _toupper() with test 2018-09-07 04:28:39 +02:00
write_queue.c Fix/Update copyright notices; Add SPDX annotation 2017-11-13 01:35:12 +09:00