libosmocore/include/osmocom
Neels Hofmeyr 7dde1f40a2 add gsm23236: MSC pooling: TMSI and NRI utility functions
These utilities will be used by osmo-bsc to determine the Network Resource
Indicator seen in the TMSI, and (potentially) by osmo-msc to compose a TMSI
with a specific NRI, for osmo-bsc's load balancing between several MSCs.

Add utility functions to:
- extract an NRI value from a TMSI.
- overwrite the NRI value in a TMSI.
- limit an NRI in a (random) TMSI to a given list of ranges.
- add NRI value ranges to a list.
- remove them from a list.
- match NRI value (range) to a list.
- parse NRI values from string, for VTY.
- common VTY functionality of adding/removing NRI values from argv.

Add C tests for the above.

Why we need public API for NRI ranges: In osmo-bsc alone, we need the same NRI
API twice, 1: to manage/list NRI value ranges per-MSC, and 2: to manage/list
NULL-NRI values. If we also consider (potentially) adding NRI support to
osmo-msc, we need the same API twice again there. Hence it is useful to define
re-used API up here in libosmocore.

Related: OS#3682
Change-Id: Icb57a2dd9323c7ea11b34003eccc7e68a0247bf5
2020-06-10 14:20:49 +02:00
..
codec codec: Add functions for AMR s->d bits and d->s bits 2020-05-14 14:51:22 +02:00
coding gsm0503_parity: Fix compilation with gcc-10 2020-04-20 18:18:50 +02:00
core api doc: clarify OSMO_NAME_C_IMPL() required FUNC_BUF signature 2020-05-26 22:30:49 +02:00
crypt Use define for key buffers 2018-12-20 09:51:02 +00:00
ctrl Add CTRL port number for osmo-mgw 2020-03-08 10:42:51 +01:00
gprs NS: replace use of gprs_nsvc_create() with gprs_nsvc_crate2() 2020-06-08 21:16:54 +02:00
gsm add gsm23236: MSC pooling: TMSI and NRI utility functions 2020-06-10 14:20:49 +02:00
sim sim: When decoding SW, take application specific SW into account 2020-05-05 19:41:12 +00:00
usb usb: Add osmo_libusb_find_open_claim() all-in-one API 2020-05-12 05:43:21 +00:00
vty enable vty xml dumping to stdout 2020-05-18 13:55:08 +02:00