osmo-iuh/src
Neels Hofmeyr aae68b2791 move openbsc.git's iu.h, iu.c, iu_vty.c here as iu_client
To help split openbsc.git to separate MSC and SGSN repositories, place the
common Iu interface related code here in libosmo-ranap. Also apply various
improvements while moving (from intermittent code review).

The code depends on libosmo-ranap tightly. One reason to want this separate
from libosmo-ranap could be that it uses libosmo-sigtran, accepting an sccp
instance. However, including in libosmo-ranap is the simplest way to go. The
osmo-iuh build depends on libosmo-sigtran anyway because of OsmoHNBGW, and all
current users of libosmo-ranap also naturally link libosmo-sigtran already.

Apply prefix ranap_iu_ and RANAP_IU_ to allow smooth transition from the
openbsc.git iu_ to the libranap ranap_iu_ implementations.

Prune unneeded #include statements.

Instead of sccp_addr, store an rnc pointer in the ue_conn_ctx. To facilitate,
also:
- Move iu_rnc struct to iu_client.h (as ranap_iu_rnc).
- Instead of sccp_addr, pass rnc to ue_conn_ctx_alloc().
- Pass a local struct new_ue_conn_ctx containing the sccp_addr and conn_id up
  the RANAP handling stack in case of an InitialUE message.
- Separate the InitialUE message handling from cn_ranap_handle_co(), by moving
  to new and separate cn_ranap_handle_co_initial(), so we can still pass a
  looked-up ue_conn_ctx to all other cn_ranap_handle_co() code paths.
- Allocate the ue_conn_ctx only in ranap_handle_co_initial_ue(), not as early
  as before.
Note that we are not actually ever using the rnc pointer now present in
ue_conn_ctx. It could be used for more concise paging, to first page only the
RNC where we last saw the subscriber. So far we page all matching LAC/RACs.

Tweak error logging: use __func__ instead of writing the function names as
string constants.

In iu_client_vty.c:
- Move the asn.1 debug commands from logging over to the iu node. They are not
  specific to the logging target. They could qualify for an entirely separate
  'asn1' root node, but for simplicity place under 'iu'.
- Add the 'asn1' commands to ranap_iu_vty_config_write(), so far missing.
- remove the legacy "net." from a VTY error message, it is not known which name
  the parent node of 'iu' has.

Depends: libosmo-sccp I85b46269dbe7909e52873ace3f720f6292a4516c,
	 libosmo-sccp Ie1aedd7894acd69ddc887cd65a8a0df4b888838c
Change-Id: I6a3f7ad15be03fb94689b4af6ccfa828c25f45c0
2017-07-31 13:20:00 +02:00
..
hnbap build: cosmetic: hnbap: undup asn1 src path 2016-09-09 06:43:32 +00:00
ranap build: use $top_srcdir instead of ../ 2016-02-29 14:28:00 +01:00
rua build: use $top_srcdir instead of ../ 2016-02-29 14:28:00 +01:00
tests migrate osmo-hnbgw to libosmo-sigtran's SCCP/M3UA 2017-07-05 13:04:15 +02:00
.gitignore build: fix ranap gen, use same for gen hnbap and rua gen 2016-09-09 06:43:31 +00:00
Makefile.am move openbsc.git's iu.h, iu.c, iu_vty.c here as iu_client 2017-07-31 13:20:00 +02:00
context_map.c migrate osmo-hnbgw to libosmo-sigtran's SCCP/M3UA 2017-07-05 13:04:15 +02:00
hnbap_common.c build: move headers to include/osmocom/* 2016-09-09 06:43:32 +00:00
hnbgw.c migrate osmo-hnbgw to libosmo-sigtran's SCCP/M3UA 2017-07-05 13:04:15 +02:00
hnbgw_cn.c cn unitdata: verify correct remote addr 2017-07-27 15:49:25 +00:00
hnbgw_hnbap.c fix error rc in various ASN.1 decoding functions 2016-11-27 18:27:33 +00:00
hnbgw_ranap.c fix error rc in various ASN.1 decoding functions 2016-11-27 18:27:33 +00:00
hnbgw_rua.c rua_to_scu(): add debug log for calling/called addr 2017-07-05 13:04:16 +02:00
hnbgw_vty.c hnbgw: parameterize IuCS and IuPS ips and ports: add vty cmds 2016-10-27 14:01:25 +02:00
iu_client.c move openbsc.git's iu.h, iu.c, iu_vty.c here as iu_client 2017-07-31 13:20:00 +02:00
iu_client_vty.c move openbsc.git's iu.h, iu.c, iu_vty.c here as iu_client 2017-07-31 13:20:00 +02:00
iu_helpers.c merge (+rename) iu_helpers.c into libosmo-ranap 2016-01-03 16:31:31 +01:00
ranap_common.c set RANAP msgb headroom to 512 (times two) 2017-07-06 13:53:42 +00:00
ranap_common_cn.c fix error rc in various ASN.1 decoding functions 2016-11-27 18:27:33 +00:00
ranap_msg_factory.c new_rab_par_voice(): add bitrate params, call with (6700, 12200) 2017-02-02 04:58:54 +01:00
regen-common-includes.sh ranap: Add more manual definitions to RANAP-PDUs 2015-09-10 21:18:16 +02:00
rua_common.c build: move headers to include/osmocom/* 2016-09-09 06:43:32 +00:00
rua_msg_factory.c build: move headers to include/osmocom/* 2016-09-09 06:43:32 +00:00