Commit Graph

639 Commits

Author SHA1 Message Date
Harald Welte d523a69dbe import ans1c generated C sources for HNBAP
TODO: split the HNBAP specific code from the core runtime code
and use libosmo-asn1c instead.  This is required as we will be
dealing with multiple ASN.1 data formats from within a single
executable.
2015-08-30 23:11:19 +02:00
Harald Welte 11e0306a3a add .gitignore for src directory 2015-08-30 23:10:13 +02:00
Harald Welte 76427b753b implement HNBAP_DEBUG via osmocore DEBUGP 2015-08-30 23:08:48 +02:00
Harald Welte 339b8e2a77 successful has only one 'l' (copy+paste error) 2015-08-30 23:08:32 +02:00
Harald Welte 4d42551466 actually build + link the asn1c generated HNBAP ASN.1 2015-08-30 23:04:23 +02:00
Harald Welte 27f9c4ab4b migration of code from ffasn1c to asn1c + asn1tostruct.py 2015-08-30 22:48:59 +02:00
Harald Welte 547b76c5b4 asn1tostruct.py: Don't claim copyright on auto-generated code
It is a legal impossibility to claim copyright on something that
has been automatically generated by a computer program.
2015-08-30 22:48:59 +02:00
Harald Welte 245daf9422 import ans1tostruct.py from Eurecom OpenAirInterface 2015-08-30 22:48:59 +02:00
Harald Welte 1c2b568d79 HNBAP: Remove HNBRegisterAccept / HNBRegisterResposne naming inconsistency
A HNBRegisterAccept message should not contain HNBRegisterResponse IEs

This spec inconsistency is confusing the asn1tostruct.py code generator,
so let's remove it.
2015-08-30 20:11:50 +02:00
Harald Welte 8d6026742f generate ASN.1 structures for each message withotu iformation object class
this is done semi-automatically using the asn1msgs.pl script.
2015-08-30 19:57:43 +02:00
Harald Welte 96ec96e3b4 asn1 syntax fixup for ffasn1c 2015-08-30 19:10:58 +02:00
Harald Welte 3bd59c9d59 Add Procedure Codes and IEI constants to CommonDataTypes
... this is what's required for asn1c to generate nice C language
enums for it.  Conversion was performed semi-automatically by use
of asn1enum.pl
2015-08-30 19:09:55 +02:00
Harald Welte f24cabee15 RANAP: Further qualify Constants. They're not just integer 2015-08-30 19:03:57 +02:00
Harald Welte 2facbada27 remove ffasn1c generated hnbap.[ch] from source
we want to use asn1c instead.
2015-08-30 19:03:37 +02:00
Harald Welte ba404f9e48 RUA ASN.1 Rewrite to avoid information object classes
If we avoid using Information Object Classes in the IE definitions
(which are only used for Extension Containers), then we can compile the
ASN.1 source using Lev Walkin's asn1c.
2015-08-30 17:46:36 +02:00
Harald Welte 4f119e58e9 RANAP ASN.1 Rewrite to avoid information object classes
If we avoid using Information Object Classes in the IE definitions
(which are only used for Extension Containers), then we can compile the
ASN.1 source using Lev Walkin's asn1c.
2015-08-30 17:46:03 +02:00
Harald Welte 355d9513c0 HNBAP ASN.1: Rewrite to avoid information object classes
If we avoid using Information Object Classes in the IE definitions
(which are only used for Extension Containers), then we can compile the
ASN.1 source using Lev Walkin's asn1c.
2015-08-30 17:11:20 +02:00
Harald Welte ee77cff224 hnbgw: Actually link in + call ffasn1c runtime library 2015-08-30 16:57:53 +02:00
Harald Welte c3fa0b0e43 add iu_common.h using C structs to describe PER encoded Iu headers 2015-08-30 16:55:43 +02:00
Harald Welte b866659991 ADD IU-Common.asn as an attempt to unify the message parsing 2015-08-30 14:28:10 +02:00
Harald Welte 30afef3073 move asn.1 helper functions to asn1helpers.[ch] 2015-08-30 12:28:29 +02:00
Harald Welte b3dae30e5e first compiling code (untested) 2015-08-30 12:20:09 +02:00
Harald Welte ac0435b691 fixup ffasn1 2015-08-30 12:19:54 +02:00
Harald Welte 1458c09583 give asn1c generated files more useful names 2015-08-30 11:51:06 +02:00
Harald Welte a2e6a7a05e further tiny steps of progress on the hnb-gw infrastructure 2015-08-29 21:47:39 +02:00
Harald Welte 6392710f84 add gitignore file 2015-08-29 20:35:44 +02:00
Harald Welte e180c16ba1 Add generated code for RUA using eurecom asn1tostruct.py 2015-08-29 20:34:40 +02:00
Harald Welte c0e8e5c567 add ffasn1c generated code for HNBAP, RANAP and RUA 2015-08-29 20:34:21 +02:00
Harald Welte ba43de4bf6 very early intial code snippets for handling HNBAP in a HNB-GW 2015-08-29 20:33:16 +02:00
Harald Welte 2e00202f58 some more textual notes regarding the specs 2015-08-29 20:33:02 +02:00
Harald Welte 243b00b306 add various management / OML related specs (32.57x, 32.58x, 32.82x) 2015-08-29 16:14:56 +02:00
Harald Welte ad27c6b3c7 add a first RANAP (but Iu, i.e. SCCP+M3UA) pcap file 2015-08-29 14:14:05 +02:00
Harald Welte 1e9dfd500a add by_chapter and by_name symlinks to specs 2015-08-29 12:39:09 +02:00
Harald Welte 4bc90aa6a7 Add Specs in DOC format, not just PDF
DOC is suitable for copy+pasting the ASN.1 syntax
2015-08-29 12:37:19 +02:00
Harald Welte 511365b056 RUA: Add missing RUA-PDU-Contents.asn and RUA-PDU-Descriptions.asn 2015-08-29 12:32:02 +02:00
Harald Welte 8f2fb0cca5 Import RANAP from 3GPP TS 25.413 V12.4.0 (2015-03) 2015-08-29 12:19:42 +02:00
Harald Welte ac666f5831 Import HNBAP asn.1 from 3GPP TS 25.469 V12.4.0 (2015-03) 2015-08-29 10:00:38 +02:00
Harald Welte b1c6a2c3ef add RUA asn.1 syntax from 3GPP TS 25.468 V12.1.0 (2014-12) 2015-08-29 09:33:12 +02:00
Harald Welte a97e436ce5 add Iuh relevant specs + some notes 2015-08-29 09:08:17 +02:00