Osmocom code for the Iuh interface (HNBAP, RUA, RANAP) https://osmocom.org/projects/libosmo-ranap
 
 
 
 
Go to file
Harald Welte b2daa0d803 ranap ASN.1: Define IMSI as OCTET STRING to work around asn1c bug
When IMSI is a TBCD-STRING type, and TBCD-STRING is defined as OCTET
STRING, we end up encoding the IMSI the wrong way.  I don't knwo why
that is, but changing it fixed the problem, as described below:

before this commit:
00 17                           PeranentNAS-UE-ID
40                              criticality ignore
0a                              (length)
00                              presence = IMSI
08                              BUG: why the additional length field?
46 23 91 34 70 77 80 f3         IMSI (643219430777083)

after this commit:
00 17                           PeranentNAS-UE-ID
40                              criticality ignore
09                              (length)
50                              presence = IMSI
46 23 91 34 70 77 80 f3         IMSI (643219430777083)
2015-12-19 13:05:19 +01:00
asn1 ranap ASN.1: Define IMSI as OCTET STRING to work around asn1c bug 2015-12-19 13:05:19 +01:00
pcap respond to HNBAP UE REGISTER REQ withe correspnding ACCEPT 2015-09-11 01:36:44 +02:00
specs add more relevant/related specs 2015-10-07 15:59:45 +02:00
src ranap ASN.1: Define IMSI as OCTET STRING to work around asn1c bug 2015-12-19 13:05:19 +01:00
.gitignore Make .gitignore aware of autoconf artefacts 2015-12-16 13:17:22 +01:00
Makefile.am Autotoolize the build 2015-12-15 15:10:31 +01:00
README Add README file about current state 2015-09-10 11:01:59 +02:00
configure.ac Autotoolize the build 2015-12-15 15:10:31 +01:00

README

Osmocom Iuh expermientation code
(C) 2015 by Harald Welte <laforge@gnumonks.org>

This code is a playground for implementing something along the lines of
the an Iuh interface of a HNB-GW.  The intent is to later integrate this
with OsmoNITB + OsmoSGSN, in order to have 3G capable 'network in the
box'.

h1. Building

Just go to the 'src/' directory and type make.  As external library
dependencies, you will need
* libosmocore from git://git.osmocom.org/libosmocore
* libasn1c from git://git.osmocom.org/libasn1c

h1. Using

there's not much to use yet.  But if you run the 'hnbgw' executable,
it will open a listening SCTP socket and wait for incoming Iuh
connections.  It will accept any HNB-REGITER-REQUEST, so the homeNodeB
should start to establish RUA and RANAP (which we haven't implemented
yet).

h1. Regenerating C code from ASN.1 source

In order to re-generate the C source code from the ASN.1 source,
you will need a modified asn1c which has the following features:
* APER support (the patch from Eurecom, or its forward-ported version
  from the aper branch of git://git.osmocom.org/asn1c)
* support for prefixing the generated types (aper-prefix branch of
  git://git.osmocom.org/asn1c)