aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranap
AgeCommit message (Collapse)AuthorFilesLines
2016-02-29build: use $top_srcdir instead of ../Neels Hofmeyr1-3/+3
2016-02-29fix build: move local include dir before sys installed oneNeels Hofmeyr1-1/+1
2016-01-05Remove osmo-iuh subdir level from include/ (2/2)Neels Hofmeyr580-580/+580
Make all changes to #include statements and build files.
2016-01-04move asn1 headers to include/ dir (5/5)Neels Hofmeyr1-3/+1
Do all remaining changes necessary for a working build. Add Makefile.am files in include/... subdirs. Remove noinst_HEADERS directives from src/*/Makefile.am, but keep the headers list to feed to move-asn1-header-files.sh. Adjust all #includes in src/*_common.h and elsewhere. In hnbap_common.h, separate the ASN.1 "primitive" headers from the others, and include them without a subdir path, as before.
2016-01-04move asn1 headers to include/ dir (4/5)Neels Hofmeyr579-27038/+0
Move headers.
2016-01-04move asn1 headers to include/ dir (2/5)Neels Hofmeyr930-1305/+1305
Show effects of the new sed step on asn1-generated files, without moving the files.
2016-01-04move asn1 headers to include/ dir (1/5)Neels Hofmeyr1-0/+2
Add move-asn1-header-files.sh to do header file moving and sed'ding the include statements. The file moving part is disabled until a later commit, to make reading the diffs easier. Call shell script from src/{hnbap,ranap,rua}/Makefile.am regen targets. Add convenience regen target to src/Makefile.am, calling regen in the three subdirs. This change is split over several commits to ease diff reading. Subsequent commits show, in steps: - the "unmoved" effect of sed, - header moves, - adjust build system and include statements.
2016-01-03Makefile restructuring; install ranap header filesHarald Welte1-1/+2
2016-01-03Introduce libosmo-ranap.so as shared RANAP libHarald Welte1-3/+3
This shared RANAP library will be used not only by hnbgw, but also by OsmoCSCN, OsmoSGSN.
2015-12-24fix build if depenedencies are in distinct directoriesAlexander Huemer1-1/+1
2015-12-24RANAP: Replace the last remainng TBCD-STRING with OCTET STRINGHarald Welte2-36/+40
in order to work around a bug in asn1c. When we keep the original TBCD-STRING, the APER-encoded PLMNidentity always has an extra leading length byte that the decoder doesn't expect.
2015-12-19ranap ASN.1: Define IMSI as OCTET STRING to work around asn1c bugHarald Welte2-36/+40
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-19ranap: Don't forget ProtocolIE-CointainerPair around ProtocolIE-FieldPairHarald Welte2-3/+3
2015-12-18RANAP: Split FormatInformationParameter / SDUParameterItemHarald Welte9-213/+292
The definition of the above data types as per 3GPP specs results in a SEQUENCE_OF() an anonymous structure, which is slightly inconvenient to use. So let's split the SEQUENCE OF part and the actual definition of the item in separate types.
2015-12-16One further RANAP hacking sessionHarald Welte174-2238/+4619
This is not development, it is random trial and error hacking. I really hate the fact that we have no useful asn.1 code generator and need to work with hacks like asn1tostruct.py and asn1c without information object classes :/ This commit is a one-day-long iteration of trial+error, manually editing and adding the .asn source of RANAP until we get something that in the end at least compiles and links. Do I trust the resulting code? No. But we have no alternative :(
2015-12-16RANAP: Add more types/IEs to RANAP-PDU.asn and re-generate CHarald Welte83-25/+6008
As asn1c cannot understand information object classes, we cannot compile RANAP-PDU-Contents.asn but instead need to manually add the respective infrmation elements to RANAP-PDU.asn.
2015-12-16Re-add the 'regen' targets lost in the automake transitionHarald Welte1-0/+9
This might need a lot of cleanup for out-of-source-tree builds and the like, but let's not spend time on this now. The old Makefile also didn't support that. But loosing the ability to regenerate the C source is not an option either.
2015-12-16rename ASN_MODULE_FILES to ASN_MODULE_SOURCESHarald Welte1-2/+2
... brings us closer to the Makefile.am.sampl generated by asn1c, facilitating copy+paste.
2015-12-15Autotoolize the buildDaniel Willmann1-37/+7
Use Autoconf/make for building and autotest for tests
2015-09-10ranap: Add more manual definitions to RANAP-PDUsHarald Welte49-2/+4678
It seems that individual IEs contain nested containers, and asn1c is not generating code for that unless we help it by some hand-crafted additional definitions. *sigh*
2015-09-10Cleanups (rename 'asn1c' to 'hnbap', Makefile sanitizing)Harald Welte1-1/+2
2015-09-10add asn1c generated C source for RANAP (and Makefile to regenerate)Harald Welte993-0/+90548