osmo-iuh/src
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
..
hnbap build: use $top_srcdir instead of ../ 2016-02-29 14:28:00 +01: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 hnb-test: simplify crossing message layers 2016-04-19 01:32:25 +02:00
.gitignore update .gitignore 2015-08-31 09:58:12 +02:00
Makefile.am Move sccp_helpers.[hc] to libosmo-sigtran 2016-03-30 14:10:39 +02:00
context_map.c context_map: Have one mapping per UE/cnlink combination 2016-01-14 15:10:05 +01:00
context_map.h Add a context mapper to map RUA ContextIDs <-> SUA Connection IDs 2015-12-23 22:13:53 +01:00
hnbap_common.c hnbap_common.c: Fix include path 2016-01-05 14:24:08 +01:00
hnbap_common.h Remove osmo-iuh subdir level from include/ (2/2) 2016-01-05 12:00:06 +01:00
hnbgw.c hnbgw: set default RNC ID to 23 (for testing) 2016-04-06 18:58:36 +02:00
hnbgw.h hnbgw: Use libosmo-netif for SCCP connection handling 2016-01-07 11:01:12 +01:00
hnbgw_cn.c hnbgw_cn.c: add #include for inet_ntoa() 2016-04-15 22:47:42 +02:00
hnbgw_cn.h hnbgw: Mark ps_cnlink as ps 2016-01-14 15:35:11 +01:00
hnbgw_hnbap.c Revert "hnbgw_hnbap: Zero IEs_t before decode is called" 2016-01-12 10:14:11 +01:00
hnbgw_hnbap.h first compiling code (untested) 2015-08-30 12:20:09 +02:00
hnbgw_ranap.c move ranap_*.h,iu_helpers.h to include/osmocom/ranap/ 2016-01-05 15:37:23 +01:00
hnbgw_ranap.h first dispatch of RUA into RANAP 2015-09-10 22:32:15 +02:00
hnbgw_rua.c Free ies struct after use in tests and hnbgw_cn/rua 2016-01-07 13:19:30 +01:00
hnbgw_rua.h Remove osmo-iuh subdir level from include/ (2/2) 2016-01-05 12:00:06 +01:00
iu_common.h add iu_common.h using C structs to describe PER encoded Iu headers 2015-08-30 16:55:43 +02:00
iu_helpers.c merge (+rename) iu_helpers.c into libosmo-ranap 2016-01-03 16:31:31 +01:00
ranap_common.c ranap_parse_lai(): Fix wrong BCD decoding for MNC. Add test. 2016-04-06 18:55:14 +02:00
ranap_common_cn.c ranap_common_cn: Free structs allocated through ranap_cn_rx_co() 2016-01-07 14:33:00 +01:00
ranap_msg_factory.c ranap_msg_factory: Use network byte order for 16 bit mode_versions field 2016-02-18 13:21:35 +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 don't return undefined strings from rua_cause_str() 2015-12-25 10:17:17 +01:00
rua_common.h Remove osmo-iuh subdir level from include/ (2/2) 2016-01-05 12:00:06 +01:00
rua_msg_factory.c move tests/rua_helper.[ch] to src directory 2016-01-03 18:04:28 +01:00
rua_msg_factory.h move tests/rua_helper.[ch] to src directory 2016-01-03 18:04:28 +01:00