osmo-iuh/src/tests
Neels Hofmeyr 0f88c11009 migrate osmo-hnbgw to libosmo-sigtran's SCCP/M3UA
libosmo-sigtran now has a "proper" SCCP/M3UA stack, so we can make our hnb-gw
3GPP compliant by switching from the old SUA code to the new universal SCCP
user API with support for (currently) M3UA and SUA.

Main changes:

Use one cn_link to STP: We will connect to the core network using an (Osmo)STP
instance that routes to MSC and SGSN, so we want one SCCP link instead of two.
The only difference between IuCS and IuPS is a different remote osmo_sccp_addr.

This has various effects through the messaging code; the patch is a bit larger
than I would like, but it is hard to separate out truly independent smaller
changes.

CS or PS domain was previously flagged in the separate cn_link, as ctx pointer
for two separate sccp_sap_up()s. Now there's just one such ctx, so determine
is_ps from the RANAP Domain Indicator, or from the conn's hnbgw_context_map:

- Add is_ps to context_map_alloc_by_hnb().
- To find a matching context, the RUA ID alone is no longer sufficient, also
  match is_ps (possible optimization todo: separate lists).

We would send separate CS or PS Reset messages based on the cn_link, instead
send both CS and PS Reset at the same time for the single cn_link. This could
be adjusted to detect presence of MSC or SGSN instead.

Pending: adjust the VTY config to reflect that there is only one remote
address. Place a TODO comment for that.

Smaller changes:

rua_to_scu(): populate called and calling addresses for N_CONNECT and
N_UNITDATA.

Remove DSUA.

Don't build dummy_cn, which is still implemented on SUA. Mark todo to maybe
re-include it based on M3UA later.

In hnbgw_cnlink, place sccp related items in a separate sub-struct.

Do not keep an llist of cn_links, just have the one. Remove iteration and list
management.

Change jenkins script to build libosmo-sccp master.

Patch-by: hwelte, nhofmeyr
Change-Id: I8ac15fa2fd25bedb26297177e416976a5389b573
2017-07-05 13:04:15 +02:00
..
Makefile.am migrate osmo-hnbgw to libosmo-sigtran's SCCP/M3UA 2017-07-05 13:04:15 +02:00
dummy_cn_sua.c build: move headers to include/osmocom/* 2016-09-09 06:43:32 +00:00
hnb-test-layers.h hnb-test: receive Paging, add CL rx 2016-04-19 18:19:31 +02:00
hnb-test-ranap.c hnb-test: receive Paging, add CL rx 2016-04-19 18:19:31 +02:00
hnb-test-rua.c build: fix ranap gen, use same for gen hnbap and rua gen 2016-09-09 06:43:31 +00:00
hnb-test.c log VTY telnet bind only once 2016-09-26 22:44:18 +02:00
hnb-test.h hnb-test: make hnb-gw address configurable 2016-02-29 13:33:44 +01:00
test-helpers.c ranap_parse_lai(): Fix wrong BCD decoding for MNC. Add test. 2016-04-06 18:55:14 +02:00
test-helpers.err tests: don't log filename nor color in unit tests 2016-09-09 06:43:30 +00:00
test-helpers.ok ranap_parse_lai(): Fix wrong BCD decoding for MNC. Add test. 2016-04-06 18:55:14 +02:00
test-hnbap.c build: fix ranap gen, use same for gen hnbap and rua gen 2016-09-09 06:43:31 +00:00
test-hnbap.ok Autotoolize the build 2015-12-15 15:10:31 +01:00
test-ranap.c fix msgb talloc context initialization 2016-10-13 04:17:40 +02:00
test-ranap.ok new_rab_par_voice(): add bitrate params, call with (6700, 12200) 2017-02-02 04:58:54 +01:00
test_common.c migrate osmo-hnbgw to libosmo-sigtran's SCCP/M3UA 2017-07-05 13:04:15 +02:00
test_common.h factor out some common shared test init code 2015-12-25 15:34:22 +01:00
testsuite.at ranap_parse_lai(): Fix wrong BCD decoding for MNC. Add test. 2016-04-06 18:55:14 +02:00