Neels Hofmeyr
998726054e
hnb-test: on auth response, make it seq nr 2
2016-04-06 18:58:37 +02:00
Neels Hofmeyr
ad00d2bee5
hnb-test: rx dtap: log message size
2016-04-06 18:58:37 +02:00
Neels Hofmeyr
8c2b4ec6d6
hnb-test: don't segfault when msgb has no l3
2016-04-06 18:58:37 +02:00
Neels Hofmeyr
7c28f6f438
hnb-test: use gsm48_hdr_pdisc() and gsm48_hdr_msg_type() instead of bitmasks
2016-04-06 18:58:36 +02:00
Neels Hofmeyr
d8013d1f8c
ranap_parse_lai(): Fix wrong BCD decoding for MNC. Add test.
...
Fix the ranap_parse_lai() part that decodes the MNC: place the *10 at the
proper MNC digit.
Add a comprehensive test for ranap_parse_lai() in test-helpers.c. Because
ranap_parse_lai() logs things, add test_common.c to test-helpers compilation
and an expected stderr output to test-helpers' testsuite.at def.
2016-04-06 18:55:14 +02:00
Neels Hofmeyr
e25faa8966
hnb-test: print sent bytes
2016-03-30 14:10:39 +02:00
Neels Hofmeyr
3588810cb7
hnb-test: answer MM Authentication Request
...
With hardcoded SRES matching the hardcoded auth tuple in openbsc's
sysmocom/iu branch for testing.
2016-03-30 14:10:39 +02:00
Neels Hofmeyr
5dbb7b2c3f
hnb-test: print LU Reject
2016-03-30 14:10:39 +02:00
Neels Hofmeyr
d4598fa453
hnb-test: factor out MM header parsing
2016-03-30 14:10:39 +02:00
Neels Hofmeyr
c04eb533e1
hnb-test: send TMSI REALLOC COMPL only when LU ACC sent a TMSI
2016-03-04 12:40:53 +01:00
Neels Hofmeyr
92b13bc875
fix build: move local include dir before sys installed one
2016-02-29 14:22:21 +01:00
Neels Hofmeyr
5f9be1ed5e
hnb-test: make hnb-gw address configurable
2016-02-29 13:33:44 +01:00
Neels Hofmeyr
ae93712977
hnb-test: add messages leading to Location Update Accept
...
But note, authentication is not there yet; the CSCN should initiate that.
2016-02-29 10:02:10 +01:00
Neels Hofmeyr
5c1cc8cce4
hnb-test: replace some hex vals with GSM48_* constants
2016-02-29 10:02:10 +01:00
Neels Hofmeyr
c164a97bc6
hnb-test-ranap.c: fix missing return
2016-02-29 10:02:10 +01:00
Neels Hofmeyr
e1f709fa51
hnb-test fix id resp
2016-02-29 10:02:10 +01:00
Neels Hofmeyr
860a12977c
hnb-test: attempt to reply to an MM Identity Request
2016-02-29 10:02:10 +01:00
Neels Hofmeyr
b984f36f58
hnb-test: decode NAS pdu when receiving RUA from CN
2016-02-29 10:02:10 +01:00
Neels Hofmeyr
32828708b2
hnb-test: tweak comment
2016-02-29 10:02:10 +01:00
Neels Hofmeyr
7b81128d44
hnb-test: comment on gen_initue_lu() IMSI
2016-02-29 10:02:10 +01:00
Neels Hofmeyr
0968a58836
hnb-test: some rua rx printfs
2016-02-24 20:51:04 +01:00
Neels Hofmeyr
a0d21479a7
osmo-hnbgw, hnb-test: allow configuring VTY address
2016-02-24 20:51:04 +01:00
Neels Hofmeyr
8f67f8e83c
test-ranap.ok: fix expectations after commit 49f99cd26
...
49f99cd26: 'ranap_msg_factory: Use network byte order for 16 bit mode_versions field'
2016-02-20 15:23:12 +01:00
Neels Hofmeyr
6a62e549cd
hnb-test: fix wrong domain indicator in ranap.
...
ranap_new_msg_initial_ue() called with wrong argument order.
2016-02-18 01:30:42 +01:00
Neels Hofmeyr
b9f46a7434
dummy_cn_sua: missing include
2016-02-18 01:30:42 +01:00
Daniel Willmann
8592716116
hnb-test: Increment UE conn_id for each new loc_upd_req
2016-01-14 15:36:49 +01:00
Daniel Willmann
b39bad1281
dummy_cn: Respond to initial UE message with empty ranap message
2016-01-14 15:36:12 +01:00
Daniel Willmann
11e912aa6e
Free ies struct after use in tests and hnbgw_cn/rua
2016-01-07 13:19:30 +01:00
Daniel Willmann
b02d77c2c1
tests/dummy_cn_sua.c: Fix ranap_common_cn include
2016-01-07 12:59:21 +01:00
Harald Welte
5c6bd5104e
make ranap_common.cn.[ch] part of libosmo-ranap
2016-01-06 19:53:44 +01:00
Harald Welte
8fa5d558fb
ranap_common_cn.c: Use call-backs rather than function calls
...
When we use call-back function pointers with ranap_cn_rx_c{o,l}()
functions, we can (soon) migrate it into libosmo-ranap without an
application having to provide 'magic symbols' that the library expects
to be able to call.
2016-01-06 19:44:36 +01:00
Neels Hofmeyr
96979af054
move ranap_*.h,iu_helpers.h to include/osmocom/ranap/
...
A bit hacky: the ranap_ies_defs.h is generated together with the
ranap_encoder.c and ranap_decoder.c. See comments in src/Makefile.am and
include/osmocom/ranap/Makefile.am.
2016-01-05 15:37:23 +01:00
Neels Hofmeyr
f193c221cf
Fix -I in tests/ (broken by include dir changes)
2016-01-05 12:54:25 +01:00
Harald Welte
b66c5d0e62
move tests/rua_helper.[ch] to src directory
...
The RUA Helper is not test-specific.
2016-01-03 18:04:28 +01:00
Harald Welte
1f6bd7b51c
add test-ranap to testsuite
2016-01-03 18:01:05 +01:00
Harald Welte
06bc548cee
steps towards making 'make distcheck' work
...
'make distcheck' checks for out-of-source-tree builds and whether
the distribution tarball includes all source files. This commit
fixes many problems, except some remaining with src/test still
to-be-fixd.
2016-01-03 17:54:24 +01:00
Harald Welte
e8a4dc6b70
move asn1helpers.[ch] to libasn1c
...
Those helper functions are not specific to osmo-iuh, so I moved
them to libasn1c, which also resolves the problem that libosmo-ranap
is depending on those helpers (and subsequently external programs
linking libosmo-ranap will need to have access to the helpers)
2016-01-03 17:25:57 +01:00
Harald Welte
bdf3fd1dc4
don't include hnbgw.h from ranap header files
...
To use libosmo-ranap from outside of this repository, we need to
eliminated all dependencies to local header files
2016-01-03 17:25:51 +01:00
Harald Welte
056984fab1
merge (+rename) iu_helpers.c into libosmo-ranap
2016-01-03 16:31:31 +01:00
Harald Welte
0322feb68c
Introduce libosmo-ranap.so as shared RANAP lib
...
This shared RANAP library will be used not only by hnbgw, but also by
OsmoCSCN, OsmoSGSN.
2016-01-03 15:39:11 +01:00
Harald Welte
a575ebfd0f
test-ranap: Call new RANAP encoder functions from ranap_msg_factory.c
2016-01-01 16:47:13 +01:00
Harald Welte
4928797807
more verbose logging in various places
2015-12-29 19:00:35 +01:00
Harald Welte
7bccc98cf8
ranap_common_cn: Handle non-terminal 'outcome' for RAB-ASS.resp
2015-12-28 14:44:49 +01:00
Harald Welte
a31e63ab39
ranap_common_cn: Fix typo
2015-12-28 13:19:35 +01:00
Harald Welte
4e2783fc0f
Dummy CN: Handle RANAP payload of DISCONNET.ind
...
In case of RANAP Release Complete, the DISCONNECT contains RANAP payload that
we'd like to parse and handle.
2015-12-26 23:49:52 +01:00
Harald Welte
0744d6f63e
dummy CN: Handle Iu Release Request (respond with Release Command)
2015-12-26 23:45:18 +01:00
Harald Welte
1be24f1b0a
dummy_cn_sua.c: Fix syntax errors
2015-12-26 23:44:28 +01:00
Harald Welte
2bc20f85c1
Dummy CN: Create a per-UE connection context and resolve it.
2015-12-26 23:43:48 +01:00
Harald Welte
2ebe42fed7
properly resolve the cnlink from SUA signalling link
2015-12-26 23:38:38 +01:00
Harald Welte
cee5a2878b
don't double-free msgb's in rua_helper and ranap_common_cn
2015-12-26 08:43:31 +01:00