blob: f24f67655114abeca553be857f7abe99631b3c34 [file] [log] [blame]
Neels Hofmeyr6682a372015-12-21 17:12:22 +01001Osmocom Iuh experimentation code
Harald Welteb908f632015-09-10 11:01:59 +02002(C) 2015 by Harald Welte <laforge@gnumonks.org>
3
4This code is a playground for implementing something along the lines of
5the an Iuh interface of a HNB-GW. The intent is to later integrate this
6with OsmoNITB + OsmoSGSN, in order to have 3G capable 'network in the
7box'.
8
9h1. Building
10
Neels Hofmeyr6682a372015-12-21 17:12:22 +010011As external library dependencies, you will need
Harald Welteb908f632015-09-10 11:01:59 +020012* libosmocore from git://git.osmocom.org/libosmocore
13* libasn1c from git://git.osmocom.org/libasn1c
Neels Hofmeyr6682a372015-12-21 17:12:22 +010014* libsctp-dev (this is the package name in Debian)
Harald Welte04861ef2016-04-09 20:29:37 +020015* libosmo-netif from git://git.osmocom.org/libosmo-netif (sysmocom/sctp branch)
16* libosmo-sccp from git://git.osmocom.org/libosmo-sccp (sysmocom/iu branch)
Neels Hofmeyr6682a372015-12-21 17:12:22 +010017
18To bootstrap the build, in the root directory, run:
19
20 autoreconf --install
21
22After that, run the usual
23
24 ./configure [options]
25 make
26 [sudo] make install
Harald Welteb908f632015-09-10 11:01:59 +020027
28h1. Using
29
Neels Hofmeyr6682a372015-12-21 17:12:22 +010030Note: osmo-iuh is in active development (December 2015, January 2016) so below
31statements may outdate rapidly.
32
Harald Welteb908f632015-09-10 11:01:59 +020033there's not much to use yet. But if you run the 'hnbgw' executable,
34it will open a listening SCTP socket and wait for incoming Iuh
Neels Hofmeyr6682a372015-12-21 17:12:22 +010035connections. It will accept any HNB-REGISTER-REQUEST, so the homeNodeB
Harald Welteb908f632015-09-10 11:01:59 +020036should start to establish RUA and RANAP (which we haven't implemented
37yet).
38
39h1. Regenerating C code from ASN.1 source
40
41In order to re-generate the C source code from the ASN.1 source,
42you will need a modified asn1c which has the following features:
43* APER support (the patch from Eurecom, or its forward-ported version
44 from the aper branch of git://git.osmocom.org/asn1c)
45* support for prefixing the generated types (aper-prefix branch of
46 git://git.osmocom.org/asn1c)