osmo-iuh/src/tests
Neels Hofmeyr 4470f93074 hnb-test: simplify crossing message layers
Adding the Security Mode Control command would break the current scheme of
callbacks across layers. This brought to my attention that the scheme is indeed
unnecessarily complex, so simplify it.

Instead of passing callbacks, call functions directly. Add hnb-test-layers.h to
declare those functions that cross from main to rua, to ranap and back to main
and remove the callback type definitions.

Instead of copying the NAS PDU to a newly allocated msgb, pass the data and len
directly to hnb_test_nas_rx_dtap().

Instead of repeatedly checking the gsm48_hdr length, just pass the struct
gsm48_hdr* and len around and assume the basic header length has been checked.

In some places, rename 'length' to 'len' for cosmetic consistency.
2016-04-19 01:32:25 +02:00
..
Makefile.am ranap_parse_lai(): Fix wrong BCD decoding for MNC. Add test. 2016-04-06 18:55:14 +02:00
dummy_cn_sua.c hnb-test: some rua rx printfs 2016-02-24 20:51:04 +01:00
hnb-test-layers.h hnb-test: simplify crossing message layers 2016-04-19 01:32:25 +02:00
hnb-test-ranap.c hnb-test: simplify crossing message layers 2016-04-19 01:32:25 +02:00
hnb-test-rua.c hnb-test: simplify crossing message layers 2016-04-19 01:32:25 +02:00
hnb-test.c hnb-test: simplify crossing message layers 2016-04-19 01:32:25 +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 ranap_parse_lai(): Fix wrong BCD decoding for MNC. Add test. 2016-04-06 18:55:14 +02: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 Free ies struct after use in tests and hnbgw_cn/rua 2016-01-07 13:19:30 +01:00
test-hnbap.ok Autotoolize the build 2015-12-15 15:10:31 +01:00
test-ranap.c move ranap_*.h,iu_helpers.h to include/osmocom/ranap/ 2016-01-05 15:37:23 +01:00
test-ranap.ok test-ranap.ok: fix expectations after commit 49f99cd26 2016-02-20 15:23:12 +01:00
test_common.c don't include hnbgw.h from ranap header files 2016-01-03 17:25:51 +01: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