diff options
1828 files changed, 16876 insertions, 19210 deletions
@@ -21,19 +21,21 @@ missing Makefile.in Makefile Makefile.am.sample -src/tests/atconfig -src/tests/dummy-cn -src/tests/hnb-test -src/tests/package.m4 -src/tests/test-helpers -src/tests/test-hnbap -src/tests/test-ranap -src/tests/testsuite -src/tests/testsuite.dir -src/tests/testsuite.log +tests/atconfig +tests/dummy-cn +tests/hnb-test +tests/package.m4 +tests/test-helpers +tests/test-hnbap +tests/test-ranap +tests/testsuite +tests/testsuite.dir +tests/testsuite.log src/osmo-hnbgw tags +libosmo-hnbap.pc libosmo-ranap.pc +libosmo-rua.pc libosmo-sabp.pc m4 gen_hnbap.stamp diff --git a/Makefile.am b/Makefile.am index fd684e7..09afe59 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,9 +1,9 @@ AUTOMAKE_OPTIONS = foreign dist-bzip2 -SUBDIRS = src include doc contrib +SUBDIRS = src include doc tests pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = libosmo-ranap.pc libosmo-sabp.pc +pkgconfig_DATA = libosmo-hnbap.pc libosmo-ranap.pc libosmo-rua.pc libosmo-sabp.pc EXTRA_DIST = \ .version \ @@ -11,11 +11,9 @@ EXTRA_DIST = \ asn1 \ contrib/osmo-iuh.spec.in \ debian \ + git-version-gen \ $(NULL) -AM_DISTCHECK_CONFIGURE_FLAGS = \ - --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) - @RELMAKE@ BUILT_SOURCES = $(top_srcdir)/.version @@ -1,10 +1,9 @@ -osmo-iuh - Osmocom Iuh and HNB-GW implementation +osmo-iuh - Osmocom Iuh implementation ================================================ This repository contains a C-language implementation of the 3GPP Iuh -interface, together with a HNB-GW (Home NodeB Gateway). You can use it -to interface Iuh-speaking femtocells/small cells to Iu-speaking MSCs and -SGSNs. +interface. You can use it to interface Iuh-speaking femtocells/small cells to +Iu-speaking MSCs and SGSNs. It is part of the [Osmocom](https://osmocom.org/) Open Source Mobile Communications project. @@ -20,9 +19,9 @@ GIT Repository You can clone from the official libosmocore.git repository using - git clone git://git.osmocom.org/osmo-iuh.git + git clone https://gitea.osmocom.org/cellular-infrastructure/osmo-iuh -There is a cgit interface at http://git.osmocom.org/osmo-iuh/ +There is a web interface at <https://gitea.osmocom.org/cellular-infrastructure/osmo-iuh> Documentation ------------- @@ -65,11 +64,11 @@ It is generally best to check the wiki for the most up-to-date build instructions. As external library dependencies, you will need -* libosmocore from git://git.osmocom.org/libosmocore -* libasn1c from git://git.osmocom.org/libasn1c +* libosmocore from https://gitea.osmocom.org/osmocom/libosmocore +* libasn1c from https://gitea.osmocom.org/cellular-infrastructure/libasn1c * libsctp-dev (this is the package name in Debian) -* libosmo-netif from git://git.osmocom.org/libosmo-netif (sysmocom/sctp branch) -* libosmo-sccp from git://git.osmocom.org/libosmo-sccp (sysmocom/iu branch) +* libosmo-netif from https://gitea.osmocom.org/osmocom/libosmo-netif +* libosmo-sccp from https://gitea.osmocom.org/osmocom/libosmo-sccp To bootstrap the build, in the root directory, run: @@ -81,23 +80,13 @@ After that, run the usual make [sudo] make install -Using ------ - -Note: osmo-iuh just left very active development (December 2015, January -2016), so your mileage may vary. - -If you run the 'hnbgw' executable, it will open a listening SCTP socket -and wait for incoming Iuh connections. It will accept any -HNB-REGISTER-REQUEST, and it will establish Iu (over SUA) connections -towards the MSC and SGSN. - 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) + from the aper branch of https://gitea.osmocom.org/osmocom/asn1c) +* Support for prefixing the generated types (aper-prefix branch of + https://gitea.osmocom.org/osmocom/asn1c) +* Then in osmo-iuh.git: make -C src/ regen diff --git a/TODO-RELEASE b/TODO-RELEASE index dde4b72..d0852fc 100644 --- a/TODO-RELEASE +++ b/TODO-RELEASE @@ -7,4 +7,3 @@ # If any interfaces have been added since the last public release: c:r:a + 1. # If any interfaces have been removed or changed since the last public release: c:r:0. #library what description / commit summary line -manual needs common chapter cs7-config.adoc from osmo-gsm-manuals > 0.3.0 diff --git a/asn1/hnbap/HNBAP-IEs.asn b/asn1/hnbap/HNBAP-IEs.asn index 775d25b..2500379 100644 --- a/asn1/hnbap/HNBAP-IEs.asn +++ b/asn1/hnbap/HNBAP-IEs.asn @@ -127,7 +127,8 @@ CriticalityDiagnostics ::= SEQUENCE { ... } -CriticalityDiagnostics-IE-List ::= SEQUENCE (SIZE (1..maxNrOfErrors)) OF +CriticalityDiagnostics-IE-List ::= SEQUENCE (SIZE (1..maxNrOfErrors)) OF CriticalityDiagnostics-IE-List-Value +CriticalityDiagnostics-IE-List-Value ::= SEQUENCE { iECriticality Criticality, iE-ID ProtocolIE-ID, diff --git a/asn1/ranap/RANAP-IEs.asn b/asn1/ranap/RANAP-IEs.asn index 843ec8d..595e6b6 100644 --- a/asn1/ranap/RANAP-IEs.asn +++ b/asn1/ranap/RANAP-IEs.asn @@ -265,7 +265,8 @@ Ass-RAB-Parameter-GuaranteedBitrateList ::= SEQUENCE (SIZE (1..maxNrOfSeparateTr Ass-RAB-Parameter-MaxBitrateList ::= SEQUENCE (SIZE (1..maxNrOfSeparateTrafficDirections)) OF MaxBitrate -AuthorisedPLMNs ::= SEQUENCE (SIZE (1..maxNrOfPLMNsSN)) OF +AuthorisedPLMNs ::= SEQUENCE (SIZE (1..maxNrOfPLMNsSN)) OF AuthorisedPLMNs-Value +AuthorisedPLMNs-Value ::= SEQUENCE { pLMNidentity PLMNidentity, authorisedSNAsList AuthorisedSNAs OPTIONAL, @@ -479,7 +480,8 @@ CriticalityDiagnostics ::= SEQUENCE { ... } -CriticalityDiagnostics-IE-List ::= SEQUENCE (SIZE (1..maxNrOfErrors)) OF +CriticalityDiagnostics-IE-List ::= SEQUENCE (SIZE (1..maxNrOfErrors)) OF CriticalityDiagnostics-IE-List-Value +CriticalityDiagnostics-IE-List-Value ::= SEQUENCE { iECriticality Criticality, iE-ID ProtocolIE-ID, @@ -488,7 +490,8 @@ CriticalityDiagnostics-IE-List ::= SEQUENCE (SIZE (1..maxNrOfErrors)) OF ... } -MessageStructure ::= SEQUENCE (SIZE (1..maxNrOfLevels)) OF +MessageStructure ::= SEQUENCE (SIZE (1..maxNrOfLevels)) OF MessageStructure-Value +MessageStructure-Value ::= SEQUENCE { iE-ID ProtocolIE-ID, repetitionNumber RepetitionNumber1 OPTIONAL, @@ -753,7 +756,8 @@ GA-PointWithUnCertaintyEllipse ::= SEQUENCE { ... } -GA-Polygon ::= SEQUENCE (SIZE (1..maxNrOfPoints)) OF +GA-Polygon ::= SEQUENCE (SIZE (1..maxNrOfPoints)) OF GA-Polygon-Value +GA-Polygon-Value ::= SEQUENCE { geographicalCoordinates GeographicalCoordinates, iE-Extensions IE-Extensions OPTIONAL, @@ -923,7 +927,8 @@ KeyStatus ::= ENUMERATED { } -- L -LA-LIST ::= SEQUENCE (SIZE (1..maxNrOfLAs)) OF +LA-LIST ::= SEQUENCE (SIZE (1..maxNrOfLAs)) OF LA-LIST-Value +LA-LIST-Value ::= SEQUENCE { lAC LAC, listOF-SNAs ListOF-SNAs, @@ -1336,7 +1341,8 @@ LoggingDuration ::= ENUMERATED { PLMNidentity ::= OCTET STRING (SIZE (3)) -PLMNs-in-shared-network ::= SEQUENCE (SIZE (1..maxNrOfPLMNsSN)) OF +PLMNs-in-shared-network ::= SEQUENCE (SIZE (1..maxNrOfPLMNsSN)) OF PLMNs-in-shared-network-Value +PLMNs-in-shared-network-Value ::= SEQUENCE { pLMNidentity PLMNidentity, lA-LIST LA-LIST, @@ -1414,7 +1420,8 @@ RABased ::= SEQUENCE { RAI-List ::= SEQUENCE (SIZE (1..maxNrOfRAIs)) OF RAI -RABDataVolumeReport ::= SEQUENCE (SIZE (1..maxNrOfVol)) OF +RABDataVolumeReport ::= SEQUENCE (SIZE (1..maxNrOfVol)) OF RABDataVolumeReport-Value +RABDataVolumeReport-Value ::= SEQUENCE { dl-UnsuccessfullyTransmittedDataVolume UnsuccessfullyTransmittedDataVolume, dataVolumeReference DataVolumeReference OPTIONAL, @@ -1456,7 +1463,8 @@ RAB-Parameters ::= SEQUENCE { ... } -RABParametersList ::= SEQUENCE (SIZE (1.. maxNrOfRABs)) OF SEQUENCE { +RABParametersList ::= SEQUENCE (SIZE (1.. maxNrOfRABs)) OF RABParametersList-Value +RABParametersList-Value ::= SEQUENCE { rab-Id RAB-ID, cn-domain CN-DomainIndicator, rabDataVolumeReport RABDataVolumeReport OPTIONAL, @@ -1848,7 +1856,8 @@ RSRQ-Type ::= SEQUENCE { RSRQ-Extension ::= INTEGER (-30..46, ...) -EUTRANFrequencies ::= SEQUENCE (SIZE (1..maxNrOfEUTRAFreqs)) OF SEQUENCE { +EUTRANFrequencies ::= SEQUENCE (SIZE (1..maxNrOfEUTRAFreqs)) OF EUTRANFrequencies-Value +EUTRANFrequencies-Value ::= SEQUENCE { earfcn INTEGER (0..65535), measBand MeasBand OPTIONAL, iE-Extensions IE-Extensions OPTIONAL} diff --git a/asn1/ranap/RANAP-PDU-Contents.asn b/asn1/ranap/RANAP-PDU-Contents.asn index 75aeaeb..199f6b1 100644 --- a/asn1/ranap/RANAP-PDU-Contents.asn +++ b/asn1/ranap/RANAP-PDU-Contents.asn @@ -780,7 +780,8 @@ CNMBMSLinkingInformation-ExtIEs RANAP-PROTOCOL-EXTENSION ::= { ... } -JoinedMBMSBearerService-IEs ::= SEQUENCE (SIZE (1.. maxnoofMulticastServicesPerUE)) OF +JoinedMBMSBearerService-IEs ::= SEQUENCE (SIZE (1.. maxnoofMulticastServicesPerUE)) OF JoinedMBMSBearerService-IEs-Value +JoinedMBMSBearerService-IEs-Value ::= SEQUENCE { tMGI TMGI, mBMS-PTP-RAB-ID MBMS-PTP-RAB-ID, @@ -2301,7 +2302,8 @@ RAB-ReleasedItem-ExtIEs RANAP-PROTOCOL-EXTENSION ::= { ... } -DataVolumeList ::= SEQUENCE (SIZE (1..maxNrOfVol)) OF +DataVolumeList ::= SEQUENCE (SIZE (1..maxNrOfVol)) OF DataVolumeList-Value +DataVolumeList-Value ::= SEQUENCE { dl-UnsuccessfullyTransmittedDataVolume UnsuccessfullyTransmittedDataVolume, dataVolumeReference DataVolumeReference OPTIONAL, @@ -3210,7 +3212,8 @@ MBMSUELinkingRequestIEs RANAP-PROTOCOL-IES ::= { ... } -LeftMBMSBearerService-IEs ::= SEQUENCE (SIZE (1.. maxnoofMulticastServicesPerUE)) OF +LeftMBMSBearerService-IEs ::= SEQUENCE (SIZE (1.. maxnoofMulticastServicesPerUE)) OF LeftMBMSBearerService-IEs-Value +LeftMBMSBearerService-IEs-Value ::= SEQUENCE { tMGI TMGI, iE-Extensions ProtocolExtensionContainer { {LeftMBMSBearerService-ExtIEs} } OPTIONAL, @@ -3243,7 +3246,8 @@ MBMSUELinkingResponseIEs RANAP-PROTOCOL-IES ::= { ... } -UnsuccessfulLinking-IEs ::= SEQUENCE (SIZE (1.. maxnoofMulticastServicesPerUE)) OF +UnsuccessfulLinking-IEs ::= SEQUENCE (SIZE (1.. maxnoofMulticastServicesPerUE)) OF UnsuccessfulLinking-IEs-Value +UnsuccessfulLinking-IEs-Value ::= SEQUENCE { tMGI TMGI, cause Cause, diff --git a/asn1/ranap/RANAP-PDU.asn b/asn1/ranap/RANAP-PDU.asn index cce2689..b8de7a8 100644 --- a/asn1/ranap/RANAP-PDU.asn +++ b/asn1/ranap/RANAP-PDU.asn @@ -735,7 +735,8 @@ CNMBMSLinkingInformation ::= SEQUENCE { ... } -JoinedMBMSBearerService-IEs ::= SEQUENCE (SIZE (1.. maxnoofMulticastServicesPerUE)) OF +JoinedMBMSBearerService-IEs ::= SEQUENCE (SIZE (1.. maxnoofMulticastServicesPerUE)) OF JoinedMBMSBearerService-IEs-Value +JoinedMBMSBearerService-IEs-Value ::= SEQUENCE { tMGI TMGI, mBMS-PTP-RAB-ID MBMS-PTP-RAB-ID, @@ -885,7 +886,8 @@ RAB-ReleasedItem ::= SEQUENCE { ... } -DataVolumeList ::= SEQUENCE (SIZE (1..maxNrOfVol)) OF +DataVolumeList ::= SEQUENCE (SIZE (1..maxNrOfVol)) OF DataVolumeList-Value +DataVolumeList-Value ::= SEQUENCE { dl-UnsuccessfullyTransmittedDataVolume UnsuccessfullyTransmittedDataVolume, dataVolumeReference DataVolumeReference OPTIONAL, @@ -1004,14 +1006,16 @@ MBMSSynchronisationInformation ::= SEQUENCE { ... } -LeftMBMSBearerService-IEs ::= SEQUENCE (SIZE (1.. maxnoofMulticastServicesPerUE)) OF +LeftMBMSBearerService-IEs ::= SEQUENCE (SIZE (1.. maxnoofMulticastServicesPerUE)) OF LeftMBMSBearerService-IEs-Value +LeftMBMSBearerService-IEs-Value ::= SEQUENCE { tMGI TMGI, iE-Extensions ProtocolExtensionContainer OPTIONAL, ... } -UnsuccessfulLinking-IEs ::= SEQUENCE (SIZE (1.. maxnoofMulticastServicesPerUE)) OF +UnsuccessfulLinking-IEs ::= SEQUENCE (SIZE (1.. maxnoofMulticastServicesPerUE)) OF UnsuccessfulLinking-IEs-Value +UnsuccessfulLinking-IEs-Value ::= SEQUENCE { tMGI TMGI, cause Cause, diff --git a/asn1/rua/RUA-IEs.asn b/asn1/rua/RUA-IEs.asn index 1e43580..6a16d2d 100644 --- a/asn1/rua/RUA-IEs.asn +++ b/asn1/rua/RUA-IEs.asn @@ -165,7 +165,8 @@ CriticalityDiagnostics ::= SEQUENCE { ... } -CriticalityDiagnostics-IE-List ::= SEQUENCE (SIZE (1..maxNrOfErrors)) OF +CriticalityDiagnostics-IE-List ::= SEQUENCE (SIZE (1..maxNrOfErrors)) OF CriticalityDiagnostics-IE-List-Value +CriticalityDiagnostics-IE-List-Value ::= SEQUENCE { iECriticality Criticality, iE-ID ProtocolIE-ID, diff --git a/asn1/rua/eurecom/rua_decoder.c b/asn1/rua/eurecom/rua_decoder.c index 521ecab..aebf8d5 100644 --- a/asn1/rua/eurecom/rua_decoder.c +++ b/asn1/rua/eurecom/rua_decoder.c @@ -12,10 +12,6 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License along with - this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. - The full GNU General Public License is included in this distribution in the file called "COPYING". diff --git a/asn1/rua/eurecom/rua_encoder.c b/asn1/rua/eurecom/rua_encoder.c index 56d0f33..4fc75b7 100644 --- a/asn1/rua/eurecom/rua_encoder.c +++ b/asn1/rua/eurecom/rua_encoder.c @@ -12,10 +12,6 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License along with - this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. - The full GNU General Public License is included in this distribution in the file called "COPYING". diff --git a/asn1/rua/eurecom/rua_ies_defs.h b/asn1/rua/eurecom/rua_ies_defs.h index da5fc6f..74602ff 100644 --- a/asn1/rua/eurecom/rua_ies_defs.h +++ b/asn1/rua/eurecom/rua_ies_defs.h @@ -12,10 +12,6 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License along with - this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. - The full GNU General Public License is included in this distribution in the file called "COPYING". diff --git a/asn1/sabp/SABP-IEs.asn b/asn1/sabp/SABP-IEs.asn index 0efd14e..0aff040 100644 --- a/asn1/sabp/SABP-IEs.asn +++ b/asn1/sabp/SABP-IEs.asn @@ -75,7 +75,8 @@ Criticality-Diagnostics ::= SEQUENCE { CriticalityDiagnostics-ExtIEs SABP-PROTOCOL-EXTENSION ::= { ... } -CriticalityDiagnostics-IE-List ::= SEQUENCE (SIZE (1..maxNrOfErrors)) OF +CriticalityDiagnostics-IE-List ::= SEQUENCE (SIZE (1..maxNrOfErrors)) OF CriticalityDiagnostics-IE-List-Value +CriticalityDiagnostics-IE-List-Value ::= SEQUENCE { iECriticality Criticality, iE-ID ProtocolIE-ID, @@ -88,7 +89,8 @@ CriticalityDiagnostics-IE-List-ExtIEs SABP-PROTOCOL-EXTENSION ::= { -- { ID id-TypeOfError CRITICALITY ignore EXTENSION TypeOfError PRESENCE mandatory }, ... } -MessageStructure ::= SEQUENCE (SIZE (1..maxNrOfLevels)) OF +MessageStructure ::= SEQUENCE (SIZE (1..maxNrOfLevels)) OF MessageStructure-Value +MessageStructure-Value ::= SEQUENCE { iE-ID ProtocolIE-ID, repetitionNumber RepetitionNumber1 OPTIONAL, diff --git a/asn1/utils/asn1_restructure_sequence_of_sequence.py b/asn1/utils/asn1_restructure_sequence_of_sequence.py new file mode 100755 index 0000000..85b2e6a --- /dev/null +++ b/asn1/utils/asn1_restructure_sequence_of_sequence.py @@ -0,0 +1,57 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: AGPL-3.0-or-later +# Copyright 2022 sysmocom - s.f.m.c. GmbH <info@sysmocom.de> +""" +Avoid compiler warnings like "‘struct HNBAP_CriticalityDiagnostics_IE_List__Member’ +declared inside parameter list will not be visible outside of this definition +or declaration", which break compiling the sources with -Werror and can't be +ignored with diagnostics as they don't have their own type (unlike e.g. +-Wuninitialized). + +This problem is explained further in: +https://github.com/vlm/asn1c/issues/430 + +To avoid this, convert "SQUENCE … OF SEQUENCE" like here: + + CriticalityDiagnostics-IE-List ::= SEQUENCE (SIZE (1..maxNrOfErrors)) OF + SEQUENCE { + … +to "SEQUENCE … OF …-Value" and below that "…-Value ::= SEQUENCE": + + CriticalityDiagnostics-IE-List ::= SEQUENCE (SIZE (1..maxNrOfErrors)) OF CriticalityDiagnostics-IE-List-Value + CriticalityDiagnostics-IE-List-Value ::= + SEQUENCE { + … +""" +import glob +import re + +re_seq_of = re.compile("([A-Za-z0-0-]*)\s*::=\s*SEQUENCE .* OF$") +re_seq_of2 = re.compile("([A-Za-z0-0-]*)\s*::=\s*SEQUENCE .* OF SEQUENCE\s*{$") + +for file in glob.glob("asn1/*/*.asn"): + print(f"{file}:") + with open(file) as handle: + lines = handle.readlines() + + for i, line in enumerate(lines): + match = re_seq_of.search(line) + if match and "SEQUENCE" in lines[i + 1]: + name_value = f"{match.group(1)}-Value" + print(f" {name_value}") + lines[i] = f"{line.rstrip()} {name_value}\n{name_value} ::=\n" + continue + + match = re_seq_of2.search(line) + if match: + name_value = f"{match.group(1)}-Value" + print(f" {name_value}") + line = line.split(" OF SEQUENCE")[0] + lines[i] = f"{line} OF {name_value}\n{name_value} ::= SEQUENCE {{\n" + continue + + with open(file, "w") as handle: + handle.writelines(lines) + + +print("Done") diff --git a/asn1/utils/asn1tostruct.py b/asn1/utils/asn1tostruct.py index 220517d..f39f45b 100755 --- a/asn1/utils/asn1tostruct.py +++ b/asn1/utils/asn1tostruct.py @@ -79,6 +79,29 @@ def usage(): print("-p [pfx] Prefix all types with given prefix") print("-h Print this help and return") +def getUniqueIENameForDefine(ies, ie): + """ Usually the type of the IE is used for defines. However a struct may + use the same type multiple times, in that case we use the actual name + of the field. """ + unique = True + + for ie_other in ies: + if ie_other == ie: + continue + if ie_other[2] == ie[2]: + unique = False + assert ie[0] != ie_other[0], "failed to find a unique name for" \ + " IE {}. Found another entry in ies {}" \ + " that has the same ie[0] value.".format(ie, ie_other) + + if unique: + ret = ie[2] + else: + ret = ie[0] + + ret = re.sub('-', '_', ret.upper()) + return ret + try: opts, args = getopt.getopt(sys.argv[1:], "df:ho:p:", ["debug", "file", "help", "outdir", "prefix"]) except getopt.GetoptError as err: @@ -167,7 +190,7 @@ for key in iesDefs: # Presence mask for ie in iesDefs[key]["ies"]: - ieupperunderscore = re.sub('-', '_', ie[2].upper()) + ieupperunderscore = getUniqueIENameForDefine(iesDefs[key]["ies"], ie) if ie[3] == "optional" or ie[3] == "conditional": f.write("#define {0:<{pad}} {1}\n".format("%s_%s%s_PRESENT" % (keyupperunderscore, prefix, ieupperunderscore), "(1 << %d)" % shift, pad=iesDefs[key]["length"] + len(keyupperunderscore) + 9)) @@ -305,6 +328,7 @@ for key in iesDefs: f.write(" int i, decoded = 0;\n") if len(iesDefs[key]["ies"]) != 0: f.write(" int tempDecoded = 0;\n") + f.write(" int rc = -1;\n") f.write(" assert(any_p != NULL);\n") if len(iesDefs[key]["ies"]) != 0: @@ -328,7 +352,7 @@ for key in iesDefs: ienameunderscorefirstlower = lowerFirstCamelWord(ienameunderscore) ietypesubst = prefix + re.sub('-', '', ie[2]) ietypeunderscore = prefix + re.sub('-', '_', ie[2]) - ieupperunderscore = prefix + re.sub('-', '_', ie[2]).upper() + ieupperunderscore = prefix + getUniqueIENameForDefine(iesDefs[key]["ies"], ie) if ie[3] == "optional": f.write(" /* Optional field */\n") elif ie[3] == "conditional": @@ -341,7 +365,7 @@ for key in iesDefs: f.write(" tempDecoded = ANY_to_type_aper(&ie_p->value, &asn_DEF_%s, (void**)&%s_p);\n" % (ietypeunderscore, lowerFirstCamelWord(ietypesubst))) f.write(" if (tempDecoded < 0) {\n") f.write(" %s_DEBUG(\"Decoding of IE %s failed\\n\");\n" % (fileprefix.upper(), ienameunderscore)) - f.write(" return -1;\n") + f.write(" goto free_and_return_rc;\n") f.write(" }\n") f.write(" decoded += tempDecoded;\n") f.write(" if (asn1_xer_print)\n") @@ -356,11 +380,14 @@ for key in iesDefs: f.write(" } break;\n") f.write(" default:\n") f.write(" %s_DEBUG(\"Unknown protocol IE id (%%d) for message %s\\n\", (int)ie_p->id);\n" % (fileprefix.upper(), re.sub('-', '_', structName.lower()))) - f.write(" return -1;\n") + f.write(" goto free_and_return_rc;\n") f.write(" }\n") f.write(" }\n") + f.write(" rc = decoded;\n") + f.write("\n") + f.write("free_and_return_rc:\n") f.write(" ASN_STRUCT_FREE(asn_DEF_%s, %s_p);\n" % (asn1cStruct, asn1cStructfirstlower)) - f.write(" return decoded;\n") + f.write(" return rc;\n") f.write("}\n\n") for key in iesDefs: @@ -377,7 +404,7 @@ for key in iesDefs: for ie in iesDefs[key]["ies"]: ietypeunderscore = prefix + re.sub('-', '_', ie[2]) - ieupperunderscore = prefix + re.sub('-', '_', ie[2]).upper() + ieupperunderscore = prefix + getUniqueIENameForDefine(iesDefs[key]["ies"], ie) if ie[3] != "mandatory": if ie[3] == "optional": f.write(" /* Optional field */\n") @@ -471,7 +498,7 @@ for key in iesDefs: iename = re.sub('-', '_', re.sub('id-', '', ie[0])) ienameunderscore = prefix + re.sub('-', '_', iename) ienamefirstwordlower = lowerFirstCamelWord(iename) - ieupperunderscore = prefix + re.sub('-', '_', ie[2]).upper() + ieupperunderscore = prefix + getUniqueIENameForDefine(iesDefs[key]["ies"], ie) ietypeunderscore = prefix + re.sub('-', '_', ie[2]) if ie[3] != "mandatory": if ie[3] == "optional": diff --git a/configure.ac b/configure.ac index 692db57..e205269 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,9 @@ AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip 1.9 tar-ustar]) dnl tar-ustar: some asn1 filenames surpass the 99 char limit of tar, so we need dnl to make tar allow longer filenames. -AC_CONFIG_TESTDIR(src/tests) +AC_CONFIG_TESTDIR(tests) + +CFLAGS="$CFLAGS -std=gnu11" dnl kernel style compile messages m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) @@ -26,11 +28,13 @@ AC_PROG_MKDIR_P AC_PROG_CC AC_PROG_INSTALL -dnl patching ${archive_cmds} to affect generation of file "libtool" to fix linking with clang +dnl patching ${archive_cmds} to affect generation of file "libtool" to fix linking with clang AS_CASE(["$LD"],[*clang*], [AS_CASE(["${host_os}"], [*linux*],[archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'])]) +AC_CHECK_HEADERS(netinet/sctp.h,,AC_MSG_ERROR(netinet/sctp.h not found)) + dnl check for pkg-config (explained in detail in libosmocore/configure.ac) AC_PATH_PROG(PKG_CONFIG_INSTALLED, pkg-config, no) if test "x$PKG_CONFIG_INSTALLED" = "xno"; then @@ -38,12 +42,12 @@ if test "x$PKG_CONFIG_INSTALLED" = "xno"; then fi PKG_PROG_PKG_CONFIG([0.20]) -PKG_CHECK_MODULES(OSMOCORE, libosmocore >= 0.12.0) -PKG_CHECK_MODULES(OSMOGSM, libosmogsm >= 0.12.0) -PKG_CHECK_MODULES(OSMOVTY, libosmovty >= 0.12.0) -PKG_CHECK_MODULES(OSMOCTRL, libosmoctrl >= 0.12.0) -PKG_CHECK_MODULES(OSMONETIF, libosmo-netif >= 0.3.0) -PKG_CHECK_MODULES(OSMOSIGTRAN, libosmo-sigtran >= 0.10.0) +PKG_CHECK_MODULES(OSMOCORE, libosmocore >= 1.9.0) +PKG_CHECK_MODULES(OSMOGSM, libosmogsm >= 1.9.0) +PKG_CHECK_MODULES(OSMOVTY, libosmovty >= 1.9.0) +PKG_CHECK_MODULES(OSMOCTRL, libosmoctrl >= 1.9.0) +PKG_CHECK_MODULES(OSMONETIF, libosmo-netif >= 1.4.0) +PKG_CHECK_MODULES(OSMOSIGTRAN, libosmo-sigtran >= 1.8.0) PKG_CHECK_MODULES(ASN1C, libasn1c >= 0.9.30) AC_CONFIG_MACRO_DIR([m4]) @@ -126,34 +130,20 @@ then AC_SUBST([OSMO_GSM_MANUALS_DIR]) fi -# https://www.freedesktop.org/software/systemd/man/daemon.html -AC_ARG_WITH([systemdsystemunitdir], - [AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files])],, - [with_systemdsystemunitdir=auto]) -AS_IF([test "x$with_systemdsystemunitdir" = "xyes" -o "x$with_systemdsystemunitdir" = "xauto"], [ - def_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) - - AS_IF([test "x$def_systemdsystemunitdir" = "x"], - [AS_IF([test "x$with_systemdsystemunitdir" = "xyes"], - [AC_MSG_ERROR([systemd support requested but pkg-config unable to query systemd package])]) - with_systemdsystemunitdir=no], - [with_systemdsystemunitdir="$def_systemdsystemunitdir"])]) -AS_IF([test "x$with_systemdsystemunitdir" != "xno"], - [AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])]) -AM_CONDITIONAL([HAVE_SYSTEMD], [test "x$with_systemdsystemunitdir" != "xno"]) - AC_MSG_RESULT([CFLAGS="$CFLAGS"]) AC_MSG_RESULT([CPPFLAGS="$CPPFLAGS"]) AC_OUTPUT( + libosmo-hnbap.pc libosmo-ranap.pc + libosmo-rua.pc libosmo-sabp.pc src/Makefile src/hnbap/Makefile src/ranap/Makefile src/rua/Makefile src/sabp/Makefile - src/tests/Makefile + tests/Makefile Makefile include/Makefile include/osmocom/Makefile @@ -163,9 +153,5 @@ AC_OUTPUT( include/osmocom/sabp/Makefile include/osmocom/iuh/Makefile doc/Makefile - doc/examples/Makefile - doc/manuals/Makefile - contrib/Makefile - contrib/systemd/Makefile contrib/osmo-iuh.spec ) diff --git a/contrib/Makefile.am b/contrib/Makefile.am deleted file mode 100644 index 3439c97..0000000 --- a/contrib/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = systemd diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh index ac7363e..36a4b61 100755 --- a/contrib/jenkins.sh +++ b/contrib/jenkins.sh @@ -26,10 +26,9 @@ osmo-build-dep.sh libasn1c # the asn1c binary is used by the 'regen' target below osmo-build-dep.sh asn1c aper-prefix -CONFIG="" +CONFIG="--enable-werror" if [ "$WITH_MANUALS" = "1" ]; then - osmo-build-dep.sh osmo-gsm-manuals - CONFIG="--enable-manuals" + CONFIG="$CONFIG --enable-manuals" fi set +x @@ -60,12 +59,8 @@ fi $MAKE $PARALLEL_MAKE $MAKE check \ || cat-testlogs.sh -$MAKE distcheck \ +$MAKE $PARALLEL_MAKE distcheck \ || cat-testlogs.sh -if [ "$WITH_MANUALS" = "1" ] && [ "$PUBLISH" = "1" ]; then - make -C "$base/doc/manuals" publish -fi - -$MAKE maintainer-clean +$MAKE $PARALLEL_MAKE maintainer-clean osmo-clean-workspace.sh diff --git a/contrib/osmo-iuh.spec.in b/contrib/osmo-iuh.spec.in index 82046fe..3fa80c0 100644 --- a/contrib/osmo-iuh.spec.in +++ b/contrib/osmo-iuh.spec.in @@ -2,6 +2,7 @@ # spec file for package osmo-iuh # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 sysmocom - s.f.m.c GmbH # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,33 +27,44 @@ BuildRequires: lksctp-tools-devel BuildRequires: pkgconfig >= 0.20 # python3 for asn1tostruct.py BuildRequires: python3 -%if 0%{?suse_version} -BuildRequires: systemd-rpm-macros -%endif BuildRequires: pkgconfig(libasn1c) >= 0.9.30 -BuildRequires: pkgconfig(libosmo-netif) >= 0.3.0 -BuildRequires: pkgconfig(libosmo-sigtran) >= 0.10.0 -BuildRequires: pkgconfig(libosmocore) >= 0.12.0 -BuildRequires: pkgconfig(libosmoctrl) >= 0.12.0 -BuildRequires: pkgconfig(libosmogb) -BuildRequires: pkgconfig(libosmogsm) >= 0.12.0 -BuildRequires: pkgconfig(libosmovty) >= 0.12.0 -%{?systemd_requires} +BuildRequires: pkgconfig(libosmocore) >= 1.9.0 +BuildRequires: pkgconfig(libosmoctrl) >= 1.9.0 +BuildRequires: pkgconfig(libosmogb) >= 1.9.0 +BuildRequires: pkgconfig(libosmogsm) >= 1.9.0 +BuildRequires: pkgconfig(libosmovty) >= 1.9.0 +BuildRequires: pkgconfig(libosmo-netif) >= 1.4.0 +BuildRequires: pkgconfig(libosmo-sigtran) >= 1.8.0 %description Osmocom code for the Iuh interface (HNBAP, RUA, RANAP) -%package -n libosmo-ranap3 +%package -n libosmo-hnbap0 +Summary: Shared Library part of libosmo-hnbap +Group: System/Libraries + +%description -n libosmo-hnbap0 +Osmocom code for the Iuh interface (HNBAP, RUA, RANAP) + +%package -n libosmo-hnbap-devel +Summary: Development files for Osmocom HNBAP library +Group: Development/Libraries/C and C++ +Requires: libosmo-hnbap0 = %{version} + +%description -n libosmo-hnbap-devel +Osmocom code for the Iuh interface (HNBAP, RUA, RANAP) + +%package -n libosmo-ranap7 Summary: Shared Library part of libosmo-ranap Group: System/Libraries -%description -n libosmo-ranap3 +%description -n libosmo-ranap7 Osmocom code for the Iuh interface (HNBAP, RUA, RANAP) %package -n libosmo-ranap-devel Summary: Development files for Osmocom RANAP library Group: Development/Libraries/C and C++ -Requires: libosmo-ranap3 = %{version} +Requires: libosmo-ranap7 = %{version} %description -n libosmo-ranap-devel Osmocom code for the Iuh interface (HNBAP, RUA, RANAP) @@ -60,18 +72,32 @@ Osmocom code for the Iuh interface (HNBAP, RUA, RANAP) This subpackage contains libraries and header files for developing applications that want to make use of libosmoranap. +%package -n libosmo-rua0 +Summary: Shared Library part of libosmo-rua +Group: System/Libraries + +%description -n libosmo-rua0 +Osmocom code for the Iuh interface (HNBAP, RUA, RANAP) + +%package -n libosmo-rua-devel +Summary: Development files for Osmocom RUA library +Group: Development/Libraries/C and C++ +Requires: libosmo-rua0 = %{version} + +%description -n libosmo-rua-devel +Osmocom code for the Iuh interface (HNBAP, RUA, RANAP) -%package -n libosmo-sabp0 +%package -n libosmo-sabp1 Summary: Shared Library part of libosmo-sabp Group: System/Libraries -%description -n libosmo-sabp0 +%description -n libosmo-sabp1 Osmocom code for the SABP (service area broadcast protocol) interface %package -n libosmo-sabp-devel Summary: Development files for Osmocom SABP library Group: Development/Libraries/C and C++ -Requires: libosmo-sabp0 = %{version} +Requires: libosmo-sabp1 = %{version} %description -n libosmo-sabp-devel Osmocom code for the SABP (service area broadcast protocol) interface @@ -88,8 +114,7 @@ echo "%{version}" >.tarball-version autoreconf -fi %configure \ --disable-static \ - --docdir="%{_docdir}/%{name}" \ - --with-systemdsystemunitdir=%{_unitdir} + --docdir="%{_docdir}/%{name}" make %{?_smp_mflags} %install @@ -99,40 +124,56 @@ find %{buildroot} -type f -name "*.la" -delete -print %check make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +) -%post -n libosmo-ranap3 -p /sbin/ldconfig -%postun -n libosmo-ranap3 -p /sbin/ldconfig -%post -n libosmo-sabp0 -p /sbin/ldconfig -%postun -n libosmo-sabp0 -p /sbin/ldconfig - -%if 0%{?suse_version} -%pre %service_add_pre osmo-hnbgw.service -%post %service_add_post osmo-hnbgw.service -%preun %service_del_preun osmo-hnbgw.service -%postun %service_del_postun osmo-hnbgw.service -%endif +%post -n libosmo-hnbap0 -p /sbin/ldconfig +%postun -n libosmo-hnbap0 -p /sbin/ldconfig +%post -n libosmo-ranap7 -p /sbin/ldconfig +%postun -n libosmo-ranap7 -p /sbin/ldconfig +%post -n libosmo-rua0 -p /sbin/ldconfig +%postun -n libosmo-rua0 -p /sbin/ldconfig +%post -n libosmo-sabp1 -p /sbin/ldconfig +%postun -n libosmo-sabp1 -p /sbin/ldconfig %files %license COPYING %doc README.md -%dir %{_docdir}/%{name}/examples -%{_docdir}/%{name}/examples/osmo-hnbgw.cfg -%{_bindir}/osmo-hnbgw -%dir %{_sysconfdir}/osmocom -%config %{_sysconfdir}/osmocom/osmo-hnbgw.cfg -%{_unitdir}/osmo-hnbgw.service -%files -n libosmo-ranap3 -%{_libdir}/libosmo-ranap.so.3* +%files -n libosmo-hnbap0 +%{_libdir}/libosmo-hnbap.so.0* + +%files -n libosmo-hnbap-devel +%dir %{_includedir}/osmocom/ +%dir %{_includedir}/osmocom/hnbap/ +%{_includedir}/osmocom/hnbap/* +%{_libdir}/libosmo-hnbap.so +%{_libdir}/pkgconfig/libosmo-hnbap.pc + +%files -n libosmo-ranap7 +%{_libdir}/libosmo-ranap.so.7* %files -n libosmo-ranap-devel -%{_includedir}/* +%dir %{_includedir}/osmocom/ +%dir %{_includedir}/osmocom/ranap/ +%{_includedir}/osmocom/ranap/* %{_libdir}/libosmo-ranap.so %{_libdir}/pkgconfig/libosmo-ranap.pc -%files -n libosmo-sabp0 -%{_libdir}/libosmo-sabp.so.0* +%files -n libosmo-rua0 +%{_libdir}/libosmo-rua.so.0* + +%files -n libosmo-rua-devel +%dir %{_includedir}/osmocom/ +%dir %{_includedir}/osmocom/rua/ +%{_includedir}/osmocom/rua/* +%{_libdir}/libosmo-rua.so +%{_libdir}/pkgconfig/libosmo-rua.pc + +%files -n libosmo-sabp1 +%{_libdir}/libosmo-sabp.so.1* %files -n libosmo-sabp-devel +%dir %{_includedir}/osmocom/ +%dir %{_includedir}/osmocom/sabp/ +%{_includedir}/osmocom/sabp/* %{_libdir}/libosmo-sabp.so %{_libdir}/pkgconfig/libosmo-sabp.pc diff --git a/contrib/systemd/Makefile.am b/contrib/systemd/Makefile.am deleted file mode 100644 index 212601c..0000000 --- a/contrib/systemd/Makefile.am +++ /dev/null @@ -1,6 +0,0 @@ -EXTRA_DIST = osmo-hnbgw.service - -if HAVE_SYSTEMD -systemdsystemunit_DATA = \ - osmo-hnbgw.service -endif diff --git a/contrib/systemd/osmo-hnbgw.service b/contrib/systemd/osmo-hnbgw.service deleted file mode 100644 index 7aca29f..0000000 --- a/contrib/systemd/osmo-hnbgw.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Osmocom Home Nodeb Gateway (OsmoHNBGW) - -[Service] -Type=simple -Restart=always -ExecStart=/usr/bin/osmo-hnbgw -c /etc/osmocom/osmo-hnbgw.cfg -RestartSec=2 - -[Install] -WantedBy=multi-user.target diff --git a/debian/changelog b/debian/changelog index f59c49e..0720fa0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,225 @@ +osmo-iuh (1.5.1) unstable; urgency=medium + + [ Pau Espin Pedrol ] + * ranap_transp_layer_addr_decode2(): Fix decoding X.213 IPv4 address len=7 + + [ Daniel Willmann ] + * iu_client: Use local variable to track conn_id + * iu_client: Handle empty CR and InitialUE Message in DATA.ind + + -- Oliver Smith <osmith@sysmocom.de> Fri, 15 Dec 2023 15:05:11 +0100 + +osmo-iuh (1.5.0) unstable; urgency=medium + + [ arehbein ] + * Transition to use of 'telnet_init_default' + + [ Oliver Smith ] + * test-ranap: don't use libosmocore's tall_msgb_ctx + * debian: set compat level to 10 + + [ Neels Hofmeyr ] + * fix PDU leaks in rua_generate_*() functions + * asn1tostruct.py: fix leak in error paths of iesDefs + * fix leak in ranap_new_transp_layer_addr() + * add ranap_new_msg_reset2() with GlobalRNC-ID + + [ Pau Espin Pedrol ] + * Move testdir src/tests/ -> tests/ + + [ Vadim Yanitskiy ] + * copyright: fix typo: sysmocom s/s.m.f.c./s.f.m.c./ GmbH + + [ Harald Welte ] + * hnb-test.c: Update to libosmocore osmo_auth_gen_vec2 + + -- Pau Espin Pedrol <pespin@sysmocom.de> Tue, 12 Sep 2023 14:13:41 +0200 + +osmo-iuh (1.4.0) unstable; urgency=medium + + [ Vadim Yanitskiy ] + * libosmo-rua: fix copy-pasted -version-info: {HNBAP->RUA}_LIBVERSION + * libosmo-{hnbap,ranap,rua,sabp}: add -no-undefined to *_la_LDFLAGS + + [ Oliver Smith ] + * move-asn1-header-files: error for wrong asn1c + * asn1: fix visibility warnings from generated code + * tests/hnb-test-rua: add missing include + * tests/test-hnbap: add missing include + * tests/test-ranap: fix missing (void **) cast + * ranap_common_cn: remove unused ctx args + * ranap_common_cn: rename ctx -> priv + * tests/hnb-test-rua: fix incompat pointer type + * test-hnbap: fix defined but not used error + * hnbap_common: hnbap_cause_str: handle nothing val + * asn1tostruct: fix defines getting redefined + * contrib/jenkins.sh: use --enable-werror + * asn1tostruct: don't use f-strings + * contrib/jenkins.sh: werror with WITH_MANUALS too + + -- Pau Espin Pedrol <pespin@sysmocom.de> Tue, 07 Feb 2023 16:39:24 +0100 + +osmo-iuh (1.3.0) unstable; urgency=medium + + [ Philipp Maier ] + * test-hnbap: remove unused variable rc + * test-hnbap: cosmetic: fix sourcecode formatting + * ranap_common: add decoder for RAB SetupOrModifyItemFirst + * cosmetic: don't use 4 speaces instead of tabs + * iu_helpers: make new_transp_info_(rtp|gtp) public + * iu_helpers: check length before accessing buf + * add unittest for ranap_transp_layer_addr_decode() + * iu_helpers: add function ranap_transp_layer_addr_decode2 + * test_common: use osmo_init_logging2 instead of osmo_init_logging + * test-ranap: put message gen tests into function + * ranap_common_cn: add functions for direct access to decoder + * ranap_common_ran: add decoder for CN/MSC originated messages + * ranap_msg_factory: add missing apidoc + * ranap_common: add decoder for RAB-FailedList + * ranap_common: add decoder for RAB-ReleaseList + * ranap_common: log decoder errors to LOGL_ERROR + + [ Pau Espin Pedrol ] + * Drop no longer needed systemd config in build system + * jenkins.sh: osmo-iuh no longer has doc/manuals/ make target + * iu_client: Prevent crash if msgb passed to ranap_iu_tx has no dst + * iu_client: Fix incorrect access to null pointer + * Make logging message about received RANAP message more meaningful + + [ Neels Hofmeyr ] + * move new_transp_layer_addr to public API + + [ Harald Welte ] + * update git URLs (git -> https; gitea) + * README.md: remove obsolete notice from 7 years ago + + -- Pau Espin Pedrol <pespin@sysmocom.de> Tue, 28 Jun 2022 18:59:56 +0200 + +osmo-iuh (1.2.0) unstable; urgency=medium + + [ Oliver Smith ] + * treewide: remove FSF address + + [ Pau Espin Pedrol ] + * tests/tests_common.c: Add missing header + * Introduce dynamic log category for libosmo-rua/hnbap + * Drop osmo-hnbgw + * tests/dummy_cn_sua.c: Drop no longer existing include + + -- Pau Espin Pedrol <pespin@sysmocom.de> Wed, 05 Jan 2022 12:26:51 +0100 + +osmo-iuh (1.1.0) unstable; urgency=medium + + * gitignore: Ignore libsmo-{hnbap,rua}.pc + + -- Pau Espin Pedrol <pespin@sysmocom.de> Wed, 17 Nov 2021 11:56:26 +0100 + +osmo-iuh (0.8.0) unstable; urgency=medium + + [ Harald Welte ] + * hnbgw: Add missing break statement + + [ Pau Espin Pedrol ] + * iu_client: Log event sent to upper layer callback + * ranap_iu_tx_release_free(): always trigger RANAP_IU_EVENT_IU_RELEASE as a result + * hnb-test: Fix typo in vty cmd description + * cosmetic: src/ranap/Makefile.am: Drop trailing whitespace + * src/tests/Makefile.am: Drop reference to non-existent RANAP_FILES var + * src/*/Makefile.am: Fix trailing whitespace + * Provide libosmo-hnbap as a public shared library + * Provide libosmo-rua as a public shared library + * move-asn1-header-files.sh: Replace original asn file path in generated asn1 header files + * README.md: Document how to re-generate code from ASN1 files + * hnbgw_rua.c: Use proper type struct + * hnbgw_cn.c: Use proper type struct + * hnb-test: Fix rc var may be used uninitialized + * src/*/Makefile.am: Copy back to srcdir the generated .c files from ASN + * src/*/Makefile.am: Use asn1c -R to avoid generating runtime code + * Update generated .c/.h after using asn1c -R param + * hnbap: Use specific prefix for HNBAP generated code + * hnbap: Drop no longer existing asn1c param -fnative-types + * hnbap: Use asn1c flag -fcompound-names to avoid name collisions with other libs + * rua: Use asn1c flag -fcompound-names to avoid name collisions with other libs + * sabp: Use asn1c flag -fcompound-names to avoid name collisions with other libs + * ranap: Use asn1c flag -fcompound-names to avoid name collisions with other libs + * hnb-test: Fix memleak in hnb_read_cb + + [ Oliver Smith ] + * contrib/osmo-iuh.spec.in: fix header packaging + * contrib/osmo-iuh.spec: fix missing ldconfig lines + * Cosmetic: put asn1c parameters in separate lines + + -- Pau Espin Pedrol <pespin@sysmocom.de> Tue, 16 Nov 2021 17:13:09 +0100 + +osmo-iuh (0.7.0) unstable; urgency=medium + + [ Martin Hauke ] + * tests: Missing return statement + + [ Pau Espin Pedrol ] + * tests/hnb-test-ranap.c: Fix wrong printf format + * tests/test-ranap.c: Fix wrong printf format + * Fix compiler warning on signedness of char ptr using OCTET_STRING_fromBuf() + * hnbgw_vty.c: Drop unusued variables + * tests: Fix trailing whitespace + * Fix OneDefinitionRule Asan violation in tests and osmo-hnbgw + * Change default SCTP conn NULL->127.0.0.1 to localhost->localhost + * hnbgw: Mark SCTP conn as NODELAY + * contrib/jenkins: Enable parallel make in make distcheck + * tests/hnb-test-ranap: Fix incorrect pointer type cast + * tests/hnb-test: Drop unused variables + * tests/hnb-test: Fix signedness of imsi_buf + * tests/hnb-test: check return code of hnbap_encode_ueregisterrequesties + * tests/hnb-test-ranap: Fix incorrect signedness in pointer + * tests/hnb-test-ranap: Fix missing include for ranap_bcd_decode + * tests/hnb-test: Fix uninitialized use of rc variable + * tests/hnb-test: Fix signedness of assigned pointer + * tests/hnb-test: Initialize logging with existing struct log_info + * tests/hnb-test: Disable building unsued code + * tests: Explicitly drop category from log + * tests: Replace deprecated API log_set_print_filename + * hnbgw: Avoid re-defining same global variable twice + * Workaround ASan report memleak during call to --vty-ref-xml + + [ Neels Hofmeyr ] + * manual: add "Configuring Primary Links" and "Multiple instances" + * manual: link to new common cs7-config.adoc + + [ Vadim Yanitskiy ] + * tests/test-helpers: fix some -Wpointer-sign warnings reported by GCC + * tests/test-helpers: fix endianness: do not print uint32_t as raw bytes + * tests/test-ranap: cosmetic: remove unused variable 'rc' + * debian/control: change maintainer to the Osmocom team / mailing list + * vty: use install_lib_element() and install_lib_element_ve() + + [ Eric ] + * configure.ac: fix libtool issue with clang and sanitizer + + [ Philipp Maier ] + * hnbgw: do not use LOGL_DEBUG as default loglevel + + [ Harald Welte ] + * Fix compilation with gcc-10 + * Provide more context when logging "Error in ANY_fromType_aper" + * hnbgw: use OSMO_STRLCPY_ARRAY() instead of open coding it + * hnbgw: Introduce LOGHNB() macro for log context information + * debian: Actually build manuals; add osmo-hnbgw-doc package + * configure.ac: Ensure netinet/sctp.h is present + * hnbgw: Use LOGHNB() to add log context information to log lines + * ranap_msg_factory: Allow detailed control over UEA/UIA algorithm encoded + * ranap_msg_factory: Fix LOGP statements + * main: add --vty-ref-mode, use vty_dump_xml_ref_mode() + * manuals: generate vty reference xml at build time + + [ Oliver Smith ] + * contrib: import RPM spec + * contrib: integrate RPM spec + * Makefile.am: EXTRA_DIST: debian, contrib/*.spec.in + * contrib/jenkins: don't build osmo-gsm-manuals + * configure.ac: set -std=gnu11 + + -- Pau Espin Pedrol <pespin@sysmocom.de> Tue, 23 Feb 2021 20:11:59 +0100 + osmo-iuh (0.6.0) unstable; urgency=medium [ Vadim Yanitskiy ] diff --git a/debian/compat b/debian/compat index ec63514..f599e28 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -9 +10 diff --git a/debian/control b/debian/control index 416b9d7..8c61fc9 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: osmo-iuh Section: libs Priority: extra Maintainer: Osmocom team <openbsc@lists.osmocom.org> -Build-Depends: debhelper (>=9), +Build-Depends: debhelper (>= 10), dh-autoreconf, pkg-config, autoconf, @@ -11,32 +11,39 @@ Build-Depends: debhelper (>=9), git, libasn1c-dev, libsctp-dev, - libosmocore-dev (>= 0.12.0), - libosmo-netif-dev (>= 0.3.0), - libosmo-sigtran-dev (>= 0.10.0), + libosmocore-dev (>= 1.9.0), + libosmo-netif-dev (>= 1.4.0), + libosmo-sigtran-dev (>= 1.8.0), + osmo-gsm-manuals-dev (>= 1.5.0), python3 Standards-Version: 3.9.8 -Vcs-Git: git://git.osmocom.org/osmo-iuh.git -Vcs-Browser: https://git.osmocom.org/osmo-iuh/ +Vcs-Git: https://gitea.osmocom.org/cellular-infrastructure/osmo-iuh +Vcs-Browser: https://gitea.osmocom.org/cellular-infrastructure/osmo-iuh Homepage: https://projects.osmocom.org/projects/osmohnbgw -Package: osmo-hnbgw -Section: net +Package: libosmo-hnbap0 +Section: libs Architecture: any -Multi-Arch: no +Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends} -Description: osmocom Home Node B Gateway +Description: Osmocom code for the Iuh interface (HNBAP, RUA, RANAP) -Package: osmo-hnbgw-dbg +Package: libosmo-hnbap-dbg Section: debug Architecture: any -Multi-Arch: no -Pre-Depends: ${misc:Pre-Depends} -Depends: osmo-hnbgw (= ${binary:Version}), ${misc:Depends} -Description: osmocom Home Node B Gateway +Multi-Arch: same +Depends: libosmo-hnbap0 (= ${binary:Version}), ${misc:Depends} +Description: Osmocom code for the Iuh interface (HNBAP, RUA, RANAP) + +Package: libosmo-hnbap-dev +Section: libdevel +Architecture: any +Multi-Arch: same +Depends: libosmo-hnbap0 (= ${binary:Version}), ${misc:Depends} +Description: Osmocom code for the Iuh interface (HNBAP, RUA, RANAP) -Package: libosmo-ranap3 +Package: libosmo-ranap7 Section: libs Architecture: any Multi-Arch: same @@ -48,17 +55,39 @@ Package: libosmo-ranap-dbg Section: debug Architecture: any Multi-Arch: same -Depends: libosmo-ranap3 (= ${binary:Version}), ${misc:Depends} +Depends: libosmo-ranap7 (= ${binary:Version}), ${misc:Depends} Description: Osmocom code for the Iuh interface (HNBAP, RUA, RANAP) Package: libosmo-ranap-dev Section: libdevel Architecture: any Multi-Arch: same -Depends: libosmo-ranap3 (= ${binary:Version}), ${misc:Depends} +Depends: libosmo-ranap7 (= ${binary:Version}), ${misc:Depends} +Description: Osmocom code for the Iuh interface (HNBAP, RUA, RANAP) + +Package: libosmo-rua0 +Section: libs +Architecture: any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: Osmocom code for the Iuh interface (HNBAP, RUA, RANAP) + +Package: libosmo-rua-dbg +Section: debug +Architecture: any +Multi-Arch: same +Depends: libosmo-rua0 (= ${binary:Version}), ${misc:Depends} +Description: Osmocom code for the Iuh interface (HNBAP, RUA, RANAP) + +Package: libosmo-rua-dev +Section: libdevel +Architecture: any +Multi-Arch: same +Depends: libosmo-rua0 (= ${binary:Version}), ${misc:Depends} Description: Osmocom code for the Iuh interface (HNBAP, RUA, RANAP) -Package: libosmo-sabp0 +Package: libosmo-sabp1 Section: libs Architecture: any Multi-Arch: same @@ -70,12 +99,12 @@ Package: libosmo-sabp-dbg Section: debug Architecture: any Multi-Arch: same -Depends: libosmo-sabp0 (= ${binary:Version}), ${misc:Depends} +Depends: libosmo-sabp1 (= ${binary:Version}), ${misc:Depends} Description: Osmocom code for the Iuh interface (SABP) Package: libosmo-sabp-dev Section: libdevel Architecture: any Multi-Arch: same -Depends: libosmo-sabp0 (= ${binary:Version}), ${misc:Depends} +Depends: libosmo-sabp1 (= ${binary:Version}), ${misc:Depends} Description: Osmocom code for the Iuh interface (SABP) diff --git a/debian/copyright b/debian/copyright index 5cb4a3a..ae4cebb 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,6 +1,6 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: osmo-iuh -Source: git://git.osmocom.org/ +Source: https://gitea.osmocom.org/cellular-infrastructure/osmo-iuh Files: * Copyright: 2015 Daniel Willmann <dwillmann@sysmocom.de> diff --git a/debian/libosmo-hnbap-dev.install b/debian/libosmo-hnbap-dev.install new file mode 100644 index 0000000..4191a57 --- /dev/null +++ b/debian/libosmo-hnbap-dev.install @@ -0,0 +1,3 @@ +usr/include/osmocom/hnbap +usr/lib/*/libosmo-hnbap.so +usr/lib/*/pkgconfig/libosmo-hnbap.pc diff --git a/debian/libosmo-hnbap0.install b/debian/libosmo-hnbap0.install new file mode 100644 index 0000000..766f1f1 --- /dev/null +++ b/debian/libosmo-hnbap0.install @@ -0,0 +1 @@ +usr/lib/*/libosmo-hnbap*.so.* diff --git a/debian/libosmo-ranap3.install b/debian/libosmo-ranap7.install index 56abca6..56abca6 100644 --- a/debian/libosmo-ranap3.install +++ b/debian/libosmo-ranap7.install diff --git a/debian/libosmo-rua-dev.install b/debian/libosmo-rua-dev.install new file mode 100644 index 0000000..b615076 --- /dev/null +++ b/debian/libosmo-rua-dev.install @@ -0,0 +1,3 @@ +usr/include/osmocom/rua +usr/lib/*/libosmo-rua.so +usr/lib/*/pkgconfig/libosmo-rua.pc diff --git a/debian/libosmo-rua0.install b/debian/libosmo-rua0.install new file mode 100644 index 0000000..ac07bed --- /dev/null +++ b/debian/libosmo-rua0.install @@ -0,0 +1 @@ +usr/lib/*/libosmo-rua*.so.* diff --git a/debian/libosmo-sabp0.install b/debian/libosmo-sabp1.install index 01cecb5..01cecb5 100644 --- a/debian/libosmo-sabp0.install +++ b/debian/libosmo-sabp1.install diff --git a/debian/osmo-hnbgw.install b/debian/osmo-hnbgw.install deleted file mode 100644 index f040f23..0000000 --- a/debian/osmo-hnbgw.install +++ /dev/null @@ -1,4 +0,0 @@ -etc/osmocom/osmo-hnbgw.cfg -lib/systemd/system/osmo-hnbgw.service -usr/bin/osmo-hnbgw -usr/share/doc/osmo-iuh/examples/osmo-hnbgw.cfg diff --git a/debian/rules b/debian/rules index c3bdf50..a1b7e18 100755 --- a/debian/rules +++ b/debian/rules @@ -10,13 +10,15 @@ VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g') # See https://www.debian.org/doc/manuals/developers-reference/best-pkging-practices.html#bpp-dbg override_dh_strip: - dh_strip -plibosmo-ranap3 --dbg-package=libosmo-ranap-dbg - dh_strip -plibosmo-sabp0 --dbg-package=libosmo-sabp-dbg - dh_strip -posmo-hnbgw --dbg-package=osmo-hnbgw-dbg + dh_strip -plibosmo-hnbap0 --dbg-package=libosmo-hnbap-dbg + dh_strip -plibosmo-ranap7 --dbg-package=libosmo-ranap-dbg + dh_strip -plibosmo-rua0 --dbg-package=libosmo-rua-dbg + dh_strip -plibosmo-sabp1 --dbg-package=libosmo-sabp-dbg # Print test results in case of a failure override_dh_auto_test: dh_auto_test || (find . -name testsuite.log -exec cat {} \; ; false) -override_dh_auto_configure: - dh_auto_configure -- --with-systemdsystemunitdir=/lib/systemd/system +# Don't create .pdf.gz files (barely saves space and they can't be opened directly by most pdf readers) +override_dh_compress: + dh_compress -X.pdf diff --git a/doc/Makefile.am b/doc/Makefile.am index eeed875..e8a44b9 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,6 +1,4 @@ SUBDIRS = \ - examples \ - manuals \ $(NULL) EXTRA_DIST = \ @@ -11,5 +9,4 @@ EXTRA_DIST = \ hnb_cs_mt_sms.msc \ hnb_ps_lu.msc \ hnb_ps_pdp_act.msc \ - protocols_around_hnbgw.txt \ README diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am deleted file mode 100644 index 7441d48..0000000 --- a/doc/examples/Makefile.am +++ /dev/null @@ -1,27 +0,0 @@ -osmoconfdir = $(sysconfdir)/osmocom -osmoconf_DATA = osmo-hnbgw.cfg - -EXTRA_DIST = osmo-hnbgw.cfg - -CFG_FILES = find $(srcdir) -name '*.cfg*' | sed -e 's,^$(srcdir),,' - -dist-hook: - for f in $$($(CFG_FILES)); do \ - j="$(distdir)/$$f" && \ - mkdir -p "$$(dirname $$j)" && \ - $(INSTALL_DATA) $(srcdir)/$$f $$j; \ - done - -install-data-hook: - for f in $$($(CFG_FILES)); do \ - j="$(DESTDIR)$(docdir)/examples/$$f" && \ - mkdir -p "$$(dirname $$j)" && \ - $(INSTALL_DATA) $(srcdir)/$$f $$j; \ - done - -uninstall-hook: - @$(PRE_UNINSTALL) - for f in $$($(CFG_FILES)); do \ - j="$(DESTDIR)$(docdir)/examples/$$f" && \ - $(RM) $$j; \ - done diff --git a/doc/examples/osmo-hnbgw.cfg b/doc/examples/osmo-hnbgw.cfg deleted file mode 100644 index 9286b2a..0000000 --- a/doc/examples/osmo-hnbgw.cfg +++ /dev/null @@ -1,25 +0,0 @@ -! -! OsmoHNBGW (0) configuration saved from vty -!! -! -log stderr - logging filter all 1 - logging color 1 - logging print category 1 - logging timestamp 1 - logging print extended-timestamp 1 - logging level all debug - logging level lglobal notice - logging level llapd notice - logging level linp notice - logging level lmux notice - logging level lmi notice - logging level lmib notice - logging level lsms notice - logging level lctrl notice - logging level lgtp notice - logging level lstats notice -hnbgw - iuh - local-ip 0.0.0.0 - hnbap-allow-tmsi 1 diff --git a/doc/manuals/Makefile.am b/doc/manuals/Makefile.am deleted file mode 100644 index 7a76e90..0000000 --- a/doc/manuals/Makefile.am +++ /dev/null @@ -1,19 +0,0 @@ -EXTRA_DIST = \ - osmohnbgw-usermanual.adoc \ - osmohnbgw-usermanual-docinfo.xml \ - chapters \ - osmohnbgw-vty-reference.xml \ - regen_doc.sh \ - vty - -if BUILD_MANUALS - ASCIIDOC = osmohnbgw-usermanual.adoc - ASCIIDOC_DEPS = $(srcdir)/chapters/*.adoc - include $(OSMO_GSM_MANUALS_DIR)/build/Makefile.asciidoc.inc - - VTY_REFERENCE = osmohnbgw-vty-reference.xml - include $(OSMO_GSM_MANUALS_DIR)/build/Makefile.vty-reference.inc - - OSMO_REPOSITORY = osmo-hnbgw - include $(OSMO_GSM_MANUALS_DIR)/build/Makefile.common.inc -endif diff --git a/doc/manuals/chapters/overview.adoc b/doc/manuals/chapters/overview.adoc deleted file mode 100644 index 2368b4f..0000000 --- a/doc/manuals/chapters/overview.adoc +++ /dev/null @@ -1,56 +0,0 @@ -[[overview]] -== Overview - - -[[intro_overview]] -=== About OsmoHNBGW - -OsmoHNBGW implements the Home NodeB Gateway function in the 3G network architecture. It serves -as a gateway between the classic 3G core network (CN) domain with its IuCS and IuPS interface -and the femtocell based RAN. - -A typical 3G network consisting of Osmocom components will look as illustrated in the following -diagram: - -[[fig-3g]] -.Typical 3G network architecture used with OsmoHNBGW ----- - +------------+ +--------+ +----------+ +---------+ - UE <-->| hNodeB |<--Iuh---->| HNB-GW |<--IuCS-->| OsmoMSC |<--GSUP-->| OsmoHLR | - UE <-->| femto cell | ...-->| | ...-->| | | | - | | | | +----------+ +---------| - +------------+<--GTP-U | | - \ | | +------+ +------+ - | | |<--IuPS-->| SGSN |<--GTP-C-->| GGSN | - | +--------+ ...-->| | GTP-U-->| | - | +------+ / +------+ - \_______________________________/ ----- - -The HNB-GW performs a translation interface between the IuCS/IuPS interfaces on the one hand -side, and the Iuh interface on the or ther hand: - ----- - Iuh IuCS/IuPS - -NAS +----+----+ +----+----+ -Non-Access Stratum | CC | MM | | CC | MM | -- - - - - - - - - - - +----+----+-------+ +----+----+ - | RANAP | | H | RANAP | -Access Stratum +---------+ HNBAP | N +---------+ - - SCCP USER SAP - | RUA | | B | SUA | \ - +---------+-------+ - +---------+ | - | SCTP | G | SCTP | } SIGTRAN - +-----------------+ W +---------+ | - | IP | | IP | / - +-----------------+ +---------+ ----- - -On the femtocell (Home NodeB) side, OsmoHNBGW implements the Iuh interface as specified by 3GPP. - -=== The Iuh interface - -Iuh consists of the following sub-layers: - -- HNBAP (Home NodeB Application Part) -- RUA (RANAP User Adaptation, between RANAP and SCTP diff --git a/doc/manuals/chapters/running.adoc b/doc/manuals/chapters/running.adoc deleted file mode 100644 index f40027a..0000000 --- a/doc/manuals/chapters/running.adoc +++ /dev/null @@ -1,119 +0,0 @@ -== Running OsmoHNBGW - -The OsmoHNBGW executable (`osmo-hnbgw`) offers the following command-line -arguments: - -=== SYNOPSIS - -*osmo-hnbgw* [-h|-V] [-d 'DBGMASK'] [-D] [-c 'CONFIGFILE'] [-s] [-T] [-e 'LOGLEVEL'] - -=== OPTIONS - -*-h, --help*:: - Print a short help message about the supported options -*-V, --version*:: - Print the compile-time version number of the OsmoHNBGW program -*-d, --debug 'DBGMASK','DBGLEVELS'*:: - Set the log subsystems and levels for logging to stderr. This - has mostly been superseded by VTY-based logging configuration, - see <<logging>> for further information. -*-D, --daemonize*:: - Fork the process as a daemon into background. -*-c, --config-file 'CONFIGFILE'*:: - Specify the file and path name of the configuration file to be - used. If none is specified, use `osmo-msc.cfg` in the current - working directory. -*-s, --disable-color*:: - Disable colors for logging to stderr. This has mostly been - deprecated by VTY based logging configuration, see <<logging>> - for more information. -*-T, --timestamp*:: - Enable time-stamping of log messages to stderr. This has mostly - been deprecated by VTY based logging configuration, see - <<logging>> for more information. -*-e, --log-level 'LOGLEVEL'*:: - Set the global log level for logging to stderr. This has mostly - been deprecated by VTY based logging configuration, see - <<logging>> for more information. - - -=== Multiple instances - -Running multiple instances of `osmo-hnbgw` on the same computer is possible if -all interfaces (VTY, CTRL, Iuh) are separated using the appropriate -configuration options. The IP based interfaces are binding to local host by -default. In order to separate the processes, the user has to bind those -services to specific but different IP addresses and/or ports. - -The VTY and the Control interface can be bound to IP addresses from the loopback -address range, for example: - ----- -line vty - bind 127.0.0.2 -ctrl - bind 127.0.0.2 ----- - -The Iuh interface can be bound to an individual port: - ----- -hnbgw - iuh - local-ip 0.0.0.0 - local-port 29169 ----- - -For the following links, OsmoHNBGW acts as a client and does not listen/bind to a -specific interface, and will hence not encounter conflicts for multiple instances -running on the same interface: - -- The SCCP/M3UA links are established by OsmoHNBGW contacting an STP. - -To run multiple OsmoHNBGW instances on the same SCCP routing, each HNBGW has to -configure a distinct point-code, see <<configure_iucs_iups>>. - - -=== Configuring Primary Links - -[[configure_iucs_iups]] -==== Configure SCCP/M3UA to connect to an MSC's _IuCS_ and an SGSN's _IuPS_ interface - -OsmoHNBGW acts as client to contact an STP instance and establish an SCCP/M3UA -link. - -An example configuration of OsmoHNBGW's SCCP link: - ----- -cs7 instance 0 - point-code 0.23.5 - asp asp-clnt-OsmoHNBGW 2905 0 m3ua - remote-ip 127.0.0.1 - sctp-role client - sccp-address msc - routing-indicator PC - point-code 0.23.1 - sccp-address sgsn - routing-indicator PC - point-code 0.23.2 -hnbgw - iucs - remote-addr msc - iups - remote-addr sgsn ----- - -This configuration is explained in detail in <<cs7_config>>. - -==== Configure RUA to accept Iuh connections from hNodeB - -OsmoHNBGW acts as server to accept Iuh connections from hNodeB devices. - -An example configuration for OsmoHNBGW's RUA server: - ----- -hnbgw - iuh - local-ip 10.9.8.7 - local-port 29169 ----- diff --git a/doc/manuals/osmohnbgw-usermanual-docinfo.xml b/doc/manuals/osmohnbgw-usermanual-docinfo.xml deleted file mode 100644 index 404d2a1..0000000 --- a/doc/manuals/osmohnbgw-usermanual-docinfo.xml +++ /dev/null @@ -1,51 +0,0 @@ -<revhistory> - <revision> - <revnumber>1</revnumber> - <date>November 30th, 2019</date> - <authorinitials>HW</authorinitials> - <revremark> - Initial version - </revremark> - </revision> -</revhistory> - -<authorgroup> - <author> - <firstname>Harald</firstname> - <surname>Welte</surname> - <email>hwelte@sysmocom.de</email> - <authorinitials>HW</authorinitials> - <affiliation> - <shortaffil>sysmocom</shortaffil> - <orgname>sysmocom - s.f.m.c. GmbH</orgname> - <jobtitle>Managing Director</jobtitle> - </affiliation> - </author> -</authorgroup> - -<copyright> - <year>2019</year> - <holder>sysmocom - s.f.m.c. GmbH</holder> -</copyright> - -<legalnotice> - <para> - Permission is granted to copy, distribute and/or modify this - document under the terms of the GNU Free Documentation License, - Version 1.3 or any later version published by the Free Software - Foundation; with the Invariant Sections being just 'Foreword', - 'Acknowledgements' and 'Preface', with no Front-Cover Texts, - and no Back-Cover Texts. A copy of the license is included in - the section entitled "GNU Free Documentation License". - </para> - <para> - The Asciidoc source code of this manual can be found at - <ulink url="http://git.osmocom.org/osmo-hnbgw/"> - http://git.osmocom.org/osmo-hnbgw/ - </ulink> - and of the common chapters at - <ulink url="http://git.osmocom.org/osmo-gsm-manuals/"> - http://git.osmocom.org/osmo-gsm-manuals/ - </ulink> - </para> -</legalnotice> diff --git a/doc/manuals/osmohnbgw-usermanual.adoc b/doc/manuals/osmohnbgw-usermanual.adoc deleted file mode 100644 index 21faed7..0000000 --- a/doc/manuals/osmohnbgw-usermanual.adoc +++ /dev/null @@ -1,37 +0,0 @@ -:gfdl-enabled: -:program-name: OsmoHNBGW - -OsmoHNBGW User Manual -===================== -Harald Welte <hwelte@sysmocom.de> - - -include::./common/chapters/preface.adoc[] - -include::{srcdir}/chapters/overview.adoc[] - -include::{srcdir}/chapters/running.adoc[] - -// include::{srcdir}/chapters/control.adoc[] - -// include::./common/chapters/counters-overview.adoc[] - -// include::{srcdir}/chapters/counters.adoc[] - -include::./common/chapters/vty.adoc[] - -include::./common/chapters/logging.adoc[] - -include::./common/chapters/cs7-config.adoc[] - -// include::{srcdir}/chapters/net.adoc[] - -// include::./common/chapters/control_if.adoc[] - -include::./common/chapters/port_numbers.adoc[] - -include::./common/chapters/bibliography.adoc[] - -include::./common/chapters/glossary.adoc[] - -include::./common/chapters/gfdl.adoc[] diff --git a/doc/manuals/osmohnbgw-vty-reference.xml b/doc/manuals/osmohnbgw-vty-reference.xml deleted file mode 100644 index cd69333..0000000 --- a/doc/manuals/osmohnbgw-vty-reference.xml +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - ex:ts=2:sw=42sts=2:et - -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- ---> -<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML 5.0//EN" -"http://docbook.org/xml/5.0/dtd/docbook.dtd" [ -<!ENTITY chapter-vty SYSTEM "./common/chapters/vty.xml" > -<!ENTITY sections-vty SYSTEM "generated/docbook_vty.xml" > -]> - -<book> - <info> - <revhistory> - <revision> - <revnumber>v1</revnumber> - <date>29th July 2019</date> - <authorinitials>dw</authorinitials> - <revremark>Initial</revremark> - </revision> - </revhistory> - - <title>OsmoHNBGW VTY Reference</title> - - <copyright> - <year>2019</year> - </copyright> - - <legalnotice> - <para>This work is copyright by <orgname>sysmocom - s.f.m.c. GmbH</orgname>. All rights reserved. - </para> - </legalnotice> - </info> - - <!-- Main chapters--> - &chapter-vty; -</book> - diff --git a/doc/manuals/regen_doc.sh b/doc/manuals/regen_doc.sh deleted file mode 100755 index 39dd9ee..0000000 --- a/doc/manuals/regen_doc.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh -x - -if [ -z "$DOCKER_PLAYGROUND" ]; then - echo "You need to set DOCKER_PLAYGROUND" - exit 1 -fi - -SCRIPT=$(realpath "$0") -MANUAL_DIR=$(dirname "$SCRIPT") - -COMMIT=${COMMIT:-$(git log -1 --format=format:%H)} - -cd "$DOCKER_PLAYGROUND/scripts" || exit 1 - -OSMO_SGSN_BRANCH=$COMMIT ./regen_doc.sh osmo-hnbgw 4261 \ - "$MANUAL_DIR/chapters/counters_generated.adoc" \ - "$MANUAL_DIR/vty/hnbgw_vty_reference.xml" diff --git a/doc/manuals/vty/hnbgw_vty_additions.xml b/doc/manuals/vty/hnbgw_vty_additions.xml deleted file mode 100644 index a4c675e..0000000 --- a/doc/manuals/vty/hnbgw_vty_additions.xml +++ /dev/null @@ -1,2 +0,0 @@ -<vtydoc xmlns='urn:osmocom:xml:libosmocore:vty:doc:1.0'> -</vtydoc> diff --git a/doc/manuals/vty/hnbgw_vty_reference.xml b/doc/manuals/vty/hnbgw_vty_reference.xml deleted file mode 100644 index 4046636..0000000 --- a/doc/manuals/vty/hnbgw_vty_reference.xml +++ /dev/null @@ -1,1535 +0,0 @@ -<vtydoc xmlns='urn:osmocom:xml:libosmocore:vty:doc:1.0'> - <node id='_common_cmds_'> - <name>Common Commands</name> - <description>These commands are available on all VTY nodes. They are listed here only once, to unclutter the VTY reference.</description> - <command id='help'> - <params> - <param name='help' doc='Description of the interactive help system' /> - </params> - </command> - <command id='list'> - <params> - <param name='list' doc='Print command list' /> - </params> - </command> - <command id='write terminal'> - <params> - <param name='write' doc='Write running configuration to memory, network, or terminal' /> - <param name='terminal' doc='Write to terminal' /> - </params> - </command> - <command id='write file'> - <params> - <param name='write' doc='Write running configuration to memory, network, or terminal' /> - <param name='file' doc='Write to configuration file' /> - </params> - </command> - <command id='write memory'> - <params> - <param name='write' doc='Write running configuration to memory, network, or terminal' /> - <param name='memory' doc='Write configuration to the file (same as write file)' /> - </params> - </command> - <command id='write'> - <params> - <param name='write' doc='Write running configuration to memory, network, or terminal' /> - </params> - </command> - <command id='show running-config'> - <params> - <param name='show' doc='Show running system information' /> - <param name='running-config' doc='running configuration' /> - </params> - </command> - <command id='exit'> - <params> - <param name='exit' doc='Exit current mode and down to previous mode' /> - </params> - </command> - <command id='end'> - <params> - <param name='end' doc='End current mode and change to enable mode.' /> - </params> - </command> - </node> - <node id='view'> - <name>view</name> - <command id='show version'> - <params> - <param name='show' doc='Show running system information' /> - <param name='version' doc='Displays program version' /> - </params> - </command> - <command id='show online-help'> - <params> - <param name='show' doc='Show running system information' /> - <param name='online-help' doc='Online help' /> - </params> - </command> - <command id='enable'> - <params> - <param name='enable' doc='Turn on privileged mode command' /> - </params> - </command> - <command id='terminal length <0-512>'> - <params> - <param name='terminal' doc='Set terminal line parameters' /> - <param name='length' doc='Set number of lines on a screen' /> - <param name='<0-512>' doc='Number of lines on screen (0 for no pausing)' /> - </params> - </command> - <command id='terminal no length'> - <params> - <param name='terminal' doc='Set terminal line parameters' /> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='length' doc='Set number of lines on a screen' /> - </params> - </command> - <command id='who'> - <params> - <param name='who' doc='Display who is on vty' /> - </params> - </command> - <command id='show history'> - <params> - <param name='show' doc='Show running system information' /> - <param name='history' doc='Display the session command history' /> - </params> - </command> - <command id='show cs7 instance <0-15> users'> - <params> - <param name='show' doc='Show running system information' /> - <param name='cs7' doc='ITU-T Signaling System 7' /> - <param name='instance' doc='An instance of the SS7 stack' /> - <param name='<0-15>' doc='An instance of the SS7 stack' /> - <param name='users' doc='User Table' /> - </params> - </command> - <command id='show cs7 (sua|m3ua|ipa) [<0-65534>]'> - <params> - <param name='show' doc='Show running system information' /> - <param name='cs7' doc='ITU-T Signaling System 7' /> - <param name='sua' doc='SCCP User Adaptation' /> - <param name='m3ua' doc='MTP3 User Adaptation' /> - <param name='ipa' doc='IPA Multiplex (SCCP Lite)' /> - <param name='[<0-65534>]' doc='Port Number' /> - </params> - </command> - <command id='show cs7 instance <0-15> asp'> - <params> - <param name='show' doc='Show running system information' /> - <param name='cs7' doc='ITU-T Signaling System 7' /> - <param name='instance' doc='An instance of the SS7 stack' /> - <param name='<0-15>' doc='An instance of the SS7 stack' /> - <param name='asp' doc='Application Server Process (ASP)' /> - </params> - </command> - <command id='show cs7 instance <0-15> as (active|all|m3ua|sua)'> - <params> - <param name='show' doc='Show running system information' /> - <param name='cs7' doc='ITU-T Signaling System 7' /> - <param name='instance' doc='An instance of the SS7 stack' /> - <param name='<0-15>' doc='An instance of the SS7 stack' /> - <param name='as' doc='Application Server (AS)' /> - <param name='active' doc='Display all active ASs' /> - <param name='all' doc='Display all ASs (default)' /> - <param name='m3ua' doc='Display all m3ua ASs' /> - <param name='sua' doc='Display all SUA ASs' /> - </params> - </command> - <command id='show cs7 instance <0-15> sccp addressbook'> - <params> - <param name='show' doc='Show running system information' /> - <param name='cs7' doc='ITU-T Signaling System 7' /> - <param name='instance' doc='An instance of the SS7 stack' /> - <param name='<0-15>' doc='An instance of the SS7 stack' /> - <param name='sccp' doc='Signalling Connection Control Part' /> - <param name='addressbook' doc='List all SCCP addressbook entries' /> - </params> - </command> - <command id='show cs7 instance <0-15> sccp users'> - <params> - <param name='show' doc='Show running system information' /> - <param name='cs7' doc='ITU-T Signaling System 7' /> - <param name='instance' doc='An instance of the SS7 stack' /> - <param name='<0-15>' doc='An instance of the SS7 stack' /> - <param name='sccp' doc='Signalling Connection Control Part' /> - <param name='users' doc='Show List of SCCP Users registered' /> - </params> - </command> - <command id='show cs7 instance <0-15> sccp ssn <0-65535>'> - <params> - <param name='show' doc='Show running system information' /> - <param name='cs7' doc='ITU-T Signaling System 7' /> - <param name='instance' doc='An instance of the SS7 stack' /> - <param name='<0-15>' doc='An instance of the SS7 stack' /> - <param name='sccp' doc='Signalling Connection Control Part' /> - <param name='ssn' doc='Find an SCCP User registered for the given SSN' /> - <param name='<0-65535>' doc='Subsystem Number (SSN)' /> - </params> - </command> - <command id='show cs7 instance <0-15> sccp connections'> - <params> - <param name='show' doc='Show running system information' /> - <param name='cs7' doc='ITU-T Signaling System 7' /> - <param name='instance' doc='An instance of the SS7 stack' /> - <param name='<0-15>' doc='An instance of the SS7 stack' /> - <param name='sccp' doc='Signalling Connection Control Part' /> - <param name='connections' doc='Show List of active SCCP connections' /> - </params> - </command> - <command id='show cs7 instance <0-15> sccp timers'> - <params> - <param name='show' doc='Show running system information' /> - <param name='cs7' doc='ITU-T Signaling System 7' /> - <param name='instance' doc='An instance of the SS7 stack' /> - <param name='<0-15>' doc='An instance of the SS7 stack' /> - <param name='sccp' doc='Signaling Connection Control Part' /> - <param name='timers' doc='Show List of SCCP timers' /> - </params> - </command> - <command id='show cnlink'> - <params> - <param name='show' doc='Show running system information' /> - <param name='cnlink' doc='Display information on core network link' /> - </params> - </command> - <command id='show hnb all'> - <params> - <param name='show' doc='Show running system information' /> - <param name='hnb' doc='Display information about all HNB' /> - <param name='all' doc='(null)' /> - </params> - </command> - <command id='show hnb NAME '> - <params> - <param name='show' doc='Show running system information' /> - <param name='hnb' doc='Display information about a HNB' /> - <param name='NAME' doc='(null)' /> - </params> - </command> - <command id='show ue all'> - <params> - <param name='show' doc='Show running system information' /> - <param name='ue' doc='Display information about a UE' /> - <param name='all' doc='(null)' /> - </params> - </command> - <command id='show talloc'> - <params> - <param name='show' doc='Show running system information' /> - <param name='talloc' doc='Display talloc info' /> - </params> - </command> - <command id='logging enable'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='enable' doc='Enables logging to this vty' /> - </params> - </command> - <command id='logging disable'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='disable' doc='Disables logging to this vty' /> - </params> - </command> - <command id='logging filter all (0|1)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='filter' doc='Filter log messages' /> - <param name='all' doc='Do you want to log all messages?' /> - <param name='0' doc='Only print messages matched by other filters' /> - <param name='1' doc='Bypass filter and print all messages' /> - </params> - </command> - <command id='logging color (0|1)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='color' doc='Configure color-printing for log messages' /> - <param name='0' doc='Don't use color for printing messages' /> - <param name='1' doc='Use color for printing messages' /> - </params> - </command> - <command id='logging timestamp (0|1)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='timestamp' doc='Configure log message timestamping' /> - <param name='0' doc='Don't prefix each log message' /> - <param name='1' doc='Prefix each log message with current timestamp' /> - </params> - </command> - <command id='logging print extended-timestamp (0|1)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='print' doc='Log output settings' /> - <param name='extended-timestamp' doc='Configure log message timestamping' /> - <param name='0' doc='Don't prefix each log message' /> - <param name='1' doc='Prefix each log message with current timestamp with YYYYMMDDhhmmssnnn' /> - </params> - </command> - <command id='logging print category (0|1)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='print' doc='Log output settings' /> - <param name='category' doc='Configure log message' /> - <param name='0' doc='Don't prefix each log message' /> - <param name='1' doc='Prefix each log message with category/subsystem name' /> - </params> - </command> - <command id='logging print category-hex (0|1)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='print' doc='Log output settings' /> - <param name='category-hex' doc='Configure log message' /> - <param name='0' doc='Don't prefix each log message' /> - <param name='1' doc='Prefix each log message with category/subsystem nr in hex ('<000b>')' /> - </params> - </command> - <command id='logging print level (0|1)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='print' doc='Log output settings' /> - <param name='level' doc='Configure log message' /> - <param name='0' doc='Don't prefix each log message' /> - <param name='1' doc='Prefix each log message with the log level name' /> - </params> - </command> - <command id='logging print file (0|1|basename) [last]'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='print' doc='Log output settings' /> - <param name='file' doc='Configure log message' /> - <param name='0' doc='Don't prefix each log message' /> - <param name='1' doc='Prefix each log message with the source file and line' /> - <param name='basename' doc='Prefix each log message with the source file's basename (strip leading paths) and line' /> - <param name='[last]' doc='Log source file info at the end of a log line. If omitted, log source file info just before the log text.' /> - </params> - </command> - <command id='logging set-log-mask MASK'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='set-log-mask' doc='Set the logmask of this logging target' /> - <param name='MASK' doc='List of logging categories to log, e.g. 'abc:mno:xyz'. Available log categories depend on the specific application, refer to the 'logging level' command. Optionally add individual log levels like 'abc,1:mno,3:xyz,5', where the level numbers are LOGL_DEBUG=1 LOGL_INFO=3 LOGL_NOTICE=5 LOGL_ERROR=7 LOGL_FATAL=8' /> - </params> - </command> - <command id='logging level (main|hnbap|rua|ranap|lglobal|llapd|linp|lmux|lmi|lmib|lsms|lctrl|lgtp|lstats|lgsup|loap|lss7|lsccp|lsua|lm3ua|lmgcp|ljibuf|lrspro) (debug|info|notice|error|fatal)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='level' doc='Set the log level for a specified category' /> - <param name='main' doc='Main program' /> - <param name='hnbap' doc='Home Node B Application Part' /> - <param name='rua' doc='RANAP User Adaptation' /> - <param name='ranap' doc='RAN Application Part' /> - <param name='lglobal' doc='Library-internal global log family' /> - <param name='llapd' doc='LAPD in libosmogsm' /> - <param name='linp' doc='A-bis Intput Subsystem' /> - <param name='lmux' doc='A-bis B-Subchannel TRAU Frame Multiplex' /> - <param name='lmi' doc='A-bis Input Driver for Signalling' /> - <param name='lmib' doc='A-bis Input Driver for B-Channels (voice)' /> - <param name='lsms' doc='Layer3 Short Message Service (SMS)' /> - <param name='lctrl' doc='Control Interface' /> - <param name='lgtp' doc='GPRS GTP library' /> - <param name='lstats' doc='Statistics messages and logging' /> - <param name='lgsup' doc='Generic Subscriber Update Protocol' /> - <param name='loap' doc='Osmocom Authentication Protocol' /> - <param name='lss7' doc='libosmo-sigtran Signalling System 7' /> - <param name='lsccp' doc='libosmo-sigtran SCCP Implementation' /> - <param name='lsua' doc='libosmo-sigtran SCCP User Adaptation' /> - <param name='lm3ua' doc='libosmo-sigtran MTP3 User Adaptation' /> - <param name='lmgcp' doc='libosmo-mgcp Media Gateway Control Protocol' /> - <param name='ljibuf' doc='libosmo-netif Jitter Buffer' /> - <param name='lrspro' doc='Remote SIM protocol' /> - <param name='debug' doc='Log debug messages and higher levels' /> - <param name='info' doc='Log informational messages and higher levels' /> - <param name='notice' doc='Log noticeable messages and higher levels' /> - <param name='error' doc='Log error messages and higher levels' /> - <param name='fatal' doc='Log only fatal messages' /> - </params> - </command> - <command id='logging level set-all (debug|info|notice|error|fatal)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='level' doc='Set the log level for a specified category' /> - <param name='set-all' doc='Once-off set all categories to the given log level. There is no single command to take back these changes -- each category is set to the given level, period.' /> - <param name='debug' doc='Log debug messages and higher levels' /> - <param name='info' doc='Log informational messages and higher levels' /> - <param name='notice' doc='Log noticeable messages and higher levels' /> - <param name='error' doc='Log error messages and higher levels' /> - <param name='fatal' doc='Log only fatal messages' /> - </params> - </command> - <command id='logging level force-all (debug|info|notice|error|fatal)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='level' doc='Set the log level for a specified category' /> - <param name='force-all' doc='Globally force all logging categories to a specific level. This is released by the 'no logging level force-all' command. Note: any 'logging level <category> <level>' commands will have no visible effect after this, until the forced level is released.' /> - <param name='debug' doc='Log debug messages and higher levels' /> - <param name='info' doc='Log informational messages and higher levels' /> - <param name='notice' doc='Log noticeable messages and higher levels' /> - <param name='error' doc='Log error messages and higher levels' /> - <param name='fatal' doc='Log only fatal messages' /> - </params> - </command> - <command id='no logging level force-all'> - <params> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='logging' doc='Configure logging' /> - <param name='level' doc='Set the log level for a specified category' /> - <param name='force-all' doc='Release any globally forced log level set with 'logging level force-all <level>'' /> - </params> - </command> - <command id='show logging vty'> - <params> - <param name='show' doc='Show running system information' /> - <param name='logging' doc='Show current logging configuration' /> - <param name='vty' doc='Show current logging configuration for this vty' /> - </params> - </command> - <command id='show alarms'> - <params> - <param name='show' doc='Show running system information' /> - <param name='alarms' doc='Show current logging configuration' /> - </params> - </command> - </node> - <node id='enable'> - <name>enable</name> - <command id='disable'> - <params> - <param name='disable' doc='Turn off privileged mode command' /> - </params> - </command> - <command id='configure terminal'> - <params> - <param name='configure' doc='Configuration from vty interface' /> - <param name='terminal' doc='Configuration terminal' /> - </params> - </command> - <command id='copy running-config startup-config'> - <params> - <param name='copy' doc='Copy configuration' /> - <param name='running-config' doc='Copy running config to... ' /> - <param name='startup-config' doc='Copy running config to startup config (same as write file)' /> - </params> - </command> - <command id='show startup-config'> - <params> - <param name='show' doc='Show running system information' /> - <param name='startup-config' doc='Contentes of startup configuration' /> - </params> - </command> - <command id='show version'> - <params> - <param name='show' doc='Show running system information' /> - <param name='version' doc='Displays program version' /> - </params> - </command> - <command id='show online-help'> - <params> - <param name='show' doc='Show running system information' /> - <param name='online-help' doc='Online help' /> - </params> - </command> - <command id='terminal length <0-512>'> - <params> - <param name='terminal' doc='Set terminal line parameters' /> - <param name='length' doc='Set number of lines on a screen' /> - <param name='<0-512>' doc='Number of lines on screen (0 for no pausing)' /> - </params> - </command> - <command id='terminal no length'> - <params> - <param name='terminal' doc='Set terminal line parameters' /> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='length' doc='Set number of lines on a screen' /> - </params> - </command> - <command id='who'> - <params> - <param name='who' doc='Display who is on vty' /> - </params> - </command> - <command id='show history'> - <params> - <param name='show' doc='Show running system information' /> - <param name='history' doc='Display the session command history' /> - </params> - </command> - <command id='terminal monitor'> - <params> - <param name='terminal' doc='Set terminal line parameters' /> - <param name='monitor' doc='Copy debug output to the current terminal line' /> - </params> - </command> - <command id='terminal no monitor'> - <params> - <param name='terminal' doc='Set terminal line parameters' /> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='monitor' doc='Copy debug output to the current terminal line' /> - </params> - </command> - <command id='show cs7 instance <0-15> users'> - <params> - <param name='show' doc='Show running system information' /> - <param name='cs7' doc='ITU-T Signaling System 7' /> - <param name='instance' doc='An instance of the SS7 stack' /> - <param name='<0-15>' doc='An instance of the SS7 stack' /> - <param name='users' doc='User Table' /> - </params> - </command> - <command id='show cs7 (sua|m3ua|ipa) [<0-65534>]'> - <params> - <param name='show' doc='Show running system information' /> - <param name='cs7' doc='ITU-T Signaling System 7' /> - <param name='sua' doc='SCCP User Adaptation' /> - <param name='m3ua' doc='MTP3 User Adaptation' /> - <param name='ipa' doc='IPA Multiplex (SCCP Lite)' /> - <param name='[<0-65534>]' doc='Port Number' /> - </params> - </command> - <command id='show cs7 instance <0-15> asp'> - <params> - <param name='show' doc='Show running system information' /> - <param name='cs7' doc='ITU-T Signaling System 7' /> - <param name='instance' doc='An instance of the SS7 stack' /> - <param name='<0-15>' doc='An instance of the SS7 stack' /> - <param name='asp' doc='Application Server Process (ASP)' /> - </params> - </command> - <command id='show cs7 instance <0-15> as (active|all|m3ua|sua)'> - <params> - <param name='show' doc='Show running system information' /> - <param name='cs7' doc='ITU-T Signaling System 7' /> - <param name='instance' doc='An instance of the SS7 stack' /> - <param name='<0-15>' doc='An instance of the SS7 stack' /> - <param name='as' doc='Application Server (AS)' /> - <param name='active' doc='Display all active ASs' /> - <param name='all' doc='Display all ASs (default)' /> - <param name='m3ua' doc='Display all m3ua ASs' /> - <param name='sua' doc='Display all SUA ASs' /> - </params> - </command> - <command id='show cs7 instance <0-15> sccp addressbook'> - <params> - <param name='show' doc='Show running system information' /> - <param name='cs7' doc='ITU-T Signaling System 7' /> - <param name='instance' doc='An instance of the SS7 stack' /> - <param name='<0-15>' doc='An instance of the SS7 stack' /> - <param name='sccp' doc='Signalling Connection Control Part' /> - <param name='addressbook' doc='List all SCCP addressbook entries' /> - </params> - </command> - <command id='show cs7 instance <0-15> sccp users'> - <params> - <param name='show' doc='Show running system information' /> - <param name='cs7' doc='ITU-T Signaling System 7' /> - <param name='instance' doc='An instance of the SS7 stack' /> - <param name='<0-15>' doc='An instance of the SS7 stack' /> - <param name='sccp' doc='Signalling Connection Control Part' /> - <param name='users' doc='Show List of SCCP Users registered' /> - </params> - </command> - <command id='show cs7 instance <0-15> sccp ssn <0-65535>'> - <params> - <param name='show' doc='Show running system information' /> - <param name='cs7' doc='ITU-T Signaling System 7' /> - <param name='instance' doc='An instance of the SS7 stack' /> - <param name='<0-15>' doc='An instance of the SS7 stack' /> - <param name='sccp' doc='Signalling Connection Control Part' /> - <param name='ssn' doc='Find an SCCP User registered for the given SSN' /> - <param name='<0-65535>' doc='Subsystem Number (SSN)' /> - </params> - </command> - <command id='show cs7 instance <0-15> sccp connections'> - <params> - <param name='show' doc='Show running system information' /> - <param name='cs7' doc='ITU-T Signaling System 7' /> - <param name='instance' doc='An instance of the SS7 stack' /> - <param name='<0-15>' doc='An instance of the SS7 stack' /> - <param name='sccp' doc='Signalling Connection Control Part' /> - <param name='connections' doc='Show List of active SCCP connections' /> - </params> - </command> - <command id='show cs7 instance <0-15> sccp timers'> - <params> - <param name='show' doc='Show running system information' /> - <param name='cs7' doc='ITU-T Signaling System 7' /> - <param name='instance' doc='An instance of the SS7 stack' /> - <param name='<0-15>' doc='An instance of the SS7 stack' /> - <param name='sccp' doc='Signaling Connection Control Part' /> - <param name='timers' doc='Show List of SCCP timers' /> - </params> - </command> - <command id='show cnlink'> - <params> - <param name='show' doc='Show running system information' /> - <param name='cnlink' doc='Display information on core network link' /> - </params> - </command> - <command id='show hnb all'> - <params> - <param name='show' doc='Show running system information' /> - <param name='hnb' doc='Display information about all HNB' /> - <param name='all' doc='(null)' /> - </params> - </command> - <command id='show hnb NAME '> - <params> - <param name='show' doc='Show running system information' /> - <param name='hnb' doc='Display information about a HNB' /> - <param name='NAME' doc='(null)' /> - </params> - </command> - <command id='show ue all'> - <params> - <param name='show' doc='Show running system information' /> - <param name='ue' doc='Display information about a UE' /> - <param name='all' doc='(null)' /> - </params> - </command> - <command id='show talloc'> - <params> - <param name='show' doc='Show running system information' /> - <param name='talloc' doc='Display talloc info' /> - </params> - </command> - <command id='logging enable'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='enable' doc='Enables logging to this vty' /> - </params> - </command> - <command id='logging disable'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='disable' doc='Disables logging to this vty' /> - </params> - </command> - <command id='logging filter all (0|1)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='filter' doc='Filter log messages' /> - <param name='all' doc='Do you want to log all messages?' /> - <param name='0' doc='Only print messages matched by other filters' /> - <param name='1' doc='Bypass filter and print all messages' /> - </params> - </command> - <command id='logging color (0|1)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='color' doc='Configure color-printing for log messages' /> - <param name='0' doc='Don't use color for printing messages' /> - <param name='1' doc='Use color for printing messages' /> - </params> - </command> - <command id='logging timestamp (0|1)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='timestamp' doc='Configure log message timestamping' /> - <param name='0' doc='Don't prefix each log message' /> - <param name='1' doc='Prefix each log message with current timestamp' /> - </params> - </command> - <command id='logging print extended-timestamp (0|1)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='print' doc='Log output settings' /> - <param name='extended-timestamp' doc='Configure log message timestamping' /> - <param name='0' doc='Don't prefix each log message' /> - <param name='1' doc='Prefix each log message with current timestamp with YYYYMMDDhhmmssnnn' /> - </params> - </command> - <command id='logging print category (0|1)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='print' doc='Log output settings' /> - <param name='category' doc='Configure log message' /> - <param name='0' doc='Don't prefix each log message' /> - <param name='1' doc='Prefix each log message with category/subsystem name' /> - </params> - </command> - <command id='logging print category-hex (0|1)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='print' doc='Log output settings' /> - <param name='category-hex' doc='Configure log message' /> - <param name='0' doc='Don't prefix each log message' /> - <param name='1' doc='Prefix each log message with category/subsystem nr in hex ('<000b>')' /> - </params> - </command> - <command id='logging print level (0|1)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='print' doc='Log output settings' /> - <param name='level' doc='Configure log message' /> - <param name='0' doc='Don't prefix each log message' /> - <param name='1' doc='Prefix each log message with the log level name' /> - </params> - </command> - <command id='logging print file (0|1|basename) [last]'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='print' doc='Log output settings' /> - <param name='file' doc='Configure log message' /> - <param name='0' doc='Don't prefix each log message' /> - <param name='1' doc='Prefix each log message with the source file and line' /> - <param name='basename' doc='Prefix each log message with the source file's basename (strip leading paths) and line' /> - <param name='[last]' doc='Log source file info at the end of a log line. If omitted, log source file info just before the log text.' /> - </params> - </command> - <command id='logging set-log-mask MASK'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='set-log-mask' doc='Set the logmask of this logging target' /> - <param name='MASK' doc='List of logging categories to log, e.g. 'abc:mno:xyz'. Available log categories depend on the specific application, refer to the 'logging level' command. Optionally add individual log levels like 'abc,1:mno,3:xyz,5', where the level numbers are LOGL_DEBUG=1 LOGL_INFO=3 LOGL_NOTICE=5 LOGL_ERROR=7 LOGL_FATAL=8' /> - </params> - </command> - <command id='logging level (main|hnbap|rua|ranap|lglobal|llapd|linp|lmux|lmi|lmib|lsms|lctrl|lgtp|lstats|lgsup|loap|lss7|lsccp|lsua|lm3ua|lmgcp|ljibuf|lrspro) (debug|info|notice|error|fatal)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='level' doc='Set the log level for a specified category' /> - <param name='main' doc='Main program' /> - <param name='hnbap' doc='Home Node B Application Part' /> - <param name='rua' doc='RANAP User Adaptation' /> - <param name='ranap' doc='RAN Application Part' /> - <param name='lglobal' doc='Library-internal global log family' /> - <param name='llapd' doc='LAPD in libosmogsm' /> - <param name='linp' doc='A-bis Intput Subsystem' /> - <param name='lmux' doc='A-bis B-Subchannel TRAU Frame Multiplex' /> - <param name='lmi' doc='A-bis Input Driver for Signalling' /> - <param name='lmib' doc='A-bis Input Driver for B-Channels (voice)' /> - <param name='lsms' doc='Layer3 Short Message Service (SMS)' /> - <param name='lctrl' doc='Control Interface' /> - <param name='lgtp' doc='GPRS GTP library' /> - <param name='lstats' doc='Statistics messages and logging' /> - <param name='lgsup' doc='Generic Subscriber Update Protocol' /> - <param name='loap' doc='Osmocom Authentication Protocol' /> - <param name='lss7' doc='libosmo-sigtran Signalling System 7' /> - <param name='lsccp' doc='libosmo-sigtran SCCP Implementation' /> - <param name='lsua' doc='libosmo-sigtran SCCP User Adaptation' /> - <param name='lm3ua' doc='libosmo-sigtran MTP3 User Adaptation' /> - <param name='lmgcp' doc='libosmo-mgcp Media Gateway Control Protocol' /> - <param name='ljibuf' doc='libosmo-netif Jitter Buffer' /> - <param name='lrspro' doc='Remote SIM protocol' /> - <param name='debug' doc='Log debug messages and higher levels' /> - <param name='info' doc='Log informational messages and higher levels' /> - <param name='notice' doc='Log noticeable messages and higher levels' /> - <param name='error' doc='Log error messages and higher levels' /> - <param name='fatal' doc='Log only fatal messages' /> - </params> - </command> - <command id='logging level set-all (debug|info|notice|error|fatal)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='level' doc='Set the log level for a specified category' /> - <param name='set-all' doc='Once-off set all categories to the given log level. There is no single command to take back these changes -- each category is set to the given level, period.' /> - <param name='debug' doc='Log debug messages and higher levels' /> - <param name='info' doc='Log informational messages and higher levels' /> - <param name='notice' doc='Log noticeable messages and higher levels' /> - <param name='error' doc='Log error messages and higher levels' /> - <param name='fatal' doc='Log only fatal messages' /> - </params> - </command> - <command id='logging level force-all (debug|info|notice|error|fatal)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='level' doc='Set the log level for a specified category' /> - <param name='force-all' doc='Globally force all logging categories to a specific level. This is released by the 'no logging level force-all' command. Note: any 'logging level <category> <level>' commands will have no visible effect after this, until the forced level is released.' /> - <param name='debug' doc='Log debug messages and higher levels' /> - <param name='info' doc='Log informational messages and higher levels' /> - <param name='notice' doc='Log noticeable messages and higher levels' /> - <param name='error' doc='Log error messages and higher levels' /> - <param name='fatal' doc='Log only fatal messages' /> - </params> - </command> - <command id='no logging level force-all'> - <params> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='logging' doc='Configure logging' /> - <param name='level' doc='Set the log level for a specified category' /> - <param name='force-all' doc='Release any globally forced log level set with 'logging level force-all <level>'' /> - </params> - </command> - <command id='show logging vty'> - <params> - <param name='show' doc='Show running system information' /> - <param name='logging' doc='Show current logging configuration' /> - <param name='vty' doc='Show current logging configuration for this vty' /> - </params> - </command> - <command id='show alarms'> - <params> - <param name='show' doc='Show running system information' /> - <param name='alarms' doc='Show current logging configuration' /> - </params> - </command> - </node> - <node id='config'> - <name>config</name> - <command id='hostname WORD'> - <params> - <param name='hostname' doc='Set system's network name' /> - <param name='WORD' doc='This system's network name' /> - </params> - </command> - <command id='no hostname [HOSTNAME]'> - <params> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='hostname' doc='Reset system's network name' /> - <param name='[HOSTNAME]' doc='Host name of this router' /> - </params> - </command> - <command id='password (8|) WORD'> - <params> - <param name='password' doc='Assign the terminal connection password' /> - <param name='8' doc='Specifies a HIDDEN password will follow' /> - <param name='' doc='dummy string ' /> - <param name='WORD' doc='The HIDDEN line password string' /> - </params> - </command> - <command id='password LINE'> - <params> - <param name='password' doc='Assign the terminal connection password' /> - <param name='LINE' doc='The UNENCRYPTED (cleartext) line password' /> - </params> - </command> - <command id='enable password (8|) WORD'> - <params> - <param name='enable' doc='Modify enable password parameters' /> - <param name='password' doc='Assign the privileged level password' /> - <param name='8' doc='Specifies a HIDDEN password will follow' /> - <param name='' doc='dummy string ' /> - <param name='WORD' doc='The HIDDEN 'enable' password string' /> - </params> - </command> - <command id='enable password LINE'> - <params> - <param name='enable' doc='Modify enable password parameters' /> - <param name='password' doc='Assign the privileged level password' /> - <param name='LINE' doc='The UNENCRYPTED (cleartext) 'enable' password' /> - </params> - </command> - <command id='no enable password'> - <params> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='enable' doc='Modify enable password parameters' /> - <param name='password' doc='Assign the privileged level password' /> - </params> - </command> - <command id='banner motd default'> - <params> - <param name='banner' doc='Set banner string' /> - <param name='motd' doc='Strings for motd' /> - <param name='default' doc='Default string' /> - </params> - </command> - <command id='banner motd file [FILE]'> - <params> - <param name='banner' doc='Set banner' /> - <param name='motd' doc='Banner for motd' /> - <param name='file' doc='Banner from a file' /> - <param name='[FILE]' doc='Filename' /> - </params> - </command> - <command id='no banner motd'> - <params> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='banner' doc='Set banner string' /> - <param name='motd' doc='Strings for motd' /> - </params> - </command> - <command id='service terminal-length <0-512>'> - <params> - <param name='service' doc='Set up miscellaneous service' /> - <param name='terminal-length' doc='System wide terminal length configuration' /> - <param name='<0-512>' doc='Number of lines of VTY (0 means no line control)' /> - </params> - </command> - <command id='no service terminal-length [<0-512>]'> - <params> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='service' doc='Set up miscellaneous service' /> - <param name='terminal-length' doc='System wide terminal length configuration' /> - <param name='[<0-512>]' doc='Number of lines of VTY (0 means no line control)' /> - </params> - </command> - <command id='line vty'> - <params> - <param name='line' doc='Configure a terminal line' /> - <param name='vty' doc='Virtual terminal' /> - </params> - </command> - <command id='service advanced-vty'> - <params> - <param name='service' doc='Set up miscellaneous service' /> - <param name='advanced-vty' doc='Enable advanced mode vty interface' /> - </params> - </command> - <command id='no service advanced-vty'> - <params> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='service' doc='Set up miscellaneous service' /> - <param name='advanced-vty' doc='Enable advanced mode vty interface' /> - </params> - </command> - <command id='show history'> - <params> - <param name='show' doc='Show running system information' /> - <param name='history' doc='Display the session command history' /> - </params> - </command> - <command id='cs7 instance <0-15>'> - <params> - <param name='cs7' doc='ITU-T Signaling System 7' /> - <param name='instance' doc='Configure a SS7 Instance' /> - <param name='<0-15>' doc='An instance of the SS7 stack' /> - </params> - </command> - <command id='hnbgw'> - <params> - <param name='hnbgw' doc='Configure HNBGW options' /> - </params> - </command> - <command id='log stderr'> - <params> - <param name='log' doc='Configure logging sub-system' /> - <param name='stderr' doc='Logging via STDERR of the process' /> - </params> - </command> - <command id='no log stderr'> - <params> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='log' doc='Configure logging sub-system' /> - <param name='stderr' doc='Logging via STDERR of the process' /> - </params> - </command> - <command id='log file .FILENAME'> - <params> - <param name='log' doc='Configure logging sub-system' /> - <param name='file' doc='Logging to text file' /> - <param name='.FILENAME' doc='Filename' /> - </params> - </command> - <command id='no log file .FILENAME'> - <params> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='log' doc='Configure logging sub-system' /> - <param name='file' doc='Logging to text file' /> - <param name='.FILENAME' doc='Filename' /> - </params> - </command> - <command id='log alarms <2-32700>'> - <params> - <param name='log' doc='Configure logging sub-system' /> - <param name='alarms' doc='Logging alarms to osmo_strrb' /> - <param name='<2-32700>' doc='Maximum number of messages to log' /> - </params> - </command> - <command id='no log alarms'> - <params> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='log' doc='Configure logging sub-system' /> - <param name='alarms' doc='Logging alarms to osmo_strrb' /> - </params> - </command> - <command id='log syslog (authpriv|cron|daemon|ftp|lpr|mail|news|user|uucp)'> - <params> - <param name='log' doc='Configure logging sub-system' /> - <param name='syslog' doc='Logging via syslog' /> - <param name='authpriv' doc='Security/authorization messages facility' /> - <param name='cron' doc='Clock daemon (cron/at) facility' /> - <param name='daemon' doc='General system daemon facility' /> - <param name='ftp' doc='Ftp daemon facility' /> - <param name='lpr' doc='Line printer facility' /> - <param name='mail' doc='Mail facility' /> - <param name='news' doc='News facility' /> - <param name='user' doc='Generic facility' /> - <param name='uucp' doc='UUCP facility' /> - </params> - </command> - <command id='log syslog local <0-7>'> - <params> - <param name='log' doc='Configure logging sub-system' /> - <param name='syslog' doc='Logging via syslog' /> - <param name='local' doc='Syslog LOCAL facility' /> - <param name='<0-7>' doc='Local facility number' /> - </params> - </command> - <command id='no log syslog'> - <params> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='log' doc='Configure logging sub-system' /> - <param name='syslog' doc='Logging via syslog' /> - </params> - </command> - <command id='log gsmtap [HOSTNAME]'> - <params> - <param name='log' doc='Configure logging sub-system' /> - <param name='gsmtap' doc='Logging via GSMTAP' /> - <param name='[HOSTNAME]' doc='Host name to send the GSMTAP logging to (UDP port 4729)' /> - </params> - </command> - </node> - <node id='config-log'> - <name>config-log</name> - <command id='logging filter all (0|1)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='filter' doc='Filter log messages' /> - <param name='all' doc='Do you want to log all messages?' /> - <param name='0' doc='Only print messages matched by other filters' /> - <param name='1' doc='Bypass filter and print all messages' /> - </params> - </command> - <command id='logging color (0|1)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='color' doc='Configure color-printing for log messages' /> - <param name='0' doc='Don't use color for printing messages' /> - <param name='1' doc='Use color for printing messages' /> - </params> - </command> - <command id='logging timestamp (0|1)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='timestamp' doc='Configure log message timestamping' /> - <param name='0' doc='Don't prefix each log message' /> - <param name='1' doc='Prefix each log message with current timestamp' /> - </params> - </command> - <command id='logging print extended-timestamp (0|1)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='print' doc='Log output settings' /> - <param name='extended-timestamp' doc='Configure log message timestamping' /> - <param name='0' doc='Don't prefix each log message' /> - <param name='1' doc='Prefix each log message with current timestamp with YYYYMMDDhhmmssnnn' /> - </params> - </command> - <command id='logging print category (0|1)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='print' doc='Log output settings' /> - <param name='category' doc='Configure log message' /> - <param name='0' doc='Don't prefix each log message' /> - <param name='1' doc='Prefix each log message with category/subsystem name' /> - </params> - </command> - <command id='logging print category-hex (0|1)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='print' doc='Log output settings' /> - <param name='category-hex' doc='Configure log message' /> - <param name='0' doc='Don't prefix each log message' /> - <param name='1' doc='Prefix each log message with category/subsystem nr in hex ('<000b>')' /> - </params> - </command> - <command id='logging print level (0|1)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='print' doc='Log output settings' /> - <param name='level' doc='Configure log message' /> - <param name='0' doc='Don't prefix each log message' /> - <param name='1' doc='Prefix each log message with the log level name' /> - </params> - </command> - <command id='logging print file (0|1|basename) [last]'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='print' doc='Log output settings' /> - <param name='file' doc='Configure log message' /> - <param name='0' doc='Don't prefix each log message' /> - <param name='1' doc='Prefix each log message with the source file and line' /> - <param name='basename' doc='Prefix each log message with the source file's basename (strip leading paths) and line' /> - <param name='[last]' doc='Log source file info at the end of a log line. If omitted, log source file info just before the log text.' /> - </params> - </command> - <command id='logging level (main|hnbap|rua|ranap|lglobal|llapd|linp|lmux|lmi|lmib|lsms|lctrl|lgtp|lstats|lgsup|loap|lss7|lsccp|lsua|lm3ua|lmgcp|ljibuf|lrspro) (debug|info|notice|error|fatal)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='level' doc='Set the log level for a specified category' /> - <param name='main' doc='Main program' /> - <param name='hnbap' doc='Home Node B Application Part' /> - <param name='rua' doc='RANAP User Adaptation' /> - <param name='ranap' doc='RAN Application Part' /> - <param name='lglobal' doc='Library-internal global log family' /> - <param name='llapd' doc='LAPD in libosmogsm' /> - <param name='linp' doc='A-bis Intput Subsystem' /> - <param name='lmux' doc='A-bis B-Subchannel TRAU Frame Multiplex' /> - <param name='lmi' doc='A-bis Input Driver for Signalling' /> - <param name='lmib' doc='A-bis Input Driver for B-Channels (voice)' /> - <param name='lsms' doc='Layer3 Short Message Service (SMS)' /> - <param name='lctrl' doc='Control Interface' /> - <param name='lgtp' doc='GPRS GTP library' /> - <param name='lstats' doc='Statistics messages and logging' /> - <param name='lgsup' doc='Generic Subscriber Update Protocol' /> - <param name='loap' doc='Osmocom Authentication Protocol' /> - <param name='lss7' doc='libosmo-sigtran Signalling System 7' /> - <param name='lsccp' doc='libosmo-sigtran SCCP Implementation' /> - <param name='lsua' doc='libosmo-sigtran SCCP User Adaptation' /> - <param name='lm3ua' doc='libosmo-sigtran MTP3 User Adaptation' /> - <param name='lmgcp' doc='libosmo-mgcp Media Gateway Control Protocol' /> - <param name='ljibuf' doc='libosmo-netif Jitter Buffer' /> - <param name='lrspro' doc='Remote SIM protocol' /> - <param name='debug' doc='Log debug messages and higher levels' /> - <param name='info' doc='Log informational messages and higher levels' /> - <param name='notice' doc='Log noticeable messages and higher levels' /> - <param name='error' doc='Log error messages and higher levels' /> - <param name='fatal' doc='Log only fatal messages' /> - </params> - </command> - <command id='logging level set-all (debug|info|notice|error|fatal)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='level' doc='Set the log level for a specified category' /> - <param name='set-all' doc='Once-off set all categories to the given log level. There is no single command to take back these changes -- each category is set to the given level, period.' /> - <param name='debug' doc='Log debug messages and higher levels' /> - <param name='info' doc='Log informational messages and higher levels' /> - <param name='notice' doc='Log noticeable messages and higher levels' /> - <param name='error' doc='Log error messages and higher levels' /> - <param name='fatal' doc='Log only fatal messages' /> - </params> - </command> - <command id='logging level force-all (debug|info|notice|error|fatal)'> - <params> - <param name='logging' doc='Configure logging' /> - <param name='level' doc='Set the log level for a specified category' /> - <param name='force-all' doc='Globally force all logging categories to a specific level. This is released by the 'no logging level force-all' command. Note: any 'logging level <category> <level>' commands will have no visible effect after this, until the forced level is released.' /> - <param name='debug' doc='Log debug messages and higher levels' /> - <param name='info' doc='Log informational messages and higher levels' /> - <param name='notice' doc='Log noticeable messages and higher levels' /> - <param name='error' doc='Log error messages and higher levels' /> - <param name='fatal' doc='Log only fatal messages' /> - </params> - </command> - <command id='no logging level force-all'> - <params> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='logging' doc='Configure logging' /> - <param name='level' doc='Set the log level for a specified category' /> - <param name='force-all' doc='Release any globally forced log level set with 'logging level force-all <level>'' /> - </params> - </command> - </node> - <node id='config-line'> - <name>config-line</name> - <command id='login'> - <params> - <param name='login' doc='Enable password checking' /> - </params> - </command> - <command id='no login'> - <params> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='login' doc='Enable password checking' /> - </params> - </command> - <command id='bind A.B.C.D [<0-65535>]'> - <params> - <param name='bind' doc='Accept VTY telnet connections on local interface' /> - <param name='A.B.C.D' doc='Local interface IP address (default: 127.0.0.1)' /> - <param name='[<0-65535>]' doc='Local TCP port number' /> - </params> - </command> - </node> - <node id='config-cs7'> - <name>config-cs7</name> - <command id='description .TEXT'> - <params> - <param name='description' doc='Save human-readable description of the object' /> - <param name='.TEXT' doc='Text until the end of the line' /> - </params> - </command> - <command id='network-indicator (international | national | reserved | spare)'> - <params> - <param name='network-indicator' doc='Configure the Network Indicator' /> - <param name='international' doc='International Network' /> - <param name='national' doc='National Network' /> - <param name='reserved' doc='Reserved Network' /> - <param name='spare' doc='Spare Network' /> - </params> - </command> - <command id='point-code POINT_CODE'> - <params> - <param name='point-code' doc='Configure the local Point Code' /> - <param name='POINT_CODE' doc='Point Code' /> - </params> - </command> - <command id='point-code format <1-24> [<1-23>] [<1-22>]'> - <params> - <param name='point-code' doc='Point Code' /> - <param name='format' doc='Configure Point Code Format' /> - <param name='<1-24>' doc='Length of first PC component' /> - <param name='[<1-23>]' doc='Length of second PC component' /> - <param name='[<1-22>]' doc='Length of third PC component' /> - </params> - </command> - <command id='point-code format default'> - <params> - <param name='point-code' doc='Point Code' /> - <param name='format' doc='Configure Point Code Format' /> - <param name='default' doc='Default Point Code Format (3.8.3)' /> - </params> - </command> - <command id='point-code delimiter (default|dash)'> - <params> - <param name='point-code' doc='Point Code' /> - <param name='delimiter' doc='Configure Point Code Delimiter' /> - <param name='default' doc='Use dot as delimiter' /> - <param name='dash' doc='User dash as delimiter' /> - </params> - </command> - <command id='xua rkm routing-key-allocation (static-only|dynamic-permitted)'> - <params> - <param name='xua' doc='SIGTRAN xxxUA related' /> - <param name='rkm' doc='Routing Key Management' /> - <param name='routing-key-allocation' doc='Routing Key Management Allocation Policy' /> - <param name='static-only' doc='Only static (pre-confgured) Routing Keys permitted' /> - <param name='dynamic-permitted' doc='Dynamically allocate Routing Keys for what ASPs request' /> - </params> - </command> - <command id='asp NAME <0-65535> <0-65535> (sua|m3ua|ipa)'> - <params> - <param name='asp' doc='Configure Application Server Process' /> - <param name='NAME' doc='Name of ASP' /> - <param name='<0-65535>' doc='Remote SCTP port number' /> - <param name='<0-65535>' doc='Local SCTP port number' /> - <param name='sua' doc='SCCP User Adaptation' /> - <param name='m3ua' doc='MTP3 User Adaptation' /> - <param name='ipa' doc='IPA Multiplex (SCCP Lite)' /> - </params> - </command> - <command id='no asp NAME'> - <params> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='asp' doc='Disable Application Server Process' /> - <param name='NAME' doc='Name of ASP' /> - </params> - </command> - <command id='as NAME (sua|m3ua|ipa)'> - <params> - <param name='as' doc='Configure an Application Server' /> - <param name='NAME' doc='Name of the Application Server' /> - <param name='sua' doc='SCCP User Adaptation' /> - <param name='m3ua' doc='MTP3 User Adaptation' /> - <param name='ipa' doc='IPA Multiplex (SCCP Lite)' /> - </params> - </command> - <command id='no as NAME'> - <params> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='as' doc='Disable Application Server' /> - <param name='NAME' doc='Name of AS' /> - </params> - </command> - <command id='sccp-address NAME'> - <params> - <param name='sccp-address' doc='Create/Modify an SCCP addressbook entry' /> - <param name='NAME' doc='Name of the SCCP Address' /> - </params> - </command> - <command id='no sccp-address NAME'> - <params> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='sccp-address' doc='Delete an SCCP addressbook entry' /> - <param name='NAME' doc='Name of the SCCP Address' /> - </params> - </command> - <command id='sccp-timer (conn_est|ias|iar|rel|repeat_rel|int|guard|reset|reassembly) <1-999999>'> - <params> - <param name='sccp-timer' doc='Configure SCCP timer values, see ITU-T Q.714' /> - <param name='conn_est' doc='Waiting for connection confirm message, 1 to 2 minutes (default: 60)' /> - <param name='ias' doc='Send keep-alive: on an idle connection, delay before sending an Idle Timer message, 5 to 10 minutes (default: 420)' /> - <param name='iar' doc='Receive keep-alive: on an idle connection, delay until considering a connection as stale, 11 to 21 minutes (default: 900)' /> - <param name='rel' doc='Waiting for release complete message, 10 to 20 seconds (default: 10)' /> - <param name='repeat_rel' doc='Waiting for release complete message; or to repeat sending released message after the initial expiry, 10 to 20 seconds (default: 10)' /> - <param name='int' doc='Waiting for release complete message; or to release connection resources, freeze the LRN and alert a maintenance function after the initial expiry, extending to 1 minute (default: 60)' /> - <param name='guard' doc='Waiting to resume normal procedure for temporary connection sections during the restart procedure, 23 to 25 minutes (default: 1380)' /> - <param name='reset' doc='Waiting to release temporary connection section or alert maintenance function after reset request message is sent, 10 to 20 seconds (default: 10)' /> - <param name='reassembly' doc='Waiting to receive all the segments of the remaining segments, single segmented message after receiving the first segment, 10 to 20 seconds (default: 10)' /> - <param name='<1-999999>' doc='Timer value, in seconds' /> - </params> - </command> - </node> - <node id='config-cs7-as'> - <name>config-cs7-as</name> - <command id='description .TEXT'> - <params> - <param name='description' doc='Save human-readable description of the object' /> - <param name='.TEXT' doc='Text until the end of the line' /> - </params> - </command> - <command id='asp NAME'> - <params> - <param name='asp' doc='Specify that a given ASP is part of this AS' /> - <param name='NAME' doc='Name of ASP to be added to AS' /> - </params> - </command> - <command id='no asp NAME'> - <params> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='asp' doc='Specify ASP to be removed from this AS' /> - <param name='NAME' doc='Name of ASP to be removed' /> - </params> - </command> - <command id='traffic-mode (broadcast | loadshare | roundrobin | override)'> - <params> - <param name='traffic-mode' doc='Specifies traffic mode of operation of the ASP within the AS' /> - <param name='broadcast' doc='Broadcast to all ASP within AS' /> - <param name='loadshare' doc='Share Load among all ASP within AS' /> - <param name='roundrobin' doc='Round-Robin between all ASP within AS' /> - <param name='override' doc='Override' /> - </params> - </command> - <command id='recovery-timeout <1-2000>'> - <params> - <param name='recovery-timeout' doc='Specifies the recovery timeout value in milliseconds' /> - <param name='<1-2000>' doc='Recovery Timeout in Milliseconds' /> - </params> - </command> - <command id='qos-class <0-255>'> - <params> - <param name='qos-class' doc='Specity QoS Class of AS' /> - <param name='<0-255>' doc='QoS Class of AS' /> - </params> - </command> - <command id='routing-key RCONTEXT DPC'> - <params> - <param name='routing-key' doc='Define a routing key' /> - <param name='RCONTEXT' doc='Routing context number' /> - <param name='DPC' doc='Destination Point Code' /> - </params> - </command> - <command id='routing-key RCONTEXT DPC si (aal2|bicc|b-isup|h248|isup|sat-isup|sccp|tup)'> - <params> - <param name='routing-key' doc='Define a routing key' /> - <param name='RCONTEXT' doc='Routing context number' /> - <param name='DPC' doc='Destination Point Code' /> - <param name='si' doc='Match on Service Indicator' /> - <param name='aal2' doc='ATM Adaption Layer 2' /> - <param name='bicc' doc='Bearer Independent Call Control' /> - <param name='b-isup' doc='Broadband ISDN User Part' /> - <param name='h248' doc='H.248' /> - <param name='isup' doc='ISDN User Part' /> - <param name='sat-isup' doc='Sattelite ISDN User Part' /> - <param name='sccp' doc='Signalling Connection Control Part' /> - <param name='tup' doc='Telephony User Part' /> - </params> - </command> - <command id='routing-key RCONTEXT DPC ssn SSN'> - <params> - <param name='routing-key' doc='Define a routing key' /> - <param name='RCONTEXT' doc='Routing context number' /> - <param name='DPC' doc='Destination Point Code' /> - <param name='ssn' doc='Match on Sub-System Number' /> - <param name='SSN' doc='Sub-System Number to match on' /> - </params> - </command> - <command id='routing-key RCONTEXT DPC si (aal2|bicc|b-isup|h248|isup|sat-isup|sccp|tup) ssn SSN'> - <params> - <param name='routing-key' doc='Define a routing key' /> - <param name='RCONTEXT' doc='Routing context number' /> - <param name='DPC' doc='Destination Point Code' /> - <param name='si' doc='Match on Service Indicator' /> - <param name='aal2' doc='ATM Adaption Layer 2' /> - <param name='bicc' doc='Bearer Independent Call Control' /> - <param name='b-isup' doc='Broadband ISDN User Part' /> - <param name='h248' doc='H.248' /> - <param name='isup' doc='ISDN User Part' /> - <param name='sat-isup' doc='Sattelite ISDN User Part' /> - <param name='sccp' doc='Signalling Connection Control Part' /> - <param name='tup' doc='Telephony User Part' /> - <param name='ssn' doc='Match on Sub-System Number' /> - <param name='SSN' doc='Sub-System Number to match on' /> - </params> - </command> - <command id='point-code override dpc PC'> - <params> - <param name='point-code' doc='Point Code Specific Features' /> - <param name='override' doc='Override (force) a point-code to hard-coded value' /> - <param name='dpc' doc='Override Source Point Code' /> - <param name='PC' doc='Override Destination Point Code' /> - </params> - </command> - </node> - <node id='config-cs7-asp'> - <name>config-cs7-asp</name> - <command id='description .TEXT'> - <params> - <param name='description' doc='Save human-readable description of the object' /> - <param name='.TEXT' doc='Text until the end of the line' /> - </params> - </command> - <command id='remote-ip A.B.C.D'> - <params> - <param name='remote-ip' doc='Specify Remote IP Address of ASP' /> - <param name='A.B.C.D' doc='Remote IP Address of ASP' /> - </params> - </command> - <command id='local-ip A.B.C.D'> - <params> - <param name='local-ip' doc='Specify Local IP Address from which to contact ASP' /> - <param name='A.B.C.D' doc='Local IP Address from which to contact of ASP' /> - </params> - </command> - <command id='qos-class <0-255>'> - <params> - <param name='qos-class' doc='Specify QoS Class of ASP' /> - <param name='<0-255>' doc='QoS Class of ASP' /> - </params> - </command> - <command id='block'> - <params> - <param name='block' doc='Allows a SCTP Association with ASP, but doesn't let it become active' /> - </params> - </command> - <command id='shutdown'> - <params> - <param name='shutdown' doc='Terminates SCTP association; New associations will be rejected' /> - </params> - </command> - </node> - <node id='config-cs7-sccpaddr'> - <name>config-cs7-sccpaddr</name> - <command id='no point-code'> - <params> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='point-code' doc='Remove point-code Number' /> - </params> - </command> - <command id='no subsystem-number'> - <params> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='subsystem-number' doc='Remove Subsystem Number' /> - </params> - </command> - <command id='no global-title'> - <params> - <param name='no' doc='Negate a command or set its defaults' /> - <param name='global-title' doc='Remove Global Title' /> - </params> - </command> - <command id='routing-indicator (GT|PC|IP)'> - <params> - <param name='routing-indicator' doc='Add Routing Indicator' /> - <param name='GT' doc='by global-title' /> - <param name='PC' doc='by point-code' /> - <param name='IP' doc='by ip-address' /> - </params> - </command> - <command id='point-code POINT_CODE'> - <params> - <param name='point-code' doc='Add point-code Number' /> - <param name='POINT_CODE' doc='PC' /> - </params> - </command> - <command id='subsystem-number <0-4294967295>'> - <params> - <param name='subsystem-number' doc='Add Subsystem Number' /> - <param name='<0-4294967295>' doc='SSN' /> - </params> - </command> - <command id='global-title'> - <params> - <param name='global-title' doc='Add/Modify Global Title' /> - </params> - </command> - </node> - <node id='config-cs7-sccpaddr-gt'> - <name>config-cs7-sccpaddr-gt</name> - <command id='global-title-indicator <0-15>'> - <params> - <param name='global-title-indicator' doc='Set Global Title Indicator' /> - <param name='<0-15>' doc='GTI' /> - </params> - </command> - <command id='translation-type <0-255>'> - <params> - <param name='translation-type' doc='Set Global Title Translation Type' /> - <param name='<0-255>' doc='TT' /> - </params> - </command> - <command id='numbering-plan-indicator <0-15>'> - <params> - <param name='numbering-plan-indicator' doc='Set Global Title Numbering Plan Indicator' /> - <param name='<0-15>' doc='NPI' /> - </params> - </command> - <command id='nature-of-address-indicator <0-127>'> - <params> - <param name='nature-of-address-indicator' doc='Set Global Title Nature of Address Indicator' /> - <param name='<0-127>' doc='NAI' /> - </params> - </command> - <command id='digits DIGITS'> - <params> - <param name='digits' doc='Set Global Title Digits' /> - <param name='DIGITS' doc='Number digits' /> - </params> - </command> - </node> - <node id='config-hnbgw'> - <name>config-hnbgw</name> - <command id='rnc-id <0-65535>'> - <params> - <param name='rnc-id' doc='Configure the HNBGW's RNC Id, the common RNC Id used for all connected hNodeB. It is sent to each hNodeB upon HNBAP HNB-Register-Accept, and the hNodeB will subsequently send this as RANAP InitialUE Messages' GlobalRNC-ID IE. Takes effect as soon as the hNodeB re-registers.' /> - <param name='<0-65535>' doc='RNC Id value' /> - </params> - </command> - <command id='iuh'> - <params> - <param name='iuh' doc='Configure Iuh options' /> - </params> - </command> - <command id='iucs'> - <params> - <param name='iucs' doc='Configure IuCS options' /> - </params> - </command> - <command id='iups'> - <params> - <param name='iups' doc='Configure IuPS options' /> - </params> - </command> - </node> - <node id='config-hnbgw-iuh'> - <name>config-hnbgw-iuh</name> - <command id='local-ip A.B.C.D'> - <params> - <param name='local-ip' doc='Accept Iuh connections on local interface' /> - <param name='A.B.C.D' doc='Local interface IP address (default: 0.0.0.0)' /> - </params> - </command> - <command id='local-port <1-65535>'> - <params> - <param name='local-port' doc='Accept Iuh connections on local port' /> - <param name='<1-65535>' doc='Local interface port (default: 29169)' /> - </params> - </command> - <command id='hnbap-allow-tmsi (0|1)'> - <params> - <param name='hnbap-allow-tmsi' doc='Allow HNBAP UE Register messages with TMSI or PTMSI identity' /> - <param name='0' doc='Only accept IMSI identity, reject TMSI or PTMSI' /> - <param name='1' doc='Accept IMSI, TMSI or PTMSI as UE identity' /> - </params> - </command> - </node> - <node id='config-hnbgw-iucs'> - <name>config-hnbgw-iucs</name> - <command id='remote-addr NAME'> - <params> - <param name='remote-addr' doc='SCCP address to send IuCS to (MSC)' /> - <param name='NAME' doc='SCCP address book entry name (see 'cs7-instance')' /> - </params> - </command> - </node> - <node id='config-hnbgw-iups'> - <name>config-hnbgw-iups</name> - <command id='remote-addr NAME'> - <params> - <param name='remote-addr' doc='SCCP address to send IuPS to (SGSN)' /> - <param name='NAME' doc='SCCP address book entry name (see 'cs7-instance')' /> - </params> - </command> - </node> -</vtydoc> diff --git a/doc/protocols_around_hnbgw.txt b/doc/protocols_around_hnbgw.txt deleted file mode 100644 index 3eef155..0000000 --- a/doc/protocols_around_hnbgw.txt +++ /dev/null @@ -1,60 +0,0 @@ -Protocols Around the Home Node B Gateway -======================================== - - +--------+ - ,-->| Osmo | - / | MGCPGW | - | | |<--MGCP - | +--------+ \ - / | - +------------+<--RTP +--------+ `->+----------+ - UE <-->| hNodeB | | Osmo | | OsmoMSC | +------+ - UE <-->| femto cell |<--Iuh---->| HNB-GW |<--IuCS-->| | | Osmo | - | | | | | (VLR)|<-GSUP->| HLR | - | | | | +----------+ GSUP->+------+ - +------------+<--GTP-U | | / - \ | | +------+<---' +------+ - | | |<--IuPS-->| Osmo |<--GTP-C--->| Open | - | +--------+ | SGSN | GTP-U--->| GGSN | - | +------+ / +------+ - \_______________________________/ - - - - Iuh IuCS/IuPS - -NAS +----+----+ +----+----+ -Non-Access Stratum | CC | MM | | CC | MM | -- - - - - - - - - - - +----+----+-------+ +----+----+ - | RANAP | | H | RANAP | -Access Stratum +---------+ HNBAP | N +---------+ - - SCCP USER SAP - | RUA | | B | SUA | \ - +---------+-------+ - +---------+ | - | SCTP | G | SCTP | } SIGTRAN - +-----------------+ W +---------+ | - | IP | | IP | / - +-----------------+ +---------+ - - -Various SIGTRAN implementations: - - IuCS/IuPS - usual - | simplest - | | - v v - +------+------+------+-----+ - | SCCP | SCCP | | | - +------+------+ SCCP | | - | MTP3 | MTP3 | | | - +------+------+------+ SUA | - | MTP2 | | | | - +------+ M2UA | M3UA | | - | M2PA | | | | - +------+------+------+-----+ - | SCTP | - +--------------------------+ - | IP | - +--------------------------+ - -UE (User Endpoint) == MS (Mobile Subscriber) == mobile device diff --git a/include/osmocom/hnbap/Access-stratum-release-indicator.h b/include/osmocom/hnbap/Access-stratum-release-indicator.h deleted file mode 100644 index 1e1f7e1..0000000 --- a/include/osmocom/hnbap/Access-stratum-release-indicator.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _Access_stratum_release_indicator_H_ -#define _Access_stratum_release_indicator_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeEnumerated.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum Access_stratum_release_indicator { - Access_stratum_release_indicator_r99 = 0, - Access_stratum_release_indicator_rel_4 = 1, - Access_stratum_release_indicator_rel_5 = 2, - Access_stratum_release_indicator_rel_6 = 3, - Access_stratum_release_indicator_rel_7 = 4, - Access_stratum_release_indicator_rel_8_and_beyond = 5 - /* - * Enumeration is extensible - */ -} e_Access_stratum_release_indicator; - -/* Access-stratum-release-indicator */ -typedef long Access_stratum_release_indicator_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Access_stratum_release_indicator; -asn_struct_free_f Access_stratum_release_indicator_free; -asn_struct_print_f Access_stratum_release_indicator_print; -asn_constr_check_f Access_stratum_release_indicator_constraint; -ber_type_decoder_f Access_stratum_release_indicator_decode_ber; -der_type_encoder_f Access_stratum_release_indicator_encode_der; -xer_type_decoder_f Access_stratum_release_indicator_decode_xer; -xer_type_encoder_f Access_stratum_release_indicator_encode_xer; -per_type_decoder_f Access_stratum_release_indicator_decode_uper; -per_type_encoder_f Access_stratum_release_indicator_encode_uper; -per_type_decoder_f Access_stratum_release_indicator_decode_aper; -per_type_encoder_f Access_stratum_release_indicator_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _Access_stratum_release_indicator_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/AccessResult.h b/include/osmocom/hnbap/AccessResult.h deleted file mode 100644 index e9f8087..0000000 --- a/include/osmocom/hnbap/AccessResult.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _AccessResult_H_ -#define _AccessResult_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeEnumerated.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum AccessResult { - AccessResult_allowed = 0, - AccessResult_notAllowed = 1 - /* - * Enumeration is extensible - */ -} e_AccessResult; - -/* AccessResult */ -typedef long AccessResult_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_AccessResult; -asn_struct_free_f AccessResult_free; -asn_struct_print_f AccessResult_print; -asn_constr_check_f AccessResult_constraint; -ber_type_decoder_f AccessResult_decode_ber; -der_type_encoder_f AccessResult_encode_der; -xer_type_decoder_f AccessResult_decode_xer; -xer_type_encoder_f AccessResult_encode_xer; -per_type_decoder_f AccessResult_decode_uper; -per_type_encoder_f AccessResult_encode_uper; -per_type_decoder_f AccessResult_decode_aper; -per_type_encoder_f AccessResult_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _AccessResult_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/AdditionalNeighbourInfoList.h b/include/osmocom/hnbap/AdditionalNeighbourInfoList.h deleted file mode 100644 index 7f1691d..0000000 --- a/include/osmocom/hnbap/AdditionalNeighbourInfoList.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _AdditionalNeighbourInfoList_H_ -#define _AdditionalNeighbourInfoList_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <asn_SEQUENCE_OF.h> -#include <constr_SEQUENCE_OF.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct HNBConfigInfo; - -/* AdditionalNeighbourInfoList */ -typedef struct AdditionalNeighbourInfoList { - A_SEQUENCE_OF(struct HNBConfigInfo) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} AdditionalNeighbourInfoList_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_AdditionalNeighbourInfoList; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include <osmocom/hnbap/HNBConfigInfo.h> - -#endif /* _AdditionalNeighbourInfoList_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/BackoffTimer.h b/include/osmocom/hnbap/BackoffTimer.h deleted file mode 100644 index 9b6b01f..0000000 --- a/include/osmocom/hnbap/BackoffTimer.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _BackoffTimer_H_ -#define _BackoffTimer_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeInteger.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* BackoffTimer */ -typedef long BackoffTimer_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_BackoffTimer; -asn_struct_free_f BackoffTimer_free; -asn_struct_print_f BackoffTimer_print; -asn_constr_check_f BackoffTimer_constraint; -ber_type_decoder_f BackoffTimer_decode_ber; -der_type_encoder_f BackoffTimer_encode_der; -xer_type_decoder_f BackoffTimer_decode_xer; -xer_type_encoder_f BackoffTimer_encode_xer; -per_type_decoder_f BackoffTimer_decode_uper; -per_type_encoder_f BackoffTimer_encode_uper; -per_type_decoder_f BackoffTimer_decode_aper; -per_type_encoder_f BackoffTimer_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _BackoffTimer_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/BindingID.h b/include/osmocom/hnbap/BindingID.h deleted file mode 100644 index ad1a142..0000000 --- a/include/osmocom/hnbap/BindingID.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _BindingID_H_ -#define _BindingID_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <OCTET_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* BindingID */ -typedef OCTET_STRING_t BindingID_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_BindingID; -asn_struct_free_f BindingID_free; -asn_struct_print_f BindingID_print; -asn_constr_check_f BindingID_constraint; -ber_type_decoder_f BindingID_decode_ber; -der_type_encoder_f BindingID_encode_der; -xer_type_decoder_f BindingID_decode_xer; -xer_type_encoder_f BindingID_encode_xer; -per_type_decoder_f BindingID_decode_uper; -per_type_encoder_f BindingID_encode_uper; -per_type_decoder_f BindingID_decode_aper; -per_type_encoder_f BindingID_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _BindingID_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/CELL-FACHMobilitySupport.h b/include/osmocom/hnbap/CELL-FACHMobilitySupport.h deleted file mode 100644 index 3d6b588..0000000 --- a/include/osmocom/hnbap/CELL-FACHMobilitySupport.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _CELL_FACHMobilitySupport_H_ -#define _CELL_FACHMobilitySupport_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeEnumerated.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum CELL_FACHMobilitySupport { - CELL_FACHMobilitySupport_supported = 0 - /* - * Enumeration is extensible - */ -} e_CELL_FACHMobilitySupport; - -/* CELL-FACHMobilitySupport */ -typedef long CELL_FACHMobilitySupport_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CELL_FACHMobilitySupport; -asn_struct_free_f CELL_FACHMobilitySupport_free; -asn_struct_print_f CELL_FACHMobilitySupport_print; -asn_constr_check_f CELL_FACHMobilitySupport_constraint; -ber_type_decoder_f CELL_FACHMobilitySupport_decode_ber; -der_type_encoder_f CELL_FACHMobilitySupport_encode_der; -xer_type_decoder_f CELL_FACHMobilitySupport_decode_xer; -xer_type_encoder_f CELL_FACHMobilitySupport_encode_xer; -per_type_decoder_f CELL_FACHMobilitySupport_decode_uper; -per_type_encoder_f CELL_FACHMobilitySupport_encode_uper; -per_type_decoder_f CELL_FACHMobilitySupport_decode_aper; -per_type_encoder_f CELL_FACHMobilitySupport_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _CELL_FACHMobilitySupport_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/CGI.h b/include/osmocom/hnbap/CGI.h deleted file mode 100644 index d588d01..0000000 --- a/include/osmocom/hnbap/CGI.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _CGI_H_ -#define _CGI_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/PLMNidentity.h> -#include <osmocom/hnbap/LAC.h> -#include <osmocom/hnbap/CI.h> -#include <constr_SEQUENCE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct IE_Extensions; - -/* CGI */ -typedef struct CGI { - PLMNidentity_t pLMNidentity; - LAC_t lAC; - CI_t cI; - struct IE_Extensions *iE_Extensions /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} CGI_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CGI; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include <osmocom/hnbap/IE-Extensions.h> - -#endif /* _CGI_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/CI.h b/include/osmocom/hnbap/CI.h deleted file mode 100644 index 8efd030..0000000 --- a/include/osmocom/hnbap/CI.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _CI_H_ -#define _CI_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <OCTET_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* CI */ -typedef OCTET_STRING_t CI_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CI; -asn_struct_free_f CI_free; -asn_struct_print_f CI_print; -asn_constr_check_f CI_constraint; -ber_type_decoder_f CI_decode_ber; -der_type_encoder_f CI_encode_der; -xer_type_decoder_f CI_decode_xer; -xer_type_encoder_f CI_encode_xer; -per_type_decoder_f CI_decode_uper; -per_type_encoder_f CI_encode_uper; -per_type_decoder_f CI_decode_aper; -per_type_encoder_f CI_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _CI_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/CN-DomainIndicator.h b/include/osmocom/hnbap/CN-DomainIndicator.h deleted file mode 100644 index 854f375..0000000 --- a/include/osmocom/hnbap/CN-DomainIndicator.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _CN_DomainIndicator_H_ -#define _CN_DomainIndicator_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeEnumerated.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum CN_DomainIndicator { - CN_DomainIndicator_cs_domain = 0, - CN_DomainIndicator_ps_domain = 1 -} e_CN_DomainIndicator; - -/* CN-DomainIndicator */ -typedef long CN_DomainIndicator_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CN_DomainIndicator; -asn_struct_free_f CN_DomainIndicator_free; -asn_struct_print_f CN_DomainIndicator_print; -asn_constr_check_f CN_DomainIndicator_constraint; -ber_type_decoder_f CN_DomainIndicator_decode_ber; -der_type_encoder_f CN_DomainIndicator_encode_der; -xer_type_decoder_f CN_DomainIndicator_decode_xer; -xer_type_encoder_f CN_DomainIndicator_encode_xer; -per_type_decoder_f CN_DomainIndicator_decode_uper; -per_type_encoder_f CN_DomainIndicator_encode_uper; -per_type_decoder_f CN_DomainIndicator_decode_aper; -per_type_encoder_f CN_DomainIndicator_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _CN_DomainIndicator_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/CSG-Capability.h b/include/osmocom/hnbap/CSG-Capability.h deleted file mode 100644 index f6df34d..0000000 --- a/include/osmocom/hnbap/CSG-Capability.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _CSG_Capability_H_ -#define _CSG_Capability_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeEnumerated.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum CSG_Capability { - CSG_Capability_csg_capable = 0, - CSG_Capability_not_csg_capable = 1 - /* - * Enumeration is extensible - */ -} e_CSG_Capability; - -/* CSG-Capability */ -typedef long CSG_Capability_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CSG_Capability; -asn_struct_free_f CSG_Capability_free; -asn_struct_print_f CSG_Capability_print; -asn_constr_check_f CSG_Capability_constraint; -ber_type_decoder_f CSG_Capability_decode_ber; -der_type_encoder_f CSG_Capability_encode_der; -xer_type_decoder_f CSG_Capability_decode_xer; -xer_type_encoder_f CSG_Capability_encode_xer; -per_type_decoder_f CSG_Capability_decode_uper; -per_type_encoder_f CSG_Capability_encode_uper; -per_type_decoder_f CSG_Capability_decode_aper; -per_type_encoder_f CSG_Capability_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _CSG_Capability_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/CSG-ID.h b/include/osmocom/hnbap/CSG-ID.h deleted file mode 100644 index dfffa81..0000000 --- a/include/osmocom/hnbap/CSG-ID.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _CSG_ID_H_ -#define _CSG_ID_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <BIT_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* CSG-ID */ -typedef BIT_STRING_t CSG_ID_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CSG_ID; -asn_struct_free_f CSG_ID_free; -asn_struct_print_f CSG_ID_print; -asn_constr_check_f CSG_ID_constraint; -ber_type_decoder_f CSG_ID_decode_ber; -der_type_encoder_f CSG_ID_encode_der; -xer_type_decoder_f CSG_ID_decode_xer; -xer_type_encoder_f CSG_ID_encode_xer; -per_type_decoder_f CSG_ID_decode_uper; -per_type_encoder_f CSG_ID_encode_uper; -per_type_decoder_f CSG_ID_decode_aper; -per_type_encoder_f CSG_ID_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _CSG_ID_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/CSGMembershipStatus.h b/include/osmocom/hnbap/CSGMembershipStatus.h deleted file mode 100644 index 5f7e88c..0000000 --- a/include/osmocom/hnbap/CSGMembershipStatus.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _CSGMembershipStatus_H_ -#define _CSGMembershipStatus_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeEnumerated.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum CSGMembershipStatus { - CSGMembershipStatus_member = 0, - CSGMembershipStatus_non_member = 1 - /* - * Enumeration is extensible - */ -} e_CSGMembershipStatus; - -/* CSGMembershipStatus */ -typedef long CSGMembershipStatus_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CSGMembershipStatus; -asn_struct_free_f CSGMembershipStatus_free; -asn_struct_print_f CSGMembershipStatus_print; -asn_constr_check_f CSGMembershipStatus_constraint; -ber_type_decoder_f CSGMembershipStatus_decode_ber; -der_type_encoder_f CSGMembershipStatus_encode_der; -xer_type_decoder_f CSGMembershipStatus_decode_xer; -xer_type_encoder_f CSGMembershipStatus_encode_xer; -per_type_decoder_f CSGMembershipStatus_decode_uper; -per_type_encoder_f CSGMembershipStatus_encode_uper; -per_type_decoder_f CSGMembershipStatus_decode_aper; -per_type_encoder_f CSGMembershipStatus_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _CSGMembershipStatus_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/Cause.h b/include/osmocom/hnbap/Cause.h deleted file mode 100644 index 1ce4c23..0000000 --- a/include/osmocom/hnbap/Cause.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _Cause_H_ -#define _Cause_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/CauseRadioNetwork.h> -#include <osmocom/hnbap/CauseTransport.h> -#include <osmocom/hnbap/CauseProtocol.h> -#include <osmocom/hnbap/CauseMisc.h> -#include <constr_CHOICE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum Cause_PR { - Cause_PR_NOTHING, /* No components present */ - Cause_PR_radioNetwork, - Cause_PR_transport, - Cause_PR_protocol, - Cause_PR_misc, - /* Extensions may appear below */ - -} Cause_PR; - -/* Cause */ -typedef struct Cause { - Cause_PR present; - union Cause_u { - CauseRadioNetwork_t radioNetwork; - CauseTransport_t transport; - CauseProtocol_t protocol; - CauseMisc_t misc; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Cause_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Cause; - -#ifdef __cplusplus -} -#endif - -#endif /* _Cause_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/CauseMisc.h b/include/osmocom/hnbap/CauseMisc.h deleted file mode 100644 index 7863364..0000000 --- a/include/osmocom/hnbap/CauseMisc.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _CauseMisc_H_ -#define _CauseMisc_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeEnumerated.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum CauseMisc { - CauseMisc_processing_overload = 0, - CauseMisc_hardware_failure = 1, - CauseMisc_o_and_m_intervention = 2, - CauseMisc_unspecified = 3 - /* - * Enumeration is extensible - */ -} e_CauseMisc; - -/* CauseMisc */ -typedef long CauseMisc_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CauseMisc; -asn_struct_free_f CauseMisc_free; -asn_struct_print_f CauseMisc_print; -asn_constr_check_f CauseMisc_constraint; -ber_type_decoder_f CauseMisc_decode_ber; -der_type_encoder_f CauseMisc_encode_der; -xer_type_decoder_f CauseMisc_decode_xer; -xer_type_encoder_f CauseMisc_encode_xer; -per_type_decoder_f CauseMisc_decode_uper; -per_type_encoder_f CauseMisc_encode_uper; -per_type_decoder_f CauseMisc_decode_aper; -per_type_encoder_f CauseMisc_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _CauseMisc_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/CauseProtocol.h b/include/osmocom/hnbap/CauseProtocol.h deleted file mode 100644 index 1dc187c..0000000 --- a/include/osmocom/hnbap/CauseProtocol.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _CauseProtocol_H_ -#define _CauseProtocol_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeEnumerated.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum CauseProtocol { - CauseProtocol_transfer_syntax_error = 0, - CauseProtocol_abstract_syntax_error_reject = 1, - CauseProtocol_abstract_syntax_error_ignore_and_notify = 2, - CauseProtocol_message_not_compatible_with_receiver_state = 3, - CauseProtocol_semantic_error = 4, - CauseProtocol_unspecified = 5, - CauseProtocol_abstract_syntax_error_falsely_constructed_message = 6 - /* - * Enumeration is extensible - */ -} e_CauseProtocol; - -/* CauseProtocol */ -typedef long CauseProtocol_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CauseProtocol; -asn_struct_free_f CauseProtocol_free; -asn_struct_print_f CauseProtocol_print; -asn_constr_check_f CauseProtocol_constraint; -ber_type_decoder_f CauseProtocol_decode_ber; -der_type_encoder_f CauseProtocol_encode_der; -xer_type_decoder_f CauseProtocol_decode_xer; -xer_type_encoder_f CauseProtocol_encode_xer; -per_type_decoder_f CauseProtocol_decode_uper; -per_type_encoder_f CauseProtocol_encode_uper; -per_type_decoder_f CauseProtocol_decode_aper; -per_type_encoder_f CauseProtocol_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _CauseProtocol_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/CauseRadioNetwork.h b/include/osmocom/hnbap/CauseRadioNetwork.h deleted file mode 100644 index 54d8b50..0000000 --- a/include/osmocom/hnbap/CauseRadioNetwork.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _CauseRadioNetwork_H_ -#define _CauseRadioNetwork_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeEnumerated.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum CauseRadioNetwork { - CauseRadioNetwork_overload = 0, - CauseRadioNetwork_unauthorised_Location = 1, - CauseRadioNetwork_unauthorised_HNB = 2, - CauseRadioNetwork_hNB_parameter_mismatch = 3, - CauseRadioNetwork_invalid_UE_identity = 4, - CauseRadioNetwork_uE_not_allowed_on_this_HNB = 5, - CauseRadioNetwork_uE_unauthorised = 6, - CauseRadioNetwork_connection_with_UE_lost = 7, - CauseRadioNetwork_ue_RRC_release = 8, - CauseRadioNetwork_hNB_not_registered = 9, - CauseRadioNetwork_unspecified = 10, - CauseRadioNetwork_normal = 11, - CauseRadioNetwork_uE_relocated = 12, - CauseRadioNetwork_ue_registered_in_another_HNB = 13, - /* - * Enumeration is extensible - */ - CauseRadioNetwork_no_neighbour_information_available = 14, - CauseRadioNetwork_iurh_connection_to_that_neighbour_not_Allowed = 15 -} e_CauseRadioNetwork; - -/* CauseRadioNetwork */ -typedef long CauseRadioNetwork_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CauseRadioNetwork; -asn_struct_free_f CauseRadioNetwork_free; -asn_struct_print_f CauseRadioNetwork_print; -asn_constr_check_f CauseRadioNetwork_constraint; -ber_type_decoder_f CauseRadioNetwork_decode_ber; -der_type_encoder_f CauseRadioNetwork_encode_der; -xer_type_decoder_f CauseRadioNetwork_decode_xer; -xer_type_encoder_f CauseRadioNetwork_encode_xer; -per_type_decoder_f CauseRadioNetwork_decode_uper; -per_type_encoder_f CauseRadioNetwork_encode_uper; -per_type_decoder_f CauseRadioNetwork_decode_aper; -per_type_encoder_f CauseRadioNetwork_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _CauseRadioNetwork_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/CauseTransport.h b/include/osmocom/hnbap/CauseTransport.h deleted file mode 100644 index ea445e9..0000000 --- a/include/osmocom/hnbap/CauseTransport.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _CauseTransport_H_ -#define _CauseTransport_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeEnumerated.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum CauseTransport { - CauseTransport_transport_resource_unavailable = 0, - CauseTransport_unspecified = 1 - /* - * Enumeration is extensible - */ -} e_CauseTransport; - -/* CauseTransport */ -typedef long CauseTransport_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CauseTransport; -asn_struct_free_f CauseTransport_free; -asn_struct_print_f CauseTransport_print; -asn_constr_check_f CauseTransport_constraint; -ber_type_decoder_f CauseTransport_decode_ber; -der_type_encoder_f CauseTransport_encode_der; -xer_type_decoder_f CauseTransport_decode_xer; -xer_type_encoder_f CauseTransport_encode_xer; -per_type_decoder_f CauseTransport_decode_uper; -per_type_encoder_f CauseTransport_encode_uper; -per_type_decoder_f CauseTransport_decode_aper; -per_type_encoder_f CauseTransport_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _CauseTransport_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/CellIdentity.h b/include/osmocom/hnbap/CellIdentity.h deleted file mode 100644 index 69b1688..0000000 --- a/include/osmocom/hnbap/CellIdentity.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _CellIdentity_H_ -#define _CellIdentity_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <BIT_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* CellIdentity */ -typedef BIT_STRING_t CellIdentity_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CellIdentity; -asn_struct_free_f CellIdentity_free; -asn_struct_print_f CellIdentity_print; -asn_constr_check_f CellIdentity_constraint; -ber_type_decoder_f CellIdentity_decode_ber; -der_type_encoder_f CellIdentity_encode_der; -xer_type_decoder_f CellIdentity_decode_xer; -xer_type_encoder_f CellIdentity_encode_xer; -per_type_decoder_f CellIdentity_decode_uper; -per_type_encoder_f CellIdentity_encode_uper; -per_type_decoder_f CellIdentity_decode_aper; -per_type_encoder_f CellIdentity_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _CellIdentity_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/ConfigurationInformation.h b/include/osmocom/hnbap/ConfigurationInformation.h deleted file mode 100644 index 4cd2bda..0000000 --- a/include/osmocom/hnbap/ConfigurationInformation.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _ConfigurationInformation_H_ -#define _ConfigurationInformation_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/HNBConfigurationInformationProvided.h> -#include <osmocom/hnbap/HNBConfigurationInformationMissing.h> -#include <constr_CHOICE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum ConfigurationInformation_PR { - ConfigurationInformation_PR_NOTHING, /* No components present */ - ConfigurationInformation_PR_provided, - ConfigurationInformation_PR_missing, - /* Extensions may appear below */ - -} ConfigurationInformation_PR; - -/* ConfigurationInformation */ -typedef struct ConfigurationInformation { - ConfigurationInformation_PR present; - union ConfigurationInformation_u { - HNBConfigurationInformationProvided_t provided; - HNBConfigurationInformationMissing_t missing; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} ConfigurationInformation_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_ConfigurationInformation; - -#ifdef __cplusplus -} -#endif - -#endif /* _ConfigurationInformation_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/Context-ID.h b/include/osmocom/hnbap/Context-ID.h deleted file mode 100644 index 89ba4e6..0000000 --- a/include/osmocom/hnbap/Context-ID.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _Context_ID_H_ -#define _Context_ID_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <BIT_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Context-ID */ -typedef BIT_STRING_t Context_ID_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Context_ID; -asn_struct_free_f Context_ID_free; -asn_struct_print_f Context_ID_print; -asn_constr_check_f Context_ID_constraint; -ber_type_decoder_f Context_ID_decode_ber; -der_type_encoder_f Context_ID_encode_der; -xer_type_decoder_f Context_ID_decode_xer; -xer_type_encoder_f Context_ID_encode_xer; -per_type_decoder_f Context_ID_decode_uper; -per_type_encoder_f Context_ID_encode_uper; -per_type_decoder_f Context_ID_decode_aper; -per_type_encoder_f Context_ID_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _Context_ID_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/Criticality.h b/include/osmocom/hnbap/Criticality.h deleted file mode 100644 index c110ab9..0000000 --- a/include/osmocom/hnbap/Criticality.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-CommonDataTypes" - * found in "../../asn1/hnbap/HNBAP-CommonDataTypes.asn" - * `asn1c -gen-PER` - */ - -#ifndef _Criticality_H_ -#define _Criticality_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeEnumerated.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum Criticality { - Criticality_reject = 0, - Criticality_ignore = 1, - Criticality_notify = 2 -} e_Criticality; - -/* Criticality */ -typedef long Criticality_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Criticality; -asn_struct_free_f Criticality_free; -asn_struct_print_f Criticality_print; -asn_constr_check_f Criticality_constraint; -ber_type_decoder_f Criticality_decode_ber; -der_type_encoder_f Criticality_encode_der; -xer_type_decoder_f Criticality_decode_xer; -xer_type_encoder_f Criticality_encode_xer; -per_type_decoder_f Criticality_decode_uper; -per_type_encoder_f Criticality_encode_uper; -per_type_decoder_f Criticality_decode_aper; -per_type_encoder_f Criticality_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _Criticality_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/CriticalityDiagnostics-IE-List.h b/include/osmocom/hnbap/CriticalityDiagnostics-IE-List.h deleted file mode 100644 index 3e24ec9..0000000 --- a/include/osmocom/hnbap/CriticalityDiagnostics-IE-List.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _CriticalityDiagnostics_IE_List_H_ -#define _CriticalityDiagnostics_IE_List_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <asn_SEQUENCE_OF.h> -#include <osmocom/hnbap/Criticality.h> -#include <osmocom/hnbap/ProtocolIE-ID.h> -#include <osmocom/hnbap/TypeOfError.h> -#include <constr_SEQUENCE.h> -#include <constr_SEQUENCE_OF.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct IE_Extensions; - -/* CriticalityDiagnostics-IE-List */ -typedef struct CriticalityDiagnostics_IE_List { - A_SEQUENCE_OF(struct Member { - Criticality_t iECriticality; - ProtocolIE_ID_t iE_ID; - TypeOfError_t typeOfError; - struct IE_Extensions *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} CriticalityDiagnostics_IE_List_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CriticalityDiagnostics_IE_List; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include <osmocom/hnbap/IE-Extensions.h> - -#endif /* _CriticalityDiagnostics_IE_List_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/CriticalityDiagnostics.h b/include/osmocom/hnbap/CriticalityDiagnostics.h deleted file mode 100644 index d6595a1..0000000 --- a/include/osmocom/hnbap/CriticalityDiagnostics.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _CriticalityDiagnostics_H_ -#define _CriticalityDiagnostics_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/ProcedureCode.h> -#include <osmocom/hnbap/TriggeringMessage.h> -#include <osmocom/hnbap/Criticality.h> -#include <constr_SEQUENCE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct CriticalityDiagnostics_IE_List; -struct IE_Extensions; - -/* CriticalityDiagnostics */ -typedef struct CriticalityDiagnostics { - ProcedureCode_t *procedureCode /* OPTIONAL */; - TriggeringMessage_t *triggeringMessage /* OPTIONAL */; - Criticality_t *procedureCriticality /* OPTIONAL */; - struct CriticalityDiagnostics_IE_List *iEsCriticalityDiagnostics /* OPTIONAL */; - struct IE_Extensions *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} CriticalityDiagnostics_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CriticalityDiagnostics; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include <osmocom/hnbap/CriticalityDiagnostics-IE-List.h> -#include <osmocom/hnbap/IE-Extensions.h> - -#endif /* _CriticalityDiagnostics_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/ESN.h b/include/osmocom/hnbap/ESN.h deleted file mode 100644 index 36ee2ca..0000000 --- a/include/osmocom/hnbap/ESN.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _ESN_H_ -#define _ESN_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <BIT_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* ESN */ -typedef BIT_STRING_t ESN_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_ESN; -asn_struct_free_f ESN_free; -asn_struct_print_f ESN_print; -asn_constr_check_f ESN_constraint; -ber_type_decoder_f ESN_decode_ber; -der_type_encoder_f ESN_encode_der; -xer_type_decoder_f ESN_decode_xer; -xer_type_encoder_f ESN_encode_xer; -per_type_decoder_f ESN_decode_uper; -per_type_encoder_f ESN_encode_uper; -per_type_decoder_f ESN_decode_aper; -per_type_encoder_f ESN_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _ESN_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/GTP-TEI.h b/include/osmocom/hnbap/GTP-TEI.h deleted file mode 100644 index 863c612..0000000 --- a/include/osmocom/hnbap/GTP-TEI.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _GTP_TEI_H_ -#define _GTP_TEI_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <OCTET_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* GTP-TEI */ -typedef OCTET_STRING_t GTP_TEI_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GTP_TEI; -asn_struct_free_f GTP_TEI_free; -asn_struct_print_f GTP_TEI_print; -asn_constr_check_f GTP_TEI_constraint; -ber_type_decoder_f GTP_TEI_decode_ber; -der_type_encoder_f GTP_TEI_encode_der; -xer_type_decoder_f GTP_TEI_decode_xer; -xer_type_encoder_f GTP_TEI_encode_xer; -per_type_decoder_f GTP_TEI_decode_uper; -per_type_encoder_f GTP_TEI_encode_uper; -per_type_decoder_f GTP_TEI_decode_aper; -per_type_encoder_f GTP_TEI_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _GTP_TEI_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/GeographicalLocation.h b/include/osmocom/hnbap/GeographicalLocation.h deleted file mode 100644 index bf228e7..0000000 --- a/include/osmocom/hnbap/GeographicalLocation.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _GeographicalLocation_H_ -#define _GeographicalLocation_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/GeographicalCoordinates.h> -#include <osmocom/hnbap/AltitudeAndDirection.h> -#include <constr_SEQUENCE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct IE_Extensions; - -/* GeographicalLocation */ -typedef struct GeographicalLocation { - GeographicalCoordinates_t geographicalCoordinates; - AltitudeAndDirection_t altitudeAndDirection; - struct IE_Extensions *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} GeographicalLocation_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_GeographicalLocation; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include <osmocom/hnbap/IE-Extensions.h> - -#endif /* _GeographicalLocation_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNB-Cell-Access-Mode.h b/include/osmocom/hnbap/HNB-Cell-Access-Mode.h deleted file mode 100644 index 76778e4..0000000 --- a/include/osmocom/hnbap/HNB-Cell-Access-Mode.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _HNB_Cell_Access_Mode_H_ -#define _HNB_Cell_Access_Mode_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeEnumerated.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum HNB_Cell_Access_Mode { - HNB_Cell_Access_Mode_closed = 0, - HNB_Cell_Access_Mode_hybrid = 1, - HNB_Cell_Access_Mode_open = 2 - /* - * Enumeration is extensible - */ -} e_HNB_Cell_Access_Mode; - -/* HNB-Cell-Access-Mode */ -typedef long HNB_Cell_Access_Mode_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_HNB_Cell_Access_Mode; -asn_struct_free_f HNB_Cell_Access_Mode_free; -asn_struct_print_f HNB_Cell_Access_Mode_print; -asn_constr_check_f HNB_Cell_Access_Mode_constraint; -ber_type_decoder_f HNB_Cell_Access_Mode_decode_ber; -der_type_encoder_f HNB_Cell_Access_Mode_encode_der; -xer_type_decoder_f HNB_Cell_Access_Mode_decode_xer; -xer_type_encoder_f HNB_Cell_Access_Mode_encode_xer; -per_type_decoder_f HNB_Cell_Access_Mode_decode_uper; -per_type_encoder_f HNB_Cell_Access_Mode_encode_uper; -per_type_decoder_f HNB_Cell_Access_Mode_decode_aper; -per_type_encoder_f HNB_Cell_Access_Mode_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _HNB_Cell_Access_Mode_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNB-Cell-Identifier.h b/include/osmocom/hnbap/HNB-Cell-Identifier.h deleted file mode 100644 index 66e63f5..0000000 --- a/include/osmocom/hnbap/HNB-Cell-Identifier.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _HNB_Cell_Identifier_H_ -#define _HNB_Cell_Identifier_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/PLMNidentity.h> -#include <osmocom/hnbap/CellIdentity.h> -#include <constr_SEQUENCE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct IE_Extensions; - -/* HNB-Cell-Identifier */ -typedef struct HNB_Cell_Identifier { - PLMNidentity_t pLMNidentity; - CellIdentity_t cellIdentity; - struct IE_Extensions *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} HNB_Cell_Identifier_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_HNB_Cell_Identifier; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include <osmocom/hnbap/IE-Extensions.h> - -#endif /* _HNB_Cell_Identifier_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNB-GWResponse.h b/include/osmocom/hnbap/HNB-GWResponse.h deleted file mode 100644 index 436cf55..0000000 --- a/include/osmocom/hnbap/HNB-GWResponse.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _HNB_GWResponse_H_ -#define _HNB_GWResponse_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/HNBConfigInfo.h> -#include <osmocom/hnbap/RNC-ID.h> -#include <osmocom/hnbap/UnknownU-RNTIIndication.h> -#include <constr_CHOICE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum HNB_GWResponse_PR { - HNB_GWResponse_PR_NOTHING, /* No components present */ - HNB_GWResponse_PR_hNB, - HNB_GWResponse_PR_macroRNC, - HNB_GWResponse_PR_unknownU_RNTIIndication, - /* Extensions may appear below */ - -} HNB_GWResponse_PR; - -/* HNB-GWResponse */ -typedef struct HNB_GWResponse { - HNB_GWResponse_PR present; - union HNB_GWResponse_u { - HNBConfigInfo_t hNB; - RNC_ID_t macroRNC; - UnknownU_RNTIIndication_t unknownU_RNTIIndication; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} HNB_GWResponse_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_HNB_GWResponse; - -#ifdef __cplusplus -} -#endif - -#endif /* _HNB_GWResponse_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNB-Identity-Info.h b/include/osmocom/hnbap/HNB-Identity-Info.h deleted file mode 100644 index f36ac89..0000000 --- a/include/osmocom/hnbap/HNB-Identity-Info.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _HNB_Identity_Info_H_ -#define _HNB_Identity_Info_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <OCTET_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* HNB-Identity-Info */ -typedef OCTET_STRING_t HNB_Identity_Info_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_HNB_Identity_Info; -asn_struct_free_f HNB_Identity_Info_free; -asn_struct_print_f HNB_Identity_Info_print; -asn_constr_check_f HNB_Identity_Info_constraint; -ber_type_decoder_f HNB_Identity_Info_decode_ber; -der_type_encoder_f HNB_Identity_Info_encode_der; -xer_type_decoder_f HNB_Identity_Info_decode_xer; -xer_type_encoder_f HNB_Identity_Info_encode_xer; -per_type_decoder_f HNB_Identity_Info_decode_uper; -per_type_encoder_f HNB_Identity_Info_encode_uper; -per_type_decoder_f HNB_Identity_Info_decode_aper; -per_type_encoder_f HNB_Identity_Info_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _HNB_Identity_Info_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNB-Location-Information.h b/include/osmocom/hnbap/HNB-Location-Information.h deleted file mode 100644 index 0416b59..0000000 --- a/include/osmocom/hnbap/HNB-Location-Information.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _HNB_Location_Information_H_ -#define _HNB_Location_Information_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <constr_SEQUENCE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct MacroCoverageInformation; -struct GeographicalLocation; -struct IE_Extensions; - -/* HNB-Location-Information */ -typedef struct HNB_Location_Information { - struct MacroCoverageInformation *macroCoverageInfo /* OPTIONAL */; - struct GeographicalLocation *geographicalCoordinates /* OPTIONAL */; - struct IE_Extensions *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} HNB_Location_Information_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_HNB_Location_Information; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include <osmocom/hnbap/MacroCoverageInformation.h> -#include <osmocom/hnbap/GeographicalLocation.h> -#include <osmocom/hnbap/IE-Extensions.h> - -#endif /* _HNB_Location_Information_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNB-RNL-Identity.h b/include/osmocom/hnbap/HNB-RNL-Identity.h deleted file mode 100644 index 1256f16..0000000 --- a/include/osmocom/hnbap/HNB-RNL-Identity.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _HNB_RNL_Identity_H_ -#define _HNB_RNL_Identity_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/HNB-Cell-Identifier.h> -#include <constr_CHOICE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum HNB_RNL_Identity_PR { - HNB_RNL_Identity_PR_NOTHING, /* No components present */ - HNB_RNL_Identity_PR_hNB_Identity_as_Cell_Identifier, - /* Extensions may appear below */ - -} HNB_RNL_Identity_PR; - -/* HNB-RNL-Identity */ -typedef struct HNB_RNL_Identity { - HNB_RNL_Identity_PR present; - union HNB_RNL_Identity_u { - HNB_Cell_Identifier_t hNB_Identity_as_Cell_Identifier; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} HNB_RNL_Identity_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_HNB_RNL_Identity; - -#ifdef __cplusplus -} -#endif - -#endif /* _HNB_RNL_Identity_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP-PDU.h b/include/osmocom/hnbap/HNBAP-PDU.h deleted file mode 100644 index 4026a8e..0000000 --- a/include/osmocom/hnbap/HNBAP-PDU.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-PDU" - * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` - */ - -#ifndef _HNBAP_PDU_H_ -#define _HNBAP_PDU_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/InitiatingMessage.h> -#include <osmocom/hnbap/SuccessfulOutcome.h> -#include <osmocom/hnbap/UnsuccessfulOutcome.h> -#include <constr_CHOICE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum HNBAP_PDU_PR { - HNBAP_PDU_PR_NOTHING, /* No components present */ - HNBAP_PDU_PR_initiatingMessage, - HNBAP_PDU_PR_successfulOutcome, - HNBAP_PDU_PR_unsuccessfulOutcome, - /* Extensions may appear below */ - -} HNBAP_PDU_PR; - -/* HNBAP-PDU */ -typedef struct HNBAP_PDU { - HNBAP_PDU_PR present; - union HNBAP_PDU_u { - InitiatingMessage_t initiatingMessage; - SuccessfulOutcome_t successfulOutcome; - UnsuccessfulOutcome_t unsuccessfulOutcome; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} HNBAP_PDU_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_HNBAP_PDU; - -#ifdef __cplusplus -} -#endif - -#endif /* _HNBAP_PDU_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_Access-stratum-release-indicator.h b/include/osmocom/hnbap/HNBAP_Access-stratum-release-indicator.h new file mode 100644 index 0000000..c52065c --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_Access-stratum-release-indicator.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_Access_stratum_release_indicator_H_ +#define _HNBAP_Access_stratum_release_indicator_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeEnumerated.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_Access_stratum_release_indicator { + HNBAP_Access_stratum_release_indicator_r99 = 0, + HNBAP_Access_stratum_release_indicator_rel_4 = 1, + HNBAP_Access_stratum_release_indicator_rel_5 = 2, + HNBAP_Access_stratum_release_indicator_rel_6 = 3, + HNBAP_Access_stratum_release_indicator_rel_7 = 4, + HNBAP_Access_stratum_release_indicator_rel_8_and_beyond = 5 + /* + * Enumeration is extensible + */ +} e_HNBAP_Access_stratum_release_indicator; + +/* HNBAP_Access-stratum-release-indicator */ +typedef long HNBAP_Access_stratum_release_indicator_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_Access_stratum_release_indicator; +asn_struct_free_f HNBAP_Access_stratum_release_indicator_free; +asn_struct_print_f HNBAP_Access_stratum_release_indicator_print; +asn_constr_check_f HNBAP_Access_stratum_release_indicator_constraint; +ber_type_decoder_f HNBAP_Access_stratum_release_indicator_decode_ber; +der_type_encoder_f HNBAP_Access_stratum_release_indicator_encode_der; +xer_type_decoder_f HNBAP_Access_stratum_release_indicator_decode_xer; +xer_type_encoder_f HNBAP_Access_stratum_release_indicator_encode_xer; +per_type_decoder_f HNBAP_Access_stratum_release_indicator_decode_uper; +per_type_encoder_f HNBAP_Access_stratum_release_indicator_encode_uper; +per_type_decoder_f HNBAP_Access_stratum_release_indicator_decode_aper; +per_type_encoder_f HNBAP_Access_stratum_release_indicator_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_Access_stratum_release_indicator_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_AccessResult.h b/include/osmocom/hnbap/HNBAP_AccessResult.h new file mode 100644 index 0000000..06c37fd --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_AccessResult.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_AccessResult_H_ +#define _HNBAP_AccessResult_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeEnumerated.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_AccessResult { + HNBAP_AccessResult_allowed = 0, + HNBAP_AccessResult_notAllowed = 1 + /* + * Enumeration is extensible + */ +} e_HNBAP_AccessResult; + +/* HNBAP_AccessResult */ +typedef long HNBAP_AccessResult_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_AccessResult; +asn_struct_free_f HNBAP_AccessResult_free; +asn_struct_print_f HNBAP_AccessResult_print; +asn_constr_check_f HNBAP_AccessResult_constraint; +ber_type_decoder_f HNBAP_AccessResult_decode_ber; +der_type_encoder_f HNBAP_AccessResult_encode_der; +xer_type_decoder_f HNBAP_AccessResult_decode_xer; +xer_type_encoder_f HNBAP_AccessResult_encode_xer; +per_type_decoder_f HNBAP_AccessResult_decode_uper; +per_type_encoder_f HNBAP_AccessResult_encode_uper; +per_type_decoder_f HNBAP_AccessResult_decode_aper; +per_type_encoder_f HNBAP_AccessResult_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_AccessResult_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_AdditionalNeighbourInfoList.h b/include/osmocom/hnbap/HNBAP_AdditionalNeighbourInfoList.h new file mode 100644 index 0000000..5b46e95 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_AdditionalNeighbourInfoList.h @@ -0,0 +1,39 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_AdditionalNeighbourInfoList_H_ +#define _HNBAP_AdditionalNeighbourInfoList_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_HNBConfigInfo.h> +#include <asn_SEQUENCE_OF.h> +#include <constr_SEQUENCE_OF.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_AdditionalNeighbourInfoList */ +typedef struct HNBAP_AdditionalNeighbourInfoList { + A_SEQUENCE_OF(HNBAP_HNBConfigInfo_t) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_AdditionalNeighbourInfoList_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_AdditionalNeighbourInfoList; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_AdditionalNeighbourInfoList_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/AltitudeAndDirection.h b/include/osmocom/hnbap/HNBAP_AltitudeAndDirection.h index 7ea3dfd..3bf4401 100644 --- a/include/osmocom/hnbap/AltitudeAndDirection.h +++ b/include/osmocom/hnbap/HNBAP_AltitudeAndDirection.h @@ -2,11 +2,11 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _AltitudeAndDirection_H_ -#define _AltitudeAndDirection_H_ +#ifndef _HNBAP_AltitudeAndDirection_H_ +#define _HNBAP_AltitudeAndDirection_H_ #include <asn_application.h> @@ -21,13 +21,13 @@ extern "C" { #endif /* Dependencies */ -typedef enum directionOfAltitude { - directionOfAltitude_height = 0, - directionOfAltitude_depth = 1 -} e_directionOfAltitude; +typedef enum HNBAP_AltitudeAndDirection__directionOfAltitude { + HNBAP_AltitudeAndDirection__directionOfAltitude_height = 0, + HNBAP_AltitudeAndDirection__directionOfAltitude_depth = 1 +} e_HNBAP_AltitudeAndDirection__directionOfAltitude; -/* AltitudeAndDirection */ -typedef struct AltitudeAndDirection { +/* HNBAP_AltitudeAndDirection */ +typedef struct HNBAP_AltitudeAndDirection { long directionOfAltitude; long altitude; /* @@ -37,15 +37,15 @@ typedef struct AltitudeAndDirection { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} AltitudeAndDirection_t; +} HNBAP_AltitudeAndDirection_t; /* Implementation */ /* extern asn_TYPE_descriptor_t asn_DEF_directionOfAltitude_2; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_AltitudeAndDirection; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_AltitudeAndDirection; #ifdef __cplusplus } #endif -#endif /* _AltitudeAndDirection_H_ */ +#endif /* _HNBAP_AltitudeAndDirection_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_BackoffTimer.h b/include/osmocom/hnbap/HNBAP_BackoffTimer.h new file mode 100644 index 0000000..5ee18a0 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_BackoffTimer.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_BackoffTimer_H_ +#define _HNBAP_BackoffTimer_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeInteger.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_BackoffTimer */ +typedef long HNBAP_BackoffTimer_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_BackoffTimer; +asn_struct_free_f HNBAP_BackoffTimer_free; +asn_struct_print_f HNBAP_BackoffTimer_print; +asn_constr_check_f HNBAP_BackoffTimer_constraint; +ber_type_decoder_f HNBAP_BackoffTimer_decode_ber; +der_type_encoder_f HNBAP_BackoffTimer_encode_der; +xer_type_decoder_f HNBAP_BackoffTimer_decode_xer; +xer_type_encoder_f HNBAP_BackoffTimer_encode_xer; +per_type_decoder_f HNBAP_BackoffTimer_decode_uper; +per_type_encoder_f HNBAP_BackoffTimer_encode_uper; +per_type_decoder_f HNBAP_BackoffTimer_decode_aper; +per_type_encoder_f HNBAP_BackoffTimer_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_BackoffTimer_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_BindingID.h b/include/osmocom/hnbap/HNBAP_BindingID.h new file mode 100644 index 0000000..c26159d --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_BindingID.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_BindingID_H_ +#define _HNBAP_BindingID_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <OCTET_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_BindingID */ +typedef OCTET_STRING_t HNBAP_BindingID_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_BindingID; +asn_struct_free_f HNBAP_BindingID_free; +asn_struct_print_f HNBAP_BindingID_print; +asn_constr_check_f HNBAP_BindingID_constraint; +ber_type_decoder_f HNBAP_BindingID_decode_ber; +der_type_encoder_f HNBAP_BindingID_encode_der; +xer_type_decoder_f HNBAP_BindingID_decode_xer; +xer_type_encoder_f HNBAP_BindingID_encode_xer; +per_type_decoder_f HNBAP_BindingID_decode_uper; +per_type_encoder_f HNBAP_BindingID_encode_uper; +per_type_decoder_f HNBAP_BindingID_decode_aper; +per_type_encoder_f HNBAP_BindingID_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_BindingID_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_CELL-FACHMobilitySupport.h b/include/osmocom/hnbap/HNBAP_CELL-FACHMobilitySupport.h new file mode 100644 index 0000000..dc91cb6 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_CELL-FACHMobilitySupport.h @@ -0,0 +1,51 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_CELL_FACHMobilitySupport_H_ +#define _HNBAP_CELL_FACHMobilitySupport_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeEnumerated.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_CELL_FACHMobilitySupport { + HNBAP_CELL_FACHMobilitySupport_supported = 0 + /* + * Enumeration is extensible + */ +} e_HNBAP_CELL_FACHMobilitySupport; + +/* HNBAP_CELL-FACHMobilitySupport */ +typedef long HNBAP_CELL_FACHMobilitySupport_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_CELL_FACHMobilitySupport; +asn_struct_free_f HNBAP_CELL_FACHMobilitySupport_free; +asn_struct_print_f HNBAP_CELL_FACHMobilitySupport_print; +asn_constr_check_f HNBAP_CELL_FACHMobilitySupport_constraint; +ber_type_decoder_f HNBAP_CELL_FACHMobilitySupport_decode_ber; +der_type_encoder_f HNBAP_CELL_FACHMobilitySupport_encode_der; +xer_type_decoder_f HNBAP_CELL_FACHMobilitySupport_decode_xer; +xer_type_encoder_f HNBAP_CELL_FACHMobilitySupport_encode_xer; +per_type_decoder_f HNBAP_CELL_FACHMobilitySupport_decode_uper; +per_type_encoder_f HNBAP_CELL_FACHMobilitySupport_encode_uper; +per_type_decoder_f HNBAP_CELL_FACHMobilitySupport_decode_aper; +per_type_encoder_f HNBAP_CELL_FACHMobilitySupport_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_CELL_FACHMobilitySupport_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_CGI.h b/include/osmocom/hnbap/HNBAP_CGI.h new file mode 100644 index 0000000..927257d --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_CGI.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_CGI_H_ +#define _HNBAP_CGI_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_PLMNidentity.h> +#include <osmocom/hnbap/HNBAP_LAC.h> +#include <osmocom/hnbap/HNBAP_CI.h> +#include <osmocom/hnbap/HNBAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_CGI */ +typedef struct HNBAP_CGI { + HNBAP_PLMNidentity_t pLMNidentity; + HNBAP_LAC_t lAC; + HNBAP_CI_t cI; + HNBAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_CGI_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_CGI; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_CGI_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_CI.h b/include/osmocom/hnbap/HNBAP_CI.h new file mode 100644 index 0000000..89916cc --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_CI.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_CI_H_ +#define _HNBAP_CI_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <OCTET_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_CI */ +typedef OCTET_STRING_t HNBAP_CI_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_CI; +asn_struct_free_f HNBAP_CI_free; +asn_struct_print_f HNBAP_CI_print; +asn_constr_check_f HNBAP_CI_constraint; +ber_type_decoder_f HNBAP_CI_decode_ber; +der_type_encoder_f HNBAP_CI_encode_der; +xer_type_decoder_f HNBAP_CI_decode_xer; +xer_type_encoder_f HNBAP_CI_encode_xer; +per_type_decoder_f HNBAP_CI_decode_uper; +per_type_encoder_f HNBAP_CI_encode_uper; +per_type_decoder_f HNBAP_CI_decode_aper; +per_type_encoder_f HNBAP_CI_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_CI_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_CN-DomainIndicator.h b/include/osmocom/hnbap/HNBAP_CN-DomainIndicator.h new file mode 100644 index 0000000..765ba2b --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_CN-DomainIndicator.h @@ -0,0 +1,49 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_CN_DomainIndicator_H_ +#define _HNBAP_CN_DomainIndicator_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeEnumerated.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_CN_DomainIndicator { + HNBAP_CN_DomainIndicator_cs_domain = 0, + HNBAP_CN_DomainIndicator_ps_domain = 1 +} e_HNBAP_CN_DomainIndicator; + +/* HNBAP_CN-DomainIndicator */ +typedef long HNBAP_CN_DomainIndicator_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_CN_DomainIndicator; +asn_struct_free_f HNBAP_CN_DomainIndicator_free; +asn_struct_print_f HNBAP_CN_DomainIndicator_print; +asn_constr_check_f HNBAP_CN_DomainIndicator_constraint; +ber_type_decoder_f HNBAP_CN_DomainIndicator_decode_ber; +der_type_encoder_f HNBAP_CN_DomainIndicator_encode_der; +xer_type_decoder_f HNBAP_CN_DomainIndicator_decode_xer; +xer_type_encoder_f HNBAP_CN_DomainIndicator_encode_xer; +per_type_decoder_f HNBAP_CN_DomainIndicator_decode_uper; +per_type_encoder_f HNBAP_CN_DomainIndicator_encode_uper; +per_type_decoder_f HNBAP_CN_DomainIndicator_decode_aper; +per_type_encoder_f HNBAP_CN_DomainIndicator_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_CN_DomainIndicator_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_CSG-Capability.h b/include/osmocom/hnbap/HNBAP_CSG-Capability.h new file mode 100644 index 0000000..ff10c3d --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_CSG-Capability.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_CSG_Capability_H_ +#define _HNBAP_CSG_Capability_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeEnumerated.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_CSG_Capability { + HNBAP_CSG_Capability_csg_capable = 0, + HNBAP_CSG_Capability_not_csg_capable = 1 + /* + * Enumeration is extensible + */ +} e_HNBAP_CSG_Capability; + +/* HNBAP_CSG-Capability */ +typedef long HNBAP_CSG_Capability_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_CSG_Capability; +asn_struct_free_f HNBAP_CSG_Capability_free; +asn_struct_print_f HNBAP_CSG_Capability_print; +asn_constr_check_f HNBAP_CSG_Capability_constraint; +ber_type_decoder_f HNBAP_CSG_Capability_decode_ber; +der_type_encoder_f HNBAP_CSG_Capability_encode_der; +xer_type_decoder_f HNBAP_CSG_Capability_decode_xer; +xer_type_encoder_f HNBAP_CSG_Capability_encode_xer; +per_type_decoder_f HNBAP_CSG_Capability_decode_uper; +per_type_encoder_f HNBAP_CSG_Capability_encode_uper; +per_type_decoder_f HNBAP_CSG_Capability_decode_aper; +per_type_encoder_f HNBAP_CSG_Capability_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_CSG_Capability_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_CSG-ID.h b/include/osmocom/hnbap/HNBAP_CSG-ID.h new file mode 100644 index 0000000..87e476a --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_CSG-ID.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_CSG_ID_H_ +#define _HNBAP_CSG_ID_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <BIT_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_CSG-ID */ +typedef BIT_STRING_t HNBAP_CSG_ID_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_CSG_ID; +asn_struct_free_f HNBAP_CSG_ID_free; +asn_struct_print_f HNBAP_CSG_ID_print; +asn_constr_check_f HNBAP_CSG_ID_constraint; +ber_type_decoder_f HNBAP_CSG_ID_decode_ber; +der_type_encoder_f HNBAP_CSG_ID_encode_der; +xer_type_decoder_f HNBAP_CSG_ID_decode_xer; +xer_type_encoder_f HNBAP_CSG_ID_encode_xer; +per_type_decoder_f HNBAP_CSG_ID_decode_uper; +per_type_encoder_f HNBAP_CSG_ID_encode_uper; +per_type_decoder_f HNBAP_CSG_ID_decode_aper; +per_type_encoder_f HNBAP_CSG_ID_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_CSG_ID_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_CSGMembershipStatus.h b/include/osmocom/hnbap/HNBAP_CSGMembershipStatus.h new file mode 100644 index 0000000..25ecacf --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_CSGMembershipStatus.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_CSGMembershipStatus_H_ +#define _HNBAP_CSGMembershipStatus_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeEnumerated.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_CSGMembershipStatus { + HNBAP_CSGMembershipStatus_member = 0, + HNBAP_CSGMembershipStatus_non_member = 1 + /* + * Enumeration is extensible + */ +} e_HNBAP_CSGMembershipStatus; + +/* HNBAP_CSGMembershipStatus */ +typedef long HNBAP_CSGMembershipStatus_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_CSGMembershipStatus; +asn_struct_free_f HNBAP_CSGMembershipStatus_free; +asn_struct_print_f HNBAP_CSGMembershipStatus_print; +asn_constr_check_f HNBAP_CSGMembershipStatus_constraint; +ber_type_decoder_f HNBAP_CSGMembershipStatus_decode_ber; +der_type_encoder_f HNBAP_CSGMembershipStatus_encode_der; +xer_type_decoder_f HNBAP_CSGMembershipStatus_decode_xer; +xer_type_encoder_f HNBAP_CSGMembershipStatus_encode_xer; +per_type_decoder_f HNBAP_CSGMembershipStatus_decode_uper; +per_type_encoder_f HNBAP_CSGMembershipStatus_encode_uper; +per_type_decoder_f HNBAP_CSGMembershipStatus_decode_aper; +per_type_encoder_f HNBAP_CSGMembershipStatus_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_CSGMembershipStatus_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/CSGMembershipUpdate.h b/include/osmocom/hnbap/HNBAP_CSGMembershipUpdate.h index 93e0248..b6324cf 100644 --- a/include/osmocom/hnbap/CSGMembershipUpdate.h +++ b/include/osmocom/hnbap/HNBAP_CSGMembershipUpdate.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _CSGMembershipUpdate_H_ -#define _CSGMembershipUpdate_H_ +#ifndef _HNBAP_CSGMembershipUpdate_H_ +#define _HNBAP_CSGMembershipUpdate_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IE.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> #include <constr_SEQUENCE.h> @@ -20,13 +21,10 @@ extern "C" { #endif -/* Forward declarations */ -struct IE; - -/* CSGMembershipUpdate */ -typedef struct CSGMembershipUpdate { - struct csgMembershipUpdate_ies { - A_SEQUENCE_OF(struct IE) list; +/* HNBAP_CSGMembershipUpdate */ +typedef struct HNBAP_CSGMembershipUpdate { + struct HNBAP_CSGMembershipUpdate__csgMembershipUpdate_ies { + A_SEQUENCE_OF(HNBAP_IE_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,17 +36,14 @@ typedef struct CSGMembershipUpdate { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} CSGMembershipUpdate_t; +} HNBAP_CSGMembershipUpdate_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_CSGMembershipUpdate; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_CSGMembershipUpdate; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE.h> - -#endif /* _CSGMembershipUpdate_H_ */ +#endif /* _HNBAP_CSGMembershipUpdate_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_Cause.h b/include/osmocom/hnbap/HNBAP_Cause.h new file mode 100644 index 0000000..eba2cc1 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_Cause.h @@ -0,0 +1,62 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_Cause_H_ +#define _HNBAP_Cause_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_CauseRadioNetwork.h> +#include <osmocom/hnbap/HNBAP_CauseTransport.h> +#include <osmocom/hnbap/HNBAP_CauseProtocol.h> +#include <osmocom/hnbap/HNBAP_CauseMisc.h> +#include <constr_CHOICE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_Cause_PR { + HNBAP_Cause_PR_NOTHING, /* No components present */ + HNBAP_Cause_PR_radioNetwork, + HNBAP_Cause_PR_transport, + HNBAP_Cause_PR_protocol, + HNBAP_Cause_PR_misc, + /* Extensions may appear below */ + +} HNBAP_Cause_PR; + +/* HNBAP_Cause */ +typedef struct HNBAP_Cause { + HNBAP_Cause_PR present; + union HNBAP_Cause_u { + HNBAP_CauseRadioNetwork_t radioNetwork; + HNBAP_CauseTransport_t transport; + HNBAP_CauseProtocol_t protocol; + HNBAP_CauseMisc_t misc; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_Cause_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_Cause; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_Cause_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_CauseMisc.h b/include/osmocom/hnbap/HNBAP_CauseMisc.h new file mode 100644 index 0000000..2534318 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_CauseMisc.h @@ -0,0 +1,54 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_CauseMisc_H_ +#define _HNBAP_CauseMisc_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeEnumerated.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_CauseMisc { + HNBAP_CauseMisc_processing_overload = 0, + HNBAP_CauseMisc_hardware_failure = 1, + HNBAP_CauseMisc_o_and_m_intervention = 2, + HNBAP_CauseMisc_unspecified = 3 + /* + * Enumeration is extensible + */ +} e_HNBAP_CauseMisc; + +/* HNBAP_CauseMisc */ +typedef long HNBAP_CauseMisc_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_CauseMisc; +asn_struct_free_f HNBAP_CauseMisc_free; +asn_struct_print_f HNBAP_CauseMisc_print; +asn_constr_check_f HNBAP_CauseMisc_constraint; +ber_type_decoder_f HNBAP_CauseMisc_decode_ber; +der_type_encoder_f HNBAP_CauseMisc_encode_der; +xer_type_decoder_f HNBAP_CauseMisc_decode_xer; +xer_type_encoder_f HNBAP_CauseMisc_encode_xer; +per_type_decoder_f HNBAP_CauseMisc_decode_uper; +per_type_encoder_f HNBAP_CauseMisc_encode_uper; +per_type_decoder_f HNBAP_CauseMisc_decode_aper; +per_type_encoder_f HNBAP_CauseMisc_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_CauseMisc_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_CauseProtocol.h b/include/osmocom/hnbap/HNBAP_CauseProtocol.h new file mode 100644 index 0000000..0ca1254 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_CauseProtocol.h @@ -0,0 +1,57 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_CauseProtocol_H_ +#define _HNBAP_CauseProtocol_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeEnumerated.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_CauseProtocol { + HNBAP_CauseProtocol_transfer_syntax_error = 0, + HNBAP_CauseProtocol_abstract_syntax_error_reject = 1, + HNBAP_CauseProtocol_abstract_syntax_error_ignore_and_notify = 2, + HNBAP_CauseProtocol_message_not_compatible_with_receiver_state = 3, + HNBAP_CauseProtocol_semantic_error = 4, + HNBAP_CauseProtocol_unspecified = 5, + HNBAP_CauseProtocol_abstract_syntax_error_falsely_constructed_message = 6 + /* + * Enumeration is extensible + */ +} e_HNBAP_CauseProtocol; + +/* HNBAP_CauseProtocol */ +typedef long HNBAP_CauseProtocol_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_CauseProtocol; +asn_struct_free_f HNBAP_CauseProtocol_free; +asn_struct_print_f HNBAP_CauseProtocol_print; +asn_constr_check_f HNBAP_CauseProtocol_constraint; +ber_type_decoder_f HNBAP_CauseProtocol_decode_ber; +der_type_encoder_f HNBAP_CauseProtocol_encode_der; +xer_type_decoder_f HNBAP_CauseProtocol_decode_xer; +xer_type_encoder_f HNBAP_CauseProtocol_encode_xer; +per_type_decoder_f HNBAP_CauseProtocol_decode_uper; +per_type_encoder_f HNBAP_CauseProtocol_encode_uper; +per_type_decoder_f HNBAP_CauseProtocol_decode_aper; +per_type_encoder_f HNBAP_CauseProtocol_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_CauseProtocol_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_CauseRadioNetwork.h b/include/osmocom/hnbap/HNBAP_CauseRadioNetwork.h new file mode 100644 index 0000000..5c998ca --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_CauseRadioNetwork.h @@ -0,0 +1,66 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_CauseRadioNetwork_H_ +#define _HNBAP_CauseRadioNetwork_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeEnumerated.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_CauseRadioNetwork { + HNBAP_CauseRadioNetwork_overload = 0, + HNBAP_CauseRadioNetwork_unauthorised_Location = 1, + HNBAP_CauseRadioNetwork_unauthorised_HNB = 2, + HNBAP_CauseRadioNetwork_hNB_parameter_mismatch = 3, + HNBAP_CauseRadioNetwork_invalid_UE_identity = 4, + HNBAP_CauseRadioNetwork_uE_not_allowed_on_this_HNB = 5, + HNBAP_CauseRadioNetwork_uE_unauthorised = 6, + HNBAP_CauseRadioNetwork_connection_with_UE_lost = 7, + HNBAP_CauseRadioNetwork_ue_RRC_release = 8, + HNBAP_CauseRadioNetwork_hNB_not_registered = 9, + HNBAP_CauseRadioNetwork_unspecified = 10, + HNBAP_CauseRadioNetwork_normal = 11, + HNBAP_CauseRadioNetwork_uE_relocated = 12, + HNBAP_CauseRadioNetwork_ue_registered_in_another_HNB = 13, + /* + * Enumeration is extensible + */ + HNBAP_CauseRadioNetwork_no_neighbour_information_available = 14, + HNBAP_CauseRadioNetwork_iurh_connection_to_that_neighbour_not_Allowed = 15 +} e_HNBAP_CauseRadioNetwork; + +/* HNBAP_CauseRadioNetwork */ +typedef long HNBAP_CauseRadioNetwork_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_CauseRadioNetwork; +asn_struct_free_f HNBAP_CauseRadioNetwork_free; +asn_struct_print_f HNBAP_CauseRadioNetwork_print; +asn_constr_check_f HNBAP_CauseRadioNetwork_constraint; +ber_type_decoder_f HNBAP_CauseRadioNetwork_decode_ber; +der_type_encoder_f HNBAP_CauseRadioNetwork_encode_der; +xer_type_decoder_f HNBAP_CauseRadioNetwork_decode_xer; +xer_type_encoder_f HNBAP_CauseRadioNetwork_encode_xer; +per_type_decoder_f HNBAP_CauseRadioNetwork_decode_uper; +per_type_encoder_f HNBAP_CauseRadioNetwork_encode_uper; +per_type_decoder_f HNBAP_CauseRadioNetwork_decode_aper; +per_type_encoder_f HNBAP_CauseRadioNetwork_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_CauseRadioNetwork_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_CauseTransport.h b/include/osmocom/hnbap/HNBAP_CauseTransport.h new file mode 100644 index 0000000..8dff6b8 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_CauseTransport.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_CauseTransport_H_ +#define _HNBAP_CauseTransport_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeEnumerated.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_CauseTransport { + HNBAP_CauseTransport_transport_resource_unavailable = 0, + HNBAP_CauseTransport_unspecified = 1 + /* + * Enumeration is extensible + */ +} e_HNBAP_CauseTransport; + +/* HNBAP_CauseTransport */ +typedef long HNBAP_CauseTransport_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_CauseTransport; +asn_struct_free_f HNBAP_CauseTransport_free; +asn_struct_print_f HNBAP_CauseTransport_print; +asn_constr_check_f HNBAP_CauseTransport_constraint; +ber_type_decoder_f HNBAP_CauseTransport_decode_ber; +der_type_encoder_f HNBAP_CauseTransport_encode_der; +xer_type_decoder_f HNBAP_CauseTransport_decode_xer; +xer_type_encoder_f HNBAP_CauseTransport_encode_xer; +per_type_decoder_f HNBAP_CauseTransport_decode_uper; +per_type_encoder_f HNBAP_CauseTransport_encode_uper; +per_type_decoder_f HNBAP_CauseTransport_decode_aper; +per_type_encoder_f HNBAP_CauseTransport_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_CauseTransport_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_CellIdentity.h b/include/osmocom/hnbap/HNBAP_CellIdentity.h new file mode 100644 index 0000000..1a47122 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_CellIdentity.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_CellIdentity_H_ +#define _HNBAP_CellIdentity_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <BIT_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_CellIdentity */ +typedef BIT_STRING_t HNBAP_CellIdentity_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_CellIdentity; +asn_struct_free_f HNBAP_CellIdentity_free; +asn_struct_print_f HNBAP_CellIdentity_print; +asn_constr_check_f HNBAP_CellIdentity_constraint; +ber_type_decoder_f HNBAP_CellIdentity_decode_ber; +der_type_encoder_f HNBAP_CellIdentity_encode_der; +xer_type_decoder_f HNBAP_CellIdentity_decode_xer; +xer_type_encoder_f HNBAP_CellIdentity_encode_xer; +per_type_decoder_f HNBAP_CellIdentity_decode_uper; +per_type_encoder_f HNBAP_CellIdentity_encode_uper; +per_type_decoder_f HNBAP_CellIdentity_decode_aper; +per_type_encoder_f HNBAP_CellIdentity_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_CellIdentity_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_ConfigurationInformation.h b/include/osmocom/hnbap/HNBAP_ConfigurationInformation.h new file mode 100644 index 0000000..d5e2128 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_ConfigurationInformation.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_ConfigurationInformation_H_ +#define _HNBAP_ConfigurationInformation_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_HNBConfigurationInformationProvided.h> +#include <osmocom/hnbap/HNBAP_HNBConfigurationInformationMissing.h> +#include <constr_CHOICE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_ConfigurationInformation_PR { + HNBAP_ConfigurationInformation_PR_NOTHING, /* No components present */ + HNBAP_ConfigurationInformation_PR_provided, + HNBAP_ConfigurationInformation_PR_missing, + /* Extensions may appear below */ + +} HNBAP_ConfigurationInformation_PR; + +/* HNBAP_ConfigurationInformation */ +typedef struct HNBAP_ConfigurationInformation { + HNBAP_ConfigurationInformation_PR present; + union HNBAP_ConfigurationInformation_u { + HNBAP_HNBConfigurationInformationProvided_t provided; + HNBAP_HNBConfigurationInformationMissing_t missing; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_ConfigurationInformation_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_ConfigurationInformation; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_ConfigurationInformation_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_Context-ID.h b/include/osmocom/hnbap/HNBAP_Context-ID.h new file mode 100644 index 0000000..fce0508 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_Context-ID.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_Context_ID_H_ +#define _HNBAP_Context_ID_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <BIT_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_Context-ID */ +typedef BIT_STRING_t HNBAP_Context_ID_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_Context_ID; +asn_struct_free_f HNBAP_Context_ID_free; +asn_struct_print_f HNBAP_Context_ID_print; +asn_constr_check_f HNBAP_Context_ID_constraint; +ber_type_decoder_f HNBAP_Context_ID_decode_ber; +der_type_encoder_f HNBAP_Context_ID_encode_der; +xer_type_decoder_f HNBAP_Context_ID_decode_xer; +xer_type_encoder_f HNBAP_Context_ID_encode_xer; +per_type_decoder_f HNBAP_Context_ID_decode_uper; +per_type_encoder_f HNBAP_Context_ID_encode_uper; +per_type_decoder_f HNBAP_Context_ID_decode_aper; +per_type_encoder_f HNBAP_Context_ID_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_Context_ID_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_Criticality.h b/include/osmocom/hnbap/HNBAP_Criticality.h new file mode 100644 index 0000000..45c20a3 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_Criticality.h @@ -0,0 +1,50 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-CommonDataTypes" + * found in "../../asn1/hnbap/HNBAP-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_Criticality_H_ +#define _HNBAP_Criticality_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeEnumerated.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_Criticality { + HNBAP_Criticality_reject = 0, + HNBAP_Criticality_ignore = 1, + HNBAP_Criticality_notify = 2 +} e_HNBAP_Criticality; + +/* HNBAP_Criticality */ +typedef long HNBAP_Criticality_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_Criticality; +asn_struct_free_f HNBAP_Criticality_free; +asn_struct_print_f HNBAP_Criticality_print; +asn_constr_check_f HNBAP_Criticality_constraint; +ber_type_decoder_f HNBAP_Criticality_decode_ber; +der_type_encoder_f HNBAP_Criticality_encode_der; +xer_type_decoder_f HNBAP_Criticality_decode_xer; +xer_type_encoder_f HNBAP_Criticality_encode_xer; +per_type_decoder_f HNBAP_Criticality_decode_uper; +per_type_encoder_f HNBAP_Criticality_encode_uper; +per_type_decoder_f HNBAP_Criticality_decode_aper; +per_type_encoder_f HNBAP_Criticality_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_Criticality_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_CriticalityDiagnostics-IE-List-Value.h b/include/osmocom/hnbap/HNBAP_CriticalityDiagnostics-IE-List-Value.h new file mode 100644 index 0000000..59734ad --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_CriticalityDiagnostics-IE-List-Value.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_CriticalityDiagnostics_IE_List_Value_H_ +#define _HNBAP_CriticalityDiagnostics_IE_List_Value_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_Criticality.h> +#include <osmocom/hnbap/HNBAP_ProtocolIE-ID.h> +#include <osmocom/hnbap/HNBAP_TypeOfError.h> +#include <osmocom/hnbap/HNBAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_CriticalityDiagnostics-IE-List-Value */ +typedef struct HNBAP_CriticalityDiagnostics_IE_List_Value { + HNBAP_Criticality_t iECriticality; + HNBAP_ProtocolIE_ID_t iE_ID; + HNBAP_TypeOfError_t typeOfError; + HNBAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_CriticalityDiagnostics_IE_List_Value_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_CriticalityDiagnostics_IE_List_Value; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_CriticalityDiagnostics_IE_List_Value_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_CriticalityDiagnostics-IE-List.h b/include/osmocom/hnbap/HNBAP_CriticalityDiagnostics-IE-List.h new file mode 100644 index 0000000..6b31a1c --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_CriticalityDiagnostics-IE-List.h @@ -0,0 +1,39 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_CriticalityDiagnostics_IE_List_H_ +#define _HNBAP_CriticalityDiagnostics_IE_List_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_CriticalityDiagnostics-IE-List-Value.h> +#include <asn_SEQUENCE_OF.h> +#include <constr_SEQUENCE_OF.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_CriticalityDiagnostics-IE-List */ +typedef struct HNBAP_CriticalityDiagnostics_IE_List { + A_SEQUENCE_OF(HNBAP_CriticalityDiagnostics_IE_List_Value_t) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_CriticalityDiagnostics_IE_List_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_CriticalityDiagnostics_IE_List; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_CriticalityDiagnostics_IE_List_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_CriticalityDiagnostics.h b/include/osmocom/hnbap/HNBAP_CriticalityDiagnostics.h new file mode 100644 index 0000000..f4b7b2a --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_CriticalityDiagnostics.h @@ -0,0 +1,50 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_CriticalityDiagnostics_H_ +#define _HNBAP_CriticalityDiagnostics_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_ProcedureCode.h> +#include <osmocom/hnbap/HNBAP_TriggeringMessage.h> +#include <osmocom/hnbap/HNBAP_Criticality.h> +#include <osmocom/hnbap/HNBAP_CriticalityDiagnostics-IE-List.h> +#include <osmocom/hnbap/HNBAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_CriticalityDiagnostics */ +typedef struct HNBAP_CriticalityDiagnostics { + HNBAP_ProcedureCode_t *procedureCode /* OPTIONAL */; + HNBAP_TriggeringMessage_t *triggeringMessage /* OPTIONAL */; + HNBAP_Criticality_t *procedureCriticality /* OPTIONAL */; + HNBAP_CriticalityDiagnostics_IE_List_t *iEsCriticalityDiagnostics /* OPTIONAL */; + HNBAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_CriticalityDiagnostics_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_CriticalityDiagnostics; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_CriticalityDiagnostics_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_ESN.h b/include/osmocom/hnbap/HNBAP_ESN.h new file mode 100644 index 0000000..e3e5e5f --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_ESN.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_ESN_H_ +#define _HNBAP_ESN_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <BIT_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_ESN */ +typedef BIT_STRING_t HNBAP_ESN_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_ESN; +asn_struct_free_f HNBAP_ESN_free; +asn_struct_print_f HNBAP_ESN_print; +asn_constr_check_f HNBAP_ESN_constraint; +ber_type_decoder_f HNBAP_ESN_decode_ber; +der_type_encoder_f HNBAP_ESN_encode_der; +xer_type_decoder_f HNBAP_ESN_decode_xer; +xer_type_encoder_f HNBAP_ESN_encode_xer; +per_type_decoder_f HNBAP_ESN_decode_uper; +per_type_encoder_f HNBAP_ESN_encode_uper; +per_type_decoder_f HNBAP_ESN_decode_aper; +per_type_encoder_f HNBAP_ESN_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_ESN_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/ErrorIndication.h b/include/osmocom/hnbap/HNBAP_ErrorIndication.h index 110934c..b640aa8 100644 --- a/include/osmocom/hnbap/ErrorIndication.h +++ b/include/osmocom/hnbap/HNBAP_ErrorIndication.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _ErrorIndication_H_ -#define _ErrorIndication_H_ +#ifndef _HNBAP_ErrorIndication_H_ +#define _HNBAP_ErrorIndication_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IE.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> #include <constr_SEQUENCE.h> @@ -20,13 +21,10 @@ extern "C" { #endif -/* Forward declarations */ -struct IE; - -/* ErrorIndication */ -typedef struct ErrorIndication { - struct errorIndication_ies { - A_SEQUENCE_OF(struct IE) list; +/* HNBAP_ErrorIndication */ +typedef struct HNBAP_ErrorIndication { + struct HNBAP_ErrorIndication__errorIndication_ies { + A_SEQUENCE_OF(HNBAP_IE_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,17 +36,14 @@ typedef struct ErrorIndication { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} ErrorIndication_t; +} HNBAP_ErrorIndication_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_ErrorIndication; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_ErrorIndication; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE.h> - -#endif /* _ErrorIndication_H_ */ +#endif /* _HNBAP_ErrorIndication_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_GTP-TEI.h b/include/osmocom/hnbap/HNBAP_GTP-TEI.h new file mode 100644 index 0000000..c3b8917 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_GTP-TEI.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_GTP_TEI_H_ +#define _HNBAP_GTP_TEI_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <OCTET_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_GTP-TEI */ +typedef OCTET_STRING_t HNBAP_GTP_TEI_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_GTP_TEI; +asn_struct_free_f HNBAP_GTP_TEI_free; +asn_struct_print_f HNBAP_GTP_TEI_print; +asn_constr_check_f HNBAP_GTP_TEI_constraint; +ber_type_decoder_f HNBAP_GTP_TEI_decode_ber; +der_type_encoder_f HNBAP_GTP_TEI_encode_der; +xer_type_decoder_f HNBAP_GTP_TEI_decode_xer; +xer_type_encoder_f HNBAP_GTP_TEI_encode_xer; +per_type_decoder_f HNBAP_GTP_TEI_decode_uper; +per_type_encoder_f HNBAP_GTP_TEI_encode_uper; +per_type_decoder_f HNBAP_GTP_TEI_decode_aper; +per_type_encoder_f HNBAP_GTP_TEI_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_GTP_TEI_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/GeographicalCoordinates.h b/include/osmocom/hnbap/HNBAP_GeographicalCoordinates.h index cf0650b..3033b7a 100644 --- a/include/osmocom/hnbap/GeographicalCoordinates.h +++ b/include/osmocom/hnbap/HNBAP_GeographicalCoordinates.h @@ -2,11 +2,11 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _GeographicalCoordinates_H_ -#define _GeographicalCoordinates_H_ +#ifndef _HNBAP_GeographicalCoordinates_H_ +#define _HNBAP_GeographicalCoordinates_H_ #include <asn_application.h> @@ -14,6 +14,7 @@ /* Including external dependencies */ #include <NativeEnumerated.h> #include <NativeInteger.h> +#include <osmocom/hnbap/HNBAP_IE-Extensions.h> #include <constr_SEQUENCE.h> #ifdef __cplusplus @@ -21,20 +22,17 @@ extern "C" { #endif /* Dependencies */ -typedef enum latitudeSign { - latitudeSign_north = 0, - latitudeSign_south = 1 -} e_latitudeSign; +typedef enum HNBAP_GeographicalCoordinates__latitudeSign { + HNBAP_GeographicalCoordinates__latitudeSign_north = 0, + HNBAP_GeographicalCoordinates__latitudeSign_south = 1 +} e_HNBAP_GeographicalCoordinates__latitudeSign; -/* Forward declarations */ -struct IE_Extensions; - -/* GeographicalCoordinates */ -typedef struct GeographicalCoordinates { +/* HNBAP_GeographicalCoordinates */ +typedef struct HNBAP_GeographicalCoordinates { long latitudeSign; long latitude; long longitude; - struct IE_Extensions *iE_Extensions /* OPTIONAL */; + HNBAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; /* * This type is extensible, * possible extensions are below. @@ -42,18 +40,15 @@ typedef struct GeographicalCoordinates { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} GeographicalCoordinates_t; +} HNBAP_GeographicalCoordinates_t; /* Implementation */ /* extern asn_TYPE_descriptor_t asn_DEF_latitudeSign_2; // (Use -fall-defs-global to expose) */ -extern asn_TYPE_descriptor_t asn_DEF_GeographicalCoordinates; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_GeographicalCoordinates; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE-Extensions.h> - -#endif /* _GeographicalCoordinates_H_ */ +#endif /* _HNBAP_GeographicalCoordinates_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_GeographicalLocation.h b/include/osmocom/hnbap/HNBAP_GeographicalLocation.h new file mode 100644 index 0000000..9a2a071 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_GeographicalLocation.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_GeographicalLocation_H_ +#define _HNBAP_GeographicalLocation_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_GeographicalCoordinates.h> +#include <osmocom/hnbap/HNBAP_AltitudeAndDirection.h> +#include <osmocom/hnbap/HNBAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_GeographicalLocation */ +typedef struct HNBAP_GeographicalLocation { + HNBAP_GeographicalCoordinates_t geographicalCoordinates; + HNBAP_AltitudeAndDirection_t altitudeAndDirection; + HNBAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_GeographicalLocation_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_GeographicalLocation; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_GeographicalLocation_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_HNB-Cell-Access-Mode.h b/include/osmocom/hnbap/HNBAP_HNB-Cell-Access-Mode.h new file mode 100644 index 0000000..9a2529a --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_HNB-Cell-Access-Mode.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_HNB_Cell_Access_Mode_H_ +#define _HNBAP_HNB_Cell_Access_Mode_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeEnumerated.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_HNB_Cell_Access_Mode { + HNBAP_HNB_Cell_Access_Mode_closed = 0, + HNBAP_HNB_Cell_Access_Mode_hybrid = 1, + HNBAP_HNB_Cell_Access_Mode_open = 2 + /* + * Enumeration is extensible + */ +} e_HNBAP_HNB_Cell_Access_Mode; + +/* HNBAP_HNB-Cell-Access-Mode */ +typedef long HNBAP_HNB_Cell_Access_Mode_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_HNB_Cell_Access_Mode; +asn_struct_free_f HNBAP_HNB_Cell_Access_Mode_free; +asn_struct_print_f HNBAP_HNB_Cell_Access_Mode_print; +asn_constr_check_f HNBAP_HNB_Cell_Access_Mode_constraint; +ber_type_decoder_f HNBAP_HNB_Cell_Access_Mode_decode_ber; +der_type_encoder_f HNBAP_HNB_Cell_Access_Mode_encode_der; +xer_type_decoder_f HNBAP_HNB_Cell_Access_Mode_decode_xer; +xer_type_encoder_f HNBAP_HNB_Cell_Access_Mode_encode_xer; +per_type_decoder_f HNBAP_HNB_Cell_Access_Mode_decode_uper; +per_type_encoder_f HNBAP_HNB_Cell_Access_Mode_encode_uper; +per_type_decoder_f HNBAP_HNB_Cell_Access_Mode_decode_aper; +per_type_encoder_f HNBAP_HNB_Cell_Access_Mode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_HNB_Cell_Access_Mode_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_HNB-Cell-Identifier.h b/include/osmocom/hnbap/HNBAP_HNB-Cell-Identifier.h new file mode 100644 index 0000000..27c0fd9 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_HNB-Cell-Identifier.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_HNB_Cell_Identifier_H_ +#define _HNBAP_HNB_Cell_Identifier_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_PLMNidentity.h> +#include <osmocom/hnbap/HNBAP_CellIdentity.h> +#include <osmocom/hnbap/HNBAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_HNB-Cell-Identifier */ +typedef struct HNBAP_HNB_Cell_Identifier { + HNBAP_PLMNidentity_t pLMNidentity; + HNBAP_CellIdentity_t cellIdentity; + HNBAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_HNB_Cell_Identifier_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_HNB_Cell_Identifier; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_HNB_Cell_Identifier_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_HNB-GWResponse.h b/include/osmocom/hnbap/HNBAP_HNB-GWResponse.h new file mode 100644 index 0000000..8afd5e3 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_HNB-GWResponse.h @@ -0,0 +1,59 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_HNB_GWResponse_H_ +#define _HNBAP_HNB_GWResponse_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_HNBConfigInfo.h> +#include <osmocom/hnbap/HNBAP_RNC-ID.h> +#include <osmocom/hnbap/HNBAP_UnknownU-RNTIIndication.h> +#include <constr_CHOICE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_HNB_GWResponse_PR { + HNBAP_HNB_GWResponse_PR_NOTHING, /* No components present */ + HNBAP_HNB_GWResponse_PR_hNB, + HNBAP_HNB_GWResponse_PR_macroRNC, + HNBAP_HNB_GWResponse_PR_unknownU_RNTIIndication, + /* Extensions may appear below */ + +} HNBAP_HNB_GWResponse_PR; + +/* HNBAP_HNB-GWResponse */ +typedef struct HNBAP_HNB_GWResponse { + HNBAP_HNB_GWResponse_PR present; + union HNBAP_HNB_GWResponse_u { + HNBAP_HNBConfigInfo_t hNB; + HNBAP_RNC_ID_t macroRNC; + HNBAP_UnknownU_RNTIIndication_t unknownU_RNTIIndication; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_HNB_GWResponse_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_HNB_GWResponse; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_HNB_GWResponse_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_HNB-Identity-Info.h b/include/osmocom/hnbap/HNBAP_HNB-Identity-Info.h new file mode 100644 index 0000000..bb85a86 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_HNB-Identity-Info.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_HNB_Identity_Info_H_ +#define _HNBAP_HNB_Identity_Info_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <OCTET_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_HNB-Identity-Info */ +typedef OCTET_STRING_t HNBAP_HNB_Identity_Info_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_HNB_Identity_Info; +asn_struct_free_f HNBAP_HNB_Identity_Info_free; +asn_struct_print_f HNBAP_HNB_Identity_Info_print; +asn_constr_check_f HNBAP_HNB_Identity_Info_constraint; +ber_type_decoder_f HNBAP_HNB_Identity_Info_decode_ber; +der_type_encoder_f HNBAP_HNB_Identity_Info_encode_der; +xer_type_decoder_f HNBAP_HNB_Identity_Info_decode_xer; +xer_type_encoder_f HNBAP_HNB_Identity_Info_encode_xer; +per_type_decoder_f HNBAP_HNB_Identity_Info_decode_uper; +per_type_encoder_f HNBAP_HNB_Identity_Info_encode_uper; +per_type_decoder_f HNBAP_HNB_Identity_Info_decode_aper; +per_type_encoder_f HNBAP_HNB_Identity_Info_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_HNB_Identity_Info_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNB-Identity.h b/include/osmocom/hnbap/HNBAP_HNB-Identity.h index 9fc83d5..d6038cc 100644 --- a/include/osmocom/hnbap/HNB-Identity.h +++ b/include/osmocom/hnbap/HNBAP_HNB-Identity.h @@ -2,30 +2,28 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _HNB_Identity_H_ -#define _HNB_Identity_H_ +#ifndef _HNBAP_HNB_Identity_H_ +#define _HNBAP_HNB_Identity_H_ #include <asn_application.h> /* Including external dependencies */ -#include <osmocom/hnbap/HNB-Identity-Info.h> +#include <osmocom/hnbap/HNBAP_HNB-Identity-Info.h> +#include <osmocom/hnbap/HNBAP_IE-Extensions.h> #include <constr_SEQUENCE.h> #ifdef __cplusplus extern "C" { #endif -/* Forward declarations */ -struct IE_Extensions; - -/* HNB-Identity */ -typedef struct HNB_Identity { - HNB_Identity_Info_t hNB_Identity_Info; - struct IE_Extensions *iE_Extensions /* OPTIONAL */; +/* HNBAP_HNB-Identity */ +typedef struct HNBAP_HNB_Identity { + HNBAP_HNB_Identity_Info_t hNB_Identity_Info; + HNBAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; /* * This type is extensible, * possible extensions are below. @@ -33,17 +31,14 @@ typedef struct HNB_Identity { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} HNB_Identity_t; +} HNBAP_HNB_Identity_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_HNB_Identity; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_HNB_Identity; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE-Extensions.h> - -#endif /* _HNB_Identity_H_ */ +#endif /* _HNBAP_HNB_Identity_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_HNB-Location-Information.h b/include/osmocom/hnbap/HNBAP_HNB-Location-Information.h new file mode 100644 index 0000000..c944e42 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_HNB-Location-Information.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_HNB_Location_Information_H_ +#define _HNBAP_HNB_Location_Information_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_MacroCoverageInformation.h> +#include <osmocom/hnbap/HNBAP_GeographicalLocation.h> +#include <osmocom/hnbap/HNBAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_HNB-Location-Information */ +typedef struct HNBAP_HNB_Location_Information { + HNBAP_MacroCoverageInformation_t *macroCoverageInfo /* OPTIONAL */; + HNBAP_GeographicalLocation_t *geographicalCoordinates /* OPTIONAL */; + HNBAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_HNB_Location_Information_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_HNB_Location_Information; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_HNB_Location_Information_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_HNB-RNL-Identity.h b/include/osmocom/hnbap/HNBAP_HNB-RNL-Identity.h new file mode 100644 index 0000000..591b12d --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_HNB-RNL-Identity.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_HNB_RNL_Identity_H_ +#define _HNBAP_HNB_RNL_Identity_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_HNB-Cell-Identifier.h> +#include <constr_CHOICE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_HNB_RNL_Identity_PR { + HNBAP_HNB_RNL_Identity_PR_NOTHING, /* No components present */ + HNBAP_HNB_RNL_Identity_PR_hNB_Identity_as_Cell_Identifier, + /* Extensions may appear below */ + +} HNBAP_HNB_RNL_Identity_PR; + +/* HNBAP_HNB-RNL-Identity */ +typedef struct HNBAP_HNB_RNL_Identity { + HNBAP_HNB_RNL_Identity_PR present; + union HNBAP_HNB_RNL_Identity_u { + HNBAP_HNB_Cell_Identifier_t hNB_Identity_as_Cell_Identifier; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_HNB_RNL_Identity_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_HNB_RNL_Identity; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_HNB_RNL_Identity_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_HNBAP-PDU.h b/include/osmocom/hnbap/HNBAP_HNBAP-PDU.h new file mode 100644 index 0000000..cbfd50f --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_HNBAP-PDU.h @@ -0,0 +1,59 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-PDU" + * found in "../../asn1/hnbap/HNBAP-PDU.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_HNBAP_PDU_H_ +#define _HNBAP_HNBAP_PDU_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_InitiatingMessage.h> +#include <osmocom/hnbap/HNBAP_SuccessfulOutcome.h> +#include <osmocom/hnbap/HNBAP_UnsuccessfulOutcome.h> +#include <constr_CHOICE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_HNBAP_PDU_PR { + HNBAP_HNBAP_PDU_PR_NOTHING, /* No components present */ + HNBAP_HNBAP_PDU_PR_initiatingMessage, + HNBAP_HNBAP_PDU_PR_successfulOutcome, + HNBAP_HNBAP_PDU_PR_unsuccessfulOutcome, + /* Extensions may appear below */ + +} HNBAP_HNBAP_PDU_PR; + +/* HNBAP_HNBAP-PDU */ +typedef struct HNBAP_HNBAP_PDU { + HNBAP_HNBAP_PDU_PR present; + union HNBAP_HNBAP_PDU_u { + HNBAP_InitiatingMessage_t initiatingMessage; + HNBAP_SuccessfulOutcome_t successfulOutcome; + HNBAP_UnsuccessfulOutcome_t unsuccessfulOutcome; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_HNBAP_PDU_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBAP_PDU; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_HNBAP_PDU_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_HNBCapacity.h b/include/osmocom/hnbap/HNBAP_HNBCapacity.h new file mode 100644 index 0000000..b2e70b1 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_HNBCapacity.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_HNBCapacity_H_ +#define _HNBAP_HNBCapacity_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeInteger.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_HNBCapacity */ +typedef long HNBAP_HNBCapacity_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBCapacity; +asn_struct_free_f HNBAP_HNBCapacity_free; +asn_struct_print_f HNBAP_HNBCapacity_print; +asn_constr_check_f HNBAP_HNBCapacity_constraint; +ber_type_decoder_f HNBAP_HNBCapacity_decode_ber; +der_type_encoder_f HNBAP_HNBCapacity_encode_der; +xer_type_decoder_f HNBAP_HNBCapacity_decode_xer; +xer_type_encoder_f HNBAP_HNBCapacity_encode_xer; +per_type_decoder_f HNBAP_HNBCapacity_decode_uper; +per_type_encoder_f HNBAP_HNBCapacity_encode_uper; +per_type_decoder_f HNBAP_HNBCapacity_decode_aper; +per_type_encoder_f HNBAP_HNBCapacity_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_HNBCapacity_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_HNBConfigInfo.h b/include/osmocom/hnbap/HNBAP_HNBConfigInfo.h new file mode 100644 index 0000000..606d113 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_HNBConfigInfo.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_HNBConfigInfo_H_ +#define _HNBAP_HNBConfigInfo_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_HNB-RNL-Identity.h> +#include <osmocom/hnbap/HNBAP_ConfigurationInformation.h> +#include <osmocom/hnbap/HNBAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_HNBConfigInfo */ +typedef struct HNBAP_HNBConfigInfo { + HNBAP_HNB_RNL_Identity_t hnb_RNL_Identity; + HNBAP_ConfigurationInformation_t configurationInformation; + HNBAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_HNBConfigInfo_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBConfigInfo; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_HNBConfigInfo_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBConfigTransferRequest.h b/include/osmocom/hnbap/HNBAP_HNBConfigTransferRequest.h index 89229ca..23d5413 100644 --- a/include/osmocom/hnbap/HNBConfigTransferRequest.h +++ b/include/osmocom/hnbap/HNBAP_HNBConfigTransferRequest.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _HNBConfigTransferRequest_H_ -#define _HNBConfigTransferRequest_H_ +#ifndef _HNBAP_HNBConfigTransferRequest_H_ +#define _HNBAP_HNBConfigTransferRequest_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IE.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> #include <constr_SEQUENCE.h> @@ -20,13 +21,10 @@ extern "C" { #endif -/* Forward declarations */ -struct IE; - -/* HNBConfigTransferRequest */ -typedef struct HNBConfigTransferRequest { - struct hnbConfigTransferRequest_ies { - A_SEQUENCE_OF(struct IE) list; +/* HNBAP_HNBConfigTransferRequest */ +typedef struct HNBAP_HNBConfigTransferRequest { + struct HNBAP_HNBConfigTransferRequest__hnbConfigTransferRequest_ies { + A_SEQUENCE_OF(HNBAP_IE_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,17 +36,14 @@ typedef struct HNBConfigTransferRequest { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} HNBConfigTransferRequest_t; +} HNBAP_HNBConfigTransferRequest_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_HNBConfigTransferRequest; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBConfigTransferRequest; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE.h> - -#endif /* _HNBConfigTransferRequest_H_ */ +#endif /* _HNBAP_HNBConfigTransferRequest_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBConfigTransferResponse.h b/include/osmocom/hnbap/HNBAP_HNBConfigTransferResponse.h index edfb327..80dcd1b 100644 --- a/include/osmocom/hnbap/HNBConfigTransferResponse.h +++ b/include/osmocom/hnbap/HNBAP_HNBConfigTransferResponse.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _HNBConfigTransferResponse_H_ -#define _HNBConfigTransferResponse_H_ +#ifndef _HNBAP_HNBConfigTransferResponse_H_ +#define _HNBAP_HNBConfigTransferResponse_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IE.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> #include <constr_SEQUENCE.h> @@ -20,13 +21,10 @@ extern "C" { #endif -/* Forward declarations */ -struct IE; - -/* HNBConfigTransferResponse */ -typedef struct HNBConfigTransferResponse { - struct hnbConfigTransferResponse_ies { - A_SEQUENCE_OF(struct IE) list; +/* HNBAP_HNBConfigTransferResponse */ +typedef struct HNBAP_HNBConfigTransferResponse { + struct HNBAP_HNBConfigTransferResponse__hnbConfigTransferResponse_ies { + A_SEQUENCE_OF(HNBAP_IE_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,17 +36,14 @@ typedef struct HNBConfigTransferResponse { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} HNBConfigTransferResponse_t; +} HNBAP_HNBConfigTransferResponse_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_HNBConfigTransferResponse; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBConfigTransferResponse; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE.h> - -#endif /* _HNBConfigTransferResponse_H_ */ +#endif /* _HNBAP_HNBConfigTransferResponse_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_HNBConfigurationInformationMissing.h b/include/osmocom/hnbap/HNBAP_HNBConfigurationInformationMissing.h new file mode 100644 index 0000000..f1b28ef --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_HNBConfigurationInformationMissing.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_HNBConfigurationInformationMissing_H_ +#define _HNBAP_HNBConfigurationInformationMissing_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_Cause.h> +#include <osmocom/hnbap/HNBAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_HNBConfigurationInformationMissing */ +typedef struct HNBAP_HNBConfigurationInformationMissing { + HNBAP_Cause_t cause; + HNBAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_HNBConfigurationInformationMissing_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBConfigurationInformationMissing; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_HNBConfigurationInformationMissing_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_HNBConfigurationInformationProvided.h b/include/osmocom/hnbap/HNBAP_HNBConfigurationInformationProvided.h new file mode 100644 index 0000000..8c20b74 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_HNBConfigurationInformationProvided.h @@ -0,0 +1,50 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_HNBConfigurationInformationProvided_H_ +#define _HNBAP_HNBConfigurationInformationProvided_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_PSC.h> +#include <osmocom/hnbap/HNBAP_CSG-ID.h> +#include <osmocom/hnbap/HNBAP_HNB-Cell-Access-Mode.h> +#include <osmocom/hnbap/HNBAP_Iurh-Signalling-TNL-AddressList.h> +#include <osmocom/hnbap/HNBAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_HNBConfigurationInformationProvided */ +typedef struct HNBAP_HNBConfigurationInformationProvided { + HNBAP_PSC_t *psc /* OPTIONAL */; + HNBAP_CSG_ID_t *cSG_ID /* OPTIONAL */; + HNBAP_HNB_Cell_Access_Mode_t hNB_Cell_Access_Mode; + HNBAP_Iurh_Signalling_TNL_AddressList_t iurh_Signalling_TNL_AddressList; + HNBAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_HNBConfigurationInformationProvided_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBConfigurationInformationProvided; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_HNBConfigurationInformationProvided_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBDe-Register.h b/include/osmocom/hnbap/HNBAP_HNBDe-Register.h index 5cc8cce..eb69bc5 100644 --- a/include/osmocom/hnbap/HNBDe-Register.h +++ b/include/osmocom/hnbap/HNBAP_HNBDe-Register.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _HNBDe_Register_H_ -#define _HNBDe_Register_H_ +#ifndef _HNBAP_HNBDe_Register_H_ +#define _HNBAP_HNBDe_Register_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IE.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> #include <constr_SEQUENCE.h> @@ -20,13 +21,10 @@ extern "C" { #endif -/* Forward declarations */ -struct IE; - -/* HNBDe-Register */ -typedef struct HNBDe_Register { - struct hnbDe_Register_ies { - A_SEQUENCE_OF(struct IE) list; +/* HNBAP_HNBDe-Register */ +typedef struct HNBAP_HNBDe_Register { + struct HNBAP_HNBDe_Register__hnbDe_Register_ies { + A_SEQUENCE_OF(HNBAP_IE_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,17 +36,14 @@ typedef struct HNBDe_Register { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} HNBDe_Register_t; +} HNBAP_HNBDe_Register_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_HNBDe_Register; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBDe_Register; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE.h> - -#endif /* _HNBDe_Register_H_ */ +#endif /* _HNBAP_HNBDe_Register_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBRegisterAccept.h b/include/osmocom/hnbap/HNBAP_HNBRegisterAccept.h index 0d7719b..ddacd50 100644 --- a/include/osmocom/hnbap/HNBRegisterAccept.h +++ b/include/osmocom/hnbap/HNBAP_HNBRegisterAccept.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _HNBRegisterAccept_H_ -#define _HNBRegisterAccept_H_ +#ifndef _HNBAP_HNBRegisterAccept_H_ +#define _HNBAP_HNBRegisterAccept_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IE.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> #include <constr_SEQUENCE.h> @@ -20,13 +21,10 @@ extern "C" { #endif -/* Forward declarations */ -struct IE; - -/* HNBRegisterAccept */ -typedef struct HNBRegisterAccept { - struct hnbRegisterAccept_ies { - A_SEQUENCE_OF(struct IE) list; +/* HNBAP_HNBRegisterAccept */ +typedef struct HNBAP_HNBRegisterAccept { + struct HNBAP_HNBRegisterAccept__hnbRegisterAccept_ies { + A_SEQUENCE_OF(HNBAP_IE_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,17 +36,14 @@ typedef struct HNBRegisterAccept { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} HNBRegisterAccept_t; +} HNBAP_HNBRegisterAccept_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_HNBRegisterAccept; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBRegisterAccept; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE.h> - -#endif /* _HNBRegisterAccept_H_ */ +#endif /* _HNBAP_HNBRegisterAccept_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBRegisterReject.h b/include/osmocom/hnbap/HNBAP_HNBRegisterReject.h index e39e01d..38bea56 100644 --- a/include/osmocom/hnbap/HNBRegisterReject.h +++ b/include/osmocom/hnbap/HNBAP_HNBRegisterReject.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _HNBRegisterReject_H_ -#define _HNBRegisterReject_H_ +#ifndef _HNBAP_HNBRegisterReject_H_ +#define _HNBAP_HNBRegisterReject_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IE.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> #include <constr_SEQUENCE.h> @@ -20,13 +21,10 @@ extern "C" { #endif -/* Forward declarations */ -struct IE; - -/* HNBRegisterReject */ -typedef struct HNBRegisterReject { - struct hnbRegisterReject_ies { - A_SEQUENCE_OF(struct IE) list; +/* HNBAP_HNBRegisterReject */ +typedef struct HNBAP_HNBRegisterReject { + struct HNBAP_HNBRegisterReject__hnbRegisterReject_ies { + A_SEQUENCE_OF(HNBAP_IE_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,17 +36,14 @@ typedef struct HNBRegisterReject { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} HNBRegisterReject_t; +} HNBAP_HNBRegisterReject_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_HNBRegisterReject; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBRegisterReject; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE.h> - -#endif /* _HNBRegisterReject_H_ */ +#endif /* _HNBAP_HNBRegisterReject_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBRegisterRequest.h b/include/osmocom/hnbap/HNBAP_HNBRegisterRequest.h index 181ef3c..724afb1 100644 --- a/include/osmocom/hnbap/HNBRegisterRequest.h +++ b/include/osmocom/hnbap/HNBAP_HNBRegisterRequest.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _HNBRegisterRequest_H_ -#define _HNBRegisterRequest_H_ +#ifndef _HNBAP_HNBRegisterRequest_H_ +#define _HNBAP_HNBRegisterRequest_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IE.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> #include <constr_SEQUENCE.h> @@ -20,13 +21,10 @@ extern "C" { #endif -/* Forward declarations */ -struct IE; - -/* HNBRegisterRequest */ -typedef struct HNBRegisterRequest { - struct hnbRegisterRequest_ies { - A_SEQUENCE_OF(struct IE) list; +/* HNBAP_HNBRegisterRequest */ +typedef struct HNBAP_HNBRegisterRequest { + struct HNBAP_HNBRegisterRequest__hnbRegisterRequest_ies { + A_SEQUENCE_OF(HNBAP_IE_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,17 +36,14 @@ typedef struct HNBRegisterRequest { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} HNBRegisterRequest_t; +} HNBAP_HNBRegisterRequest_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_HNBRegisterRequest; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBRegisterRequest; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE.h> - -#endif /* _HNBRegisterRequest_H_ */ +#endif /* _HNBAP_HNBRegisterRequest_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/RABList.h b/include/osmocom/hnbap/HNBAP_IE-Extensions.h index 9dff419..0578aca 100644 --- a/include/osmocom/hnbap/RABList.h +++ b/include/osmocom/hnbap/HNBAP_IE-Extensions.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _RABList_H_ -#define _RABList_H_ +#ifndef _HNBAP_IE_Extensions_H_ +#define _HNBAP_IE_Extensions_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IE.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> @@ -19,26 +20,20 @@ extern "C" { #endif -/* Forward declarations */ -struct RABListItem; - -/* RABList */ -typedef struct RABList { - A_SEQUENCE_OF(struct RABListItem) list; +/* HNBAP_IE-Extensions */ +typedef struct HNBAP_IE_Extensions { + A_SEQUENCE_OF(HNBAP_IE_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} RABList_t; +} HNBAP_IE_Extensions_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_RABList; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_IE_Extensions; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/RABListItem.h> - -#endif /* _RABList_H_ */ +#endif /* _HNBAP_IE_Extensions_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/IE.h b/include/osmocom/hnbap/HNBAP_IE.h index 291932a..7abd85b 100644 --- a/include/osmocom/hnbap/IE.h +++ b/include/osmocom/hnbap/HNBAP_IE.h @@ -2,18 +2,18 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _IE_H_ -#define _IE_H_ +#ifndef _HNBAP_IE_H_ +#define _HNBAP_IE_H_ #include <asn_application.h> /* Including external dependencies */ -#include <osmocom/hnbap/ProtocolIE-ID.h> -#include <osmocom/hnbap/Criticality.h> +#include <osmocom/hnbap/HNBAP_ProtocolIE-ID.h> +#include <osmocom/hnbap/HNBAP_Criticality.h> #include <ANY.h> #include <constr_SEQUENCE.h> @@ -21,22 +21,22 @@ extern "C" { #endif -/* IE */ -typedef struct IE { - ProtocolIE_ID_t id; - Criticality_t criticality; +/* HNBAP_IE */ +typedef struct HNBAP_IE { + HNBAP_ProtocolIE_ID_t id; + HNBAP_Criticality_t criticality; ANY_t value; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} IE_t; +} HNBAP_IE_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_IE; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_IE; #ifdef __cplusplus } #endif -#endif /* _IE_H_ */ +#endif /* _HNBAP_IE_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_IMEI.h b/include/osmocom/hnbap/HNBAP_IMEI.h new file mode 100644 index 0000000..b507526 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_IMEI.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_IMEI_H_ +#define _HNBAP_IMEI_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <BIT_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_IMEI */ +typedef BIT_STRING_t HNBAP_IMEI_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_IMEI; +asn_struct_free_f HNBAP_IMEI_free; +asn_struct_print_f HNBAP_IMEI_print; +asn_constr_check_f HNBAP_IMEI_constraint; +ber_type_decoder_f HNBAP_IMEI_decode_ber; +der_type_encoder_f HNBAP_IMEI_encode_der; +xer_type_decoder_f HNBAP_IMEI_decode_xer; +xer_type_encoder_f HNBAP_IMEI_encode_xer; +per_type_decoder_f HNBAP_IMEI_decode_uper; +per_type_encoder_f HNBAP_IMEI_encode_uper; +per_type_decoder_f HNBAP_IMEI_decode_aper; +per_type_encoder_f HNBAP_IMEI_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_IMEI_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_IMSI.h b/include/osmocom/hnbap/HNBAP_IMSI.h new file mode 100644 index 0000000..ae439fb --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_IMSI.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_IMSI_H_ +#define _HNBAP_IMSI_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <OCTET_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_IMSI */ +typedef OCTET_STRING_t HNBAP_IMSI_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_IMSI; +asn_struct_free_f HNBAP_IMSI_free; +asn_struct_print_f HNBAP_IMSI_print; +asn_constr_check_f HNBAP_IMSI_constraint; +ber_type_decoder_f HNBAP_IMSI_decode_ber; +der_type_encoder_f HNBAP_IMSI_encode_der; +xer_type_decoder_f HNBAP_IMSI_decode_xer; +xer_type_encoder_f HNBAP_IMSI_encode_xer; +per_type_decoder_f HNBAP_IMSI_decode_uper; +per_type_encoder_f HNBAP_IMSI_encode_uper; +per_type_decoder_f HNBAP_IMSI_decode_aper; +per_type_encoder_f HNBAP_IMSI_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_IMSI_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_IMSIDS41.h b/include/osmocom/hnbap/HNBAP_IMSIDS41.h new file mode 100644 index 0000000..08fcf7a --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_IMSIDS41.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_IMSIDS41_H_ +#define _HNBAP_IMSIDS41_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <OCTET_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_IMSIDS41 */ +typedef OCTET_STRING_t HNBAP_IMSIDS41_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_IMSIDS41; +asn_struct_free_f HNBAP_IMSIDS41_free; +asn_struct_print_f HNBAP_IMSIDS41_print; +asn_constr_check_f HNBAP_IMSIDS41_constraint; +ber_type_decoder_f HNBAP_IMSIDS41_decode_ber; +der_type_encoder_f HNBAP_IMSIDS41_encode_der; +xer_type_decoder_f HNBAP_IMSIDS41_decode_xer; +xer_type_encoder_f HNBAP_IMSIDS41_encode_xer; +per_type_decoder_f HNBAP_IMSIDS41_decode_uper; +per_type_encoder_f HNBAP_IMSIDS41_encode_uper; +per_type_decoder_f HNBAP_IMSIDS41_decode_aper; +per_type_encoder_f HNBAP_IMSIDS41_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_IMSIDS41_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/IMSIESN.h b/include/osmocom/hnbap/HNBAP_IMSIESN.h index e68989a..48edbee 100644 --- a/include/osmocom/hnbap/IMSIESN.h +++ b/include/osmocom/hnbap/HNBAP_IMSIESN.h @@ -2,39 +2,39 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _IMSIESN_H_ -#define _IMSIESN_H_ +#ifndef _HNBAP_IMSIESN_H_ +#define _HNBAP_IMSIESN_H_ #include <asn_application.h> /* Including external dependencies */ -#include <osmocom/hnbap/IMSIDS41.h> -#include <osmocom/hnbap/ESN.h> +#include <osmocom/hnbap/HNBAP_IMSIDS41.h> +#include <osmocom/hnbap/HNBAP_ESN.h> #include <constr_SEQUENCE.h> #ifdef __cplusplus extern "C" { #endif -/* IMSIESN */ -typedef struct IMSIESN { - IMSIDS41_t iMSIDS41; - ESN_t eSN; +/* HNBAP_IMSIESN */ +typedef struct HNBAP_IMSIESN { + HNBAP_IMSIDS41_t iMSIDS41; + HNBAP_ESN_t eSN; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} IMSIESN_t; +} HNBAP_IMSIESN_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_IMSIESN; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_IMSIESN; #ifdef __cplusplus } #endif -#endif /* _IMSIESN_H_ */ +#endif /* _HNBAP_IMSIESN_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_IP-Address.h b/include/osmocom/hnbap/HNBAP_IP-Address.h new file mode 100644 index 0000000..6639f4c --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_IP-Address.h @@ -0,0 +1,68 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_IP_Address_H_ +#define _HNBAP_IP_Address_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IE-Extensions.h> +#include <osmocom/hnbap/HNBAP_Ipv4Address.h> +#include <osmocom/hnbap/HNBAP_Ipv6Address.h> +#include <constr_CHOICE.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_IP_Address__ipaddress_PR { + HNBAP_IP_Address__ipaddress_PR_NOTHING, /* No components present */ + HNBAP_IP_Address__ipaddress_PR_ipv4info, + HNBAP_IP_Address__ipaddress_PR_ipv6info, + /* Extensions may appear below */ + +} HNBAP_IP_Address__ipaddress_PR; + +/* HNBAP_IP-Address */ +typedef struct HNBAP_IP_Address { + struct HNBAP_IP_Address__ipaddress { + HNBAP_IP_Address__ipaddress_PR present; + union HNBAP_IP_Address__ipaddress_u { + HNBAP_Ipv4Address_t ipv4info; + HNBAP_Ipv6Address_t ipv6info; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } ipaddress; + HNBAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_IP_Address_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_IP_Address; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_IP_Address_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/SuccessfulOutcome.h b/include/osmocom/hnbap/HNBAP_InitiatingMessage.h index fc53d89..4264666 100644 --- a/include/osmocom/hnbap/SuccessfulOutcome.h +++ b/include/osmocom/hnbap/HNBAP_InitiatingMessage.h @@ -2,18 +2,18 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _SuccessfulOutcome_H_ -#define _SuccessfulOutcome_H_ +#ifndef _HNBAP_InitiatingMessage_H_ +#define _HNBAP_InitiatingMessage_H_ #include <asn_application.h> /* Including external dependencies */ -#include <osmocom/hnbap/ProcedureCode.h> -#include <osmocom/hnbap/Criticality.h> +#include <osmocom/hnbap/HNBAP_ProcedureCode.h> +#include <osmocom/hnbap/HNBAP_Criticality.h> #include <ANY.h> #include <constr_SEQUENCE.h> @@ -21,22 +21,22 @@ extern "C" { #endif -/* SuccessfulOutcome */ -typedef struct SuccessfulOutcome { - ProcedureCode_t procedureCode; - Criticality_t criticality; +/* HNBAP_InitiatingMessage */ +typedef struct HNBAP_InitiatingMessage { + HNBAP_ProcedureCode_t procedureCode; + HNBAP_Criticality_t criticality; ANY_t value; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} SuccessfulOutcome_t; +} HNBAP_InitiatingMessage_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_SuccessfulOutcome; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_InitiatingMessage; #ifdef __cplusplus } #endif -#endif /* _SuccessfulOutcome_H_ */ +#endif /* _HNBAP_InitiatingMessage_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_Ipv4Address.h b/include/osmocom/hnbap/HNBAP_Ipv4Address.h new file mode 100644 index 0000000..9fa5f44 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_Ipv4Address.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_Ipv4Address_H_ +#define _HNBAP_Ipv4Address_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <OCTET_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_Ipv4Address */ +typedef OCTET_STRING_t HNBAP_Ipv4Address_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_Ipv4Address; +asn_struct_free_f HNBAP_Ipv4Address_free; +asn_struct_print_f HNBAP_Ipv4Address_print; +asn_constr_check_f HNBAP_Ipv4Address_constraint; +ber_type_decoder_f HNBAP_Ipv4Address_decode_ber; +der_type_encoder_f HNBAP_Ipv4Address_encode_der; +xer_type_decoder_f HNBAP_Ipv4Address_decode_xer; +xer_type_encoder_f HNBAP_Ipv4Address_encode_xer; +per_type_decoder_f HNBAP_Ipv4Address_decode_uper; +per_type_encoder_f HNBAP_Ipv4Address_encode_uper; +per_type_decoder_f HNBAP_Ipv4Address_decode_aper; +per_type_encoder_f HNBAP_Ipv4Address_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_Ipv4Address_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_Ipv6Address.h b/include/osmocom/hnbap/HNBAP_Ipv6Address.h new file mode 100644 index 0000000..e7e32c4 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_Ipv6Address.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_Ipv6Address_H_ +#define _HNBAP_Ipv6Address_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <OCTET_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_Ipv6Address */ +typedef OCTET_STRING_t HNBAP_Ipv6Address_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_Ipv6Address; +asn_struct_free_f HNBAP_Ipv6Address_free; +asn_struct_print_f HNBAP_Ipv6Address_print; +asn_constr_check_f HNBAP_Ipv6Address_constraint; +ber_type_decoder_f HNBAP_Ipv6Address_decode_ber; +der_type_encoder_f HNBAP_Ipv6Address_encode_der; +xer_type_decoder_f HNBAP_Ipv6Address_decode_xer; +xer_type_encoder_f HNBAP_Ipv6Address_encode_xer; +per_type_decoder_f HNBAP_Ipv6Address_decode_uper; +per_type_encoder_f HNBAP_Ipv6Address_encode_uper; +per_type_decoder_f HNBAP_Ipv6Address_decode_aper; +per_type_encoder_f HNBAP_Ipv6Address_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_Ipv6Address_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_Iurh-Signalling-TNL-AddressList.h b/include/osmocom/hnbap/HNBAP_Iurh-Signalling-TNL-AddressList.h new file mode 100644 index 0000000..4f96bfa --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_Iurh-Signalling-TNL-AddressList.h @@ -0,0 +1,39 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_Iurh_Signalling_TNL_AddressList_H_ +#define _HNBAP_Iurh_Signalling_TNL_AddressList_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IP-Address.h> +#include <asn_SEQUENCE_OF.h> +#include <constr_SEQUENCE_OF.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_Iurh-Signalling-TNL-AddressList */ +typedef struct HNBAP_Iurh_Signalling_TNL_AddressList { + A_SEQUENCE_OF(HNBAP_IP_Address_t) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_Iurh_Signalling_TNL_AddressList_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_Iurh_Signalling_TNL_AddressList; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_Iurh_Signalling_TNL_AddressList_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_LAC.h b/include/osmocom/hnbap/HNBAP_LAC.h new file mode 100644 index 0000000..13eecd7 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_LAC.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_LAC_H_ +#define _HNBAP_LAC_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <OCTET_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_LAC */ +typedef OCTET_STRING_t HNBAP_LAC_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_LAC; +asn_struct_free_f HNBAP_LAC_free; +asn_struct_print_f HNBAP_LAC_print; +asn_constr_check_f HNBAP_LAC_constraint; +ber_type_decoder_f HNBAP_LAC_decode_ber; +der_type_encoder_f HNBAP_LAC_encode_der; +xer_type_decoder_f HNBAP_LAC_decode_xer; +xer_type_encoder_f HNBAP_LAC_encode_xer; +per_type_decoder_f HNBAP_LAC_decode_uper; +per_type_encoder_f HNBAP_LAC_encode_uper; +per_type_decoder_f HNBAP_LAC_decode_aper; +per_type_encoder_f HNBAP_LAC_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_LAC_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/PTMSIRAI.h b/include/osmocom/hnbap/HNBAP_LAI.h index 3564393..e22d54e 100644 --- a/include/osmocom/hnbap/PTMSIRAI.h +++ b/include/osmocom/hnbap/HNBAP_LAI.h @@ -2,28 +2,28 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _PTMSIRAI_H_ -#define _PTMSIRAI_H_ +#ifndef _HNBAP_LAI_H_ +#define _HNBAP_LAI_H_ #include <asn_application.h> /* Including external dependencies */ -#include <osmocom/hnbap/PTMSI.h> -#include <osmocom/hnbap/RAI.h> +#include <osmocom/hnbap/HNBAP_PLMNidentity.h> +#include <osmocom/hnbap/HNBAP_LAC.h> #include <constr_SEQUENCE.h> #ifdef __cplusplus extern "C" { #endif -/* PTMSIRAI */ -typedef struct PTMSIRAI { - PTMSI_t pTMSI; - RAI_t rAI; +/* HNBAP_LAI */ +typedef struct HNBAP_LAI { + HNBAP_PLMNidentity_t pLMNID; + HNBAP_LAC_t lAC; /* * This type is extensible, * possible extensions are below. @@ -31,14 +31,14 @@ typedef struct PTMSIRAI { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} PTMSIRAI_t; +} HNBAP_LAI_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_PTMSIRAI; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_LAI; #ifdef __cplusplus } #endif -#endif /* _PTMSIRAI_H_ */ +#endif /* _HNBAP_LAI_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_MacroCellID.h b/include/osmocom/hnbap/HNBAP_MacroCellID.h new file mode 100644 index 0000000..b291c9e --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_MacroCellID.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_MacroCellID_H_ +#define _HNBAP_MacroCellID_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_UTRANCellID.h> +#include <osmocom/hnbap/HNBAP_CGI.h> +#include <constr_CHOICE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_MacroCellID_PR { + HNBAP_MacroCellID_PR_NOTHING, /* No components present */ + HNBAP_MacroCellID_PR_uTRANCellID, + HNBAP_MacroCellID_PR_gERANCellID, + /* Extensions may appear below */ + +} HNBAP_MacroCellID_PR; + +/* HNBAP_MacroCellID */ +typedef struct HNBAP_MacroCellID { + HNBAP_MacroCellID_PR present; + union HNBAP_MacroCellID_u { + HNBAP_UTRANCellID_t uTRANCellID; + HNBAP_CGI_t gERANCellID; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_MacroCellID_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_MacroCellID; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_MacroCellID_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_MacroCoverageInformation.h b/include/osmocom/hnbap/HNBAP_MacroCoverageInformation.h new file mode 100644 index 0000000..5f223ab --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_MacroCoverageInformation.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_MacroCoverageInformation_H_ +#define _HNBAP_MacroCoverageInformation_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_MacroCellID.h> +#include <osmocom/hnbap/HNBAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_MacroCoverageInformation */ +typedef struct HNBAP_MacroCoverageInformation { + HNBAP_MacroCellID_t cellIdentity; + HNBAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_MacroCoverageInformation_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_MacroCoverageInformation; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_MacroCoverageInformation_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_MuxPortNumber.h b/include/osmocom/hnbap/HNBAP_MuxPortNumber.h new file mode 100644 index 0000000..d703a87 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_MuxPortNumber.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_MuxPortNumber_H_ +#define _HNBAP_MuxPortNumber_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeInteger.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_MuxPortNumber */ +typedef long HNBAP_MuxPortNumber_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_MuxPortNumber; +asn_struct_free_f HNBAP_MuxPortNumber_free; +asn_struct_print_f HNBAP_MuxPortNumber_print; +asn_constr_check_f HNBAP_MuxPortNumber_constraint; +ber_type_decoder_f HNBAP_MuxPortNumber_decode_ber; +der_type_encoder_f HNBAP_MuxPortNumber_encode_der; +xer_type_decoder_f HNBAP_MuxPortNumber_decode_xer; +xer_type_encoder_f HNBAP_MuxPortNumber_encode_xer; +per_type_decoder_f HNBAP_MuxPortNumber_decode_uper; +per_type_encoder_f HNBAP_MuxPortNumber_encode_uper; +per_type_decoder_f HNBAP_MuxPortNumber_decode_aper; +per_type_encoder_f HNBAP_MuxPortNumber_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_MuxPortNumber_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_NeighbourCellIdentityList.h b/include/osmocom/hnbap/HNBAP_NeighbourCellIdentityList.h new file mode 100644 index 0000000..1c60b03 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_NeighbourCellIdentityList.h @@ -0,0 +1,39 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_NeighbourCellIdentityList_H_ +#define _HNBAP_NeighbourCellIdentityList_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_NeighbourIdentity.h> +#include <asn_SEQUENCE_OF.h> +#include <constr_SEQUENCE_OF.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_NeighbourCellIdentityList */ +typedef struct HNBAP_NeighbourCellIdentityList { + A_SEQUENCE_OF(HNBAP_NeighbourIdentity_t) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_NeighbourCellIdentityList_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_NeighbourCellIdentityList; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_NeighbourCellIdentityList_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_NeighbourIdentity.h b/include/osmocom/hnbap/HNBAP_NeighbourIdentity.h new file mode 100644 index 0000000..7047e9f --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_NeighbourIdentity.h @@ -0,0 +1,56 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_NeighbourIdentity_H_ +#define _HNBAP_NeighbourIdentity_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_HNB-RNL-Identity.h> +#include <osmocom/hnbap/HNBAP_CellIdentity.h> +#include <constr_CHOICE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_NeighbourIdentity_PR { + HNBAP_NeighbourIdentity_PR_NOTHING, /* No components present */ + HNBAP_NeighbourIdentity_PR_hNB_RNL_Identity, + HNBAP_NeighbourIdentity_PR_cell_ID, + /* Extensions may appear below */ + +} HNBAP_NeighbourIdentity_PR; + +/* HNBAP_NeighbourIdentity */ +typedef struct HNBAP_NeighbourIdentity { + HNBAP_NeighbourIdentity_PR present; + union HNBAP_NeighbourIdentity_u { + HNBAP_HNB_RNL_Identity_t hNB_RNL_Identity; + HNBAP_CellIdentity_t cell_ID; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_NeighbourIdentity_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_NeighbourIdentity; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_NeighbourIdentity_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/NeighbourInfoList.h b/include/osmocom/hnbap/HNBAP_NeighbourInfoList.h index 0581af4..9f86d1d 100644 --- a/include/osmocom/hnbap/NeighbourInfoList.h +++ b/include/osmocom/hnbap/HNBAP_NeighbourInfoList.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _NeighbourInfoList_H_ -#define _NeighbourInfoList_H_ +#ifndef _HNBAP_NeighbourInfoList_H_ +#define _HNBAP_NeighbourInfoList_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_HNBConfigInfo.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> @@ -19,26 +20,20 @@ extern "C" { #endif -/* Forward declarations */ -struct HNBConfigInfo; - -/* NeighbourInfoList */ -typedef struct NeighbourInfoList { - A_SEQUENCE_OF(struct HNBConfigInfo) list; +/* HNBAP_NeighbourInfoList */ +typedef struct HNBAP_NeighbourInfoList { + A_SEQUENCE_OF(HNBAP_HNBConfigInfo_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} NeighbourInfoList_t; +} HNBAP_NeighbourInfoList_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NeighbourInfoList; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_NeighbourInfoList; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/HNBConfigInfo.h> - -#endif /* _NeighbourInfoList_H_ */ +#endif /* _HNBAP_NeighbourInfoList_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_NeighbourInfoRequestItem.h b/include/osmocom/hnbap/HNBAP_NeighbourInfoRequestItem.h new file mode 100644 index 0000000..263b781 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_NeighbourInfoRequestItem.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_NeighbourInfoRequestItem_H_ +#define _HNBAP_NeighbourInfoRequestItem_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_HNB-RNL-Identity.h> +#include <osmocom/hnbap/HNBAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_NeighbourInfoRequestItem */ +typedef struct HNBAP_NeighbourInfoRequestItem { + HNBAP_HNB_RNL_Identity_t hnb_RNL_Identity; + HNBAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_NeighbourInfoRequestItem_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_NeighbourInfoRequestItem; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_NeighbourInfoRequestItem_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_NeighbourInfoRequestList.h b/include/osmocom/hnbap/HNBAP_NeighbourInfoRequestList.h new file mode 100644 index 0000000..274a1cf --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_NeighbourInfoRequestList.h @@ -0,0 +1,39 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_NeighbourInfoRequestList_H_ +#define _HNBAP_NeighbourInfoRequestList_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_NeighbourInfoRequestItem.h> +#include <asn_SEQUENCE_OF.h> +#include <constr_SEQUENCE_OF.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_NeighbourInfoRequestList */ +typedef struct HNBAP_NeighbourInfoRequestList { + A_SEQUENCE_OF(HNBAP_NeighbourInfoRequestItem_t) list; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_NeighbourInfoRequestList_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_NeighbourInfoRequestList; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_NeighbourInfoRequestList_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_PLMNidentity.h b/include/osmocom/hnbap/HNBAP_PLMNidentity.h new file mode 100644 index 0000000..de48ddd --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_PLMNidentity.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_PLMNidentity_H_ +#define _HNBAP_PLMNidentity_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <OCTET_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_PLMNidentity */ +typedef OCTET_STRING_t HNBAP_PLMNidentity_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_PLMNidentity; +asn_struct_free_f HNBAP_PLMNidentity_free; +asn_struct_print_f HNBAP_PLMNidentity_print; +asn_constr_check_f HNBAP_PLMNidentity_constraint; +ber_type_decoder_f HNBAP_PLMNidentity_decode_ber; +der_type_encoder_f HNBAP_PLMNidentity_encode_der; +xer_type_decoder_f HNBAP_PLMNidentity_decode_xer; +xer_type_encoder_f HNBAP_PLMNidentity_encode_xer; +per_type_decoder_f HNBAP_PLMNidentity_decode_uper; +per_type_encoder_f HNBAP_PLMNidentity_encode_uper; +per_type_decoder_f HNBAP_PLMNidentity_decode_aper; +per_type_encoder_f HNBAP_PLMNidentity_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_PLMNidentity_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_PSC.h b/include/osmocom/hnbap/HNBAP_PSC.h new file mode 100644 index 0000000..d2bcff7 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_PSC.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_PSC_H_ +#define _HNBAP_PSC_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <BIT_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_PSC */ +typedef BIT_STRING_t HNBAP_PSC_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_PSC; +asn_struct_free_f HNBAP_PSC_free; +asn_struct_print_f HNBAP_PSC_print; +asn_constr_check_f HNBAP_PSC_constraint; +ber_type_decoder_f HNBAP_PSC_decode_ber; +der_type_encoder_f HNBAP_PSC_encode_der; +xer_type_decoder_f HNBAP_PSC_decode_xer; +xer_type_encoder_f HNBAP_PSC_encode_xer; +per_type_decoder_f HNBAP_PSC_decode_uper; +per_type_encoder_f HNBAP_PSC_encode_uper; +per_type_decoder_f HNBAP_PSC_decode_aper; +per_type_encoder_f HNBAP_PSC_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_PSC_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_PTMSI.h b/include/osmocom/hnbap/HNBAP_PTMSI.h new file mode 100644 index 0000000..04e4c4f --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_PTMSI.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_PTMSI_H_ +#define _HNBAP_PTMSI_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <BIT_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_PTMSI */ +typedef BIT_STRING_t HNBAP_PTMSI_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_PTMSI; +asn_struct_free_f HNBAP_PTMSI_free; +asn_struct_print_f HNBAP_PTMSI_print; +asn_constr_check_f HNBAP_PTMSI_constraint; +ber_type_decoder_f HNBAP_PTMSI_decode_ber; +der_type_encoder_f HNBAP_PTMSI_encode_der; +xer_type_decoder_f HNBAP_PTMSI_decode_xer; +xer_type_encoder_f HNBAP_PTMSI_encode_xer; +per_type_decoder_f HNBAP_PTMSI_decode_uper; +per_type_encoder_f HNBAP_PTMSI_encode_uper; +per_type_decoder_f HNBAP_PTMSI_decode_aper; +per_type_encoder_f HNBAP_PTMSI_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_PTMSI_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/LAI.h b/include/osmocom/hnbap/HNBAP_PTMSIRAI.h index 7537fe3..5487dde 100644 --- a/include/osmocom/hnbap/LAI.h +++ b/include/osmocom/hnbap/HNBAP_PTMSIRAI.h @@ -2,28 +2,28 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _LAI_H_ -#define _LAI_H_ +#ifndef _HNBAP_PTMSIRAI_H_ +#define _HNBAP_PTMSIRAI_H_ #include <asn_application.h> /* Including external dependencies */ -#include <osmocom/hnbap/PLMNidentity.h> -#include <osmocom/hnbap/LAC.h> +#include <osmocom/hnbap/HNBAP_PTMSI.h> +#include <osmocom/hnbap/HNBAP_RAI.h> #include <constr_SEQUENCE.h> #ifdef __cplusplus extern "C" { #endif -/* LAI */ -typedef struct LAI { - PLMNidentity_t pLMNID; - LAC_t lAC; +/* HNBAP_PTMSIRAI */ +typedef struct HNBAP_PTMSIRAI { + HNBAP_PTMSI_t pTMSI; + HNBAP_RAI_t rAI; /* * This type is extensible, * possible extensions are below. @@ -31,14 +31,14 @@ typedef struct LAI { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} LAI_t; +} HNBAP_PTMSIRAI_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_LAI; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_PTMSIRAI; #ifdef __cplusplus } #endif -#endif /* _LAI_H_ */ +#endif /* _HNBAP_PTMSIRAI_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_Presence.h b/include/osmocom/hnbap/HNBAP_Presence.h new file mode 100644 index 0000000..512674f --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_Presence.h @@ -0,0 +1,50 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-CommonDataTypes" + * found in "../../asn1/hnbap/HNBAP-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_Presence_H_ +#define _HNBAP_Presence_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeEnumerated.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_Presence { + HNBAP_Presence_optional = 0, + HNBAP_Presence_conditional = 1, + HNBAP_Presence_mandatory = 2 +} e_HNBAP_Presence; + +/* HNBAP_Presence */ +typedef long HNBAP_Presence_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_Presence; +asn_struct_free_f HNBAP_Presence_free; +asn_struct_print_f HNBAP_Presence_print; +asn_constr_check_f HNBAP_Presence_constraint; +ber_type_decoder_f HNBAP_Presence_decode_ber; +der_type_encoder_f HNBAP_Presence_encode_der; +xer_type_decoder_f HNBAP_Presence_decode_xer; +xer_type_encoder_f HNBAP_Presence_encode_xer; +per_type_decoder_f HNBAP_Presence_decode_uper; +per_type_encoder_f HNBAP_Presence_encode_uper; +per_type_decoder_f HNBAP_Presence_decode_aper; +per_type_encoder_f HNBAP_Presence_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_Presence_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/PrivateIE-ID.h b/include/osmocom/hnbap/HNBAP_PrivateIE-ID.h index 890974e..24a241f 100644 --- a/include/osmocom/hnbap/PrivateIE-ID.h +++ b/include/osmocom/hnbap/HNBAP_PrivateIE-ID.h @@ -2,11 +2,11 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-CommonDataTypes" * found in "../../asn1/hnbap/HNBAP-CommonDataTypes.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _PrivateIE_ID_H_ -#define _PrivateIE_ID_H_ +#ifndef _HNBAP_PrivateIE_ID_H_ +#define _HNBAP_PrivateIE_ID_H_ #include <asn_application.h> @@ -21,30 +21,30 @@ extern "C" { #endif /* Dependencies */ -typedef enum PrivateIE_ID_PR { - PrivateIE_ID_PR_NOTHING, /* No components present */ - PrivateIE_ID_PR_local, - PrivateIE_ID_PR_global -} PrivateIE_ID_PR; - -/* PrivateIE-ID */ -typedef struct PrivateIE_ID { - PrivateIE_ID_PR present; - union PrivateIE_ID_u { +typedef enum HNBAP_PrivateIE_ID_PR { + HNBAP_PrivateIE_ID_PR_NOTHING, /* No components present */ + HNBAP_PrivateIE_ID_PR_local, + HNBAP_PrivateIE_ID_PR_global +} HNBAP_PrivateIE_ID_PR; + +/* HNBAP_PrivateIE-ID */ +typedef struct HNBAP_PrivateIE_ID { + HNBAP_PrivateIE_ID_PR present; + union HNBAP_PrivateIE_ID_u { long local; OBJECT_IDENTIFIER_t global; } choice; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} PrivateIE_ID_t; +} HNBAP_PrivateIE_ID_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_PrivateIE_ID; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_PrivateIE_ID; #ifdef __cplusplus } #endif -#endif /* _PrivateIE_ID_H_ */ +#endif /* _HNBAP_PrivateIE_ID_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/PrivateMessage.h b/include/osmocom/hnbap/HNBAP_PrivateMessage.h index a9e65bb..4cb81cb 100644 --- a/include/osmocom/hnbap/PrivateMessage.h +++ b/include/osmocom/hnbap/HNBAP_PrivateMessage.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _PrivateMessage_H_ -#define _PrivateMessage_H_ +#ifndef _HNBAP_PrivateMessage_H_ +#define _HNBAP_PrivateMessage_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IE.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> #include <constr_SEQUENCE.h> @@ -20,13 +21,10 @@ extern "C" { #endif -/* Forward declarations */ -struct IE; - -/* PrivateMessage */ -typedef struct PrivateMessage { - struct privateMessage_ies { - A_SEQUENCE_OF(struct IE) list; +/* HNBAP_PrivateMessage */ +typedef struct HNBAP_PrivateMessage { + struct HNBAP_PrivateMessage__privateMessage_ies { + A_SEQUENCE_OF(HNBAP_IE_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,17 +36,14 @@ typedef struct PrivateMessage { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} PrivateMessage_t; +} HNBAP_PrivateMessage_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_PrivateMessage; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_PrivateMessage; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE.h> - -#endif /* _PrivateMessage_H_ */ +#endif /* _HNBAP_PrivateMessage_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_ProcedureCode.h b/include/osmocom/hnbap/HNBAP_ProcedureCode.h new file mode 100644 index 0000000..d55bd08 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_ProcedureCode.h @@ -0,0 +1,58 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-CommonDataTypes" + * found in "../../asn1/hnbap/HNBAP-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_ProcedureCode_H_ +#define _HNBAP_ProcedureCode_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeInteger.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_ProcedureCode { + HNBAP_ProcedureCode_id_HNBRegister = 1, + HNBAP_ProcedureCode_id_HNBDe_Register = 2, + HNBAP_ProcedureCode_id_UERegister = 3, + HNBAP_ProcedureCode_id_UEDe_Register = 4, + HNBAP_ProcedureCode_id_ErrorIndication = 5, + HNBAP_ProcedureCode_id_privateMessage = 6, + HNBAP_ProcedureCode_id_CSGMembershipUpdate = 7, + HNBAP_ProcedureCode_id_TNLUpdate = 9, + HNBAP_ProcedureCode_id_HNBConfigTransfer = 10, + HNBAP_ProcedureCode_id_RelocationComplete = 11, + HNBAP_ProcedureCode_id_U_RNTIQuery = 14 +} e_HNBAP_ProcedureCode; + +/* HNBAP_ProcedureCode */ +typedef long HNBAP_ProcedureCode_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_ProcedureCode; +asn_struct_free_f HNBAP_ProcedureCode_free; +asn_struct_print_f HNBAP_ProcedureCode_print; +asn_constr_check_f HNBAP_ProcedureCode_constraint; +ber_type_decoder_f HNBAP_ProcedureCode_decode_ber; +der_type_encoder_f HNBAP_ProcedureCode_encode_der; +xer_type_decoder_f HNBAP_ProcedureCode_decode_xer; +xer_type_encoder_f HNBAP_ProcedureCode_encode_xer; +per_type_decoder_f HNBAP_ProcedureCode_decode_uper; +per_type_encoder_f HNBAP_ProcedureCode_encode_uper; +per_type_decoder_f HNBAP_ProcedureCode_decode_aper; +per_type_encoder_f HNBAP_ProcedureCode_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_ProcedureCode_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_ProtocolIE-ID.h b/include/osmocom/hnbap/HNBAP_ProtocolIE-ID.h new file mode 100644 index 0000000..4f1e9c4 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_ProtocolIE-ID.h @@ -0,0 +1,89 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-CommonDataTypes" + * found in "../../asn1/hnbap/HNBAP-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_ProtocolIE_ID_H_ +#define _HNBAP_ProtocolIE_ID_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeInteger.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_ProtocolIE_ID { + HNBAP_ProtocolIE_ID_id_Cause = 1, + HNBAP_ProtocolIE_ID_id_CriticalityDiagnostics = 2, + HNBAP_ProtocolIE_ID_id_HNB_Identity = 3, + HNBAP_ProtocolIE_ID_id_Context_ID = 4, + HNBAP_ProtocolIE_ID_id_UE_Identity = 5, + HNBAP_ProtocolIE_ID_id_LAC = 6, + HNBAP_ProtocolIE_ID_id_RAC = 7, + HNBAP_ProtocolIE_ID_id_HNB_Location_Information = 8, + HNBAP_ProtocolIE_ID_id_PLMNidentity = 9, + HNBAP_ProtocolIE_ID_id_SAC = 10, + HNBAP_ProtocolIE_ID_id_CellIdentity = 11, + HNBAP_ProtocolIE_ID_id_Registration_Cause = 12, + HNBAP_ProtocolIE_ID_id_UE_Capabilities = 13, + HNBAP_ProtocolIE_ID_id_RNC_ID = 14, + HNBAP_ProtocolIE_ID_id_CSG_ID = 15, + HNBAP_ProtocolIE_ID_id_BackoffTimer = 16, + HNBAP_ProtocolIE_ID_id_HNB_Internet_Information = 17, + HNBAP_ProtocolIE_ID_id_HNB_Cell_Access_Mode = 18, + HNBAP_ProtocolIE_ID_id_MuxPortNumber = 19, + HNBAP_ProtocolIE_ID_id_Service_Area_For_Broadcast = 20, + HNBAP_ProtocolIE_ID_id_CSGMembershipStatus = 21, + HNBAP_ProtocolIE_ID_id_RABList = 22, + HNBAP_ProtocolIE_ID_id_HNBConfigInfo = 23, + HNBAP_ProtocolIE_ID_id_AccessResult = 25, + HNBAP_ProtocolIE_ID_id_Update_cause = 26, + HNBAP_ProtocolIE_ID_id_NeighbourInfoList = 27, + HNBAP_ProtocolIE_ID_id_NeighbourInfoRequestList = 28, + HNBAP_ProtocolIE_ID_id_Iurh_Signalling_TNL_Address = 29, + HNBAP_ProtocolIE_ID_id_PSC = 30, + HNBAP_ProtocolIE_ID_id_HNB_Cell_Identifier = 31, + HNBAP_ProtocolIE_ID_id_Tunnel_Information = 41, + HNBAP_ProtocolIE_ID_id_CELL_FACHMobilitySupport = 42, + HNBAP_ProtocolIE_ID_id_S_RNTIPrefix = 43, + HNBAP_ProtocolIE_ID_id_URAIdentity = 44, + HNBAP_ProtocolIE_ID_id_NeighbourIdentity = 45, + HNBAP_ProtocolIE_ID_id_HNBCapacity = 46, + HNBAP_ProtocolIE_ID_id_NeighbourCellIdentityList = 47, + HNBAP_ProtocolIE_ID_id_AdditionalNeighbourInfoList = 48, + HNBAP_ProtocolIE_ID_id_U_RNTI = 49, + HNBAP_ProtocolIE_ID_id_UnknownU_RNTIIndication = 50, + HNBAP_ProtocolIE_ID_id_HNB_GWResponse = 51, + HNBAP_ProtocolIE_ID_id_URAIdentityList = 52 +} e_HNBAP_ProtocolIE_ID; + +/* HNBAP_ProtocolIE-ID */ +typedef long HNBAP_ProtocolIE_ID_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_ProtocolIE_ID; +asn_struct_free_f HNBAP_ProtocolIE_ID_free; +asn_struct_print_f HNBAP_ProtocolIE_ID_print; +asn_constr_check_f HNBAP_ProtocolIE_ID_constraint; +ber_type_decoder_f HNBAP_ProtocolIE_ID_decode_ber; +der_type_encoder_f HNBAP_ProtocolIE_ID_encode_der; +xer_type_decoder_f HNBAP_ProtocolIE_ID_decode_xer; +xer_type_encoder_f HNBAP_ProtocolIE_ID_encode_xer; +per_type_decoder_f HNBAP_ProtocolIE_ID_decode_uper; +per_type_encoder_f HNBAP_ProtocolIE_ID_encode_uper; +per_type_decoder_f HNBAP_ProtocolIE_ID_decode_aper; +per_type_encoder_f HNBAP_ProtocolIE_ID_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_ProtocolIE_ID_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_RAB-ID.h b/include/osmocom/hnbap/HNBAP_RAB-ID.h new file mode 100644 index 0000000..8fe284a --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_RAB-ID.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_RAB_ID_H_ +#define _HNBAP_RAB_ID_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <BIT_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_RAB-ID */ +typedef BIT_STRING_t HNBAP_RAB_ID_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_RAB_ID; +asn_struct_free_f HNBAP_RAB_ID_free; +asn_struct_print_f HNBAP_RAB_ID_print; +asn_constr_check_f HNBAP_RAB_ID_constraint; +ber_type_decoder_f HNBAP_RAB_ID_decode_ber; +der_type_encoder_f HNBAP_RAB_ID_encode_der; +xer_type_decoder_f HNBAP_RAB_ID_decode_xer; +xer_type_encoder_f HNBAP_RAB_ID_encode_xer; +per_type_decoder_f HNBAP_RAB_ID_decode_uper; +per_type_encoder_f HNBAP_RAB_ID_encode_uper; +per_type_decoder_f HNBAP_RAB_ID_decode_aper; +per_type_encoder_f HNBAP_RAB_ID_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_RAB_ID_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/URAIdentityList.h b/include/osmocom/hnbap/HNBAP_RABList.h index b4c8a36..ae6c86b 100644 --- a/include/osmocom/hnbap/URAIdentityList.h +++ b/include/osmocom/hnbap/HNBAP_RABList.h @@ -2,17 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _URAIdentityList_H_ -#define _URAIdentityList_H_ +#ifndef _HNBAP_RABList_H_ +#define _HNBAP_RABList_H_ #include <asn_application.h> /* Including external dependencies */ -#include <osmocom/hnbap/URAIdentity.h> +#include <osmocom/hnbap/HNBAP_RABListItem.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> @@ -20,20 +20,20 @@ extern "C" { #endif -/* URAIdentityList */ -typedef struct URAIdentityList { - A_SEQUENCE_OF(URAIdentity_t) list; +/* HNBAP_RABList */ +typedef struct HNBAP_RABList { + A_SEQUENCE_OF(HNBAP_RABListItem_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} URAIdentityList_t; +} HNBAP_RABList_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_URAIdentityList; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_RABList; #ifdef __cplusplus } #endif -#endif /* _URAIdentityList_H_ */ +#endif /* _HNBAP_RABList_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_RABListItem.h b/include/osmocom/hnbap/HNBAP_RABListItem.h new file mode 100644 index 0000000..97bdcce --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_RABListItem.h @@ -0,0 +1,49 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_RABListItem_H_ +#define _HNBAP_RABListItem_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_RAB-ID.h> +#include <osmocom/hnbap/HNBAP_TransportInfo.h> +#include <osmocom/hnbap/HNBAP_CN-DomainIndicator.h> +#include <osmocom/hnbap/HNBAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_RABListItem */ +typedef struct HNBAP_RABListItem { + HNBAP_RAB_ID_t rAB_ID; + HNBAP_TransportInfo_t old_transport_Info; + HNBAP_TransportInfo_t new_transport_Info; + HNBAP_CN_DomainIndicator_t cn_domain_indicator; + HNBAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_RABListItem_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_RABListItem; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_RABListItem_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_RAC.h b/include/osmocom/hnbap/HNBAP_RAC.h new file mode 100644 index 0000000..700fe12 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_RAC.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_RAC_H_ +#define _HNBAP_RAC_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <OCTET_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_RAC */ +typedef OCTET_STRING_t HNBAP_RAC_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_RAC; +asn_struct_free_f HNBAP_RAC_free; +asn_struct_print_f HNBAP_RAC_print; +asn_constr_check_f HNBAP_RAC_constraint; +ber_type_decoder_f HNBAP_RAC_decode_ber; +der_type_encoder_f HNBAP_RAC_encode_der; +xer_type_decoder_f HNBAP_RAC_decode_xer; +xer_type_encoder_f HNBAP_RAC_encode_xer; +per_type_decoder_f HNBAP_RAC_decode_uper; +per_type_encoder_f HNBAP_RAC_encode_uper; +per_type_decoder_f HNBAP_RAC_decode_aper; +per_type_encoder_f HNBAP_RAC_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_RAC_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/RAI.h b/include/osmocom/hnbap/HNBAP_RAI.h index a044246..9f0bb07 100644 --- a/include/osmocom/hnbap/RAI.h +++ b/include/osmocom/hnbap/HNBAP_RAI.h @@ -2,28 +2,28 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _RAI_H_ -#define _RAI_H_ +#ifndef _HNBAP_RAI_H_ +#define _HNBAP_RAI_H_ #include <asn_application.h> /* Including external dependencies */ -#include <osmocom/hnbap/LAI.h> -#include <osmocom/hnbap/RAC.h> +#include <osmocom/hnbap/HNBAP_LAI.h> +#include <osmocom/hnbap/HNBAP_RAC.h> #include <constr_SEQUENCE.h> #ifdef __cplusplus extern "C" { #endif -/* RAI */ -typedef struct RAI { - LAI_t lAI; - RAC_t rAC; +/* HNBAP_RAI */ +typedef struct HNBAP_RAI { + HNBAP_LAI_t lAI; + HNBAP_RAC_t rAC; /* * This type is extensible, * possible extensions are below. @@ -31,14 +31,14 @@ typedef struct RAI { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} RAI_t; +} HNBAP_RAI_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_RAI; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_RAI; #ifdef __cplusplus } #endif -#endif /* _RAI_H_ */ +#endif /* _HNBAP_RAI_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_RNC-ID.h b/include/osmocom/hnbap/HNBAP_RNC-ID.h new file mode 100644 index 0000000..35b58aa --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_RNC-ID.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_RNC_ID_H_ +#define _HNBAP_RNC_ID_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeInteger.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_RNC-ID */ +typedef long HNBAP_RNC_ID_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_RNC_ID; +asn_struct_free_f HNBAP_RNC_ID_free; +asn_struct_print_f HNBAP_RNC_ID_print; +asn_constr_check_f HNBAP_RNC_ID_constraint; +ber_type_decoder_f HNBAP_RNC_ID_decode_ber; +der_type_encoder_f HNBAP_RNC_ID_encode_der; +xer_type_decoder_f HNBAP_RNC_ID_decode_xer; +xer_type_encoder_f HNBAP_RNC_ID_encode_xer; +per_type_decoder_f HNBAP_RNC_ID_decode_uper; +per_type_encoder_f HNBAP_RNC_ID_encode_uper; +per_type_decoder_f HNBAP_RNC_ID_decode_aper; +per_type_encoder_f HNBAP_RNC_ID_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_RNC_ID_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_Registration-Cause.h b/include/osmocom/hnbap/HNBAP_Registration-Cause.h new file mode 100644 index 0000000..3de4fde --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_Registration-Cause.h @@ -0,0 +1,53 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_Registration_Cause_H_ +#define _HNBAP_Registration_Cause_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeEnumerated.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_Registration_Cause { + HNBAP_Registration_Cause_emergency_call = 0, + HNBAP_Registration_Cause_normal = 1, + /* + * Enumeration is extensible + */ + HNBAP_Registration_Cause_ue_relocation = 2 +} e_HNBAP_Registration_Cause; + +/* HNBAP_Registration-Cause */ +typedef long HNBAP_Registration_Cause_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_Registration_Cause; +asn_struct_free_f HNBAP_Registration_Cause_free; +asn_struct_print_f HNBAP_Registration_Cause_print; +asn_constr_check_f HNBAP_Registration_Cause_constraint; +ber_type_decoder_f HNBAP_Registration_Cause_decode_ber; +der_type_encoder_f HNBAP_Registration_Cause_encode_der; +xer_type_decoder_f HNBAP_Registration_Cause_decode_xer; +xer_type_encoder_f HNBAP_Registration_Cause_encode_xer; +per_type_decoder_f HNBAP_Registration_Cause_decode_uper; +per_type_encoder_f HNBAP_Registration_Cause_encode_uper; +per_type_decoder_f HNBAP_Registration_Cause_decode_aper; +per_type_encoder_f HNBAP_Registration_Cause_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_Registration_Cause_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/RelocationComplete.h b/include/osmocom/hnbap/HNBAP_RelocationComplete.h index 4dd2a2d..6c89364 100644 --- a/include/osmocom/hnbap/RelocationComplete.h +++ b/include/osmocom/hnbap/HNBAP_RelocationComplete.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _RelocationComplete_H_ -#define _RelocationComplete_H_ +#ifndef _HNBAP_RelocationComplete_H_ +#define _HNBAP_RelocationComplete_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IE.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> #include <constr_SEQUENCE.h> @@ -20,13 +21,10 @@ extern "C" { #endif -/* Forward declarations */ -struct IE; - -/* RelocationComplete */ -typedef struct RelocationComplete { - struct relocationComplete_ies { - A_SEQUENCE_OF(struct IE) list; +/* HNBAP_RelocationComplete */ +typedef struct HNBAP_RelocationComplete { + struct HNBAP_RelocationComplete__relocationComplete_ies { + A_SEQUENCE_OF(HNBAP_IE_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,17 +36,14 @@ typedef struct RelocationComplete { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} RelocationComplete_t; +} HNBAP_RelocationComplete_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_RelocationComplete; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_RelocationComplete; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE.h> - -#endif /* _RelocationComplete_H_ */ +#endif /* _HNBAP_RelocationComplete_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_S-RNTIPrefix.h b/include/osmocom/hnbap/HNBAP_S-RNTIPrefix.h new file mode 100644 index 0000000..47bd663 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_S-RNTIPrefix.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_S_RNTIPrefix_H_ +#define _HNBAP_S_RNTIPrefix_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <BIT_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_S-RNTIPrefix */ +typedef BIT_STRING_t HNBAP_S_RNTIPrefix_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_S_RNTIPrefix; +asn_struct_free_f HNBAP_S_RNTIPrefix_free; +asn_struct_print_f HNBAP_S_RNTIPrefix_print; +asn_constr_check_f HNBAP_S_RNTIPrefix_constraint; +ber_type_decoder_f HNBAP_S_RNTIPrefix_decode_ber; +der_type_encoder_f HNBAP_S_RNTIPrefix_encode_der; +xer_type_decoder_f HNBAP_S_RNTIPrefix_decode_xer; +xer_type_encoder_f HNBAP_S_RNTIPrefix_encode_xer; +per_type_decoder_f HNBAP_S_RNTIPrefix_decode_uper; +per_type_encoder_f HNBAP_S_RNTIPrefix_encode_uper; +per_type_decoder_f HNBAP_S_RNTIPrefix_decode_aper; +per_type_encoder_f HNBAP_S_RNTIPrefix_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_S_RNTIPrefix_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_SAC.h b/include/osmocom/hnbap/HNBAP_SAC.h new file mode 100644 index 0000000..15549a3 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_SAC.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_SAC_H_ +#define _HNBAP_SAC_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <OCTET_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_SAC */ +typedef OCTET_STRING_t HNBAP_SAC_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_SAC; +asn_struct_free_f HNBAP_SAC_free; +asn_struct_print_f HNBAP_SAC_print; +asn_constr_check_f HNBAP_SAC_constraint; +ber_type_decoder_f HNBAP_SAC_decode_ber; +der_type_encoder_f HNBAP_SAC_encode_der; +xer_type_decoder_f HNBAP_SAC_decode_xer; +xer_type_encoder_f HNBAP_SAC_encode_xer; +per_type_decoder_f HNBAP_SAC_decode_uper; +per_type_encoder_f HNBAP_SAC_encode_uper; +per_type_decoder_f HNBAP_SAC_decode_aper; +per_type_encoder_f HNBAP_SAC_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_SAC_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/InitiatingMessage.h b/include/osmocom/hnbap/HNBAP_SuccessfulOutcome.h index e3c958b..aa7a937 100644 --- a/include/osmocom/hnbap/InitiatingMessage.h +++ b/include/osmocom/hnbap/HNBAP_SuccessfulOutcome.h @@ -2,18 +2,18 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _InitiatingMessage_H_ -#define _InitiatingMessage_H_ +#ifndef _HNBAP_SuccessfulOutcome_H_ +#define _HNBAP_SuccessfulOutcome_H_ #include <asn_application.h> /* Including external dependencies */ -#include <osmocom/hnbap/ProcedureCode.h> -#include <osmocom/hnbap/Criticality.h> +#include <osmocom/hnbap/HNBAP_ProcedureCode.h> +#include <osmocom/hnbap/HNBAP_Criticality.h> #include <ANY.h> #include <constr_SEQUENCE.h> @@ -21,22 +21,22 @@ extern "C" { #endif -/* InitiatingMessage */ -typedef struct InitiatingMessage { - ProcedureCode_t procedureCode; - Criticality_t criticality; +/* HNBAP_SuccessfulOutcome */ +typedef struct HNBAP_SuccessfulOutcome { + HNBAP_ProcedureCode_t procedureCode; + HNBAP_Criticality_t criticality; ANY_t value; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} InitiatingMessage_t; +} HNBAP_SuccessfulOutcome_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_InitiatingMessage; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_SuccessfulOutcome; #ifdef __cplusplus } #endif -#endif /* _InitiatingMessage_H_ */ +#endif /* _HNBAP_SuccessfulOutcome_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_TMSIDS41.h b/include/osmocom/hnbap/HNBAP_TMSIDS41.h new file mode 100644 index 0000000..0f45fce --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_TMSIDS41.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_TMSIDS41_H_ +#define _HNBAP_TMSIDS41_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <OCTET_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_TMSIDS41 */ +typedef OCTET_STRING_t HNBAP_TMSIDS41_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_TMSIDS41; +asn_struct_free_f HNBAP_TMSIDS41_free; +asn_struct_print_f HNBAP_TMSIDS41_print; +asn_constr_check_f HNBAP_TMSIDS41_constraint; +ber_type_decoder_f HNBAP_TMSIDS41_decode_ber; +der_type_encoder_f HNBAP_TMSIDS41_encode_der; +xer_type_decoder_f HNBAP_TMSIDS41_decode_xer; +xer_type_encoder_f HNBAP_TMSIDS41_encode_xer; +per_type_decoder_f HNBAP_TMSIDS41_decode_uper; +per_type_encoder_f HNBAP_TMSIDS41_encode_uper; +per_type_decoder_f HNBAP_TMSIDS41_decode_aper; +per_type_encoder_f HNBAP_TMSIDS41_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_TMSIDS41_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/TMSILAI.h b/include/osmocom/hnbap/HNBAP_TMSILAI.h index ee38a24..0df3774 100644 --- a/include/osmocom/hnbap/TMSILAI.h +++ b/include/osmocom/hnbap/HNBAP_TMSILAI.h @@ -2,39 +2,39 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _TMSILAI_H_ -#define _TMSILAI_H_ +#ifndef _HNBAP_TMSILAI_H_ +#define _HNBAP_TMSILAI_H_ #include <asn_application.h> /* Including external dependencies */ #include <BIT_STRING.h> -#include <osmocom/hnbap/LAI.h> +#include <osmocom/hnbap/HNBAP_LAI.h> #include <constr_SEQUENCE.h> #ifdef __cplusplus extern "C" { #endif -/* TMSILAI */ -typedef struct TMSILAI { +/* HNBAP_TMSILAI */ +typedef struct HNBAP_TMSILAI { BIT_STRING_t tMSI; - LAI_t lAI; + HNBAP_LAI_t lAI; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} TMSILAI_t; +} HNBAP_TMSILAI_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_TMSILAI; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_TMSILAI; #ifdef __cplusplus } #endif -#endif /* _TMSILAI_H_ */ +#endif /* _HNBAP_TMSILAI_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/TNLUpdateFailure.h b/include/osmocom/hnbap/HNBAP_TNLUpdateFailure.h index 91ea963..b662d0c 100644 --- a/include/osmocom/hnbap/TNLUpdateFailure.h +++ b/include/osmocom/hnbap/HNBAP_TNLUpdateFailure.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _TNLUpdateFailure_H_ -#define _TNLUpdateFailure_H_ +#ifndef _HNBAP_TNLUpdateFailure_H_ +#define _HNBAP_TNLUpdateFailure_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IE.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> #include <constr_SEQUENCE.h> @@ -20,13 +21,10 @@ extern "C" { #endif -/* Forward declarations */ -struct IE; - -/* TNLUpdateFailure */ -typedef struct TNLUpdateFailure { - struct tnlUpdateFailure_ies { - A_SEQUENCE_OF(struct IE) list; +/* HNBAP_TNLUpdateFailure */ +typedef struct HNBAP_TNLUpdateFailure { + struct HNBAP_TNLUpdateFailure__tnlUpdateFailure_ies { + A_SEQUENCE_OF(HNBAP_IE_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,17 +36,14 @@ typedef struct TNLUpdateFailure { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} TNLUpdateFailure_t; +} HNBAP_TNLUpdateFailure_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_TNLUpdateFailure; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_TNLUpdateFailure; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE.h> - -#endif /* _TNLUpdateFailure_H_ */ +#endif /* _HNBAP_TNLUpdateFailure_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/TNLUpdateRequest.h b/include/osmocom/hnbap/HNBAP_TNLUpdateRequest.h index c87702c..8f43046 100644 --- a/include/osmocom/hnbap/TNLUpdateRequest.h +++ b/include/osmocom/hnbap/HNBAP_TNLUpdateRequest.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _TNLUpdateRequest_H_ -#define _TNLUpdateRequest_H_ +#ifndef _HNBAP_TNLUpdateRequest_H_ +#define _HNBAP_TNLUpdateRequest_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IE.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> #include <constr_SEQUENCE.h> @@ -20,13 +21,10 @@ extern "C" { #endif -/* Forward declarations */ -struct IE; - -/* TNLUpdateRequest */ -typedef struct TNLUpdateRequest { - struct tnlUpdateRequest_ies { - A_SEQUENCE_OF(struct IE) list; +/* HNBAP_TNLUpdateRequest */ +typedef struct HNBAP_TNLUpdateRequest { + struct HNBAP_TNLUpdateRequest__tnlUpdateRequest_ies { + A_SEQUENCE_OF(HNBAP_IE_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,17 +36,14 @@ typedef struct TNLUpdateRequest { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} TNLUpdateRequest_t; +} HNBAP_TNLUpdateRequest_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_TNLUpdateRequest; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_TNLUpdateRequest; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE.h> - -#endif /* _TNLUpdateRequest_H_ */ +#endif /* _HNBAP_TNLUpdateRequest_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/TNLUpdateResponse.h b/include/osmocom/hnbap/HNBAP_TNLUpdateResponse.h index 01ca4c6..921ecc4 100644 --- a/include/osmocom/hnbap/TNLUpdateResponse.h +++ b/include/osmocom/hnbap/HNBAP_TNLUpdateResponse.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _TNLUpdateResponse_H_ -#define _TNLUpdateResponse_H_ +#ifndef _HNBAP_TNLUpdateResponse_H_ +#define _HNBAP_TNLUpdateResponse_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IE.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> #include <constr_SEQUENCE.h> @@ -20,13 +21,10 @@ extern "C" { #endif -/* Forward declarations */ -struct IE; - -/* TNLUpdateResponse */ -typedef struct TNLUpdateResponse { - struct tnlUpdateResponse_ies { - A_SEQUENCE_OF(struct IE) list; +/* HNBAP_TNLUpdateResponse */ +typedef struct HNBAP_TNLUpdateResponse { + struct HNBAP_TNLUpdateResponse__tnlUpdateResponse_ies { + A_SEQUENCE_OF(HNBAP_IE_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,17 +36,14 @@ typedef struct TNLUpdateResponse { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} TNLUpdateResponse_t; +} HNBAP_TNLUpdateResponse_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_TNLUpdateResponse; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_TNLUpdateResponse; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE.h> - -#endif /* _TNLUpdateResponse_H_ */ +#endif /* _HNBAP_TNLUpdateResponse_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_TransportInfo.h b/include/osmocom/hnbap/HNBAP_TransportInfo.h new file mode 100644 index 0000000..2b7bf2b --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_TransportInfo.h @@ -0,0 +1,70 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_TransportInfo_H_ +#define _HNBAP_TransportInfo_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_TransportLayerAddress.h> +#include <osmocom/hnbap/HNBAP_IE-Extensions.h> +#include <osmocom/hnbap/HNBAP_GTP-TEI.h> +#include <osmocom/hnbap/HNBAP_BindingID.h> +#include <constr_CHOICE.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_TransportInfo__transportAssociation_PR { + HNBAP_TransportInfo__transportAssociation_PR_NOTHING, /* No components present */ + HNBAP_TransportInfo__transportAssociation_PR_gtp_TEI, + HNBAP_TransportInfo__transportAssociation_PR_bindingID, + /* Extensions may appear below */ + +} HNBAP_TransportInfo__transportAssociation_PR; + +/* HNBAP_TransportInfo */ +typedef struct HNBAP_TransportInfo { + HNBAP_TransportLayerAddress_t transportLayerAddress; + struct HNBAP_TransportInfo__transportAssociation { + HNBAP_TransportInfo__transportAssociation_PR present; + union HNBAP_TransportInfo__transportAssociation_u { + HNBAP_GTP_TEI_t gtp_TEI; + HNBAP_BindingID_t bindingID; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; + } transportAssociation; + HNBAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_TransportInfo_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_TransportInfo; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_TransportInfo_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_TransportLayerAddress.h b/include/osmocom/hnbap/HNBAP_TransportLayerAddress.h new file mode 100644 index 0000000..9b2a81a --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_TransportLayerAddress.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_TransportLayerAddress_H_ +#define _HNBAP_TransportLayerAddress_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <BIT_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_TransportLayerAddress */ +typedef BIT_STRING_t HNBAP_TransportLayerAddress_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_TransportLayerAddress; +asn_struct_free_f HNBAP_TransportLayerAddress_free; +asn_struct_print_f HNBAP_TransportLayerAddress_print; +asn_constr_check_f HNBAP_TransportLayerAddress_constraint; +ber_type_decoder_f HNBAP_TransportLayerAddress_decode_ber; +der_type_encoder_f HNBAP_TransportLayerAddress_encode_der; +xer_type_decoder_f HNBAP_TransportLayerAddress_decode_xer; +xer_type_encoder_f HNBAP_TransportLayerAddress_encode_xer; +per_type_decoder_f HNBAP_TransportLayerAddress_decode_uper; +per_type_encoder_f HNBAP_TransportLayerAddress_encode_uper; +per_type_decoder_f HNBAP_TransportLayerAddress_decode_aper; +per_type_encoder_f HNBAP_TransportLayerAddress_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_TransportLayerAddress_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_TriggeringMessage.h b/include/osmocom/hnbap/HNBAP_TriggeringMessage.h new file mode 100644 index 0000000..24dcaec --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_TriggeringMessage.h @@ -0,0 +1,50 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-CommonDataTypes" + * found in "../../asn1/hnbap/HNBAP-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_TriggeringMessage_H_ +#define _HNBAP_TriggeringMessage_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeEnumerated.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_TriggeringMessage { + HNBAP_TriggeringMessage_initiating_message = 0, + HNBAP_TriggeringMessage_successful_outcome = 1, + HNBAP_TriggeringMessage_unsuccessful_outcome = 2 +} e_HNBAP_TriggeringMessage; + +/* HNBAP_TriggeringMessage */ +typedef long HNBAP_TriggeringMessage_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_TriggeringMessage; +asn_struct_free_f HNBAP_TriggeringMessage_free; +asn_struct_print_f HNBAP_TriggeringMessage_print; +asn_constr_check_f HNBAP_TriggeringMessage_constraint; +ber_type_decoder_f HNBAP_TriggeringMessage_decode_ber; +der_type_encoder_f HNBAP_TriggeringMessage_encode_der; +xer_type_decoder_f HNBAP_TriggeringMessage_decode_xer; +xer_type_encoder_f HNBAP_TriggeringMessage_encode_xer; +per_type_decoder_f HNBAP_TriggeringMessage_decode_uper; +per_type_encoder_f HNBAP_TriggeringMessage_encode_uper; +per_type_decoder_f HNBAP_TriggeringMessage_decode_aper; +per_type_encoder_f HNBAP_TriggeringMessage_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_TriggeringMessage_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_Tunnel-Information.h b/include/osmocom/hnbap/HNBAP_Tunnel-Information.h new file mode 100644 index 0000000..63eaa37 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_Tunnel-Information.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_Tunnel_Information_H_ +#define _HNBAP_Tunnel_Information_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IP-Address.h> +#include <osmocom/hnbap/HNBAP_UDP-Port-Number.h> +#include <osmocom/hnbap/HNBAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_Tunnel-Information */ +typedef struct HNBAP_Tunnel_Information { + HNBAP_IP_Address_t iP_Address; + HNBAP_UDP_Port_Number_t *uDP_Port_Number /* OPTIONAL */; + HNBAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_Tunnel_Information_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_Tunnel_Information; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_Tunnel_Information_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_TypeOfError.h b/include/osmocom/hnbap/HNBAP_TypeOfError.h new file mode 100644 index 0000000..eba4911 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_TypeOfError.h @@ -0,0 +1,52 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_TypeOfError_H_ +#define _HNBAP_TypeOfError_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeEnumerated.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_TypeOfError { + HNBAP_TypeOfError_not_understood = 0, + HNBAP_TypeOfError_missing = 1 + /* + * Enumeration is extensible + */ +} e_HNBAP_TypeOfError; + +/* HNBAP_TypeOfError */ +typedef long HNBAP_TypeOfError_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_TypeOfError; +asn_struct_free_f HNBAP_TypeOfError_free; +asn_struct_print_f HNBAP_TypeOfError_print; +asn_constr_check_f HNBAP_TypeOfError_constraint; +ber_type_decoder_f HNBAP_TypeOfError_decode_ber; +der_type_encoder_f HNBAP_TypeOfError_encode_der; +xer_type_decoder_f HNBAP_TypeOfError_decode_xer; +xer_type_encoder_f HNBAP_TypeOfError_encode_xer; +per_type_decoder_f HNBAP_TypeOfError_decode_uper; +per_type_encoder_f HNBAP_TypeOfError_encode_uper; +per_type_decoder_f HNBAP_TypeOfError_decode_aper; +per_type_encoder_f HNBAP_TypeOfError_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_TypeOfError_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_U-RNTI.h b/include/osmocom/hnbap/HNBAP_U-RNTI.h new file mode 100644 index 0000000..f942e35 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_U-RNTI.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_U_RNTI_H_ +#define _HNBAP_U_RNTI_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <BIT_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_U-RNTI */ +typedef BIT_STRING_t HNBAP_U_RNTI_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_U_RNTI; +asn_struct_free_f HNBAP_U_RNTI_free; +asn_struct_print_f HNBAP_U_RNTI_print; +asn_constr_check_f HNBAP_U_RNTI_constraint; +ber_type_decoder_f HNBAP_U_RNTI_decode_ber; +der_type_encoder_f HNBAP_U_RNTI_encode_der; +xer_type_decoder_f HNBAP_U_RNTI_decode_xer; +xer_type_encoder_f HNBAP_U_RNTI_encode_xer; +per_type_decoder_f HNBAP_U_RNTI_decode_uper; +per_type_encoder_f HNBAP_U_RNTI_encode_uper; +per_type_decoder_f HNBAP_U_RNTI_decode_aper; +per_type_encoder_f HNBAP_U_RNTI_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_U_RNTI_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/U-RNTIQueryRequest.h b/include/osmocom/hnbap/HNBAP_U-RNTIQueryRequest.h index 7403c0a..c0cbbe8 100644 --- a/include/osmocom/hnbap/U-RNTIQueryRequest.h +++ b/include/osmocom/hnbap/HNBAP_U-RNTIQueryRequest.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _U_RNTIQueryRequest_H_ -#define _U_RNTIQueryRequest_H_ +#ifndef _HNBAP_U_RNTIQueryRequest_H_ +#define _HNBAP_U_RNTIQueryRequest_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IE.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> #include <constr_SEQUENCE.h> @@ -20,13 +21,10 @@ extern "C" { #endif -/* Forward declarations */ -struct IE; - -/* U-RNTIQueryRequest */ -typedef struct U_RNTIQueryRequest { - struct u_RNTIQueryRequest_ies { - A_SEQUENCE_OF(struct IE) list; +/* HNBAP_U-RNTIQueryRequest */ +typedef struct HNBAP_U_RNTIQueryRequest { + struct HNBAP_U_RNTIQueryRequest__u_RNTIQueryRequest_ies { + A_SEQUENCE_OF(HNBAP_IE_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,17 +36,14 @@ typedef struct U_RNTIQueryRequest { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} U_RNTIQueryRequest_t; +} HNBAP_U_RNTIQueryRequest_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_U_RNTIQueryRequest; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_U_RNTIQueryRequest; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE.h> - -#endif /* _U_RNTIQueryRequest_H_ */ +#endif /* _HNBAP_U_RNTIQueryRequest_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/U-RNTIQueryResponse.h b/include/osmocom/hnbap/HNBAP_U-RNTIQueryResponse.h index 730144f..8c4a2d0 100644 --- a/include/osmocom/hnbap/U-RNTIQueryResponse.h +++ b/include/osmocom/hnbap/HNBAP_U-RNTIQueryResponse.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _U_RNTIQueryResponse_H_ -#define _U_RNTIQueryResponse_H_ +#ifndef _HNBAP_U_RNTIQueryResponse_H_ +#define _HNBAP_U_RNTIQueryResponse_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IE.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> #include <constr_SEQUENCE.h> @@ -20,13 +21,10 @@ extern "C" { #endif -/* Forward declarations */ -struct IE; - -/* U-RNTIQueryResponse */ -typedef struct U_RNTIQueryResponse { - struct u_RNTIQueryResponse_ies { - A_SEQUENCE_OF(struct IE) list; +/* HNBAP_U-RNTIQueryResponse */ +typedef struct HNBAP_U_RNTIQueryResponse { + struct HNBAP_U_RNTIQueryResponse__u_RNTIQueryResponse_ies { + A_SEQUENCE_OF(HNBAP_IE_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,17 +36,14 @@ typedef struct U_RNTIQueryResponse { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} U_RNTIQueryResponse_t; +} HNBAP_U_RNTIQueryResponse_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_U_RNTIQueryResponse; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_U_RNTIQueryResponse; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE.h> - -#endif /* _U_RNTIQueryResponse_H_ */ +#endif /* _HNBAP_U_RNTIQueryResponse_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_UDP-Port-Number.h b/include/osmocom/hnbap/HNBAP_UDP-Port-Number.h new file mode 100644 index 0000000..988cedb --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_UDP-Port-Number.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_UDP_Port_Number_H_ +#define _HNBAP_UDP_Port_Number_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <OCTET_STRING.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_UDP-Port-Number */ +typedef OCTET_STRING_t HNBAP_UDP_Port_Number_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_UDP_Port_Number; +asn_struct_free_f HNBAP_UDP_Port_Number_free; +asn_struct_print_f HNBAP_UDP_Port_Number_print; +asn_constr_check_f HNBAP_UDP_Port_Number_constraint; +ber_type_decoder_f HNBAP_UDP_Port_Number_decode_ber; +der_type_encoder_f HNBAP_UDP_Port_Number_encode_der; +xer_type_decoder_f HNBAP_UDP_Port_Number_decode_xer; +xer_type_encoder_f HNBAP_UDP_Port_Number_encode_xer; +per_type_decoder_f HNBAP_UDP_Port_Number_decode_uper; +per_type_encoder_f HNBAP_UDP_Port_Number_encode_uper; +per_type_decoder_f HNBAP_UDP_Port_Number_decode_aper; +per_type_encoder_f HNBAP_UDP_Port_Number_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_UDP_Port_Number_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_UE-Capabilities.h b/include/osmocom/hnbap/HNBAP_UE-Capabilities.h new file mode 100644 index 0000000..5f275a3 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_UE-Capabilities.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_UE_Capabilities_H_ +#define _HNBAP_UE_Capabilities_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_Access-stratum-release-indicator.h> +#include <osmocom/hnbap/HNBAP_CSG-Capability.h> +#include <osmocom/hnbap/HNBAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_UE-Capabilities */ +typedef struct HNBAP_UE_Capabilities { + HNBAP_Access_stratum_release_indicator_t access_stratum_release_indicator; + HNBAP_CSG_Capability_t csg_capability; + HNBAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_UE_Capabilities_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_UE_Capabilities; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_UE_Capabilities_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_UE-Identity.h b/include/osmocom/hnbap/HNBAP_UE-Identity.h new file mode 100644 index 0000000..3c11a84 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_UE-Identity.h @@ -0,0 +1,74 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_UE_Identity_H_ +#define _HNBAP_UE_Identity_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IMSI.h> +#include <osmocom/hnbap/HNBAP_TMSILAI.h> +#include <osmocom/hnbap/HNBAP_PTMSIRAI.h> +#include <osmocom/hnbap/HNBAP_IMEI.h> +#include <osmocom/hnbap/HNBAP_ESN.h> +#include <osmocom/hnbap/HNBAP_IMSIDS41.h> +#include <osmocom/hnbap/HNBAP_IMSIESN.h> +#include <osmocom/hnbap/HNBAP_TMSIDS41.h> +#include <constr_CHOICE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_UE_Identity_PR { + HNBAP_UE_Identity_PR_NOTHING, /* No components present */ + HNBAP_UE_Identity_PR_iMSI, + HNBAP_UE_Identity_PR_tMSILAI, + HNBAP_UE_Identity_PR_pTMSIRAI, + HNBAP_UE_Identity_PR_iMEI, + HNBAP_UE_Identity_PR_eSN, + HNBAP_UE_Identity_PR_iMSIDS41, + HNBAP_UE_Identity_PR_iMSIESN, + HNBAP_UE_Identity_PR_tMSIDS41, + /* Extensions may appear below */ + +} HNBAP_UE_Identity_PR; + +/* HNBAP_UE-Identity */ +typedef struct HNBAP_UE_Identity { + HNBAP_UE_Identity_PR present; + union HNBAP_UE_Identity_u { + HNBAP_IMSI_t iMSI; + HNBAP_TMSILAI_t tMSILAI; + HNBAP_PTMSIRAI_t pTMSIRAI; + HNBAP_IMEI_t iMEI; + HNBAP_ESN_t eSN; + HNBAP_IMSIDS41_t iMSIDS41; + HNBAP_IMSIESN_t iMSIESN; + HNBAP_TMSIDS41_t tMSIDS41; + /* + * This type is extensible, + * possible extensions are below. + */ + } choice; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_UE_Identity_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_UE_Identity; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_UE_Identity_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/UEDe-Register.h b/include/osmocom/hnbap/HNBAP_UEDe-Register.h index dab4334..58009c5 100644 --- a/include/osmocom/hnbap/UEDe-Register.h +++ b/include/osmocom/hnbap/HNBAP_UEDe-Register.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _UEDe_Register_H_ -#define _UEDe_Register_H_ +#ifndef _HNBAP_UEDe_Register_H_ +#define _HNBAP_UEDe_Register_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IE.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> #include <constr_SEQUENCE.h> @@ -20,13 +21,10 @@ extern "C" { #endif -/* Forward declarations */ -struct IE; - -/* UEDe-Register */ -typedef struct UEDe_Register { - struct ueDe_Register_ies { - A_SEQUENCE_OF(struct IE) list; +/* HNBAP_UEDe-Register */ +typedef struct HNBAP_UEDe_Register { + struct HNBAP_UEDe_Register__ueDe_Register_ies { + A_SEQUENCE_OF(HNBAP_IE_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,17 +36,14 @@ typedef struct UEDe_Register { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} UEDe_Register_t; +} HNBAP_UEDe_Register_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_UEDe_Register; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_UEDe_Register; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE.h> - -#endif /* _UEDe_Register_H_ */ +#endif /* _HNBAP_UEDe_Register_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/UERegisterAccept.h b/include/osmocom/hnbap/HNBAP_UERegisterAccept.h index de630b1..9e5c206 100644 --- a/include/osmocom/hnbap/UERegisterAccept.h +++ b/include/osmocom/hnbap/HNBAP_UERegisterAccept.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _UERegisterAccept_H_ -#define _UERegisterAccept_H_ +#ifndef _HNBAP_UERegisterAccept_H_ +#define _HNBAP_UERegisterAccept_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IE.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> #include <constr_SEQUENCE.h> @@ -20,13 +21,10 @@ extern "C" { #endif -/* Forward declarations */ -struct IE; - -/* UERegisterAccept */ -typedef struct UERegisterAccept { - struct ueRegisterAccept_ies { - A_SEQUENCE_OF(struct IE) list; +/* HNBAP_UERegisterAccept */ +typedef struct HNBAP_UERegisterAccept { + struct HNBAP_UERegisterAccept__ueRegisterAccept_ies { + A_SEQUENCE_OF(HNBAP_IE_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,17 +36,14 @@ typedef struct UERegisterAccept { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} UERegisterAccept_t; +} HNBAP_UERegisterAccept_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_UERegisterAccept; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_UERegisterAccept; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE.h> - -#endif /* _UERegisterAccept_H_ */ +#endif /* _HNBAP_UERegisterAccept_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/UERegisterReject.h b/include/osmocom/hnbap/HNBAP_UERegisterReject.h index abda80d..44ed158 100644 --- a/include/osmocom/hnbap/UERegisterReject.h +++ b/include/osmocom/hnbap/HNBAP_UERegisterReject.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _UERegisterReject_H_ -#define _UERegisterReject_H_ +#ifndef _HNBAP_UERegisterReject_H_ +#define _HNBAP_UERegisterReject_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IE.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> #include <constr_SEQUENCE.h> @@ -20,13 +21,10 @@ extern "C" { #endif -/* Forward declarations */ -struct IE; - -/* UERegisterReject */ -typedef struct UERegisterReject { - struct ueRegisterReject_ies { - A_SEQUENCE_OF(struct IE) list; +/* HNBAP_UERegisterReject */ +typedef struct HNBAP_UERegisterReject { + struct HNBAP_UERegisterReject__ueRegisterReject_ies { + A_SEQUENCE_OF(HNBAP_IE_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,17 +36,14 @@ typedef struct UERegisterReject { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} UERegisterReject_t; +} HNBAP_UERegisterReject_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_UERegisterReject; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_UERegisterReject; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE.h> - -#endif /* _UERegisterReject_H_ */ +#endif /* _HNBAP_UERegisterReject_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/UERegisterRequest.h b/include/osmocom/hnbap/HNBAP_UERegisterRequest.h index 09d6a29..ae82132 100644 --- a/include/osmocom/hnbap/UERegisterRequest.h +++ b/include/osmocom/hnbap/HNBAP_UERegisterRequest.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _UERegisterRequest_H_ -#define _UERegisterRequest_H_ +#ifndef _HNBAP_UERegisterRequest_H_ +#define _HNBAP_UERegisterRequest_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_IE.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> #include <constr_SEQUENCE.h> @@ -20,13 +21,10 @@ extern "C" { #endif -/* Forward declarations */ -struct IE; - -/* UERegisterRequest */ -typedef struct UERegisterRequest { - struct ueRegisterRequest_ies { - A_SEQUENCE_OF(struct IE) list; +/* HNBAP_UERegisterRequest */ +typedef struct HNBAP_UERegisterRequest { + struct HNBAP_UERegisterRequest__ueRegisterRequest_ies { + A_SEQUENCE_OF(HNBAP_IE_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; @@ -38,17 +36,14 @@ typedef struct UERegisterRequest { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} UERegisterRequest_t; +} HNBAP_UERegisterRequest_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_UERegisterRequest; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_UERegisterRequest; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE.h> - -#endif /* _UERegisterRequest_H_ */ +#endif /* _HNBAP_UERegisterRequest_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_URAIdentity.h b/include/osmocom/hnbap/HNBAP_URAIdentity.h new file mode 100644 index 0000000..97a1e12 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_URAIdentity.h @@ -0,0 +1,43 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_URAIdentity_H_ +#define _HNBAP_URAIdentity_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeInteger.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_URAIdentity */ +typedef long HNBAP_URAIdentity_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_URAIdentity; +asn_struct_free_f HNBAP_URAIdentity_free; +asn_struct_print_f HNBAP_URAIdentity_print; +asn_constr_check_f HNBAP_URAIdentity_constraint; +ber_type_decoder_f HNBAP_URAIdentity_decode_ber; +der_type_encoder_f HNBAP_URAIdentity_encode_der; +xer_type_decoder_f HNBAP_URAIdentity_decode_xer; +xer_type_encoder_f HNBAP_URAIdentity_encode_xer; +per_type_decoder_f HNBAP_URAIdentity_decode_uper; +per_type_encoder_f HNBAP_URAIdentity_encode_uper; +per_type_decoder_f HNBAP_URAIdentity_decode_aper; +per_type_encoder_f HNBAP_URAIdentity_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_URAIdentity_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/IE-Extensions.h b/include/osmocom/hnbap/HNBAP_URAIdentityList.h index 5236df0..0b22d29 100644 --- a/include/osmocom/hnbap/IE-Extensions.h +++ b/include/osmocom/hnbap/HNBAP_URAIdentityList.h @@ -2,16 +2,17 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#ifndef _IE_Extensions_H_ -#define _IE_Extensions_H_ +#ifndef _HNBAP_URAIdentityList_H_ +#define _HNBAP_URAIdentityList_H_ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_URAIdentity.h> #include <asn_SEQUENCE_OF.h> #include <constr_SEQUENCE_OF.h> @@ -19,26 +20,20 @@ extern "C" { #endif -/* Forward declarations */ -struct IE; - -/* IE-Extensions */ -typedef struct IE_Extensions { - A_SEQUENCE_OF(struct IE) list; +/* HNBAP_URAIdentityList */ +typedef struct HNBAP_URAIdentityList { + A_SEQUENCE_OF(HNBAP_URAIdentity_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} IE_Extensions_t; +} HNBAP_URAIdentityList_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_IE_Extensions; +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_URAIdentityList; #ifdef __cplusplus } #endif -/* Referred external types */ -#include <osmocom/hnbap/IE.h> - -#endif /* _IE_Extensions_H_ */ +#endif /* _HNBAP_URAIdentityList_H_ */ #include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_UTRANCellID.h b/include/osmocom/hnbap/HNBAP_UTRANCellID.h new file mode 100644 index 0000000..0659034 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_UTRANCellID.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_UTRANCellID_H_ +#define _HNBAP_UTRANCellID_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_LAC.h> +#include <osmocom/hnbap/HNBAP_RAC.h> +#include <osmocom/hnbap/HNBAP_PLMNidentity.h> +#include <osmocom/hnbap/HNBAP_CellIdentity.h> +#include <osmocom/hnbap/HNBAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_UTRANCellID */ +typedef struct HNBAP_UTRANCellID { + HNBAP_LAC_t lAC; + HNBAP_RAC_t rAC; + HNBAP_PLMNidentity_t pLMNidentity; + HNBAP_CellIdentity_t uTRANcellID; + HNBAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_UTRANCellID_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_UTRANCellID; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_UTRANCellID_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_UnknownU-RNTIIndication.h b/include/osmocom/hnbap/HNBAP_UnknownU-RNTIIndication.h new file mode 100644 index 0000000..3951209 --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_UnknownU-RNTIIndication.h @@ -0,0 +1,51 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_UnknownU_RNTIIndication_H_ +#define _HNBAP_UnknownU_RNTIIndication_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeEnumerated.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_UnknownU_RNTIIndication { + HNBAP_UnknownU_RNTIIndication_unknown = 0 + /* + * Enumeration is extensible + */ +} e_HNBAP_UnknownU_RNTIIndication; + +/* HNBAP_UnknownU-RNTIIndication */ +typedef long HNBAP_UnknownU_RNTIIndication_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_UnknownU_RNTIIndication; +asn_struct_free_f HNBAP_UnknownU_RNTIIndication_free; +asn_struct_print_f HNBAP_UnknownU_RNTIIndication_print; +asn_constr_check_f HNBAP_UnknownU_RNTIIndication_constraint; +ber_type_decoder_f HNBAP_UnknownU_RNTIIndication_decode_ber; +der_type_encoder_f HNBAP_UnknownU_RNTIIndication_encode_der; +xer_type_decoder_f HNBAP_UnknownU_RNTIIndication_decode_xer; +xer_type_encoder_f HNBAP_UnknownU_RNTIIndication_encode_xer; +per_type_decoder_f HNBAP_UnknownU_RNTIIndication_decode_uper; +per_type_encoder_f HNBAP_UnknownU_RNTIIndication_encode_uper; +per_type_decoder_f HNBAP_UnknownU_RNTIIndication_decode_aper; +per_type_encoder_f HNBAP_UnknownU_RNTIIndication_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_UnknownU_RNTIIndication_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_UnsuccessfulOutcome.h b/include/osmocom/hnbap/HNBAP_UnsuccessfulOutcome.h new file mode 100644 index 0000000..032936f --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_UnsuccessfulOutcome.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-PDU" + * found in "../../asn1/hnbap/HNBAP-PDU.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_UnsuccessfulOutcome_H_ +#define _HNBAP_UnsuccessfulOutcome_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/hnbap/HNBAP_ProcedureCode.h> +#include <osmocom/hnbap/HNBAP_Criticality.h> +#include <ANY.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* HNBAP_UnsuccessfulOutcome */ +typedef struct HNBAP_UnsuccessfulOutcome { + HNBAP_ProcedureCode_t procedureCode; + HNBAP_Criticality_t criticality; + ANY_t value; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} HNBAP_UnsuccessfulOutcome_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_UnsuccessfulOutcome; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_UnsuccessfulOutcome_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBAP_Update-cause.h b/include/osmocom/hnbap/HNBAP_Update-cause.h new file mode 100644 index 0000000..ebede3d --- /dev/null +++ b/include/osmocom/hnbap/HNBAP_Update-cause.h @@ -0,0 +1,51 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _HNBAP_Update_cause_H_ +#define _HNBAP_Update_cause_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeEnumerated.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* Dependencies */ +typedef enum HNBAP_Update_cause { + HNBAP_Update_cause_relocation_preparation = 0 + /* + * Enumeration is extensible + */ +} e_HNBAP_Update_cause; + +/* HNBAP_Update-cause */ +typedef long HNBAP_Update_cause_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_HNBAP_Update_cause; +asn_struct_free_f HNBAP_Update_cause_free; +asn_struct_print_f HNBAP_Update_cause_print; +asn_constr_check_f HNBAP_Update_cause_constraint; +ber_type_decoder_f HNBAP_Update_cause_decode_ber; +der_type_encoder_f HNBAP_Update_cause_encode_der; +xer_type_decoder_f HNBAP_Update_cause_decode_xer; +xer_type_encoder_f HNBAP_Update_cause_encode_xer; +per_type_decoder_f HNBAP_Update_cause_decode_uper; +per_type_encoder_f HNBAP_Update_cause_encode_uper; +per_type_decoder_f HNBAP_Update_cause_decode_aper; +per_type_encoder_f HNBAP_Update_cause_encode_aper; + +#ifdef __cplusplus +} +#endif + +#endif /* _HNBAP_Update_cause_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBCapacity.h b/include/osmocom/hnbap/HNBCapacity.h deleted file mode 100644 index 2c6eea1..0000000 --- a/include/osmocom/hnbap/HNBCapacity.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _HNBCapacity_H_ -#define _HNBCapacity_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeInteger.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* HNBCapacity */ -typedef long HNBCapacity_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_HNBCapacity; -asn_struct_free_f HNBCapacity_free; -asn_struct_print_f HNBCapacity_print; -asn_constr_check_f HNBCapacity_constraint; -ber_type_decoder_f HNBCapacity_decode_ber; -der_type_encoder_f HNBCapacity_encode_der; -xer_type_decoder_f HNBCapacity_decode_xer; -xer_type_encoder_f HNBCapacity_encode_xer; -per_type_decoder_f HNBCapacity_decode_uper; -per_type_encoder_f HNBCapacity_encode_uper; -per_type_decoder_f HNBCapacity_decode_aper; -per_type_encoder_f HNBCapacity_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _HNBCapacity_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBConfigInfo.h b/include/osmocom/hnbap/HNBConfigInfo.h deleted file mode 100644 index 95c4fb9..0000000 --- a/include/osmocom/hnbap/HNBConfigInfo.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _HNBConfigInfo_H_ -#define _HNBConfigInfo_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/HNB-RNL-Identity.h> -#include <osmocom/hnbap/ConfigurationInformation.h> -#include <constr_SEQUENCE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct IE_Extensions; - -/* HNBConfigInfo */ -typedef struct HNBConfigInfo { - HNB_RNL_Identity_t hnb_RNL_Identity; - ConfigurationInformation_t configurationInformation; - struct IE_Extensions *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} HNBConfigInfo_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_HNBConfigInfo; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include <osmocom/hnbap/IE-Extensions.h> - -#endif /* _HNBConfigInfo_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBConfigurationInformationMissing.h b/include/osmocom/hnbap/HNBConfigurationInformationMissing.h deleted file mode 100644 index 9f928f8..0000000 --- a/include/osmocom/hnbap/HNBConfigurationInformationMissing.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _HNBConfigurationInformationMissing_H_ -#define _HNBConfigurationInformationMissing_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/Cause.h> -#include <constr_SEQUENCE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct IE_Extensions; - -/* HNBConfigurationInformationMissing */ -typedef struct HNBConfigurationInformationMissing { - Cause_t cause; - struct IE_Extensions *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} HNBConfigurationInformationMissing_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_HNBConfigurationInformationMissing; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include <osmocom/hnbap/IE-Extensions.h> - -#endif /* _HNBConfigurationInformationMissing_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/HNBConfigurationInformationProvided.h b/include/osmocom/hnbap/HNBConfigurationInformationProvided.h deleted file mode 100644 index 5d8b8fe..0000000 --- a/include/osmocom/hnbap/HNBConfigurationInformationProvided.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _HNBConfigurationInformationProvided_H_ -#define _HNBConfigurationInformationProvided_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/PSC.h> -#include <osmocom/hnbap/CSG-ID.h> -#include <osmocom/hnbap/HNB-Cell-Access-Mode.h> -#include <osmocom/hnbap/Iurh-Signalling-TNL-AddressList.h> -#include <constr_SEQUENCE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct IE_Extensions; - -/* HNBConfigurationInformationProvided */ -typedef struct HNBConfigurationInformationProvided { - PSC_t *psc /* OPTIONAL */; - CSG_ID_t *cSG_ID /* OPTIONAL */; - HNB_Cell_Access_Mode_t hNB_Cell_Access_Mode; - Iurh_Signalling_TNL_AddressList_t iurh_Signalling_TNL_AddressList; - struct IE_Extensions *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} HNBConfigurationInformationProvided_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_HNBConfigurationInformationProvided; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include <osmocom/hnbap/IE-Extensions.h> - -#endif /* _HNBConfigurationInformationProvided_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/IMEI.h b/include/osmocom/hnbap/IMEI.h deleted file mode 100644 index 41c8c9a..0000000 --- a/include/osmocom/hnbap/IMEI.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _IMEI_H_ -#define _IMEI_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <BIT_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* IMEI */ -typedef BIT_STRING_t IMEI_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_IMEI; -asn_struct_free_f IMEI_free; -asn_struct_print_f IMEI_print; -asn_constr_check_f IMEI_constraint; -ber_type_decoder_f IMEI_decode_ber; -der_type_encoder_f IMEI_encode_der; -xer_type_decoder_f IMEI_decode_xer; -xer_type_encoder_f IMEI_encode_xer; -per_type_decoder_f IMEI_decode_uper; -per_type_encoder_f IMEI_encode_uper; -per_type_decoder_f IMEI_decode_aper; -per_type_encoder_f IMEI_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _IMEI_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/IMSI.h b/include/osmocom/hnbap/IMSI.h deleted file mode 100644 index 061520c..0000000 --- a/include/osmocom/hnbap/IMSI.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _IMSI_H_ -#define _IMSI_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <OCTET_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* IMSI */ -typedef OCTET_STRING_t IMSI_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_IMSI; -asn_struct_free_f IMSI_free; -asn_struct_print_f IMSI_print; -asn_constr_check_f IMSI_constraint; -ber_type_decoder_f IMSI_decode_ber; -der_type_encoder_f IMSI_encode_der; -xer_type_decoder_f IMSI_decode_xer; -xer_type_encoder_f IMSI_encode_xer; -per_type_decoder_f IMSI_decode_uper; -per_type_encoder_f IMSI_encode_uper; -per_type_decoder_f IMSI_decode_aper; -per_type_encoder_f IMSI_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _IMSI_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/IMSIDS41.h b/include/osmocom/hnbap/IMSIDS41.h deleted file mode 100644 index e424742..0000000 --- a/include/osmocom/hnbap/IMSIDS41.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _IMSIDS41_H_ -#define _IMSIDS41_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <OCTET_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* IMSIDS41 */ -typedef OCTET_STRING_t IMSIDS41_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_IMSIDS41; -asn_struct_free_f IMSIDS41_free; -asn_struct_print_f IMSIDS41_print; -asn_constr_check_f IMSIDS41_constraint; -ber_type_decoder_f IMSIDS41_decode_ber; -der_type_encoder_f IMSIDS41_encode_der; -xer_type_decoder_f IMSIDS41_decode_xer; -xer_type_encoder_f IMSIDS41_encode_xer; -per_type_decoder_f IMSIDS41_decode_uper; -per_type_encoder_f IMSIDS41_encode_uper; -per_type_decoder_f IMSIDS41_decode_aper; -per_type_encoder_f IMSIDS41_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _IMSIDS41_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/IP-Address.h b/include/osmocom/hnbap/IP-Address.h deleted file mode 100644 index 501dab1..0000000 --- a/include/osmocom/hnbap/IP-Address.h +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _IP_Address_H_ -#define _IP_Address_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/Ipv4Address.h> -#include <osmocom/hnbap/Ipv6Address.h> -#include <constr_CHOICE.h> -#include <constr_SEQUENCE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum ipaddress_PR { - ipaddress_PR_NOTHING, /* No components present */ - ipaddress_PR_ipv4info, - ipaddress_PR_ipv6info, - /* Extensions may appear below */ - -} ipaddress_PR; - -/* Forward declarations */ -struct IE_Extensions; - -/* IP-Address */ -typedef struct IP_Address { - struct ipaddress { - ipaddress_PR present; - union IP_Address__ipaddress_u { - Ipv4Address_t ipv4info; - Ipv6Address_t ipv6info; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ipaddress; - struct IE_Extensions *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} IP_Address_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_IP_Address; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include <osmocom/hnbap/IE-Extensions.h> - -#endif /* _IP_Address_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/Ipv4Address.h b/include/osmocom/hnbap/Ipv4Address.h deleted file mode 100644 index 49154ed..0000000 --- a/include/osmocom/hnbap/Ipv4Address.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _Ipv4Address_H_ -#define _Ipv4Address_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <OCTET_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Ipv4Address */ -typedef OCTET_STRING_t Ipv4Address_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Ipv4Address; -asn_struct_free_f Ipv4Address_free; -asn_struct_print_f Ipv4Address_print; -asn_constr_check_f Ipv4Address_constraint; -ber_type_decoder_f Ipv4Address_decode_ber; -der_type_encoder_f Ipv4Address_encode_der; -xer_type_decoder_f Ipv4Address_decode_xer; -xer_type_encoder_f Ipv4Address_encode_xer; -per_type_decoder_f Ipv4Address_decode_uper; -per_type_encoder_f Ipv4Address_encode_uper; -per_type_decoder_f Ipv4Address_decode_aper; -per_type_encoder_f Ipv4Address_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _Ipv4Address_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/Ipv6Address.h b/include/osmocom/hnbap/Ipv6Address.h deleted file mode 100644 index 5268e4c..0000000 --- a/include/osmocom/hnbap/Ipv6Address.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _Ipv6Address_H_ -#define _Ipv6Address_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <OCTET_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Ipv6Address */ -typedef OCTET_STRING_t Ipv6Address_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Ipv6Address; -asn_struct_free_f Ipv6Address_free; -asn_struct_print_f Ipv6Address_print; -asn_constr_check_f Ipv6Address_constraint; -ber_type_decoder_f Ipv6Address_decode_ber; -der_type_encoder_f Ipv6Address_encode_der; -xer_type_decoder_f Ipv6Address_decode_xer; -xer_type_encoder_f Ipv6Address_encode_xer; -per_type_decoder_f Ipv6Address_decode_uper; -per_type_encoder_f Ipv6Address_encode_uper; -per_type_decoder_f Ipv6Address_decode_aper; -per_type_encoder_f Ipv6Address_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _Ipv6Address_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/Iurh-Signalling-TNL-AddressList.h b/include/osmocom/hnbap/Iurh-Signalling-TNL-AddressList.h deleted file mode 100644 index 784f7c9..0000000 --- a/include/osmocom/hnbap/Iurh-Signalling-TNL-AddressList.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _Iurh_Signalling_TNL_AddressList_H_ -#define _Iurh_Signalling_TNL_AddressList_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <asn_SEQUENCE_OF.h> -#include <constr_SEQUENCE_OF.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct IP_Address; - -/* Iurh-Signalling-TNL-AddressList */ -typedef struct Iurh_Signalling_TNL_AddressList { - A_SEQUENCE_OF(struct IP_Address) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Iurh_Signalling_TNL_AddressList_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Iurh_Signalling_TNL_AddressList; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include <osmocom/hnbap/IP-Address.h> - -#endif /* _Iurh_Signalling_TNL_AddressList_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/LAC.h b/include/osmocom/hnbap/LAC.h deleted file mode 100644 index 462fd4c..0000000 --- a/include/osmocom/hnbap/LAC.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _LAC_H_ -#define _LAC_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <OCTET_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* LAC */ -typedef OCTET_STRING_t LAC_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_LAC; -asn_struct_free_f LAC_free; -asn_struct_print_f LAC_print; -asn_constr_check_f LAC_constraint; -ber_type_decoder_f LAC_decode_ber; -der_type_encoder_f LAC_encode_der; -xer_type_decoder_f LAC_decode_xer; -xer_type_encoder_f LAC_encode_xer; -per_type_decoder_f LAC_decode_uper; -per_type_encoder_f LAC_encode_uper; -per_type_decoder_f LAC_decode_aper; -per_type_encoder_f LAC_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _LAC_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/MacroCellID.h b/include/osmocom/hnbap/MacroCellID.h deleted file mode 100644 index 88b4a62..0000000 --- a/include/osmocom/hnbap/MacroCellID.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _MacroCellID_H_ -#define _MacroCellID_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/UTRANCellID.h> -#include <osmocom/hnbap/CGI.h> -#include <constr_CHOICE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum MacroCellID_PR { - MacroCellID_PR_NOTHING, /* No components present */ - MacroCellID_PR_uTRANCellID, - MacroCellID_PR_gERANCellID, - /* Extensions may appear below */ - -} MacroCellID_PR; - -/* MacroCellID */ -typedef struct MacroCellID { - MacroCellID_PR present; - union MacroCellID_u { - UTRANCellID_t uTRANCellID; - CGI_t gERANCellID; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} MacroCellID_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_MacroCellID; - -#ifdef __cplusplus -} -#endif - -#endif /* _MacroCellID_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/MacroCoverageInformation.h b/include/osmocom/hnbap/MacroCoverageInformation.h deleted file mode 100644 index 1d3f915..0000000 --- a/include/osmocom/hnbap/MacroCoverageInformation.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _MacroCoverageInformation_H_ -#define _MacroCoverageInformation_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/MacroCellID.h> -#include <constr_SEQUENCE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct IE_Extensions; - -/* MacroCoverageInformation */ -typedef struct MacroCoverageInformation { - MacroCellID_t cellIdentity; - struct IE_Extensions *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} MacroCoverageInformation_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_MacroCoverageInformation; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include <osmocom/hnbap/IE-Extensions.h> - -#endif /* _MacroCoverageInformation_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/Makefile.am b/include/osmocom/hnbap/Makefile.am index cd9b720..6db9966 100644 --- a/include/osmocom/hnbap/Makefile.am +++ b/include/osmocom/hnbap/Makefile.am @@ -1,120 +1,123 @@ -noinst_HEADERS = \ +hnbap_HEADERS = \ hnbap_common.h hnbap_ies_defs.h \ - AccessResult.h \ - Access-stratum-release-indicator.h \ - AdditionalNeighbourInfoList.h \ - AltitudeAndDirection.h \ - BackoffTimer.h \ - BindingID.h \ - Cause.h \ - CauseMisc.h \ - CauseProtocol.h \ - CauseRadioNetwork.h \ - CauseTransport.h \ - CELL-FACHMobilitySupport.h \ - CellIdentity.h \ - CGI.h \ - CI.h \ - CN-DomainIndicator.h \ - ConfigurationInformation.h \ - Context-ID.h \ - CriticalityDiagnostics.h \ - CriticalityDiagnostics-IE-List.h \ - Criticality.h \ - CSG-Capability.h \ - CSG-ID.h \ - CSGMembershipStatus.h \ - CSGMembershipUpdate.h \ - ErrorIndication.h \ - ESN.h \ - GeographicalCoordinates.h \ - GeographicalLocation.h \ - GTP-TEI.h \ - HNBAP-PDU.h \ - HNBCapacity.h \ - HNB-Cell-Access-Mode.h \ - HNB-Cell-Identifier.h \ - HNBConfigInfo.h \ - HNBConfigTransferRequest.h \ - HNBConfigTransferResponse.h \ - HNBConfigurationInformationMissing.h \ - HNBConfigurationInformationProvided.h \ - HNBDe-Register.h \ - HNB-GWResponse.h \ - HNB-Identity.h \ - HNB-Identity-Info.h \ - HNB-Location-Information.h \ - HNBRegisterAccept.h \ - HNBRegisterReject.h \ - HNBRegisterRequest.h \ - HNB-RNL-Identity.h \ - IE-Extensions.h \ - IE.h \ - IMEI.h \ - IMSIDS41.h \ - IMSIESN.h \ - IMSI.h \ - InitiatingMessage.h \ - IP-Address.h \ - Ipv4Address.h \ - Ipv6Address.h \ - Iurh-Signalling-TNL-AddressList.h \ - LAC.h \ - LAI.h \ - MacroCellID.h \ - MacroCoverageInformation.h \ - MuxPortNumber.h \ - NeighbourCellIdentityList.h \ - NeighbourIdentity.h \ - NeighbourInfoList.h \ - NeighbourInfoRequestItem.h \ - NeighbourInfoRequestList.h \ - PLMNidentity.h \ - Presence.h \ - PrivateIE-ID.h \ - PrivateMessage.h \ - ProcedureCode.h \ - ProtocolIE-ID.h \ - PSC.h \ - PTMSI.h \ - PTMSIRAI.h \ - RAB-ID.h \ - RABList.h \ - RABListItem.h \ - RAC.h \ - RAI.h \ - Registration-Cause.h \ - RelocationComplete.h \ - RNC-ID.h \ - SAC.h \ - S-RNTIPrefix.h \ - SuccessfulOutcome.h \ - TMSIDS41.h \ - TMSILAI.h \ - TNLUpdateFailure.h \ - TNLUpdateRequest.h \ - TNLUpdateResponse.h \ - TransportInfo.h \ - TransportLayerAddress.h \ - TriggeringMessage.h \ - Tunnel-Information.h \ - TypeOfError.h \ - UDP-Port-Number.h \ - UE-Capabilities.h \ - UEDe-Register.h \ - UE-Identity.h \ - UERegisterAccept.h \ - UERegisterReject.h \ - UERegisterRequest.h \ - UnknownU-RNTIIndication.h \ - UnsuccessfulOutcome.h \ - Update-cause.h \ - URAIdentity.h \ - URAIdentityList.h \ - U-RNTI.h \ - U-RNTIQueryRequest.h \ - U-RNTIQueryResponse.h \ - UTRANCellID.h + HNBAP_AccessResult.h \ + HNBAP_Access-stratum-release-indicator.h \ + HNBAP_AdditionalNeighbourInfoList.h \ + HNBAP_AltitudeAndDirection.h \ + HNBAP_BackoffTimer.h \ + HNBAP_BindingID.h \ + HNBAP_Cause.h \ + HNBAP_CauseMisc.h \ + HNBAP_CauseProtocol.h \ + HNBAP_CauseRadioNetwork.h \ + HNBAP_CauseTransport.h \ + HNBAP_CELL-FACHMobilitySupport.h \ + HNBAP_CellIdentity.h \ + HNBAP_CGI.h \ + HNBAP_CI.h \ + HNBAP_CN-DomainIndicator.h \ + HNBAP_ConfigurationInformation.h \ + HNBAP_Context-ID.h \ + HNBAP_CriticalityDiagnostics.h \ + HNBAP_CriticalityDiagnostics-IE-List.h \ + HNBAP_CriticalityDiagnostics-IE-List-Value.h \ + HNBAP_Criticality.h \ + HNBAP_CSG-Capability.h \ + HNBAP_CSG-ID.h \ + HNBAP_CSGMembershipStatus.h \ + HNBAP_CSGMembershipUpdate.h \ + HNBAP_ErrorIndication.h \ + HNBAP_ESN.h \ + HNBAP_GeographicalCoordinates.h \ + HNBAP_GeographicalLocation.h \ + HNBAP_GTP-TEI.h \ + HNBAP_HNBAP-PDU.h \ + HNBAP_HNBCapacity.h \ + HNBAP_HNB-Cell-Access-Mode.h \ + HNBAP_HNB-Cell-Identifier.h \ + HNBAP_HNBConfigInfo.h \ + HNBAP_HNBConfigTransferRequest.h \ + HNBAP_HNBConfigTransferResponse.h \ + HNBAP_HNBConfigurationInformationMissing.h \ + HNBAP_HNBConfigurationInformationProvided.h \ + HNBAP_HNBDe-Register.h \ + HNBAP_HNB-GWResponse.h \ + HNBAP_HNB-Identity.h \ + HNBAP_HNB-Identity-Info.h \ + HNBAP_HNB-Location-Information.h \ + HNBAP_HNBRegisterAccept.h \ + HNBAP_HNBRegisterReject.h \ + HNBAP_HNBRegisterRequest.h \ + HNBAP_HNB-RNL-Identity.h \ + HNBAP_IE-Extensions.h \ + HNBAP_IE.h \ + HNBAP_IMEI.h \ + HNBAP_IMSIDS41.h \ + HNBAP_IMSIESN.h \ + HNBAP_IMSI.h \ + HNBAP_InitiatingMessage.h \ + HNBAP_IP-Address.h \ + HNBAP_Ipv4Address.h \ + HNBAP_Ipv6Address.h \ + HNBAP_Iurh-Signalling-TNL-AddressList.h \ + HNBAP_LAC.h \ + HNBAP_LAI.h \ + HNBAP_MacroCellID.h \ + HNBAP_MacroCoverageInformation.h \ + HNBAP_MuxPortNumber.h \ + HNBAP_NeighbourCellIdentityList.h \ + HNBAP_NeighbourIdentity.h \ + HNBAP_NeighbourInfoList.h \ + HNBAP_NeighbourInfoRequestItem.h \ + HNBAP_NeighbourInfoRequestList.h \ + HNBAP_PLMNidentity.h \ + HNBAP_Presence.h \ + HNBAP_PrivateIE-ID.h \ + HNBAP_PrivateMessage.h \ + HNBAP_ProcedureCode.h \ + HNBAP_ProtocolIE-ID.h \ + HNBAP_PSC.h \ + HNBAP_PTMSI.h \ + HNBAP_PTMSIRAI.h \ + HNBAP_RAB-ID.h \ + HNBAP_RABList.h \ + HNBAP_RABListItem.h \ + HNBAP_RAC.h \ + HNBAP_RAI.h \ + HNBAP_Registration-Cause.h \ + HNBAP_RelocationComplete.h \ + HNBAP_RNC-ID.h \ + HNBAP_SAC.h \ + HNBAP_S-RNTIPrefix.h \ + HNBAP_SuccessfulOutcome.h \ + HNBAP_TMSIDS41.h \ + HNBAP_TMSILAI.h \ + HNBAP_TNLUpdateFailure.h \ + HNBAP_TNLUpdateRequest.h \ + HNBAP_TNLUpdateResponse.h \ + HNBAP_TransportInfo.h \ + HNBAP_TransportLayerAddress.h \ + HNBAP_TriggeringMessage.h \ + HNBAP_Tunnel-Information.h \ + HNBAP_TypeOfError.h \ + HNBAP_UDP-Port-Number.h \ + HNBAP_UE-Capabilities.h \ + HNBAP_UEDe-Register.h \ + HNBAP_UE-Identity.h \ + HNBAP_UERegisterAccept.h \ + HNBAP_UERegisterReject.h \ + HNBAP_UERegisterRequest.h \ + HNBAP_UnknownU-RNTIIndication.h \ + HNBAP_UnsuccessfulOutcome.h \ + HNBAP_Update-cause.h \ + HNBAP_URAIdentity.h \ + HNBAP_URAIdentityList.h \ + HNBAP_U-RNTI.h \ + HNBAP_U-RNTIQueryRequest.h \ + HNBAP_U-RNTIQueryResponse.h \ + HNBAP_UTRANCellID.h + +hnbapdir = $(includedir)/osmocom/hnbap DISTCLEANFILES = \ hnbap_ies_defs.h diff --git a/include/osmocom/hnbap/MuxPortNumber.h b/include/osmocom/hnbap/MuxPortNumber.h deleted file mode 100644 index 2e07f73..0000000 --- a/include/osmocom/hnbap/MuxPortNumber.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _MuxPortNumber_H_ -#define _MuxPortNumber_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeInteger.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* MuxPortNumber */ -typedef long MuxPortNumber_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_MuxPortNumber; -asn_struct_free_f MuxPortNumber_free; -asn_struct_print_f MuxPortNumber_print; -asn_constr_check_f MuxPortNumber_constraint; -ber_type_decoder_f MuxPortNumber_decode_ber; -der_type_encoder_f MuxPortNumber_encode_der; -xer_type_decoder_f MuxPortNumber_decode_xer; -xer_type_encoder_f MuxPortNumber_encode_xer; -per_type_decoder_f MuxPortNumber_decode_uper; -per_type_encoder_f MuxPortNumber_encode_uper; -per_type_decoder_f MuxPortNumber_decode_aper; -per_type_encoder_f MuxPortNumber_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _MuxPortNumber_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/NeighbourCellIdentityList.h b/include/osmocom/hnbap/NeighbourCellIdentityList.h deleted file mode 100644 index 5b013cc..0000000 --- a/include/osmocom/hnbap/NeighbourCellIdentityList.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _NeighbourCellIdentityList_H_ -#define _NeighbourCellIdentityList_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <asn_SEQUENCE_OF.h> -#include <constr_SEQUENCE_OF.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct NeighbourIdentity; - -/* NeighbourCellIdentityList */ -typedef struct NeighbourCellIdentityList { - A_SEQUENCE_OF(struct NeighbourIdentity) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NeighbourCellIdentityList_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NeighbourCellIdentityList; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include <osmocom/hnbap/NeighbourIdentity.h> - -#endif /* _NeighbourCellIdentityList_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/NeighbourIdentity.h b/include/osmocom/hnbap/NeighbourIdentity.h deleted file mode 100644 index 290b09d..0000000 --- a/include/osmocom/hnbap/NeighbourIdentity.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _NeighbourIdentity_H_ -#define _NeighbourIdentity_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/HNB-RNL-Identity.h> -#include <osmocom/hnbap/CellIdentity.h> -#include <constr_CHOICE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum NeighbourIdentity_PR { - NeighbourIdentity_PR_NOTHING, /* No components present */ - NeighbourIdentity_PR_hNB_RNL_Identity, - NeighbourIdentity_PR_cell_ID, - /* Extensions may appear below */ - -} NeighbourIdentity_PR; - -/* NeighbourIdentity */ -typedef struct NeighbourIdentity { - NeighbourIdentity_PR present; - union NeighbourIdentity_u { - HNB_RNL_Identity_t hNB_RNL_Identity; - CellIdentity_t cell_ID; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NeighbourIdentity_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NeighbourIdentity; - -#ifdef __cplusplus -} -#endif - -#endif /* _NeighbourIdentity_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/NeighbourInfoRequestItem.h b/include/osmocom/hnbap/NeighbourInfoRequestItem.h deleted file mode 100644 index 39fd6d7..0000000 --- a/include/osmocom/hnbap/NeighbourInfoRequestItem.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _NeighbourInfoRequestItem_H_ -#define _NeighbourInfoRequestItem_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/HNB-RNL-Identity.h> -#include <constr_SEQUENCE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct IE_Extensions; - -/* NeighbourInfoRequestItem */ -typedef struct NeighbourInfoRequestItem { - HNB_RNL_Identity_t hnb_RNL_Identity; - struct IE_Extensions *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NeighbourInfoRequestItem_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NeighbourInfoRequestItem; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include <osmocom/hnbap/IE-Extensions.h> - -#endif /* _NeighbourInfoRequestItem_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/NeighbourInfoRequestList.h b/include/osmocom/hnbap/NeighbourInfoRequestList.h deleted file mode 100644 index 4944272..0000000 --- a/include/osmocom/hnbap/NeighbourInfoRequestList.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _NeighbourInfoRequestList_H_ -#define _NeighbourInfoRequestList_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <asn_SEQUENCE_OF.h> -#include <constr_SEQUENCE_OF.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct NeighbourInfoRequestItem; - -/* NeighbourInfoRequestList */ -typedef struct NeighbourInfoRequestList { - A_SEQUENCE_OF(struct NeighbourInfoRequestItem) list; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} NeighbourInfoRequestList_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_NeighbourInfoRequestList; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include <osmocom/hnbap/NeighbourInfoRequestItem.h> - -#endif /* _NeighbourInfoRequestList_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/PLMNidentity.h b/include/osmocom/hnbap/PLMNidentity.h deleted file mode 100644 index 3abe97a..0000000 --- a/include/osmocom/hnbap/PLMNidentity.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _PLMNidentity_H_ -#define _PLMNidentity_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <OCTET_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* PLMNidentity */ -typedef OCTET_STRING_t PLMNidentity_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_PLMNidentity; -asn_struct_free_f PLMNidentity_free; -asn_struct_print_f PLMNidentity_print; -asn_constr_check_f PLMNidentity_constraint; -ber_type_decoder_f PLMNidentity_decode_ber; -der_type_encoder_f PLMNidentity_encode_der; -xer_type_decoder_f PLMNidentity_decode_xer; -xer_type_encoder_f PLMNidentity_encode_xer; -per_type_decoder_f PLMNidentity_decode_uper; -per_type_encoder_f PLMNidentity_encode_uper; -per_type_decoder_f PLMNidentity_decode_aper; -per_type_encoder_f PLMNidentity_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _PLMNidentity_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/PSC.h b/include/osmocom/hnbap/PSC.h deleted file mode 100644 index 4fbd4be..0000000 --- a/include/osmocom/hnbap/PSC.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _PSC_H_ -#define _PSC_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <BIT_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* PSC */ -typedef BIT_STRING_t PSC_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_PSC; -asn_struct_free_f PSC_free; -asn_struct_print_f PSC_print; -asn_constr_check_f PSC_constraint; -ber_type_decoder_f PSC_decode_ber; -der_type_encoder_f PSC_encode_der; -xer_type_decoder_f PSC_decode_xer; -xer_type_encoder_f PSC_encode_xer; -per_type_decoder_f PSC_decode_uper; -per_type_encoder_f PSC_encode_uper; -per_type_decoder_f PSC_decode_aper; -per_type_encoder_f PSC_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _PSC_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/PTMSI.h b/include/osmocom/hnbap/PTMSI.h deleted file mode 100644 index 6853624..0000000 --- a/include/osmocom/hnbap/PTMSI.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _PTMSI_H_ -#define _PTMSI_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <BIT_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* PTMSI */ -typedef BIT_STRING_t PTMSI_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_PTMSI; -asn_struct_free_f PTMSI_free; -asn_struct_print_f PTMSI_print; -asn_constr_check_f PTMSI_constraint; -ber_type_decoder_f PTMSI_decode_ber; -der_type_encoder_f PTMSI_encode_der; -xer_type_decoder_f PTMSI_decode_xer; -xer_type_encoder_f PTMSI_encode_xer; -per_type_decoder_f PTMSI_decode_uper; -per_type_encoder_f PTMSI_encode_uper; -per_type_decoder_f PTMSI_decode_aper; -per_type_encoder_f PTMSI_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _PTMSI_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/Presence.h b/include/osmocom/hnbap/Presence.h deleted file mode 100644 index a3773aa..0000000 --- a/include/osmocom/hnbap/Presence.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-CommonDataTypes" - * found in "../../asn1/hnbap/HNBAP-CommonDataTypes.asn" - * `asn1c -gen-PER` - */ - -#ifndef _Presence_H_ -#define _Presence_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeEnumerated.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum Presence { - Presence_optional = 0, - Presence_conditional = 1, - Presence_mandatory = 2 -} e_Presence; - -/* Presence */ -typedef long Presence_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Presence; -asn_struct_free_f Presence_free; -asn_struct_print_f Presence_print; -asn_constr_check_f Presence_constraint; -ber_type_decoder_f Presence_decode_ber; -der_type_encoder_f Presence_encode_der; -xer_type_decoder_f Presence_decode_xer; -xer_type_encoder_f Presence_encode_xer; -per_type_decoder_f Presence_decode_uper; -per_type_encoder_f Presence_encode_uper; -per_type_decoder_f Presence_decode_aper; -per_type_encoder_f Presence_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _Presence_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/ProcedureCode.h b/include/osmocom/hnbap/ProcedureCode.h deleted file mode 100644 index a48f453..0000000 --- a/include/osmocom/hnbap/ProcedureCode.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-CommonDataTypes" - * found in "../../asn1/hnbap/HNBAP-CommonDataTypes.asn" - * `asn1c -gen-PER` - */ - -#ifndef _ProcedureCode_H_ -#define _ProcedureCode_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeInteger.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum ProcedureCode { - ProcedureCode_id_HNBRegister = 1, - ProcedureCode_id_HNBDe_Register = 2, - ProcedureCode_id_UERegister = 3, - ProcedureCode_id_UEDe_Register = 4, - ProcedureCode_id_ErrorIndication = 5, - ProcedureCode_id_privateMessage = 6, - ProcedureCode_id_CSGMembershipUpdate = 7, - ProcedureCode_id_TNLUpdate = 9, - ProcedureCode_id_HNBConfigTransfer = 10, - ProcedureCode_id_RelocationComplete = 11, - ProcedureCode_id_U_RNTIQuery = 14 -} e_ProcedureCode; - -/* ProcedureCode */ -typedef long ProcedureCode_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_ProcedureCode; -asn_struct_free_f ProcedureCode_free; -asn_struct_print_f ProcedureCode_print; -asn_constr_check_f ProcedureCode_constraint; -ber_type_decoder_f ProcedureCode_decode_ber; -der_type_encoder_f ProcedureCode_encode_der; -xer_type_decoder_f ProcedureCode_decode_xer; -xer_type_encoder_f ProcedureCode_encode_xer; -per_type_decoder_f ProcedureCode_decode_uper; -per_type_encoder_f ProcedureCode_encode_uper; -per_type_decoder_f ProcedureCode_decode_aper; -per_type_encoder_f ProcedureCode_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _ProcedureCode_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/ProtocolIE-ID.h b/include/osmocom/hnbap/ProtocolIE-ID.h deleted file mode 100644 index 3252e97..0000000 --- a/include/osmocom/hnbap/ProtocolIE-ID.h +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-CommonDataTypes" - * found in "../../asn1/hnbap/HNBAP-CommonDataTypes.asn" - * `asn1c -gen-PER` - */ - -#ifndef _ProtocolIE_ID_H_ -#define _ProtocolIE_ID_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeInteger.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum ProtocolIE_ID { - ProtocolIE_ID_id_Cause = 1, - ProtocolIE_ID_id_CriticalityDiagnostics = 2, - ProtocolIE_ID_id_HNB_Identity = 3, - ProtocolIE_ID_id_Context_ID = 4, - ProtocolIE_ID_id_UE_Identity = 5, - ProtocolIE_ID_id_LAC = 6, - ProtocolIE_ID_id_RAC = 7, - ProtocolIE_ID_id_HNB_Location_Information = 8, - ProtocolIE_ID_id_PLMNidentity = 9, - ProtocolIE_ID_id_SAC = 10, - ProtocolIE_ID_id_CellIdentity = 11, - ProtocolIE_ID_id_Registration_Cause = 12, - ProtocolIE_ID_id_UE_Capabilities = 13, - ProtocolIE_ID_id_RNC_ID = 14, - ProtocolIE_ID_id_CSG_ID = 15, - ProtocolIE_ID_id_BackoffTimer = 16, - ProtocolIE_ID_id_HNB_Internet_Information = 17, - ProtocolIE_ID_id_HNB_Cell_Access_Mode = 18, - ProtocolIE_ID_id_MuxPortNumber = 19, - ProtocolIE_ID_id_Service_Area_For_Broadcast = 20, - ProtocolIE_ID_id_CSGMembershipStatus = 21, - ProtocolIE_ID_id_RABList = 22, - ProtocolIE_ID_id_HNBConfigInfo = 23, - ProtocolIE_ID_id_AccessResult = 25, - ProtocolIE_ID_id_Update_cause = 26, - ProtocolIE_ID_id_NeighbourInfoList = 27, - ProtocolIE_ID_id_NeighbourInfoRequestList = 28, - ProtocolIE_ID_id_Iurh_Signalling_TNL_Address = 29, - ProtocolIE_ID_id_PSC = 30, - ProtocolIE_ID_id_HNB_Cell_Identifier = 31, - ProtocolIE_ID_id_Tunnel_Information = 41, - ProtocolIE_ID_id_CELL_FACHMobilitySupport = 42, - ProtocolIE_ID_id_S_RNTIPrefix = 43, - ProtocolIE_ID_id_URAIdentity = 44, - ProtocolIE_ID_id_NeighbourIdentity = 45, - ProtocolIE_ID_id_HNBCapacity = 46, - ProtocolIE_ID_id_NeighbourCellIdentityList = 47, - ProtocolIE_ID_id_AdditionalNeighbourInfoList = 48, - ProtocolIE_ID_id_U_RNTI = 49, - ProtocolIE_ID_id_UnknownU_RNTIIndication = 50, - ProtocolIE_ID_id_HNB_GWResponse = 51, - ProtocolIE_ID_id_URAIdentityList = 52 -} e_ProtocolIE_ID; - -/* ProtocolIE-ID */ -typedef long ProtocolIE_ID_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_ProtocolIE_ID; -asn_struct_free_f ProtocolIE_ID_free; -asn_struct_print_f ProtocolIE_ID_print; -asn_constr_check_f ProtocolIE_ID_constraint; -ber_type_decoder_f ProtocolIE_ID_decode_ber; -der_type_encoder_f ProtocolIE_ID_encode_der; -xer_type_decoder_f ProtocolIE_ID_decode_xer; -xer_type_encoder_f ProtocolIE_ID_encode_xer; -per_type_decoder_f ProtocolIE_ID_decode_uper; -per_type_encoder_f ProtocolIE_ID_encode_uper; -per_type_decoder_f ProtocolIE_ID_decode_aper; -per_type_encoder_f ProtocolIE_ID_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _ProtocolIE_ID_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/RAB-ID.h b/include/osmocom/hnbap/RAB-ID.h deleted file mode 100644 index 45cf69e..0000000 --- a/include/osmocom/hnbap/RAB-ID.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _RAB_ID_H_ -#define _RAB_ID_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <BIT_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* RAB-ID */ -typedef BIT_STRING_t RAB_ID_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_RAB_ID; -asn_struct_free_f RAB_ID_free; -asn_struct_print_f RAB_ID_print; -asn_constr_check_f RAB_ID_constraint; -ber_type_decoder_f RAB_ID_decode_ber; -der_type_encoder_f RAB_ID_encode_der; -xer_type_decoder_f RAB_ID_decode_xer; -xer_type_encoder_f RAB_ID_encode_xer; -per_type_decoder_f RAB_ID_decode_uper; -per_type_encoder_f RAB_ID_encode_uper; -per_type_decoder_f RAB_ID_decode_aper; -per_type_encoder_f RAB_ID_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _RAB_ID_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/RABListItem.h b/include/osmocom/hnbap/RABListItem.h deleted file mode 100644 index 3d5a9e9..0000000 --- a/include/osmocom/hnbap/RABListItem.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _RABListItem_H_ -#define _RABListItem_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/RAB-ID.h> -#include <osmocom/hnbap/TransportInfo.h> -#include <osmocom/hnbap/CN-DomainIndicator.h> -#include <constr_SEQUENCE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct IE_Extensions; - -/* RABListItem */ -typedef struct RABListItem { - RAB_ID_t rAB_ID; - TransportInfo_t old_transport_Info; - TransportInfo_t new_transport_Info; - CN_DomainIndicator_t cn_domain_indicator; - struct IE_Extensions *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} RABListItem_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_RABListItem; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include <osmocom/hnbap/IE-Extensions.h> - -#endif /* _RABListItem_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/RAC.h b/include/osmocom/hnbap/RAC.h deleted file mode 100644 index bf61f44..0000000 --- a/include/osmocom/hnbap/RAC.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _RAC_H_ -#define _RAC_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <OCTET_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* RAC */ -typedef OCTET_STRING_t RAC_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_RAC; -asn_struct_free_f RAC_free; -asn_struct_print_f RAC_print; -asn_constr_check_f RAC_constraint; -ber_type_decoder_f RAC_decode_ber; -der_type_encoder_f RAC_encode_der; -xer_type_decoder_f RAC_decode_xer; -xer_type_encoder_f RAC_encode_xer; -per_type_decoder_f RAC_decode_uper; -per_type_encoder_f RAC_encode_uper; -per_type_decoder_f RAC_decode_aper; -per_type_encoder_f RAC_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _RAC_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/RNC-ID.h b/include/osmocom/hnbap/RNC-ID.h deleted file mode 100644 index c42f984..0000000 --- a/include/osmocom/hnbap/RNC-ID.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _RNC_ID_H_ -#define _RNC_ID_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeInteger.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* RNC-ID */ -typedef long RNC_ID_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_RNC_ID; -asn_struct_free_f RNC_ID_free; -asn_struct_print_f RNC_ID_print; -asn_constr_check_f RNC_ID_constraint; -ber_type_decoder_f RNC_ID_decode_ber; -der_type_encoder_f RNC_ID_encode_der; -xer_type_decoder_f RNC_ID_decode_xer; -xer_type_encoder_f RNC_ID_encode_xer; -per_type_decoder_f RNC_ID_decode_uper; -per_type_encoder_f RNC_ID_encode_uper; -per_type_decoder_f RNC_ID_decode_aper; -per_type_encoder_f RNC_ID_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _RNC_ID_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/Registration-Cause.h b/include/osmocom/hnbap/Registration-Cause.h deleted file mode 100644 index c137068..0000000 --- a/include/osmocom/hnbap/Registration-Cause.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _Registration_Cause_H_ -#define _Registration_Cause_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeEnumerated.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum Registration_Cause { - Registration_Cause_emergency_call = 0, - Registration_Cause_normal = 1, - /* - * Enumeration is extensible - */ - Registration_Cause_ue_relocation = 2 -} e_Registration_Cause; - -/* Registration-Cause */ -typedef long Registration_Cause_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Registration_Cause; -asn_struct_free_f Registration_Cause_free; -asn_struct_print_f Registration_Cause_print; -asn_constr_check_f Registration_Cause_constraint; -ber_type_decoder_f Registration_Cause_decode_ber; -der_type_encoder_f Registration_Cause_encode_der; -xer_type_decoder_f Registration_Cause_decode_xer; -xer_type_encoder_f Registration_Cause_encode_xer; -per_type_decoder_f Registration_Cause_decode_uper; -per_type_encoder_f Registration_Cause_encode_uper; -per_type_decoder_f Registration_Cause_decode_aper; -per_type_encoder_f Registration_Cause_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _Registration_Cause_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/S-RNTIPrefix.h b/include/osmocom/hnbap/S-RNTIPrefix.h deleted file mode 100644 index 072e305..0000000 --- a/include/osmocom/hnbap/S-RNTIPrefix.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _S_RNTIPrefix_H_ -#define _S_RNTIPrefix_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <BIT_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* S-RNTIPrefix */ -typedef BIT_STRING_t S_RNTIPrefix_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_S_RNTIPrefix; -asn_struct_free_f S_RNTIPrefix_free; -asn_struct_print_f S_RNTIPrefix_print; -asn_constr_check_f S_RNTIPrefix_constraint; -ber_type_decoder_f S_RNTIPrefix_decode_ber; -der_type_encoder_f S_RNTIPrefix_encode_der; -xer_type_decoder_f S_RNTIPrefix_decode_xer; -xer_type_encoder_f S_RNTIPrefix_encode_xer; -per_type_decoder_f S_RNTIPrefix_decode_uper; -per_type_encoder_f S_RNTIPrefix_encode_uper; -per_type_decoder_f S_RNTIPrefix_decode_aper; -per_type_encoder_f S_RNTIPrefix_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _S_RNTIPrefix_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/SAC.h b/include/osmocom/hnbap/SAC.h deleted file mode 100644 index 5362968..0000000 --- a/include/osmocom/hnbap/SAC.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _SAC_H_ -#define _SAC_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <OCTET_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* SAC */ -typedef OCTET_STRING_t SAC_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_SAC; -asn_struct_free_f SAC_free; -asn_struct_print_f SAC_print; -asn_constr_check_f SAC_constraint; -ber_type_decoder_f SAC_decode_ber; -der_type_encoder_f SAC_encode_der; -xer_type_decoder_f SAC_decode_xer; -xer_type_encoder_f SAC_encode_xer; -per_type_decoder_f SAC_decode_uper; -per_type_encoder_f SAC_encode_uper; -per_type_decoder_f SAC_decode_aper; -per_type_encoder_f SAC_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _SAC_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/TMSIDS41.h b/include/osmocom/hnbap/TMSIDS41.h deleted file mode 100644 index 1cd21a4..0000000 --- a/include/osmocom/hnbap/TMSIDS41.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _TMSIDS41_H_ -#define _TMSIDS41_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <OCTET_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* TMSIDS41 */ -typedef OCTET_STRING_t TMSIDS41_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_TMSIDS41; -asn_struct_free_f TMSIDS41_free; -asn_struct_print_f TMSIDS41_print; -asn_constr_check_f TMSIDS41_constraint; -ber_type_decoder_f TMSIDS41_decode_ber; -der_type_encoder_f TMSIDS41_encode_der; -xer_type_decoder_f TMSIDS41_decode_xer; -xer_type_encoder_f TMSIDS41_encode_xer; -per_type_decoder_f TMSIDS41_decode_uper; -per_type_encoder_f TMSIDS41_encode_uper; -per_type_decoder_f TMSIDS41_decode_aper; -per_type_encoder_f TMSIDS41_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _TMSIDS41_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/TransportInfo.h b/include/osmocom/hnbap/TransportInfo.h deleted file mode 100644 index dcd6420..0000000 --- a/include/osmocom/hnbap/TransportInfo.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _TransportInfo_H_ -#define _TransportInfo_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/TransportLayerAddress.h> -#include <osmocom/hnbap/GTP-TEI.h> -#include <osmocom/hnbap/BindingID.h> -#include <constr_CHOICE.h> -#include <constr_SEQUENCE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum transportAssociation_PR { - transportAssociation_PR_NOTHING, /* No components present */ - transportAssociation_PR_gtp_TEI, - transportAssociation_PR_bindingID, - /* Extensions may appear below */ - -} transportAssociation_PR; - -/* Forward declarations */ -struct IE_Extensions; - -/* TransportInfo */ -typedef struct TransportInfo { - TransportLayerAddress_t transportLayerAddress; - struct transportAssociation { - transportAssociation_PR present; - union TransportInfo__transportAssociation_u { - GTP_TEI_t gtp_TEI; - BindingID_t bindingID; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } transportAssociation; - struct IE_Extensions *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} TransportInfo_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_TransportInfo; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include <osmocom/hnbap/IE-Extensions.h> - -#endif /* _TransportInfo_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/TransportLayerAddress.h b/include/osmocom/hnbap/TransportLayerAddress.h deleted file mode 100644 index d320738..0000000 --- a/include/osmocom/hnbap/TransportLayerAddress.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _TransportLayerAddress_H_ -#define _TransportLayerAddress_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <BIT_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* TransportLayerAddress */ -typedef BIT_STRING_t TransportLayerAddress_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_TransportLayerAddress; -asn_struct_free_f TransportLayerAddress_free; -asn_struct_print_f TransportLayerAddress_print; -asn_constr_check_f TransportLayerAddress_constraint; -ber_type_decoder_f TransportLayerAddress_decode_ber; -der_type_encoder_f TransportLayerAddress_encode_der; -xer_type_decoder_f TransportLayerAddress_decode_xer; -xer_type_encoder_f TransportLayerAddress_encode_xer; -per_type_decoder_f TransportLayerAddress_decode_uper; -per_type_encoder_f TransportLayerAddress_encode_uper; -per_type_decoder_f TransportLayerAddress_decode_aper; -per_type_encoder_f TransportLayerAddress_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _TransportLayerAddress_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/TriggeringMessage.h b/include/osmocom/hnbap/TriggeringMessage.h deleted file mode 100644 index 3854505..0000000 --- a/include/osmocom/hnbap/TriggeringMessage.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-CommonDataTypes" - * found in "../../asn1/hnbap/HNBAP-CommonDataTypes.asn" - * `asn1c -gen-PER` - */ - -#ifndef _TriggeringMessage_H_ -#define _TriggeringMessage_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeEnumerated.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum TriggeringMessage { - TriggeringMessage_initiating_message = 0, - TriggeringMessage_successful_outcome = 1, - TriggeringMessage_unsuccessful_outcome = 2 -} e_TriggeringMessage; - -/* TriggeringMessage */ -typedef long TriggeringMessage_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_TriggeringMessage; -asn_struct_free_f TriggeringMessage_free; -asn_struct_print_f TriggeringMessage_print; -asn_constr_check_f TriggeringMessage_constraint; -ber_type_decoder_f TriggeringMessage_decode_ber; -der_type_encoder_f TriggeringMessage_encode_der; -xer_type_decoder_f TriggeringMessage_decode_xer; -xer_type_encoder_f TriggeringMessage_encode_xer; -per_type_decoder_f TriggeringMessage_decode_uper; -per_type_encoder_f TriggeringMessage_encode_uper; -per_type_decoder_f TriggeringMessage_decode_aper; -per_type_encoder_f TriggeringMessage_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _TriggeringMessage_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/Tunnel-Information.h b/include/osmocom/hnbap/Tunnel-Information.h deleted file mode 100644 index e01de71..0000000 --- a/include/osmocom/hnbap/Tunnel-Information.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _Tunnel_Information_H_ -#define _Tunnel_Information_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/IP-Address.h> -#include <osmocom/hnbap/UDP-Port-Number.h> -#include <constr_SEQUENCE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct IE_Extensions; - -/* Tunnel-Information */ -typedef struct Tunnel_Information { - IP_Address_t iP_Address; - UDP_Port_Number_t *uDP_Port_Number /* OPTIONAL */; - struct IE_Extensions *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} Tunnel_Information_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Tunnel_Information; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include <osmocom/hnbap/IE-Extensions.h> - -#endif /* _Tunnel_Information_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/TypeOfError.h b/include/osmocom/hnbap/TypeOfError.h deleted file mode 100644 index 7e0fcf0..0000000 --- a/include/osmocom/hnbap/TypeOfError.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _TypeOfError_H_ -#define _TypeOfError_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeEnumerated.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum TypeOfError { - TypeOfError_not_understood = 0, - TypeOfError_missing = 1 - /* - * Enumeration is extensible - */ -} e_TypeOfError; - -/* TypeOfError */ -typedef long TypeOfError_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_TypeOfError; -asn_struct_free_f TypeOfError_free; -asn_struct_print_f TypeOfError_print; -asn_constr_check_f TypeOfError_constraint; -ber_type_decoder_f TypeOfError_decode_ber; -der_type_encoder_f TypeOfError_encode_der; -xer_type_decoder_f TypeOfError_decode_xer; -xer_type_encoder_f TypeOfError_encode_xer; -per_type_decoder_f TypeOfError_decode_uper; -per_type_encoder_f TypeOfError_encode_uper; -per_type_decoder_f TypeOfError_decode_aper; -per_type_encoder_f TypeOfError_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _TypeOfError_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/U-RNTI.h b/include/osmocom/hnbap/U-RNTI.h deleted file mode 100644 index 81ab168..0000000 --- a/include/osmocom/hnbap/U-RNTI.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _U_RNTI_H_ -#define _U_RNTI_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <BIT_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* U-RNTI */ -typedef BIT_STRING_t U_RNTI_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_U_RNTI; -asn_struct_free_f U_RNTI_free; -asn_struct_print_f U_RNTI_print; -asn_constr_check_f U_RNTI_constraint; -ber_type_decoder_f U_RNTI_decode_ber; -der_type_encoder_f U_RNTI_encode_der; -xer_type_decoder_f U_RNTI_decode_xer; -xer_type_encoder_f U_RNTI_encode_xer; -per_type_decoder_f U_RNTI_decode_uper; -per_type_encoder_f U_RNTI_encode_uper; -per_type_decoder_f U_RNTI_decode_aper; -per_type_encoder_f U_RNTI_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _U_RNTI_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/UDP-Port-Number.h b/include/osmocom/hnbap/UDP-Port-Number.h deleted file mode 100644 index 0f350cb..0000000 --- a/include/osmocom/hnbap/UDP-Port-Number.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _UDP_Port_Number_H_ -#define _UDP_Port_Number_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <OCTET_STRING.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* UDP-Port-Number */ -typedef OCTET_STRING_t UDP_Port_Number_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_UDP_Port_Number; -asn_struct_free_f UDP_Port_Number_free; -asn_struct_print_f UDP_Port_Number_print; -asn_constr_check_f UDP_Port_Number_constraint; -ber_type_decoder_f UDP_Port_Number_decode_ber; -der_type_encoder_f UDP_Port_Number_encode_der; -xer_type_decoder_f UDP_Port_Number_decode_xer; -xer_type_encoder_f UDP_Port_Number_encode_xer; -per_type_decoder_f UDP_Port_Number_decode_uper; -per_type_encoder_f UDP_Port_Number_encode_uper; -per_type_decoder_f UDP_Port_Number_decode_aper; -per_type_encoder_f UDP_Port_Number_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _UDP_Port_Number_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/UE-Capabilities.h b/include/osmocom/hnbap/UE-Capabilities.h deleted file mode 100644 index 1274bbf..0000000 --- a/include/osmocom/hnbap/UE-Capabilities.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _UE_Capabilities_H_ -#define _UE_Capabilities_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/Access-stratum-release-indicator.h> -#include <osmocom/hnbap/CSG-Capability.h> -#include <constr_SEQUENCE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct IE_Extensions; - -/* UE-Capabilities */ -typedef struct UE_Capabilities { - Access_stratum_release_indicator_t access_stratum_release_indicator; - CSG_Capability_t csg_capability; - struct IE_Extensions *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} UE_Capabilities_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_UE_Capabilities; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include <osmocom/hnbap/IE-Extensions.h> - -#endif /* _UE_Capabilities_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/UE-Identity.h b/include/osmocom/hnbap/UE-Identity.h deleted file mode 100644 index f0f012a..0000000 --- a/include/osmocom/hnbap/UE-Identity.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _UE_Identity_H_ -#define _UE_Identity_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/IMSI.h> -#include <osmocom/hnbap/TMSILAI.h> -#include <osmocom/hnbap/PTMSIRAI.h> -#include <osmocom/hnbap/IMEI.h> -#include <osmocom/hnbap/ESN.h> -#include <osmocom/hnbap/IMSIDS41.h> -#include <osmocom/hnbap/IMSIESN.h> -#include <osmocom/hnbap/TMSIDS41.h> -#include <constr_CHOICE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum UE_Identity_PR { - UE_Identity_PR_NOTHING, /* No components present */ - UE_Identity_PR_iMSI, - UE_Identity_PR_tMSILAI, - UE_Identity_PR_pTMSIRAI, - UE_Identity_PR_iMEI, - UE_Identity_PR_eSN, - UE_Identity_PR_iMSIDS41, - UE_Identity_PR_iMSIESN, - UE_Identity_PR_tMSIDS41, - /* Extensions may appear below */ - -} UE_Identity_PR; - -/* UE-Identity */ -typedef struct UE_Identity { - UE_Identity_PR present; - union UE_Identity_u { - IMSI_t iMSI; - TMSILAI_t tMSILAI; - PTMSIRAI_t pTMSIRAI; - IMEI_t iMEI; - ESN_t eSN; - IMSIDS41_t iMSIDS41; - IMSIESN_t iMSIESN; - TMSIDS41_t tMSIDS41; - /* - * This type is extensible, - * possible extensions are below. - */ - } choice; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} UE_Identity_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_UE_Identity; - -#ifdef __cplusplus -} -#endif - -#endif /* _UE_Identity_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/URAIdentity.h b/include/osmocom/hnbap/URAIdentity.h deleted file mode 100644 index ec2c4bc..0000000 --- a/include/osmocom/hnbap/URAIdentity.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _URAIdentity_H_ -#define _URAIdentity_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeInteger.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* URAIdentity */ -typedef long URAIdentity_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_URAIdentity; -asn_struct_free_f URAIdentity_free; -asn_struct_print_f URAIdentity_print; -asn_constr_check_f URAIdentity_constraint; -ber_type_decoder_f URAIdentity_decode_ber; -der_type_encoder_f URAIdentity_encode_der; -xer_type_decoder_f URAIdentity_decode_xer; -xer_type_encoder_f URAIdentity_encode_xer; -per_type_decoder_f URAIdentity_decode_uper; -per_type_encoder_f URAIdentity_encode_uper; -per_type_decoder_f URAIdentity_decode_aper; -per_type_encoder_f URAIdentity_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _URAIdentity_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/UTRANCellID.h b/include/osmocom/hnbap/UTRANCellID.h deleted file mode 100644 index 39c5b84..0000000 --- a/include/osmocom/hnbap/UTRANCellID.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _UTRANCellID_H_ -#define _UTRANCellID_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/LAC.h> -#include <osmocom/hnbap/RAC.h> -#include <osmocom/hnbap/PLMNidentity.h> -#include <osmocom/hnbap/CellIdentity.h> -#include <constr_SEQUENCE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Forward declarations */ -struct IE_Extensions; - -/* UTRANCellID */ -typedef struct UTRANCellID { - LAC_t lAC; - RAC_t rAC; - PLMNidentity_t pLMNidentity; - CellIdentity_t uTRANcellID; - struct IE_Extensions *iE_Extensions /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} UTRANCellID_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_UTRANCellID; - -#ifdef __cplusplus -} -#endif - -/* Referred external types */ -#include <osmocom/hnbap/IE-Extensions.h> - -#endif /* _UTRANCellID_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/UnknownU-RNTIIndication.h b/include/osmocom/hnbap/UnknownU-RNTIIndication.h deleted file mode 100644 index d0f2a9a..0000000 --- a/include/osmocom/hnbap/UnknownU-RNTIIndication.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _UnknownU_RNTIIndication_H_ -#define _UnknownU_RNTIIndication_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeEnumerated.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum UnknownU_RNTIIndication { - UnknownU_RNTIIndication_unknown = 0 - /* - * Enumeration is extensible - */ -} e_UnknownU_RNTIIndication; - -/* UnknownU-RNTIIndication */ -typedef long UnknownU_RNTIIndication_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_UnknownU_RNTIIndication; -asn_struct_free_f UnknownU_RNTIIndication_free; -asn_struct_print_f UnknownU_RNTIIndication_print; -asn_constr_check_f UnknownU_RNTIIndication_constraint; -ber_type_decoder_f UnknownU_RNTIIndication_decode_ber; -der_type_encoder_f UnknownU_RNTIIndication_encode_der; -xer_type_decoder_f UnknownU_RNTIIndication_decode_xer; -xer_type_encoder_f UnknownU_RNTIIndication_encode_xer; -per_type_decoder_f UnknownU_RNTIIndication_decode_uper; -per_type_encoder_f UnknownU_RNTIIndication_encode_uper; -per_type_decoder_f UnknownU_RNTIIndication_decode_aper; -per_type_encoder_f UnknownU_RNTIIndication_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _UnknownU_RNTIIndication_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/UnsuccessfulOutcome.h b/include/osmocom/hnbap/UnsuccessfulOutcome.h deleted file mode 100644 index 5fd9bd0..0000000 --- a/include/osmocom/hnbap/UnsuccessfulOutcome.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-PDU" - * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` - */ - -#ifndef _UnsuccessfulOutcome_H_ -#define _UnsuccessfulOutcome_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <osmocom/hnbap/ProcedureCode.h> -#include <osmocom/hnbap/Criticality.h> -#include <ANY.h> -#include <constr_SEQUENCE.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* UnsuccessfulOutcome */ -typedef struct UnsuccessfulOutcome { - ProcedureCode_t procedureCode; - Criticality_t criticality; - ANY_t value; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; -} UnsuccessfulOutcome_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_UnsuccessfulOutcome; - -#ifdef __cplusplus -} -#endif - -#endif /* _UnsuccessfulOutcome_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/Update-cause.h b/include/osmocom/hnbap/Update-cause.h deleted file mode 100644 index cff96e1..0000000 --- a/include/osmocom/hnbap/Update-cause.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#ifndef _Update_cause_H_ -#define _Update_cause_H_ - - -#include <asn_application.h> - -/* Including external dependencies */ -#include <NativeEnumerated.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* Dependencies */ -typedef enum Update_cause { - Update_cause_relocation_preparation = 0 - /* - * Enumeration is extensible - */ -} e_Update_cause; - -/* Update-cause */ -typedef long Update_cause_t; - -/* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Update_cause; -asn_struct_free_f Update_cause_free; -asn_struct_print_f Update_cause_print; -asn_constr_check_f Update_cause_constraint; -ber_type_decoder_f Update_cause_decode_ber; -der_type_encoder_f Update_cause_encode_der; -xer_type_decoder_f Update_cause_decode_xer; -xer_type_encoder_f Update_cause_encode_xer; -per_type_decoder_f Update_cause_decode_uper; -per_type_encoder_f Update_cause_encode_uper; -per_type_decoder_f Update_cause_decode_aper; -per_type_encoder_f Update_cause_encode_aper; - -#ifdef __cplusplus -} -#endif - -#endif /* _Update_cause_H_ */ -#include <asn_internal.h> diff --git a/include/osmocom/hnbap/hnbap_common.h b/include/osmocom/hnbap/hnbap_common.h index 25cb2f0..75981d9 100644 --- a/include/osmocom/hnbap/hnbap_common.h +++ b/include/osmocom/hnbap/hnbap_common.h @@ -1,130 +1,122 @@ #pragma once -#include "asn_application.h" +#include <asn1c/asn_application.h> -#include <ANY.h> -#include <BIT_STRING.h> -#include <INTEGER.h> -#include <NativeEnumerated.h> -#include <NativeInteger.h> -#include <OBJECT_IDENTIFIER.h> -#include <OCTET_STRING.h> - -#include <osmocom/hnbap/Access-stratum-release-indicator.h> -#include <osmocom/hnbap/AccessResult.h> -#include <osmocom/hnbap/AdditionalNeighbourInfoList.h> -#include <osmocom/hnbap/AltitudeAndDirection.h> -#include <osmocom/hnbap/BackoffTimer.h> -#include <osmocom/hnbap/BindingID.h> -#include <osmocom/hnbap/CELL-FACHMobilitySupport.h> -#include <osmocom/hnbap/CGI.h> -#include <osmocom/hnbap/CI.h> -#include <osmocom/hnbap/CN-DomainIndicator.h> -#include <osmocom/hnbap/CSG-Capability.h> -#include <osmocom/hnbap/CSG-ID.h> -#include <osmocom/hnbap/CSGMembershipStatus.h> -#include <osmocom/hnbap/CSGMembershipUpdate.h> -#include <osmocom/hnbap/Cause.h> -#include <osmocom/hnbap/CauseMisc.h> -#include <osmocom/hnbap/CauseProtocol.h> -#include <osmocom/hnbap/CauseRadioNetwork.h> -#include <osmocom/hnbap/CauseTransport.h> -#include <osmocom/hnbap/CellIdentity.h> -#include <osmocom/hnbap/ConfigurationInformation.h> -#include <osmocom/hnbap/Context-ID.h> -#include <osmocom/hnbap/Criticality.h> -#include <osmocom/hnbap/CriticalityDiagnostics-IE-List.h> -#include <osmocom/hnbap/CriticalityDiagnostics.h> -#include <osmocom/hnbap/ESN.h> -#include <osmocom/hnbap/ErrorIndication.h> -#include <osmocom/hnbap/GTP-TEI.h> -#include <osmocom/hnbap/GeographicalCoordinates.h> -#include <osmocom/hnbap/GeographicalLocation.h> -#include <osmocom/hnbap/HNB-Cell-Access-Mode.h> -#include <osmocom/hnbap/HNB-Cell-Identifier.h> -#include <osmocom/hnbap/HNB-GWResponse.h> -#include <osmocom/hnbap/HNB-Identity-Info.h> -#include <osmocom/hnbap/HNB-Identity.h> -#include <osmocom/hnbap/HNB-Location-Information.h> -#include <osmocom/hnbap/HNB-RNL-Identity.h> -#include <osmocom/hnbap/HNBAP-PDU.h> -#include <osmocom/hnbap/HNBCapacity.h> -#include <osmocom/hnbap/HNBConfigInfo.h> -#include <osmocom/hnbap/HNBConfigTransferRequest.h> -#include <osmocom/hnbap/HNBConfigTransferResponse.h> -#include <osmocom/hnbap/HNBConfigurationInformationMissing.h> -#include <osmocom/hnbap/HNBConfigurationInformationProvided.h> -#include <osmocom/hnbap/HNBDe-Register.h> -#include <osmocom/hnbap/HNBRegisterAccept.h> -#include <osmocom/hnbap/HNBRegisterReject.h> -#include <osmocom/hnbap/HNBRegisterRequest.h> -#include <osmocom/hnbap/IE-Extensions.h> -#include <osmocom/hnbap/IE.h> -#include <osmocom/hnbap/IMEI.h> -#include <osmocom/hnbap/IMSI.h> -#include <osmocom/hnbap/IMSIDS41.h> -#include <osmocom/hnbap/IMSIESN.h> -#include <osmocom/hnbap/IP-Address.h> -#include <osmocom/hnbap/InitiatingMessage.h> -#include <osmocom/hnbap/Ipv4Address.h> -#include <osmocom/hnbap/Ipv6Address.h> -#include <osmocom/hnbap/Iurh-Signalling-TNL-AddressList.h> -#include <osmocom/hnbap/LAC.h> -#include <osmocom/hnbap/LAI.h> -#include <osmocom/hnbap/MacroCellID.h> -#include <osmocom/hnbap/MacroCoverageInformation.h> -#include <osmocom/hnbap/MuxPortNumber.h> -#include <osmocom/hnbap/NeighbourCellIdentityList.h> -#include <osmocom/hnbap/NeighbourIdentity.h> -#include <osmocom/hnbap/NeighbourInfoList.h> -#include <osmocom/hnbap/NeighbourInfoRequestItem.h> -#include <osmocom/hnbap/NeighbourInfoRequestList.h> -#include <osmocom/hnbap/PLMNidentity.h> -#include <osmocom/hnbap/PSC.h> -#include <osmocom/hnbap/PTMSI.h> -#include <osmocom/hnbap/PTMSIRAI.h> -#include <osmocom/hnbap/Presence.h> -#include <osmocom/hnbap/PrivateIE-ID.h> -#include <osmocom/hnbap/PrivateMessage.h> -#include <osmocom/hnbap/ProcedureCode.h> -#include <osmocom/hnbap/ProtocolIE-ID.h> -#include <osmocom/hnbap/RAB-ID.h> -#include <osmocom/hnbap/RABList.h> -#include <osmocom/hnbap/RABListItem.h> -#include <osmocom/hnbap/RAC.h> -#include <osmocom/hnbap/RAI.h> -#include <osmocom/hnbap/RNC-ID.h> -#include <osmocom/hnbap/Registration-Cause.h> -#include <osmocom/hnbap/RelocationComplete.h> -#include <osmocom/hnbap/S-RNTIPrefix.h> -#include <osmocom/hnbap/SAC.h> -#include <osmocom/hnbap/SuccessfulOutcome.h> -#include <osmocom/hnbap/TMSIDS41.h> -#include <osmocom/hnbap/TMSILAI.h> -#include <osmocom/hnbap/TNLUpdateFailure.h> -#include <osmocom/hnbap/TNLUpdateRequest.h> -#include <osmocom/hnbap/TNLUpdateResponse.h> -#include <osmocom/hnbap/TransportInfo.h> -#include <osmocom/hnbap/TransportLayerAddress.h> -#include <osmocom/hnbap/TriggeringMessage.h> -#include <osmocom/hnbap/Tunnel-Information.h> -#include <osmocom/hnbap/TypeOfError.h> -#include <osmocom/hnbap/U-RNTI.h> -#include <osmocom/hnbap/U-RNTIQueryRequest.h> -#include <osmocom/hnbap/U-RNTIQueryResponse.h> -#include <osmocom/hnbap/UDP-Port-Number.h> -#include <osmocom/hnbap/UE-Capabilities.h> -#include <osmocom/hnbap/UE-Identity.h> -#include <osmocom/hnbap/UEDe-Register.h> -#include <osmocom/hnbap/UERegisterAccept.h> -#include <osmocom/hnbap/UERegisterReject.h> -#include <osmocom/hnbap/UERegisterRequest.h> -#include <osmocom/hnbap/URAIdentity.h> -#include <osmocom/hnbap/URAIdentityList.h> -#include <osmocom/hnbap/UTRANCellID.h> -#include <osmocom/hnbap/UnknownU-RNTIIndication.h> -#include <osmocom/hnbap/UnsuccessfulOutcome.h> -#include <osmocom/hnbap/Update-cause.h> +#include <osmocom/hnbap/HNBAP_Access-stratum-release-indicator.h> +#include <osmocom/hnbap/HNBAP_AccessResult.h> +#include <osmocom/hnbap/HNBAP_AdditionalNeighbourInfoList.h> +#include <osmocom/hnbap/HNBAP_AltitudeAndDirection.h> +#include <osmocom/hnbap/HNBAP_BackoffTimer.h> +#include <osmocom/hnbap/HNBAP_BindingID.h> +#include <osmocom/hnbap/HNBAP_CELL-FACHMobilitySupport.h> +#include <osmocom/hnbap/HNBAP_CGI.h> +#include <osmocom/hnbap/HNBAP_CI.h> +#include <osmocom/hnbap/HNBAP_CN-DomainIndicator.h> +#include <osmocom/hnbap/HNBAP_CSG-Capability.h> +#include <osmocom/hnbap/HNBAP_CSG-ID.h> +#include <osmocom/hnbap/HNBAP_CSGMembershipStatus.h> +#include <osmocom/hnbap/HNBAP_CSGMembershipUpdate.h> +#include <osmocom/hnbap/HNBAP_Cause.h> +#include <osmocom/hnbap/HNBAP_CauseMisc.h> +#include <osmocom/hnbap/HNBAP_CauseProtocol.h> +#include <osmocom/hnbap/HNBAP_CauseRadioNetwork.h> +#include <osmocom/hnbap/HNBAP_CauseTransport.h> +#include <osmocom/hnbap/HNBAP_CellIdentity.h> +#include <osmocom/hnbap/HNBAP_ConfigurationInformation.h> +#include <osmocom/hnbap/HNBAP_Context-ID.h> +#include <osmocom/hnbap/HNBAP_Criticality.h> +#include <osmocom/hnbap/HNBAP_CriticalityDiagnostics-IE-List.h> +#include <osmocom/hnbap/HNBAP_CriticalityDiagnostics.h> +#include <osmocom/hnbap/HNBAP_ESN.h> +#include <osmocom/hnbap/HNBAP_ErrorIndication.h> +#include <osmocom/hnbap/HNBAP_GTP-TEI.h> +#include <osmocom/hnbap/HNBAP_GeographicalCoordinates.h> +#include <osmocom/hnbap/HNBAP_GeographicalLocation.h> +#include <osmocom/hnbap/HNBAP_HNB-Cell-Access-Mode.h> +#include <osmocom/hnbap/HNBAP_HNB-Cell-Identifier.h> +#include <osmocom/hnbap/HNBAP_HNB-GWResponse.h> +#include <osmocom/hnbap/HNBAP_HNB-Identity-Info.h> +#include <osmocom/hnbap/HNBAP_HNB-Identity.h> +#include <osmocom/hnbap/HNBAP_HNB-Location-Information.h> +#include <osmocom/hnbap/HNBAP_HNB-RNL-Identity.h> +#include <osmocom/hnbap/HNBAP_HNBAP-PDU.h> +#include <osmocom/hnbap/HNBAP_HNBCapacity.h> +#include <osmocom/hnbap/HNBAP_HNBConfigInfo.h> +#include <osmocom/hnbap/HNBAP_HNBConfigTransferRequest.h> +#include <osmocom/hnbap/HNBAP_HNBConfigTransferResponse.h> +#include <osmocom/hnbap/HNBAP_HNBConfigurationInformationMissing.h> +#include <osmocom/hnbap/HNBAP_HNBConfigurationInformationProvided.h> +#include <osmocom/hnbap/HNBAP_HNBDe-Register.h> +#include <osmocom/hnbap/HNBAP_HNBRegisterAccept.h> +#include <osmocom/hnbap/HNBAP_HNBRegisterReject.h> +#include <osmocom/hnbap/HNBAP_HNBRegisterRequest.h> +#include <osmocom/hnbap/HNBAP_IE-Extensions.h> +#include <osmocom/hnbap/HNBAP_IE.h> +#include <osmocom/hnbap/HNBAP_IMEI.h> +#include <osmocom/hnbap/HNBAP_IMSI.h> +#include <osmocom/hnbap/HNBAP_IMSIDS41.h> +#include <osmocom/hnbap/HNBAP_IMSIESN.h> +#include <osmocom/hnbap/HNBAP_IP-Address.h> +#include <osmocom/hnbap/HNBAP_InitiatingMessage.h> +#include <osmocom/hnbap/HNBAP_Ipv4Address.h> +#include <osmocom/hnbap/HNBAP_Ipv6Address.h> +#include <osmocom/hnbap/HNBAP_Iurh-Signalling-TNL-AddressList.h> +#include <osmocom/hnbap/HNBAP_LAC.h> +#include <osmocom/hnbap/HNBAP_LAI.h> +#include <osmocom/hnbap/HNBAP_MacroCellID.h> +#include <osmocom/hnbap/HNBAP_MacroCoverageInformation.h> +#include <osmocom/hnbap/HNBAP_MuxPortNumber.h> +#include <osmocom/hnbap/HNBAP_NeighbourCellIdentityList.h> +#include <osmocom/hnbap/HNBAP_NeighbourIdentity.h> +#include <osmocom/hnbap/HNBAP_NeighbourInfoList.h> +#include <osmocom/hnbap/HNBAP_NeighbourInfoRequestItem.h> +#include <osmocom/hnbap/HNBAP_NeighbourInfoRequestList.h> +#include <osmocom/hnbap/HNBAP_PLMNidentity.h> +#include <osmocom/hnbap/HNBAP_PSC.h> +#include <osmocom/hnbap/HNBAP_PTMSI.h> +#include <osmocom/hnbap/HNBAP_PTMSIRAI.h> +#include <osmocom/hnbap/HNBAP_Presence.h> +#include <osmocom/hnbap/HNBAP_PrivateIE-ID.h> +#include <osmocom/hnbap/HNBAP_PrivateMessage.h> +#include <osmocom/hnbap/HNBAP_ProcedureCode.h> +#include <osmocom/hnbap/HNBAP_ProtocolIE-ID.h> +#include <osmocom/hnbap/HNBAP_RAB-ID.h> +#include <osmocom/hnbap/HNBAP_RABList.h> +#include <osmocom/hnbap/HNBAP_RABListItem.h> +#include <osmocom/hnbap/HNBAP_RAC.h> +#include <osmocom/hnbap/HNBAP_RAI.h> +#include <osmocom/hnbap/HNBAP_RNC-ID.h> +#include <osmocom/hnbap/HNBAP_Registration-Cause.h> +#include <osmocom/hnbap/HNBAP_RelocationComplete.h> +#include <osmocom/hnbap/HNBAP_S-RNTIPrefix.h> +#include <osmocom/hnbap/HNBAP_SAC.h> +#include <osmocom/hnbap/HNBAP_SuccessfulOutcome.h> +#include <osmocom/hnbap/HNBAP_TMSIDS41.h> +#include <osmocom/hnbap/HNBAP_TMSILAI.h> +#include <osmocom/hnbap/HNBAP_TNLUpdateFailure.h> +#include <osmocom/hnbap/HNBAP_TNLUpdateRequest.h> +#include <osmocom/hnbap/HNBAP_TNLUpdateResponse.h> +#include <osmocom/hnbap/HNBAP_TransportInfo.h> +#include <osmocom/hnbap/HNBAP_TransportLayerAddress.h> +#include <osmocom/hnbap/HNBAP_TriggeringMessage.h> +#include <osmocom/hnbap/HNBAP_Tunnel-Information.h> +#include <osmocom/hnbap/HNBAP_TypeOfError.h> +#include <osmocom/hnbap/HNBAP_U-RNTI.h> +#include <osmocom/hnbap/HNBAP_U-RNTIQueryRequest.h> +#include <osmocom/hnbap/HNBAP_U-RNTIQueryResponse.h> +#include <osmocom/hnbap/HNBAP_UDP-Port-Number.h> +#include <osmocom/hnbap/HNBAP_UE-Capabilities.h> +#include <osmocom/hnbap/HNBAP_UE-Identity.h> +#include <osmocom/hnbap/HNBAP_UEDe-Register.h> +#include <osmocom/hnbap/HNBAP_UERegisterAccept.h> +#include <osmocom/hnbap/HNBAP_UERegisterReject.h> +#include <osmocom/hnbap/HNBAP_UERegisterRequest.h> +#include <osmocom/hnbap/HNBAP_URAIdentity.h> +#include <osmocom/hnbap/HNBAP_URAIdentityList.h> +#include <osmocom/hnbap/HNBAP_UTRANCellID.h> +#include <osmocom/hnbap/HNBAP_UnknownU-RNTIIndication.h> +#include <osmocom/hnbap/HNBAP_UnsuccessfulOutcome.h> +#include <osmocom/hnbap/HNBAP_Update-cause.h> #if (ASN1C_ENVIRONMENT_VERSION < 924) # error "You are compiling with the wrong version of ASN1C" @@ -132,28 +124,31 @@ #include <osmocom/core/logging.h> -#define HNBAP_DEBUG(x, args ...) DEBUGP(1, x, ## args) +extern int _hnbap_DHNBAP; +#define HNBAP_DEBUG(x, args ...) DEBUGP(_hnbap_DHNBAP, x, ## args) extern int asn1_xer_print; struct msgb *hnbap_generate_initiating_message( - e_ProcedureCode procedureCode, - Criticality_t criticality, + e_HNBAP_ProcedureCode procedureCode, + HNBAP_Criticality_t criticality, asn_TYPE_descriptor_t * td, void *sptr); struct msgb *hnbap_generate_successful_outcome( - e_ProcedureCode procedureCode, - Criticality_t criticality, + e_HNBAP_ProcedureCode procedureCode, + HNBAP_Criticality_t criticality, asn_TYPE_descriptor_t * td, void *sptr); struct msgb *hnbap_generate_unsuccessful_outcome( - e_ProcedureCode procedureCode, - Criticality_t criticality, + e_HNBAP_ProcedureCode procedureCode, + HNBAP_Criticality_t criticality, asn_TYPE_descriptor_t * td, void *sptr); -IE_t *hnbap_new_ie(ProtocolIE_ID_t id, Criticality_t criticality, +HNBAP_IE_t *hnbap_new_ie(HNBAP_ProtocolIE_ID_t id, HNBAP_Criticality_t criticality, asn_TYPE_descriptor_t *type, void *sptr); -char *hnbap_cause_str(Cause_t *cause); +char *hnbap_cause_str(const HNBAP_Cause_t *cause); + +void hnbap_set_log_area(int log_area); diff --git a/include/osmocom/iuh/Makefile.am b/include/osmocom/iuh/Makefile.am index b2a667d..e5dff0d 100644 --- a/include/osmocom/iuh/Makefile.am +++ b/include/osmocom/iuh/Makefile.am @@ -1,4 +1,2 @@ noinst_HEADERS = \ - vty.h \ - context_map.h hnbgw.h hnbgw_cn.h \ - hnbgw_hnbap.h hnbgw_rua.h hnbgw_ranap.h + iu_common.h diff --git a/include/osmocom/iuh/context_map.h b/include/osmocom/iuh/context_map.h deleted file mode 100644 index 6279b91..0000000 --- a/include/osmocom/iuh/context_map.h +++ /dev/null @@ -1,51 +0,0 @@ -#pragma once - -#include <stdint.h> -#include <osmocom/core/linuxlist.h> - -enum hnbgw_context_map_state { - MAP_S_NULL, - MAP_S_ACTIVE, /* currently active map */ - MAP_S_RESERVED1, /* just disconnected, still resrved */ - MAP_S_RESERVED2, /* still reserved */ - MAP_S_NUM_STATES /* Number of states, keep this at the end */ -}; - -extern const struct value_string hnbgw_context_map_state_names[]; -static inline const char *hnbgw_context_map_state_name(enum hnbgw_context_map_state val) -{ return get_value_string(hnbgw_context_map_state_names, val); } - -struct hnb_context; -struct hnbgw_cnlink; - -struct hnbgw_context_map { - /* entry in the per-CN list of mappings */ - struct llist_head cn_list; - /* entry in the per-HNB list of mappings */ - struct llist_head hnb_list; - /* pointer to HNB */ - struct hnb_context *hnb_ctx; - /* pointer to CN */ - struct hnbgw_cnlink *cn_link; - /* RUA contxt ID */ - uint32_t rua_ctx_id; - /* False for CS, true for PS */ - bool is_ps; - /* SCCP User SAP connection ID */ - uint32_t scu_conn_id; - - enum hnbgw_context_map_state state; -}; - - -struct hnbgw_context_map * -context_map_alloc_by_hnb(struct hnb_context *hnb, uint32_t rua_ctx_id, - bool is_ps, - struct hnbgw_cnlink *cn_if_new); - -struct hnbgw_context_map * -context_map_by_cn(struct hnbgw_cnlink *cn, uint32_t scu_conn_id); - -void context_map_deactivate(struct hnbgw_context_map *map); - -int context_map_init(struct hnb_gw *gw); diff --git a/include/osmocom/iuh/hnbgw.h b/include/osmocom/iuh/hnbgw.h deleted file mode 100644 index 4848c2f..0000000 --- a/include/osmocom/iuh/hnbgw.h +++ /dev/null @@ -1,168 +0,0 @@ -#pragma once - -#include <osmocom/core/select.h> -#include <osmocom/core/linuxlist.h> -#include <osmocom/core/write_queue.h> -#include <osmocom/core/timer.h> -#include <osmocom/sigtran/sccp_sap.h> -#include <osmocom/sigtran/osmo_ss7.h> -#include <osmocom/ctrl/control_if.h> -#define DEBUG -#include <osmocom/core/logging.h> - - -enum { - DMAIN, - DHNBAP, - DRUA, - DRANAP, -}; - -enum hnb_ctrl_node { - CTRL_NODE_HNB = _LAST_CTRL_NODE, - _LAST_CTRL_NODE_HNB -}; - -#define HNBGW_LOCAL_IP_DEFAULT "0.0.0.0" -/* TODO: CS and PS now both connect to OsmoSTP, i.e. that's always going to be the same address. Drop the - * duplicity. */ -#define HNBGW_IUCS_REMOTE_IP_DEFAULT "127.0.0.1" -#define HNBGW_IUPS_REMOTE_IP_DEFAULT "127.0.0.1" - -/* 25.467 Section 7.1 */ -#define IUH_DEFAULT_SCTP_PORT 29169 -#define RNA_DEFAULT_SCTP_PORT 25471 - -#define IUH_PPI_RUA 19 -#define IUH_PPI_HNBAP 20 -#define IUH_PPI_SABP 31 -#define IUH_PPI_RNA 42 -#define IUH_PPI_PUA 55 - -#define IUH_MSGB_SIZE 2048 - -struct umts_cell_id { - uint16_t mcc; /*!< Mobile Country Code */ - uint16_t mnc; /*!< Mobile Network Code */ - uint16_t lac; /*!< Locaton Area Code */ - uint16_t rac; /*!< Routing Area Code */ - uint16_t sac; /*!< Service Area Code */ - uint32_t cid; /*!< Cell ID */ -}; - -struct hnb_gw; - -enum hnbgw_cnlink_state { - /* we have just been initialized or were disconnected */ - CNLINK_S_NULL, - /* establishment of the SUA/SCCP link is pending */ - CNLINK_S_EST_PEND, - /* establishment of the SUA/SCCP link was confirmed */ - CNLINK_S_EST_CONF, - /* we have esnt the RANAP RESET and wait for the ACK */ - CNLINK_S_EST_RST_TX_WAIT_ACK, - /* we have received the RANAP RESET ACK and are active */ - CNLINK_S_EST_ACTIVE, -}; - -struct hnbgw_cnlink { - struct llist_head list; - enum hnbgw_cnlink_state state; - struct hnb_gw *gw; - /* timer for re-transmitting the RANAP Reset */ - struct osmo_timer_list T_RafC; - /* reference to the SCCP User SAP by which we communicate */ - struct osmo_sccp_instance *sccp; - struct osmo_sccp_user *sccp_user; - uint32_t next_conn_id; - - /* linked list of hnbgw_context_map */ - struct llist_head map_list; -}; - -struct hnb_context { - /*! Entry in HNB-global list of HNB */ - struct llist_head list; - /*! HNB-GW we are part of */ - struct hnb_gw *gw; - /*! SCTP socket + write queue for Iuh to this specific HNB */ - struct osmo_stream_srv *conn; - /*! copied from HNB-Identity-Info IE */ - char identity_info[256]; - /*! copied from Cell Identity IE */ - struct umts_cell_id id; - - /*! SCTP stream ID for HNBAP */ - uint16_t hnbap_stream; - /*! SCTP stream ID for RUA */ - uint16_t rua_stream; - - /*! True if a HNB-REGISTER-REQ from this HNB has been accepted. Note that - * this entire data structure is freed if the HNB sends HNB-DE-REGISTER-REQ. */ - bool hnb_registered; - - /* linked list of hnbgw_context_map */ - struct llist_head map_list; -}; - -struct ue_context { - /*! Entry in the HNB-global list of UE */ - struct llist_head list; - /*! Unique Context ID for this UE */ - uint32_t context_id; - char imsi[16+1]; - uint32_t tmsi; - /*! UE is serviced via this HNB */ - struct hnb_context *hnb; -}; - -struct hnb_gw { - struct { - const char *iuh_local_ip; - /*! SCTP port for Iuh listening */ - uint16_t iuh_local_port; - /*! The UDP port where we receive multiplexed CS user - * plane traffic from HNBs */ - uint16_t iuh_cs_mux_port; - const char *iucs_remote_addr_name; - const char *iups_remote_addr_name; - uint16_t rnc_id; - bool hnbap_allow_tmsi; - } config; - /*! SCTP listen socket for incoming connections */ - struct osmo_stream_srv_link *iuh; - /* list of struct hnb_context */ - struct llist_head hnb_list; - /* list of struct ue_context */ - struct llist_head ue_list; - /* next availble UE Context ID */ - uint32_t next_ue_ctx_id; - struct ctrl_handle *ctrl; - /* currently active CN links for CS and PS */ - struct { - struct osmo_sccp_instance *client; - struct hnbgw_cnlink *cnlink; - struct osmo_sccp_addr local_addr; - struct osmo_sccp_addr iucs_remote_addr; - struct osmo_sccp_addr iups_remote_addr; - } sccp; -}; - -extern void *talloc_asn1_ctx; - -struct hnb_context *hnb_context_by_id(struct hnb_gw *gw, uint32_t cid); -struct hnb_context *hnb_context_by_identity_info(struct hnb_gw *gw, const char *identity_info); -unsigned hnb_contexts(const struct hnb_gw *gw); - -struct ue_context *ue_context_by_id(struct hnb_gw *gw, uint32_t id); -struct ue_context *ue_context_by_imsi(struct hnb_gw *gw, const char *imsi); -struct ue_context *ue_context_by_tmsi(struct hnb_gw *gw, uint32_t tmsi); -struct ue_context *ue_context_alloc(struct hnb_context *hnb, const char *imsi, - uint32_t tmsi); -void ue_context_free(struct ue_context *ue); - -struct hnb_context *hnb_context_alloc(struct hnb_gw *gw, struct osmo_stream_srv_link *link, int new_fd); -void hnb_context_release(struct hnb_context *ctx); - -void hnbgw_vty_init(struct hnb_gw *gw, void *tall_ctx); -int hnbgw_vty_go_parent(struct vty *vty); diff --git a/include/osmocom/iuh/hnbgw_cn.h b/include/osmocom/iuh/hnbgw_cn.h deleted file mode 100644 index 2e61d82..0000000 --- a/include/osmocom/iuh/hnbgw_cn.h +++ /dev/null @@ -1,5 +0,0 @@ -#pragma once - -#include <osmocom/iuh/hnbgw.h> - -int hnbgw_cnlink_init(struct hnb_gw *gw, const char *stp_host, uint16_t stp_port, const char *local_ip); diff --git a/include/osmocom/iuh/hnbgw_hnbap.h b/include/osmocom/iuh/hnbgw_hnbap.h deleted file mode 100644 index cca3550..0000000 --- a/include/osmocom/iuh/hnbgw_hnbap.h +++ /dev/null @@ -1,6 +0,0 @@ -#pragma once - -#include <osmocom/iuh/hnbgw.h> - -int hnbgw_hnbap_rx(struct hnb_context *hnb, struct msgb *msg); -int hnbgw_hnbap_init(void); diff --git a/include/osmocom/iuh/hnbgw_ranap.h b/include/osmocom/iuh/hnbgw_ranap.h deleted file mode 100644 index 2c55964..0000000 --- a/include/osmocom/iuh/hnbgw_ranap.h +++ /dev/null @@ -1,6 +0,0 @@ -#pragma once - -#include <osmocom/iuh/hnbgw.h> - -int hnbgw_ranap_rx(struct msgb *msg, uint8_t *data, size_t len); -int hnbgw_ranap_init(void); diff --git a/include/osmocom/iuh/hnbgw_rua.h b/include/osmocom/iuh/hnbgw_rua.h deleted file mode 100644 index 6a890b7..0000000 --- a/include/osmocom/iuh/hnbgw_rua.h +++ /dev/null @@ -1,13 +0,0 @@ -#pragma once - -#include <osmocom/iuh/hnbgw.h> -#include <osmocom/rua/RUA_Cause.h> - -int hnbgw_rua_rx(struct hnb_context *hnb, struct msgb *msg); -int hnbgw_rua_init(void); - -int rua_tx_udt(struct hnb_context *hnb, const uint8_t *data, unsigned int len); -int rua_tx_dt(struct hnb_context *hnb, int is_ps, uint32_t context_id, - const uint8_t *data, unsigned int len); -int rua_tx_disc(struct hnb_context *hnb, int is_ps, uint32_t context_id, - const RUA_Cause_t *cause, const uint8_t *data, unsigned int len); diff --git a/include/osmocom/iuh/vty.h b/include/osmocom/iuh/vty.h deleted file mode 100644 index 3d05da5..0000000 --- a/include/osmocom/iuh/vty.h +++ /dev/null @@ -1,11 +0,0 @@ -#pragma once - -#include <osmocom/vty/vty.h> - -enum osmo_iuh_vty_node { - HNBGW_NODE = _LAST_OSMOVTY_NODE + 1, - IUH_NODE, - IUCS_NODE, - IUPS_NODE, -}; - diff --git a/include/osmocom/ranap/Makefile.am b/include/osmocom/ranap/Makefile.am index 1606928..71e2feb 100644 --- a/include/osmocom/ranap/Makefile.am +++ b/include/osmocom/ranap/Makefile.am @@ -10,6 +10,7 @@ ranap_HEADERS = \ ranap_ies_defs.h \ ranap_common.h \ ranap_common_cn.h \ + ranap_common_ran.h \ ranap_msg_factory.h \ iu_helpers.h \ iu_client.h \ @@ -43,6 +44,7 @@ ranap_HEADERS = \ RANAP_Ass-RAB-Parameter-MaxBitrateList.h \ RANAP_Ass-RAB-Parameters.h \ RANAP_AuthorisedPLMNs.h \ + RANAP_AuthorisedPLMNs-Value.h \ RANAP_AuthorisedSNAs.h \ RANAP_BindingID.h \ RANAP_BroadcastAssistanceDataDecipheringKeys.h \ @@ -78,6 +80,7 @@ ranap_HEADERS = \ RANAP_Correlation-ID.h \ RANAP_CriticalityDiagnostics.h \ RANAP_CriticalityDiagnostics-IE-List.h \ + RANAP_CriticalityDiagnostics-IE-List-Value.h \ RANAP_Criticality.h \ RANAP_CSFB-Information.h \ RANAP_CSG-Id.h \ @@ -85,6 +88,7 @@ ranap_HEADERS = \ RANAP_CSG-Membership-Status.h \ RANAP_DataPDUType.h \ RANAP_DataVolumeList.h \ + RANAP_DataVolumeList-Value.h \ RANAP_DataVolumeReference.h \ RANAP_DataVolumeReport.h \ RANAP_DataVolumeReportingIndication.h \ @@ -118,6 +122,7 @@ ranap_HEADERS = \ RANAP_EquipmentsToBeTraced.h \ RANAP_ErrorIndication.h \ RANAP_EUTRANFrequencies.h \ + RANAP_EUTRANFrequencies-Value.h \ RANAP_E-UTRAN-Service-Handover.h \ RANAP_Event1F-Parameters.h \ RANAP_Event1I-Parameters.h \ @@ -139,6 +144,7 @@ ranap_HEADERS = \ RANAP_GA-PointWithUnCertaintyEllipse.h \ RANAP_GA-PointWithUnCertainty.h \ RANAP_GA-Polygon.h \ + RANAP_GA-Polygon-Value.h \ RANAP_GA-UncertaintyEllipse.h \ RANAP_GeographicalArea.h \ RANAP_GeographicalCoordinates.h \ @@ -196,6 +202,7 @@ ranap_HEADERS = \ RANAP_IuSignallingConnectionIdentifier.h \ RANAP_IuTransportAssociation.h \ RANAP_JoinedMBMSBearerService-IEs.h \ + RANAP_JoinedMBMSBearerService-IEs-Value.h \ RANAP_KeyStatus.h \ RANAP_L3-Information.h \ RANAP_LABased.h \ @@ -203,10 +210,12 @@ ranap_HEADERS = \ RANAP_LAI.h \ RANAP_LAI-List.h \ RANAP_LA-LIST.h \ + RANAP_LA-LIST-Value.h \ RANAP_LAListofIdleModeUEs.h \ RANAP_LastKnownServiceArea.h \ RANAP_LastVisitedUTRANCell-Item.h \ RANAP_LeftMBMSBearerService-IEs.h \ + RANAP_LeftMBMSBearerService-IEs-Value.h \ RANAP_LHN-ID.h \ RANAP_Links-to-log.h \ RANAP_ListOfInterfacesToTrace.h \ @@ -281,6 +290,7 @@ ranap_HEADERS = \ RANAP_MeasurementQuantity.h \ RANAP_MeasurementsToActivate.h \ RANAP_MessageStructure.h \ + RANAP_MessageStructure-Value.h \ RANAP_MSISDN.h \ RANAP_NAS-PDU.h \ RANAP_NAS-SequenceNumber.h \ @@ -315,6 +325,7 @@ ranap_HEADERS = \ RANAP_PermittedIntegrityProtectionAlgorithms.h \ RANAP_PLMNidentity.h \ RANAP_PLMNs-in-shared-network.h \ + RANAP_PLMNs-in-shared-network-Value.h \ RANAP_Port-Number.h \ RANAP_PositionData.h \ RANAP_PositionDataSpecificToGERANIuMode.h \ @@ -354,6 +365,7 @@ ranap_HEADERS = \ RANAP_RAB-DataForwardingList.h \ RANAP_RAB-DataForwardingList-SRNS-CtxReq.h \ RANAP_RABDataVolumeReport.h \ + RANAP_RABDataVolumeReport-Value.h \ RANAP_RAB-DataVolumeReportItem.h \ RANAP_RAB-DataVolumeReportList.h \ RANAP_RAB-DataVolumeReportRequestItem.h \ @@ -374,6 +386,7 @@ ranap_HEADERS = \ RANAP_RAB-Parameter-MaxBitrateList.h \ RANAP_RAB-Parameters.h \ RANAP_RABParametersList.h \ + RANAP_RABParametersList-Value.h \ RANAP_RAB-QueuedItem.h \ RANAP_RAB-QueuedList.h \ RANAP_RAB-ReleasedItem.h \ @@ -575,6 +588,7 @@ ranap_HEADERS = \ RANAP_UL-GTP-PDU-SequenceNumber.h \ RANAP_UL-N-PDU-SequenceNumber.h \ RANAP_UnsuccessfulLinking-IEs.h \ + RANAP_UnsuccessfulLinking-IEs-Value.h \ RANAP_UnsuccessfullyTransmittedDataVolume.h \ RANAP_UnsuccessfulOutcome.h \ RANAP_UPInformation.h \ diff --git a/include/osmocom/ranap/RANAP_APN.h b/include/osmocom/ranap/RANAP_APN.h index ac158e1..147d03b 100644 --- a/include/osmocom/ranap/RANAP_APN.h +++ b/include/osmocom/ranap/RANAP_APN.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_APN_H_ diff --git a/include/osmocom/ranap/RANAP_AccuracyFulfilmentIndicator.h b/include/osmocom/ranap/RANAP_AccuracyFulfilmentIndicator.h index e95d0b9..7bdf9b5 100644 --- a/include/osmocom/ranap/RANAP_AccuracyFulfilmentIndicator.h +++ b/include/osmocom/ranap/RANAP_AccuracyFulfilmentIndicator.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_AccuracyFulfilmentIndicator_H_ diff --git a/include/osmocom/ranap/RANAP_AllocationOrRetentionPriority.h b/include/osmocom/ranap/RANAP_AllocationOrRetentionPriority.h index ec73d30..859c569 100644 --- a/include/osmocom/ranap/RANAP_AllocationOrRetentionPriority.h +++ b/include/osmocom/ranap/RANAP_AllocationOrRetentionPriority.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_AllocationOrRetentionPriority_H_ diff --git a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrateInf.h b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrateInf.h index 7d209d5..89f02f3 100644 --- a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrateInf.h +++ b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrateInf.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Alt_RAB_Parameter_ExtendedGuaranteedBitrateInf_H_ diff --git a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrateList.h b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrateList.h index d6105a2..1dbda71 100644 --- a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrateList.h +++ b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrateList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Alt_RAB_Parameter_ExtendedGuaranteedBitrateList_H_ diff --git a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrates.h b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrates.h index dff57a7..5ea6963 100644 --- a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrates.h +++ b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrates.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Alt_RAB_Parameter_ExtendedGuaranteedBitrates_H_ diff --git a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrateInf.h b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrateInf.h index cc56279..277e976 100644 --- a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrateInf.h +++ b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrateInf.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Alt_RAB_Parameter_ExtendedMaxBitrateInf_H_ diff --git a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrateList.h b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrateList.h index 518acbe..802baec 100644 --- a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrateList.h +++ b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrateList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Alt_RAB_Parameter_ExtendedMaxBitrateList_H_ diff --git a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrates.h b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrates.h index d22f7fd..a173bc2 100644 --- a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrates.h +++ b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrates.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Alt_RAB_Parameter_ExtendedMaxBitrates_H_ diff --git a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateInf.h b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateInf.h index 262c742..2fa9bc0 100644 --- a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateInf.h +++ b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateInf.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Alt_RAB_Parameter_GuaranteedBitrateInf_H_ diff --git a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateList.h b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateList.h index b7099d0..800cc34 100644 --- a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateList.h +++ b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Alt_RAB_Parameter_GuaranteedBitrateList_H_ diff --git a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateType.h b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateType.h index 57611be..f452bad 100644 --- a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateType.h +++ b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateType.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Alt_RAB_Parameter_GuaranteedBitrateType_H_ diff --git a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrates.h b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrates.h index e8e2f8d..2d1da1c 100644 --- a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrates.h +++ b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrates.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Alt_RAB_Parameter_GuaranteedBitrates_H_ diff --git a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateInf.h b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateInf.h index 5d7a8c9..8cb0f0c 100644 --- a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateInf.h +++ b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateInf.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Alt_RAB_Parameter_MaxBitrateInf_H_ diff --git a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateList.h b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateList.h index 4ff9287..1681fca 100644 --- a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateList.h +++ b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Alt_RAB_Parameter_MaxBitrateList_H_ diff --git a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateType.h b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateType.h index 1370399..92fb585 100644 --- a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateType.h +++ b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateType.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Alt_RAB_Parameter_MaxBitrateType_H_ diff --git a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-MaxBitrates.h b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-MaxBitrates.h index 9d26566..26549f6 100644 --- a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-MaxBitrates.h +++ b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-MaxBitrates.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Alt_RAB_Parameter_MaxBitrates_H_ diff --git a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-SupportedGuaranteedBitrateInf.h b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-SupportedGuaranteedBitrateInf.h index 3dcaf55..7879739 100644 --- a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-SupportedGuaranteedBitrateInf.h +++ b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-SupportedGuaranteedBitrateInf.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Alt_RAB_Parameter_SupportedGuaranteedBitrateInf_H_ diff --git a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-SupportedGuaranteedBitrates.h b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-SupportedGuaranteedBitrates.h index d712b9a..76a27fb 100644 --- a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-SupportedGuaranteedBitrates.h +++ b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-SupportedGuaranteedBitrates.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Alt_RAB_Parameter_SupportedGuaranteedBitrates_H_ diff --git a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-SupportedMaxBitrateInf.h b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-SupportedMaxBitrateInf.h index 3e6a1cf..eb75454 100644 --- a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-SupportedMaxBitrateInf.h +++ b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-SupportedMaxBitrateInf.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Alt_RAB_Parameter_SupportedMaxBitrateInf_H_ diff --git a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-SupportedMaxBitrates.h b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-SupportedMaxBitrates.h index c2a462b..e618010 100644 --- a/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-SupportedMaxBitrates.h +++ b/include/osmocom/ranap/RANAP_Alt-RAB-Parameter-SupportedMaxBitrates.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Alt_RAB_Parameter_SupportedMaxBitrates_H_ diff --git a/include/osmocom/ranap/RANAP_Alt-RAB-Parameters.h b/include/osmocom/ranap/RANAP_Alt-RAB-Parameters.h index 855cfcf..168a797 100644 --- a/include/osmocom/ranap/RANAP_Alt-RAB-Parameters.h +++ b/include/osmocom/ranap/RANAP_Alt-RAB-Parameters.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Alt_RAB_Parameters_H_ diff --git a/include/osmocom/ranap/RANAP_AlternativeRABConfigurationRequest.h b/include/osmocom/ranap/RANAP_AlternativeRABConfigurationRequest.h index 676d97f..9ec7028 100644 --- a/include/osmocom/ranap/RANAP_AlternativeRABConfigurationRequest.h +++ b/include/osmocom/ranap/RANAP_AlternativeRABConfigurationRequest.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_AlternativeRABConfigurationRequest_H_ diff --git a/include/osmocom/ranap/RANAP_AreaIdentity.h b/include/osmocom/ranap/RANAP_AreaIdentity.h index a57bc5b..1432659 100644 --- a/include/osmocom/ranap/RANAP_AreaIdentity.h +++ b/include/osmocom/ranap/RANAP_AreaIdentity.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_AreaIdentity_H_ diff --git a/include/osmocom/ranap/RANAP_Ass-RAB-Parameter-ExtendedGuaranteedBitrateList.h b/include/osmocom/ranap/RANAP_Ass-RAB-Parameter-ExtendedGuaranteedBitrateList.h index 6445665..ff39c49 100644 --- a/include/osmocom/ranap/RANAP_Ass-RAB-Parameter-ExtendedGuaranteedBitrateList.h +++ b/include/osmocom/ranap/RANAP_Ass-RAB-Parameter-ExtendedGuaranteedBitrateList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Ass_RAB_Parameter_ExtendedGuaranteedBitrateList_H_ diff --git a/include/osmocom/ranap/RANAP_Ass-RAB-Parameter-ExtendedMaxBitrateList.h b/include/osmocom/ranap/RANAP_Ass-RAB-Parameter-ExtendedMaxBitrateList.h index 994102b..112d3b5 100644 --- a/include/osmocom/ranap/RANAP_Ass-RAB-Parameter-ExtendedMaxBitrateList.h +++ b/include/osmocom/ranap/RANAP_Ass-RAB-Parameter-ExtendedMaxBitrateList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Ass_RAB_Parameter_ExtendedMaxBitrateList_H_ diff --git a/include/osmocom/ranap/RANAP_Ass-RAB-Parameter-GuaranteedBitrateList.h b/include/osmocom/ranap/RANAP_Ass-RAB-Parameter-GuaranteedBitrateList.h index 716733e..f4eb726 100644 --- a/include/osmocom/ranap/RANAP_Ass-RAB-Parameter-GuaranteedBitrateList.h +++ b/include/osmocom/ranap/RANAP_Ass-RAB-Parameter-GuaranteedBitrateList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Ass_RAB_Parameter_GuaranteedBitrateList_H_ diff --git a/include/osmocom/ranap/RANAP_Ass-RAB-Parameter-MaxBitrateList.h b/include/osmocom/ranap/RANAP_Ass-RAB-Parameter-MaxBitrateList.h index a808288..d25f568 100644 --- a/include/osmocom/ranap/RANAP_Ass-RAB-Parameter-MaxBitrateList.h +++ b/include/osmocom/ranap/RANAP_Ass-RAB-Parameter-MaxBitrateList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Ass_RAB_Parameter_MaxBitrateList_H_ diff --git a/include/osmocom/ranap/RANAP_Ass-RAB-Parameters.h b/include/osmocom/ranap/RANAP_Ass-RAB-Parameters.h index dbbe10a..6eff8b0 100644 --- a/include/osmocom/ranap/RANAP_Ass-RAB-Parameters.h +++ b/include/osmocom/ranap/RANAP_Ass-RAB-Parameters.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Ass_RAB_Parameters_H_ diff --git a/include/osmocom/ranap/RANAP_AuthorisedPLMNs-Value.h b/include/osmocom/ranap/RANAP_AuthorisedPLMNs-Value.h new file mode 100644 index 0000000..490b4ef --- /dev/null +++ b/include/osmocom/ranap/RANAP_AuthorisedPLMNs-Value.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-IEs" + * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` + */ + +#ifndef _RANAP_AuthorisedPLMNs_Value_H_ +#define _RANAP_AuthorisedPLMNs_Value_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/ranap/RANAP_PLMNidentity.h> +#include <osmocom/ranap/RANAP_AuthorisedSNAs.h> +#include <osmocom/ranap/RANAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* RANAP_AuthorisedPLMNs-Value */ +typedef struct RANAP_AuthorisedPLMNs_Value { + RANAP_PLMNidentity_t pLMNidentity; + RANAP_AuthorisedSNAs_t *authorisedSNAsList /* OPTIONAL */; + RANAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RANAP_AuthorisedPLMNs_Value_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RANAP_AuthorisedPLMNs_Value; + +#ifdef __cplusplus +} +#endif + +#endif /* _RANAP_AuthorisedPLMNs_Value_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/ranap/RANAP_AuthorisedPLMNs.h b/include/osmocom/ranap/RANAP_AuthorisedPLMNs.h index 77b65a7..8d46588 100644 --- a/include/osmocom/ranap/RANAP_AuthorisedPLMNs.h +++ b/include/osmocom/ranap/RANAP_AuthorisedPLMNs.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_AuthorisedPLMNs_H_ @@ -11,11 +12,8 @@ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/ranap/RANAP_AuthorisedPLMNs-Value.h> #include <asn_SEQUENCE_OF.h> -#include <osmocom/ranap/RANAP_PLMNidentity.h> -#include <osmocom/ranap/RANAP_AuthorisedSNAs.h> -#include <osmocom/ranap/RANAP_IE-Extensions.h> -#include <constr_SEQUENCE.h> #include <constr_SEQUENCE_OF.h> #ifdef __cplusplus @@ -24,18 +22,7 @@ extern "C" { /* RANAP_AuthorisedPLMNs */ typedef struct RANAP_AuthorisedPLMNs { - A_SEQUENCE_OF(struct MemberC { - RANAP_PLMNidentity_t pLMNidentity; - RANAP_AuthorisedSNAs_t *authorisedSNAsList /* OPTIONAL */; - RANAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ) list; + A_SEQUENCE_OF(RANAP_AuthorisedPLMNs_Value_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/include/osmocom/ranap/RANAP_AuthorisedSNAs.h b/include/osmocom/ranap/RANAP_AuthorisedSNAs.h index 2cad6d9..f4db6e7 100644 --- a/include/osmocom/ranap/RANAP_AuthorisedSNAs.h +++ b/include/osmocom/ranap/RANAP_AuthorisedSNAs.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_AuthorisedSNAs_H_ diff --git a/include/osmocom/ranap/RANAP_BindingID.h b/include/osmocom/ranap/RANAP_BindingID.h index ff5a303..450130e 100644 --- a/include/osmocom/ranap/RANAP_BindingID.h +++ b/include/osmocom/ranap/RANAP_BindingID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_BindingID_H_ diff --git a/include/osmocom/ranap/RANAP_BroadcastAssistanceDataDecipheringKeys.h b/include/osmocom/ranap/RANAP_BroadcastAssistanceDataDecipheringKeys.h index 8d0e895..fea1c31 100644 --- a/include/osmocom/ranap/RANAP_BroadcastAssistanceDataDecipheringKeys.h +++ b/include/osmocom/ranap/RANAP_BroadcastAssistanceDataDecipheringKeys.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_BroadcastAssistanceDataDecipheringKeys_H_ diff --git a/include/osmocom/ranap/RANAP_CGI.h b/include/osmocom/ranap/RANAP_CGI.h index 9e03e28..f9f380a 100644 --- a/include/osmocom/ranap/RANAP_CGI.h +++ b/include/osmocom/ranap/RANAP_CGI.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CGI_H_ diff --git a/include/osmocom/ranap/RANAP_CI.h b/include/osmocom/ranap/RANAP_CI.h index fb7c777..2a505f4 100644 --- a/include/osmocom/ranap/RANAP_CI.h +++ b/include/osmocom/ranap/RANAP_CI.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CI_H_ diff --git a/include/osmocom/ranap/RANAP_CN-DeactivateTrace.h b/include/osmocom/ranap/RANAP_CN-DeactivateTrace.h index fa42126..1874935 100644 --- a/include/osmocom/ranap/RANAP_CN-DeactivateTrace.h +++ b/include/osmocom/ranap/RANAP_CN-DeactivateTrace.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CN_DeactivateTrace_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_CN-DeactivateTrace */ typedef struct RANAP_CN_DeactivateTrace { - struct cN_DeactivateTrace_ies { + struct RANAP_CN_DeactivateTrace__cN_DeactivateTrace_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_CN-DomainIndicator.h b/include/osmocom/ranap/RANAP_CN-DomainIndicator.h index 3a63f87..05ccbcb 100644 --- a/include/osmocom/ranap/RANAP_CN-DomainIndicator.h +++ b/include/osmocom/ranap/RANAP_CN-DomainIndicator.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CN_DomainIndicator_H_ diff --git a/include/osmocom/ranap/RANAP_CN-ID.h b/include/osmocom/ranap/RANAP_CN-ID.h index 2032791..e50d615 100644 --- a/include/osmocom/ranap/RANAP_CN-ID.h +++ b/include/osmocom/ranap/RANAP_CN-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CN_ID_H_ diff --git a/include/osmocom/ranap/RANAP_CN-InvokeTrace.h b/include/osmocom/ranap/RANAP_CN-InvokeTrace.h index 6b51611..c843d9c 100644 --- a/include/osmocom/ranap/RANAP_CN-InvokeTrace.h +++ b/include/osmocom/ranap/RANAP_CN-InvokeTrace.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CN_InvokeTrace_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_CN-InvokeTrace */ typedef struct RANAP_CN_InvokeTrace { - struct cN_InvokeTrace_ies { + struct RANAP_CN_InvokeTrace__cN_InvokeTrace_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_CNMBMSLinkingInformation.h b/include/osmocom/ranap/RANAP_CNMBMSLinkingInformation.h index 93e9342..e0a8179 100644 --- a/include/osmocom/ranap/RANAP_CNMBMSLinkingInformation.h +++ b/include/osmocom/ranap/RANAP_CNMBMSLinkingInformation.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CNMBMSLinkingInformation_H_ diff --git a/include/osmocom/ranap/RANAP_CSFB-Information.h b/include/osmocom/ranap/RANAP_CSFB-Information.h index 8a64b23..18ae5b2 100644 --- a/include/osmocom/ranap/RANAP_CSFB-Information.h +++ b/include/osmocom/ranap/RANAP_CSFB-Information.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CSFB_Information_H_ diff --git a/include/osmocom/ranap/RANAP_CSG-Id-List.h b/include/osmocom/ranap/RANAP_CSG-Id-List.h index 2ea2274..9bc7919 100644 --- a/include/osmocom/ranap/RANAP_CSG-Id-List.h +++ b/include/osmocom/ranap/RANAP_CSG-Id-List.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CSG_Id_List_H_ diff --git a/include/osmocom/ranap/RANAP_CSG-Id.h b/include/osmocom/ranap/RANAP_CSG-Id.h index 57dd868..68150a8 100644 --- a/include/osmocom/ranap/RANAP_CSG-Id.h +++ b/include/osmocom/ranap/RANAP_CSG-Id.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CSG_Id_H_ diff --git a/include/osmocom/ranap/RANAP_CSG-Membership-Status.h b/include/osmocom/ranap/RANAP_CSG-Membership-Status.h index eeeae70..8ab0687 100644 --- a/include/osmocom/ranap/RANAP_CSG-Membership-Status.h +++ b/include/osmocom/ranap/RANAP_CSG-Membership-Status.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CSG_Membership_Status_H_ diff --git a/include/osmocom/ranap/RANAP_Cause.h b/include/osmocom/ranap/RANAP_Cause.h index 82ec137..50a3829 100644 --- a/include/osmocom/ranap/RANAP_Cause.h +++ b/include/osmocom/ranap/RANAP_Cause.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Cause_H_ diff --git a/include/osmocom/ranap/RANAP_CauseMisc.h b/include/osmocom/ranap/RANAP_CauseMisc.h index 69ff507..631ae15 100644 --- a/include/osmocom/ranap/RANAP_CauseMisc.h +++ b/include/osmocom/ranap/RANAP_CauseMisc.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CauseMisc_H_ diff --git a/include/osmocom/ranap/RANAP_CauseNAS.h b/include/osmocom/ranap/RANAP_CauseNAS.h index 90f60a4..1732100 100644 --- a/include/osmocom/ranap/RANAP_CauseNAS.h +++ b/include/osmocom/ranap/RANAP_CauseNAS.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CauseNAS_H_ diff --git a/include/osmocom/ranap/RANAP_CauseNon-Standard.h b/include/osmocom/ranap/RANAP_CauseNon-Standard.h index 22e85e4..3b97f9f 100644 --- a/include/osmocom/ranap/RANAP_CauseNon-Standard.h +++ b/include/osmocom/ranap/RANAP_CauseNon-Standard.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CauseNon_Standard_H_ diff --git a/include/osmocom/ranap/RANAP_CauseProtocol.h b/include/osmocom/ranap/RANAP_CauseProtocol.h index d05f6e4..b45520f 100644 --- a/include/osmocom/ranap/RANAP_CauseProtocol.h +++ b/include/osmocom/ranap/RANAP_CauseProtocol.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CauseProtocol_H_ diff --git a/include/osmocom/ranap/RANAP_CauseRadioNetwork.h b/include/osmocom/ranap/RANAP_CauseRadioNetwork.h index 5abcbc9..c374791 100644 --- a/include/osmocom/ranap/RANAP_CauseRadioNetwork.h +++ b/include/osmocom/ranap/RANAP_CauseRadioNetwork.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CauseRadioNetwork_H_ diff --git a/include/osmocom/ranap/RANAP_CauseRadioNetworkExtension.h b/include/osmocom/ranap/RANAP_CauseRadioNetworkExtension.h index b055f58..97447dd 100644 --- a/include/osmocom/ranap/RANAP_CauseRadioNetworkExtension.h +++ b/include/osmocom/ranap/RANAP_CauseRadioNetworkExtension.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CauseRadioNetworkExtension_H_ diff --git a/include/osmocom/ranap/RANAP_CauseTransmissionNetwork.h b/include/osmocom/ranap/RANAP_CauseTransmissionNetwork.h index 9026c2c..b61501f 100644 --- a/include/osmocom/ranap/RANAP_CauseTransmissionNetwork.h +++ b/include/osmocom/ranap/RANAP_CauseTransmissionNetwork.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CauseTransmissionNetwork_H_ diff --git a/include/osmocom/ranap/RANAP_Cell-Access-Mode.h b/include/osmocom/ranap/RANAP_Cell-Access-Mode.h index e0389a9..01d93e1 100644 --- a/include/osmocom/ranap/RANAP_Cell-Access-Mode.h +++ b/include/osmocom/ranap/RANAP_Cell-Access-Mode.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Cell_Access_Mode_H_ diff --git a/include/osmocom/ranap/RANAP_Cell-Capacity-Class-Value.h b/include/osmocom/ranap/RANAP_Cell-Capacity-Class-Value.h index b414ad3..f822c0a 100644 --- a/include/osmocom/ranap/RANAP_Cell-Capacity-Class-Value.h +++ b/include/osmocom/ranap/RANAP_Cell-Capacity-Class-Value.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Cell_Capacity_Class_Value_H_ diff --git a/include/osmocom/ranap/RANAP_Cell-Id.h b/include/osmocom/ranap/RANAP_Cell-Id.h index 36aed83..b7d1044 100644 --- a/include/osmocom/ranap/RANAP_Cell-Id.h +++ b/include/osmocom/ranap/RANAP_Cell-Id.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Cell_Id_H_ diff --git a/include/osmocom/ranap/RANAP_CellBased.h b/include/osmocom/ranap/RANAP_CellBased.h index 09edeeb..b8e6a6b 100644 --- a/include/osmocom/ranap/RANAP_CellBased.h +++ b/include/osmocom/ranap/RANAP_CellBased.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CellBased_H_ diff --git a/include/osmocom/ranap/RANAP_CellIdList.h b/include/osmocom/ranap/RANAP_CellIdList.h index 9b5779f..588759f 100644 --- a/include/osmocom/ranap/RANAP_CellIdList.h +++ b/include/osmocom/ranap/RANAP_CellIdList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CellIdList_H_ diff --git a/include/osmocom/ranap/RANAP_CellLoadInformation.h b/include/osmocom/ranap/RANAP_CellLoadInformation.h index b4f3753..d1ab504 100644 --- a/include/osmocom/ranap/RANAP_CellLoadInformation.h +++ b/include/osmocom/ranap/RANAP_CellLoadInformation.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CellLoadInformation_H_ diff --git a/include/osmocom/ranap/RANAP_CellLoadInformationGroup.h b/include/osmocom/ranap/RANAP_CellLoadInformationGroup.h index 092b5b0..3f32592 100644 --- a/include/osmocom/ranap/RANAP_CellLoadInformationGroup.h +++ b/include/osmocom/ranap/RANAP_CellLoadInformationGroup.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CellLoadInformationGroup_H_ diff --git a/include/osmocom/ranap/RANAP_CellType.h b/include/osmocom/ranap/RANAP_CellType.h index 6e47d31..781bb00 100644 --- a/include/osmocom/ranap/RANAP_CellType.h +++ b/include/osmocom/ranap/RANAP_CellType.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CellType_H_ diff --git a/include/osmocom/ranap/RANAP_ChosenEncryptionAlgorithm.h b/include/osmocom/ranap/RANAP_ChosenEncryptionAlgorithm.h index 6d4b8fe..0216d5e 100644 --- a/include/osmocom/ranap/RANAP_ChosenEncryptionAlgorithm.h +++ b/include/osmocom/ranap/RANAP_ChosenEncryptionAlgorithm.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <constr_CHOICE.h> diff --git a/include/osmocom/ranap/RANAP_ChosenIntegrityProtectionAlgorithm.h b/include/osmocom/ranap/RANAP_ChosenIntegrityProtectionAlgorithm.h index d3d4963..cb26b44 100644 --- a/include/osmocom/ranap/RANAP_ChosenIntegrityProtectionAlgorithm.h +++ b/include/osmocom/ranap/RANAP_ChosenIntegrityProtectionAlgorithm.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <constr_CHOICE.h> diff --git a/include/osmocom/ranap/RANAP_ClassmarkInformation2.h b/include/osmocom/ranap/RANAP_ClassmarkInformation2.h index efab851..999102a 100644 --- a/include/osmocom/ranap/RANAP_ClassmarkInformation2.h +++ b/include/osmocom/ranap/RANAP_ClassmarkInformation2.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ClassmarkInformation2_H_ diff --git a/include/osmocom/ranap/RANAP_ClassmarkInformation3.h b/include/osmocom/ranap/RANAP_ClassmarkInformation3.h index db377ff..9b263a7 100644 --- a/include/osmocom/ranap/RANAP_ClassmarkInformation3.h +++ b/include/osmocom/ranap/RANAP_ClassmarkInformation3.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ClassmarkInformation3_H_ diff --git a/include/osmocom/ranap/RANAP_ClientType.h b/include/osmocom/ranap/RANAP_ClientType.h index 834cc0f..46ca969 100644 --- a/include/osmocom/ranap/RANAP_ClientType.h +++ b/include/osmocom/ranap/RANAP_ClientType.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ClientType_H_ diff --git a/include/osmocom/ranap/RANAP_CommonID.h b/include/osmocom/ranap/RANAP_CommonID.h index 0eb0e41..3a212b0 100644 --- a/include/osmocom/ranap/RANAP_CommonID.h +++ b/include/osmocom/ranap/RANAP_CommonID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CommonID_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_CommonID */ typedef struct RANAP_CommonID { - struct commonID_ies { + struct RANAP_CommonID__commonID_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_Correlation-ID.h b/include/osmocom/ranap/RANAP_Correlation-ID.h index a47174a..1f3dce6 100644 --- a/include/osmocom/ranap/RANAP_Correlation-ID.h +++ b/include/osmocom/ranap/RANAP_Correlation-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Correlation_ID_H_ diff --git a/include/osmocom/ranap/RANAP_Criticality.h b/include/osmocom/ranap/RANAP_Criticality.h index 192cd8a..3d09ce5 100644 --- a/include/osmocom/ranap/RANAP_Criticality.h +++ b/include/osmocom/ranap/RANAP_Criticality.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-CommonDataTypes" * found in "../../asn1/ranap/RANAP-CommonDataTypes.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Criticality_H_ diff --git a/include/osmocom/ranap/RANAP_CriticalityDiagnostics-IE-List-Value.h b/include/osmocom/ranap/RANAP_CriticalityDiagnostics-IE-List-Value.h new file mode 100644 index 0000000..e398df9 --- /dev/null +++ b/include/osmocom/ranap/RANAP_CriticalityDiagnostics-IE-List-Value.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-IEs" + * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` + */ + +#ifndef _RANAP_CriticalityDiagnostics_IE_List_Value_H_ +#define _RANAP_CriticalityDiagnostics_IE_List_Value_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/ranap/RANAP_Criticality.h> +#include <osmocom/ranap/RANAP_ProtocolIE-ID.h> +#include <osmocom/ranap/RANAP_RepetitionNumber0.h> +#include <osmocom/ranap/RANAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* RANAP_CriticalityDiagnostics-IE-List-Value */ +typedef struct RANAP_CriticalityDiagnostics_IE_List_Value { + RANAP_Criticality_t iECriticality; + RANAP_ProtocolIE_ID_t iE_ID; + RANAP_RepetitionNumber0_t *repetitionNumber /* OPTIONAL */; + RANAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RANAP_CriticalityDiagnostics_IE_List_Value_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RANAP_CriticalityDiagnostics_IE_List_Value; + +#ifdef __cplusplus +} +#endif + +#endif /* _RANAP_CriticalityDiagnostics_IE_List_Value_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/ranap/RANAP_CriticalityDiagnostics-IE-List.h b/include/osmocom/ranap/RANAP_CriticalityDiagnostics-IE-List.h index 0eaeb3e..12c5b3b 100644 --- a/include/osmocom/ranap/RANAP_CriticalityDiagnostics-IE-List.h +++ b/include/osmocom/ranap/RANAP_CriticalityDiagnostics-IE-List.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CriticalityDiagnostics_IE_List_H_ @@ -11,12 +12,8 @@ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/ranap/RANAP_CriticalityDiagnostics-IE-List-Value.h> #include <asn_SEQUENCE_OF.h> -#include <osmocom/ranap/RANAP_Criticality.h> -#include <osmocom/ranap/RANAP_ProtocolIE-ID.h> -#include <osmocom/ranap/RANAP_RepetitionNumber0.h> -#include <osmocom/ranap/RANAP_IE-Extensions.h> -#include <constr_SEQUENCE.h> #include <constr_SEQUENCE_OF.h> #ifdef __cplusplus @@ -25,19 +22,7 @@ extern "C" { /* RANAP_CriticalityDiagnostics-IE-List */ typedef struct RANAP_CriticalityDiagnostics_IE_List { - A_SEQUENCE_OF(struct MemberG { - RANAP_Criticality_t iECriticality; - RANAP_ProtocolIE_ID_t iE_ID; - RANAP_RepetitionNumber0_t *repetitionNumber /* OPTIONAL */; - RANAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ) list; + A_SEQUENCE_OF(RANAP_CriticalityDiagnostics_IE_List_Value_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/include/osmocom/ranap/RANAP_CriticalityDiagnostics.h b/include/osmocom/ranap/RANAP_CriticalityDiagnostics.h index a247953..26f42d1 100644 --- a/include/osmocom/ranap/RANAP_CriticalityDiagnostics.h +++ b/include/osmocom/ranap/RANAP_CriticalityDiagnostics.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_CriticalityDiagnostics_H_ diff --git a/include/osmocom/ranap/RANAP_D-RNTI.h b/include/osmocom/ranap/RANAP_D-RNTI.h index 4ede3e4..3578d91 100644 --- a/include/osmocom/ranap/RANAP_D-RNTI.h +++ b/include/osmocom/ranap/RANAP_D-RNTI.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_D_RNTI_H_ diff --git a/include/osmocom/ranap/RANAP_DCH-ID.h b/include/osmocom/ranap/RANAP_DCH-ID.h index 756fd5d..bd9e416 100644 --- a/include/osmocom/ranap/RANAP_DCH-ID.h +++ b/include/osmocom/ranap/RANAP_DCH-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_DCH_ID_H_ diff --git a/include/osmocom/ranap/RANAP_DL-GTP-PDU-SequenceNumber.h b/include/osmocom/ranap/RANAP_DL-GTP-PDU-SequenceNumber.h index 94b1ad1..4710dd4 100644 --- a/include/osmocom/ranap/RANAP_DL-GTP-PDU-SequenceNumber.h +++ b/include/osmocom/ranap/RANAP_DL-GTP-PDU-SequenceNumber.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_DL_GTP_PDU_SequenceNumber_H_ diff --git a/include/osmocom/ranap/RANAP_DL-N-PDU-SequenceNumber.h b/include/osmocom/ranap/RANAP_DL-N-PDU-SequenceNumber.h index 1b4d062..12413cf 100644 --- a/include/osmocom/ranap/RANAP_DL-N-PDU-SequenceNumber.h +++ b/include/osmocom/ranap/RANAP_DL-N-PDU-SequenceNumber.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_DL_N_PDU_SequenceNumber_H_ diff --git a/include/osmocom/ranap/RANAP_DRX-CycleLengthCoefficient.h b/include/osmocom/ranap/RANAP_DRX-CycleLengthCoefficient.h index f1af3ed..b6814cb 100644 --- a/include/osmocom/ranap/RANAP_DRX-CycleLengthCoefficient.h +++ b/include/osmocom/ranap/RANAP_DRX-CycleLengthCoefficient.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_DRX_CycleLengthCoefficient_H_ diff --git a/include/osmocom/ranap/RANAP_DSCH-ID.h b/include/osmocom/ranap/RANAP_DSCH-ID.h index 54e678b..bd76db7 100644 --- a/include/osmocom/ranap/RANAP_DSCH-ID.h +++ b/include/osmocom/ranap/RANAP_DSCH-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_DSCH_ID_H_ diff --git a/include/osmocom/ranap/RANAP_DataPDUType.h b/include/osmocom/ranap/RANAP_DataPDUType.h index f732d62..8b0f10c 100644 --- a/include/osmocom/ranap/RANAP_DataPDUType.h +++ b/include/osmocom/ranap/RANAP_DataPDUType.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_DataPDUType_H_ diff --git a/include/osmocom/ranap/RANAP_DataVolumeList-Value.h b/include/osmocom/ranap/RANAP_DataVolumeList-Value.h new file mode 100644 index 0000000..1651a30 --- /dev/null +++ b/include/osmocom/ranap/RANAP_DataVolumeList-Value.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-PDU" + * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` + */ + +#ifndef _RANAP_DataVolumeList_Value_H_ +#define _RANAP_DataVolumeList_Value_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/ranap/RANAP_UnsuccessfullyTransmittedDataVolume.h> +#include <osmocom/ranap/RANAP_DataVolumeReference.h> +#include <osmocom/ranap/RANAP_ProtocolExtensionContainer.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* RANAP_DataVolumeList-Value */ +typedef struct RANAP_DataVolumeList_Value { + RANAP_UnsuccessfullyTransmittedDataVolume_t dl_UnsuccessfullyTransmittedDataVolume; + RANAP_DataVolumeReference_t *dataVolumeReference /* OPTIONAL */; + RANAP_ProtocolExtensionContainer_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RANAP_DataVolumeList_Value_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RANAP_DataVolumeList_Value; + +#ifdef __cplusplus +} +#endif + +#endif /* _RANAP_DataVolumeList_Value_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/ranap/RANAP_DataVolumeList.h b/include/osmocom/ranap/RANAP_DataVolumeList.h index 459c2d5..555b138 100644 --- a/include/osmocom/ranap/RANAP_DataVolumeList.h +++ b/include/osmocom/ranap/RANAP_DataVolumeList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_DataVolumeList_H_ @@ -11,11 +12,8 @@ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/ranap/RANAP_DataVolumeList-Value.h> #include <asn_SEQUENCE_OF.h> -#include <osmocom/ranap/RANAP_UnsuccessfullyTransmittedDataVolume.h> -#include <osmocom/ranap/RANAP_DataVolumeReference.h> -#include <osmocom/ranap/RANAP_ProtocolExtensionContainer.h> -#include <constr_SEQUENCE.h> #include <constr_SEQUENCE_OF.h> #ifdef __cplusplus @@ -24,18 +22,7 @@ extern "C" { /* RANAP_DataVolumeList */ typedef struct RANAP_DataVolumeList { - A_SEQUENCE_OF(struct MemberH { - RANAP_UnsuccessfullyTransmittedDataVolume_t dl_UnsuccessfullyTransmittedDataVolume; - RANAP_DataVolumeReference_t *dataVolumeReference /* OPTIONAL */; - RANAP_ProtocolExtensionContainer_t *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ) list; + A_SEQUENCE_OF(RANAP_DataVolumeList_Value_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/include/osmocom/ranap/RANAP_DataVolumeReference.h b/include/osmocom/ranap/RANAP_DataVolumeReference.h index 693de2b..74c4276 100644 --- a/include/osmocom/ranap/RANAP_DataVolumeReference.h +++ b/include/osmocom/ranap/RANAP_DataVolumeReference.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_DataVolumeReference_H_ diff --git a/include/osmocom/ranap/RANAP_DataVolumeReport.h b/include/osmocom/ranap/RANAP_DataVolumeReport.h index 1018cd7..0f0544d 100644 --- a/include/osmocom/ranap/RANAP_DataVolumeReport.h +++ b/include/osmocom/ranap/RANAP_DataVolumeReport.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_DataVolumeReport_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_DataVolumeReport */ typedef struct RANAP_DataVolumeReport { - struct dataVolumeReport_ies { + struct RANAP_DataVolumeReport__dataVolumeReport_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_DataVolumeReportList.h b/include/osmocom/ranap/RANAP_DataVolumeReportList.h index 9a26ba7..d315c23 100644 --- a/include/osmocom/ranap/RANAP_DataVolumeReportList.h +++ b/include/osmocom/ranap/RANAP_DataVolumeReportList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_DataVolumeReportList_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_DataVolumeReportList */ typedef struct RANAP_DataVolumeReportList { - struct dataVolumeReportListe_ies { + struct RANAP_DataVolumeReportList__dataVolumeReportListe_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_DataVolumeReportRequest.h b/include/osmocom/ranap/RANAP_DataVolumeReportRequest.h index cf76036..42a9778 100644 --- a/include/osmocom/ranap/RANAP_DataVolumeReportRequest.h +++ b/include/osmocom/ranap/RANAP_DataVolumeReportRequest.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_DataVolumeReportRequest_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_DataVolumeReportRequest */ typedef struct RANAP_DataVolumeReportRequest { - struct dataVolumeReportRequest_ies { + struct RANAP_DataVolumeReportRequest__dataVolumeReportRequest_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_DataVolumeReportingIndication.h b/include/osmocom/ranap/RANAP_DataVolumeReportingIndication.h index feaa072..e1bac22 100644 --- a/include/osmocom/ranap/RANAP_DataVolumeReportingIndication.h +++ b/include/osmocom/ranap/RANAP_DataVolumeReportingIndication.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_DataVolumeReportingIndication_H_ diff --git a/include/osmocom/ranap/RANAP_DeliveryOfErroneousSDU.h b/include/osmocom/ranap/RANAP_DeliveryOfErroneousSDU.h index 6e95465..db04e8c 100644 --- a/include/osmocom/ranap/RANAP_DeliveryOfErroneousSDU.h +++ b/include/osmocom/ranap/RANAP_DeliveryOfErroneousSDU.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_DeliveryOfErroneousSDU_H_ diff --git a/include/osmocom/ranap/RANAP_DeliveryOrder.h b/include/osmocom/ranap/RANAP_DeliveryOrder.h index 8968908..7c4a636 100644 --- a/include/osmocom/ranap/RANAP_DeliveryOrder.h +++ b/include/osmocom/ranap/RANAP_DeliveryOrder.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_DeliveryOrder_H_ diff --git a/include/osmocom/ranap/RANAP_DeltaRAListofIdleModeUEs.h b/include/osmocom/ranap/RANAP_DeltaRAListofIdleModeUEs.h index 209e61c..253d718 100644 --- a/include/osmocom/ranap/RANAP_DeltaRAListofIdleModeUEs.h +++ b/include/osmocom/ranap/RANAP_DeltaRAListofIdleModeUEs.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_DeltaRAListofIdleModeUEs_H_ diff --git a/include/osmocom/ranap/RANAP_DirectInformationTransfer.h b/include/osmocom/ranap/RANAP_DirectInformationTransfer.h index 08478d5..11b8e77 100644 --- a/include/osmocom/ranap/RANAP_DirectInformationTransfer.h +++ b/include/osmocom/ranap/RANAP_DirectInformationTransfer.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_DirectInformationTransfer_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_DirectInformationTransfer */ typedef struct RANAP_DirectInformationTransfer { - struct directInformationTransfer_ies { + struct RANAP_DirectInformationTransfer__directInformationTransfer_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_DirectReportingIndicator.h b/include/osmocom/ranap/RANAP_DirectReportingIndicator.h index 8636557..deb12c8 100644 --- a/include/osmocom/ranap/RANAP_DirectReportingIndicator.h +++ b/include/osmocom/ranap/RANAP_DirectReportingIndicator.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_DirectReportingIndicator_H_ diff --git a/include/osmocom/ranap/RANAP_DirectTransfer-IE-ContainerList.h b/include/osmocom/ranap/RANAP_DirectTransfer-IE-ContainerList.h index cc7d096..c4690ba 100644 --- a/include/osmocom/ranap/RANAP_DirectTransfer-IE-ContainerList.h +++ b/include/osmocom/ranap/RANAP_DirectTransfer-IE-ContainerList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_DirectTransfer_IE_ContainerList_H_ diff --git a/include/osmocom/ranap/RANAP_DirectTransfer.h b/include/osmocom/ranap/RANAP_DirectTransfer.h index 2a8a1ff..8589fa1 100644 --- a/include/osmocom/ranap/RANAP_DirectTransfer.h +++ b/include/osmocom/ranap/RANAP_DirectTransfer.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_DirectTransfer_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_DirectTransfer */ typedef struct RANAP_DirectTransfer { - struct directTransfer_ies { + struct RANAP_DirectTransfer__directTransfer_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_DirectTransferInformationItem-RANAP-RelocInf.h b/include/osmocom/ranap/RANAP_DirectTransferInformationItem-RANAP-RelocInf.h index 59dd639..a25a93b 100644 --- a/include/osmocom/ranap/RANAP_DirectTransferInformationItem-RANAP-RelocInf.h +++ b/include/osmocom/ranap/RANAP_DirectTransferInformationItem-RANAP-RelocInf.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_DirectTransferInformationItem_RANAP_RelocInf_H_ diff --git a/include/osmocom/ranap/RANAP_E-DCH-MAC-d-Flow-ID.h b/include/osmocom/ranap/RANAP_E-DCH-MAC-d-Flow-ID.h index 6fc0fda..0e1594e 100644 --- a/include/osmocom/ranap/RANAP_E-DCH-MAC-d-Flow-ID.h +++ b/include/osmocom/ranap/RANAP_E-DCH-MAC-d-Flow-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_E_DCH_MAC_d_Flow_ID_H_ diff --git a/include/osmocom/ranap/RANAP_E-UTRAN-Service-Handover.h b/include/osmocom/ranap/RANAP_E-UTRAN-Service-Handover.h index 689c743..449793a 100644 --- a/include/osmocom/ranap/RANAP_E-UTRAN-Service-Handover.h +++ b/include/osmocom/ranap/RANAP_E-UTRAN-Service-Handover.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_E_UTRAN_Service_Handover_H_ diff --git a/include/osmocom/ranap/RANAP_EARFCN-Extended.h b/include/osmocom/ranap/RANAP_EARFCN-Extended.h index 9b84df4..34e488e 100644 --- a/include/osmocom/ranap/RANAP_EARFCN-Extended.h +++ b/include/osmocom/ranap/RANAP_EARFCN-Extended.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_EARFCN_Extended_H_ diff --git a/include/osmocom/ranap/RANAP_ENB-ID.h b/include/osmocom/ranap/RANAP_ENB-ID.h index 4a0a3c6..9e67b54 100644 --- a/include/osmocom/ranap/RANAP_ENB-ID.h +++ b/include/osmocom/ranap/RANAP_ENB-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ENB_ID_H_ diff --git a/include/osmocom/ranap/RANAP_EUTRANFrequencies-Value.h b/include/osmocom/ranap/RANAP_EUTRANFrequencies-Value.h new file mode 100644 index 0000000..2c62d54 --- /dev/null +++ b/include/osmocom/ranap/RANAP_EUTRANFrequencies-Value.h @@ -0,0 +1,42 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-IEs" + * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` + */ + +#ifndef _RANAP_EUTRANFrequencies_Value_H_ +#define _RANAP_EUTRANFrequencies_Value_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <NativeInteger.h> +#include <osmocom/ranap/RANAP_MeasBand.h> +#include <osmocom/ranap/RANAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* RANAP_EUTRANFrequencies-Value */ +typedef struct RANAP_EUTRANFrequencies_Value { + long earfcn; + RANAP_MeasBand_t *measBand /* OPTIONAL */; + RANAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RANAP_EUTRANFrequencies_Value_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RANAP_EUTRANFrequencies_Value; + +#ifdef __cplusplus +} +#endif + +#endif /* _RANAP_EUTRANFrequencies_Value_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/ranap/RANAP_EUTRANFrequencies.h b/include/osmocom/ranap/RANAP_EUTRANFrequencies.h index f6c653c..cae9edb 100644 --- a/include/osmocom/ranap/RANAP_EUTRANFrequencies.h +++ b/include/osmocom/ranap/RANAP_EUTRANFrequencies.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_EUTRANFrequencies_H_ @@ -11,11 +12,8 @@ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/ranap/RANAP_EUTRANFrequencies-Value.h> #include <asn_SEQUENCE_OF.h> -#include <NativeInteger.h> -#include <osmocom/ranap/RANAP_MeasBand.h> -#include <osmocom/ranap/RANAP_IE-Extensions.h> -#include <constr_SEQUENCE.h> #include <constr_SEQUENCE_OF.h> #ifdef __cplusplus @@ -24,14 +22,7 @@ extern "C" { /* RANAP_EUTRANFrequencies */ typedef struct RANAP_EUTRANFrequencies { - A_SEQUENCE_OF(struct MemberJ { - long earfcn; - RANAP_MeasBand_t *measBand /* OPTIONAL */; - RANAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ) list; + A_SEQUENCE_OF(RANAP_EUTRANFrequencies_Value_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/include/osmocom/ranap/RANAP_EncryptionAlgorithm.h b/include/osmocom/ranap/RANAP_EncryptionAlgorithm.h index 99f5b62..5b40a43 100644 --- a/include/osmocom/ranap/RANAP_EncryptionAlgorithm.h +++ b/include/osmocom/ranap/RANAP_EncryptionAlgorithm.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_EncryptionAlgorithm_H_ diff --git a/include/osmocom/ranap/RANAP_EncryptionInformation.h b/include/osmocom/ranap/RANAP_EncryptionInformation.h index 6f3c91e..0618236 100644 --- a/include/osmocom/ranap/RANAP_EncryptionInformation.h +++ b/include/osmocom/ranap/RANAP_EncryptionInformation.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_EncryptionInformation_H_ diff --git a/include/osmocom/ranap/RANAP_EncryptionKey.h b/include/osmocom/ranap/RANAP_EncryptionKey.h index 7173803..f787ac0 100644 --- a/include/osmocom/ranap/RANAP_EncryptionKey.h +++ b/include/osmocom/ranap/RANAP_EncryptionKey.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_EncryptionKey_H_ diff --git a/include/osmocom/ranap/RANAP_End-Of-CSFB.h b/include/osmocom/ranap/RANAP_End-Of-CSFB.h index b992889..6c41acf 100644 --- a/include/osmocom/ranap/RANAP_End-Of-CSFB.h +++ b/include/osmocom/ranap/RANAP_End-Of-CSFB.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_End_Of_CSFB_H_ diff --git a/include/osmocom/ranap/RANAP_EnhancedRelocationCompleteConfirm.h b/include/osmocom/ranap/RANAP_EnhancedRelocationCompleteConfirm.h index fa5b0f5..3b45124 100644 --- a/include/osmocom/ranap/RANAP_EnhancedRelocationCompleteConfirm.h +++ b/include/osmocom/ranap/RANAP_EnhancedRelocationCompleteConfirm.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_EnhancedRelocationCompleteConfirm_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_EnhancedRelocationCompleteConfirm */ typedef struct RANAP_EnhancedRelocationCompleteConfirm { - struct enhancedRelocationCompleteConfirm_ies { + struct RANAP_EnhancedRelocationCompleteConfirm__enhancedRelocationCompleteConfirm_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_EnhancedRelocationCompleteFailure.h b/include/osmocom/ranap/RANAP_EnhancedRelocationCompleteFailure.h index 2e0b586..0f2dea7 100644 --- a/include/osmocom/ranap/RANAP_EnhancedRelocationCompleteFailure.h +++ b/include/osmocom/ranap/RANAP_EnhancedRelocationCompleteFailure.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_EnhancedRelocationCompleteFailure_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_EnhancedRelocationCompleteFailure */ typedef struct RANAP_EnhancedRelocationCompleteFailure { - struct enhancedRelocationCompleteFailure_ies { + struct RANAP_EnhancedRelocationCompleteFailure__enhancedRelocationCompleteFailure_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_EnhancedRelocationCompleteRequest.h b/include/osmocom/ranap/RANAP_EnhancedRelocationCompleteRequest.h index 91a6ac3..661b8d1 100644 --- a/include/osmocom/ranap/RANAP_EnhancedRelocationCompleteRequest.h +++ b/include/osmocom/ranap/RANAP_EnhancedRelocationCompleteRequest.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_EnhancedRelocationCompleteRequest_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_EnhancedRelocationCompleteRequest */ typedef struct RANAP_EnhancedRelocationCompleteRequest { - struct enhancedRelocationCompleteRequest_ies { + struct RANAP_EnhancedRelocationCompleteRequest__enhancedRelocationCompleteRequest_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_EnhancedRelocationCompleteResponse.h b/include/osmocom/ranap/RANAP_EnhancedRelocationCompleteResponse.h index 26126c2..2eb8eda 100644 --- a/include/osmocom/ranap/RANAP_EnhancedRelocationCompleteResponse.h +++ b/include/osmocom/ranap/RANAP_EnhancedRelocationCompleteResponse.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_EnhancedRelocationCompleteResponse_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_EnhancedRelocationCompleteResponse */ typedef struct RANAP_EnhancedRelocationCompleteResponse { - struct enhancedRelocationCompleteResponse_ies { + struct RANAP_EnhancedRelocationCompleteResponse__enhancedRelocationCompleteResponse_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_EquipmentsToBeTraced.h b/include/osmocom/ranap/RANAP_EquipmentsToBeTraced.h index e9084ec..fc7308c 100644 --- a/include/osmocom/ranap/RANAP_EquipmentsToBeTraced.h +++ b/include/osmocom/ranap/RANAP_EquipmentsToBeTraced.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_EquipmentsToBeTraced_H_ diff --git a/include/osmocom/ranap/RANAP_ErrorIndication.h b/include/osmocom/ranap/RANAP_ErrorIndication.h index 5bad287..b815d30 100644 --- a/include/osmocom/ranap/RANAP_ErrorIndication.h +++ b/include/osmocom/ranap/RANAP_ErrorIndication.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ErrorIndication_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_ErrorIndication */ typedef struct RANAP_ErrorIndication { - struct errorIndication_ies { + struct RANAP_ErrorIndication__errorIndication_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_Event.h b/include/osmocom/ranap/RANAP_Event.h index a3a0e67..cd40c33 100644 --- a/include/osmocom/ranap/RANAP_Event.h +++ b/include/osmocom/ranap/RANAP_Event.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Event_H_ diff --git a/include/osmocom/ranap/RANAP_Event1F-Parameters.h b/include/osmocom/ranap/RANAP_Event1F-Parameters.h index 96fd004..e6926a9 100644 --- a/include/osmocom/ranap/RANAP_Event1F-Parameters.h +++ b/include/osmocom/ranap/RANAP_Event1F-Parameters.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Event1F_Parameters_H_ diff --git a/include/osmocom/ranap/RANAP_Event1I-Parameters.h b/include/osmocom/ranap/RANAP_Event1I-Parameters.h index ded464f..03de139 100644 --- a/include/osmocom/ranap/RANAP_Event1I-Parameters.h +++ b/include/osmocom/ranap/RANAP_Event1I-Parameters.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Event1I_Parameters_H_ diff --git a/include/osmocom/ranap/RANAP_ExtendedGuaranteedBitrate.h b/include/osmocom/ranap/RANAP_ExtendedGuaranteedBitrate.h index 404cecb..50b37be 100644 --- a/include/osmocom/ranap/RANAP_ExtendedGuaranteedBitrate.h +++ b/include/osmocom/ranap/RANAP_ExtendedGuaranteedBitrate.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ExtendedGuaranteedBitrate_H_ diff --git a/include/osmocom/ranap/RANAP_ExtendedMaxBitrate.h b/include/osmocom/ranap/RANAP_ExtendedMaxBitrate.h index 07af50d..cdf7df3 100644 --- a/include/osmocom/ranap/RANAP_ExtendedMaxBitrate.h +++ b/include/osmocom/ranap/RANAP_ExtendedMaxBitrate.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ExtendedMaxBitrate_H_ diff --git a/include/osmocom/ranap/RANAP_ExtendedRNC-ID.h b/include/osmocom/ranap/RANAP_ExtendedRNC-ID.h index c76a124..f78c388 100644 --- a/include/osmocom/ranap/RANAP_ExtendedRNC-ID.h +++ b/include/osmocom/ranap/RANAP_ExtendedRNC-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ExtendedRNC_ID_H_ diff --git a/include/osmocom/ranap/RANAP_ForwardSRNS-Context.h b/include/osmocom/ranap/RANAP_ForwardSRNS-Context.h index da74458..15cb4d4 100644 --- a/include/osmocom/ranap/RANAP_ForwardSRNS-Context.h +++ b/include/osmocom/ranap/RANAP_ForwardSRNS-Context.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ForwardSRNS_Context_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_ForwardSRNS-Context */ typedef struct RANAP_ForwardSRNS_Context { - struct forwardSRNS_Context_ies { + struct RANAP_ForwardSRNS_Context__forwardSRNS_Context_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_ForwardingIndication.h b/include/osmocom/ranap/RANAP_ForwardingIndication.h index ee4481c..3fc576e 100644 --- a/include/osmocom/ranap/RANAP_ForwardingIndication.h +++ b/include/osmocom/ranap/RANAP_ForwardingIndication.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ForwardingIndication_H_ diff --git a/include/osmocom/ranap/RANAP_FrameSequenceNumber.h b/include/osmocom/ranap/RANAP_FrameSequenceNumber.h index 0c2d9e2..64b4065 100644 --- a/include/osmocom/ranap/RANAP_FrameSequenceNumber.h +++ b/include/osmocom/ranap/RANAP_FrameSequenceNumber.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_FrameSequenceNumber_H_ diff --git a/include/osmocom/ranap/RANAP_FrequenceLayerConvergenceFlag.h b/include/osmocom/ranap/RANAP_FrequenceLayerConvergenceFlag.h index df2eaf5..9db487a 100644 --- a/include/osmocom/ranap/RANAP_FrequenceLayerConvergenceFlag.h +++ b/include/osmocom/ranap/RANAP_FrequenceLayerConvergenceFlag.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_FrequenceLayerConvergenceFlag_H_ diff --git a/include/osmocom/ranap/RANAP_GA-AltitudeAndDirection.h b/include/osmocom/ranap/RANAP_GA-AltitudeAndDirection.h index e270a75..b105371 100644 --- a/include/osmocom/ranap/RANAP_GA-AltitudeAndDirection.h +++ b/include/osmocom/ranap/RANAP_GA-AltitudeAndDirection.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GA_AltitudeAndDirection_H_ @@ -20,10 +21,10 @@ extern "C" { #endif /* Dependencies */ -typedef enum directionOfAltitude { - directionOfAltitude_height = 0, - directionOfAltitude_depth = 1 -} e_directionOfAltitude; +typedef enum RANAP_GA_AltitudeAndDirection__directionOfAltitude { + RANAP_GA_AltitudeAndDirection__directionOfAltitude_height = 0, + RANAP_GA_AltitudeAndDirection__directionOfAltitude_depth = 1 +} e_RANAP_GA_AltitudeAndDirection__directionOfAltitude; /* RANAP_GA-AltitudeAndDirection */ typedef struct RANAP_GA_AltitudeAndDirection { diff --git a/include/osmocom/ranap/RANAP_GA-EllipsoidArc.h b/include/osmocom/ranap/RANAP_GA-EllipsoidArc.h index 5f2442b..4e667c5 100644 --- a/include/osmocom/ranap/RANAP_GA-EllipsoidArc.h +++ b/include/osmocom/ranap/RANAP_GA-EllipsoidArc.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GA_EllipsoidArc_H_ diff --git a/include/osmocom/ranap/RANAP_GA-Point.h b/include/osmocom/ranap/RANAP_GA-Point.h index 5aebf02..7f25296 100644 --- a/include/osmocom/ranap/RANAP_GA-Point.h +++ b/include/osmocom/ranap/RANAP_GA-Point.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GA_Point_H_ diff --git a/include/osmocom/ranap/RANAP_GA-PointWithAltitude.h b/include/osmocom/ranap/RANAP_GA-PointWithAltitude.h index a709c8d..b76940f 100644 --- a/include/osmocom/ranap/RANAP_GA-PointWithAltitude.h +++ b/include/osmocom/ranap/RANAP_GA-PointWithAltitude.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GA_PointWithAltitude_H_ diff --git a/include/osmocom/ranap/RANAP_GA-PointWithAltitudeAndUncertaintyEllipsoid.h b/include/osmocom/ranap/RANAP_GA-PointWithAltitudeAndUncertaintyEllipsoid.h index 76663f5..72efdb8 100644 --- a/include/osmocom/ranap/RANAP_GA-PointWithAltitudeAndUncertaintyEllipsoid.h +++ b/include/osmocom/ranap/RANAP_GA-PointWithAltitudeAndUncertaintyEllipsoid.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GA_PointWithAltitudeAndUncertaintyEllipsoid_H_ diff --git a/include/osmocom/ranap/RANAP_GA-PointWithUnCertainty.h b/include/osmocom/ranap/RANAP_GA-PointWithUnCertainty.h index a498393..a557a42 100644 --- a/include/osmocom/ranap/RANAP_GA-PointWithUnCertainty.h +++ b/include/osmocom/ranap/RANAP_GA-PointWithUnCertainty.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GA_PointWithUnCertainty_H_ diff --git a/include/osmocom/ranap/RANAP_GA-PointWithUnCertaintyEllipse.h b/include/osmocom/ranap/RANAP_GA-PointWithUnCertaintyEllipse.h index 0ed80e7..cf95dd1 100644 --- a/include/osmocom/ranap/RANAP_GA-PointWithUnCertaintyEllipse.h +++ b/include/osmocom/ranap/RANAP_GA-PointWithUnCertaintyEllipse.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GA_PointWithUnCertaintyEllipse_H_ diff --git a/include/osmocom/ranap/RANAP_GA-Polygon-Value.h b/include/osmocom/ranap/RANAP_GA-Polygon-Value.h new file mode 100644 index 0000000..c11c873 --- /dev/null +++ b/include/osmocom/ranap/RANAP_GA-Polygon-Value.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-IEs" + * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` + */ + +#ifndef _RANAP_GA_Polygon_Value_H_ +#define _RANAP_GA_Polygon_Value_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/ranap/RANAP_GeographicalCoordinates.h> +#include <osmocom/ranap/RANAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* RANAP_GA-Polygon-Value */ +typedef struct RANAP_GA_Polygon_Value { + RANAP_GeographicalCoordinates_t geographicalCoordinates; + RANAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RANAP_GA_Polygon_Value_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RANAP_GA_Polygon_Value; + +#ifdef __cplusplus +} +#endif + +#endif /* _RANAP_GA_Polygon_Value_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/ranap/RANAP_GA-Polygon.h b/include/osmocom/ranap/RANAP_GA-Polygon.h index 200d0a4..6fba657 100644 --- a/include/osmocom/ranap/RANAP_GA-Polygon.h +++ b/include/osmocom/ranap/RANAP_GA-Polygon.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GA_Polygon_H_ @@ -11,10 +12,8 @@ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/ranap/RANAP_GA-Polygon-Value.h> #include <asn_SEQUENCE_OF.h> -#include <osmocom/ranap/RANAP_GeographicalCoordinates.h> -#include <osmocom/ranap/RANAP_IE-Extensions.h> -#include <constr_SEQUENCE.h> #include <constr_SEQUENCE_OF.h> #ifdef __cplusplus @@ -23,17 +22,7 @@ extern "C" { /* RANAP_GA-Polygon */ typedef struct RANAP_GA_Polygon { - A_SEQUENCE_OF(struct Member { - RANAP_GeographicalCoordinates_t geographicalCoordinates; - RANAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ) list; + A_SEQUENCE_OF(RANAP_GA_Polygon_Value_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/include/osmocom/ranap/RANAP_GA-UncertaintyEllipse.h b/include/osmocom/ranap/RANAP_GA-UncertaintyEllipse.h index 0524a29..3027c9e 100644 --- a/include/osmocom/ranap/RANAP_GA-UncertaintyEllipse.h +++ b/include/osmocom/ranap/RANAP_GA-UncertaintyEllipse.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GA_UncertaintyEllipse_H_ diff --git a/include/osmocom/ranap/RANAP_GANSS-PositioningDataSet.h b/include/osmocom/ranap/RANAP_GANSS-PositioningDataSet.h index 5f1784f..1324192 100644 --- a/include/osmocom/ranap/RANAP_GANSS-PositioningDataSet.h +++ b/include/osmocom/ranap/RANAP_GANSS-PositioningDataSet.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GANSS_PositioningDataSet_H_ diff --git a/include/osmocom/ranap/RANAP_GANSS-PositioningMethodAndUsage.h b/include/osmocom/ranap/RANAP_GANSS-PositioningMethodAndUsage.h index 793ca23..cdc7c66 100644 --- a/include/osmocom/ranap/RANAP_GANSS-PositioningMethodAndUsage.h +++ b/include/osmocom/ranap/RANAP_GANSS-PositioningMethodAndUsage.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GANSS_PositioningMethodAndUsage_H_ diff --git a/include/osmocom/ranap/RANAP_GERAN-BSC-Container.h b/include/osmocom/ranap/RANAP_GERAN-BSC-Container.h index 920b279..12dfbd3 100644 --- a/include/osmocom/ranap/RANAP_GERAN-BSC-Container.h +++ b/include/osmocom/ranap/RANAP_GERAN-BSC-Container.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GERAN_BSC_Container_H_ diff --git a/include/osmocom/ranap/RANAP_GERAN-Cell-ID.h b/include/osmocom/ranap/RANAP_GERAN-Cell-ID.h index c161a39..6e867d4 100644 --- a/include/osmocom/ranap/RANAP_GERAN-Cell-ID.h +++ b/include/osmocom/ranap/RANAP_GERAN-Cell-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GERAN_Cell_ID_H_ diff --git a/include/osmocom/ranap/RANAP_GERAN-Classmark.h b/include/osmocom/ranap/RANAP_GERAN-Classmark.h index 8de744b..029338c 100644 --- a/include/osmocom/ranap/RANAP_GERAN-Classmark.h +++ b/include/osmocom/ranap/RANAP_GERAN-Classmark.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GERAN_Classmark_H_ diff --git a/include/osmocom/ranap/RANAP_GERAN-Iumode-RAB-Failed-RABAssgntResponse-Item.h b/include/osmocom/ranap/RANAP_GERAN-Iumode-RAB-Failed-RABAssgntResponse-Item.h index 7466bc5..90a1a7f 100644 --- a/include/osmocom/ranap/RANAP_GERAN-Iumode-RAB-Failed-RABAssgntResponse-Item.h +++ b/include/osmocom/ranap/RANAP_GERAN-Iumode-RAB-Failed-RABAssgntResponse-Item.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GERAN_Iumode_RAB_Failed_RABAssgntResponse_Item_H_ diff --git a/include/osmocom/ranap/RANAP_GERAN-Iumode-RAB-Failed-RABAssgntResponse-List.h b/include/osmocom/ranap/RANAP_GERAN-Iumode-RAB-Failed-RABAssgntResponse-List.h index 1d8ea3b..a7bd019 100644 --- a/include/osmocom/ranap/RANAP_GERAN-Iumode-RAB-Failed-RABAssgntResponse-List.h +++ b/include/osmocom/ranap/RANAP_GERAN-Iumode-RAB-Failed-RABAssgntResponse-List.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GERAN_Iumode_RAB_Failed_RABAssgntResponse_List_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_GERAN-Iumode-RAB-Failed-RABAssgntResponse-List */ typedef struct RANAP_GERAN_Iumode_RAB_Failed_RABAssgntResponse_List { - struct geraN_Iumode_RAB_Failed_RABAssgntResponse_List_ies { + struct RANAP_GERAN_Iumode_RAB_Failed_RABAssgntResponse_List__geraN_Iumode_RAB_Failed_RABAssgntResponse_List_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_GTP-TEI.h b/include/osmocom/ranap/RANAP_GTP-TEI.h index 01382e0..71ecaf9 100644 --- a/include/osmocom/ranap/RANAP_GTP-TEI.h +++ b/include/osmocom/ranap/RANAP_GTP-TEI.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GTP_TEI_H_ diff --git a/include/osmocom/ranap/RANAP_GeographicalArea.h b/include/osmocom/ranap/RANAP_GeographicalArea.h index 66474d2..a0bf56d 100644 --- a/include/osmocom/ranap/RANAP_GeographicalArea.h +++ b/include/osmocom/ranap/RANAP_GeographicalArea.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GeographicalArea_H_ diff --git a/include/osmocom/ranap/RANAP_GeographicalCoordinates.h b/include/osmocom/ranap/RANAP_GeographicalCoordinates.h index 48a638e..c970d86 100644 --- a/include/osmocom/ranap/RANAP_GeographicalCoordinates.h +++ b/include/osmocom/ranap/RANAP_GeographicalCoordinates.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GeographicalCoordinates_H_ @@ -21,10 +22,10 @@ extern "C" { #endif /* Dependencies */ -typedef enum latitudeSign { - latitudeSign_north = 0, - latitudeSign_south = 1 -} e_latitudeSign; +typedef enum RANAP_GeographicalCoordinates__latitudeSign { + RANAP_GeographicalCoordinates__latitudeSign_north = 0, + RANAP_GeographicalCoordinates__latitudeSign_south = 1 +} e_RANAP_GeographicalCoordinates__latitudeSign; /* RANAP_GeographicalCoordinates */ typedef struct RANAP_GeographicalCoordinates { diff --git a/include/osmocom/ranap/RANAP_GlobalCN-ID.h b/include/osmocom/ranap/RANAP_GlobalCN-ID.h index 09b43e0..a9edce8 100644 --- a/include/osmocom/ranap/RANAP_GlobalCN-ID.h +++ b/include/osmocom/ranap/RANAP_GlobalCN-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GlobalCN_ID_H_ diff --git a/include/osmocom/ranap/RANAP_GlobalRNC-ID.h b/include/osmocom/ranap/RANAP_GlobalRNC-ID.h index 90c1264..de83863 100644 --- a/include/osmocom/ranap/RANAP_GlobalRNC-ID.h +++ b/include/osmocom/ranap/RANAP_GlobalRNC-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GlobalRNC_ID_H_ diff --git a/include/osmocom/ranap/RANAP_GuaranteedBitrate.h b/include/osmocom/ranap/RANAP_GuaranteedBitrate.h index bc3bf0a..5d9ccba 100644 --- a/include/osmocom/ranap/RANAP_GuaranteedBitrate.h +++ b/include/osmocom/ranap/RANAP_GuaranteedBitrate.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_GuaranteedBitrate_H_ diff --git a/include/osmocom/ranap/RANAP_HS-DSCH-MAC-d-Flow-ID.h b/include/osmocom/ranap/RANAP_HS-DSCH-MAC-d-Flow-ID.h index 1364acd..0577583 100644 --- a/include/osmocom/ranap/RANAP_HS-DSCH-MAC-d-Flow-ID.h +++ b/include/osmocom/ranap/RANAP_HS-DSCH-MAC-d-Flow-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_HS_DSCH_MAC_d_Flow_ID_H_ diff --git a/include/osmocom/ranap/RANAP_HigherBitratesThan16MbpsFlag.h b/include/osmocom/ranap/RANAP_HigherBitratesThan16MbpsFlag.h index 19dc7b4..98b8df9 100644 --- a/include/osmocom/ranap/RANAP_HigherBitratesThan16MbpsFlag.h +++ b/include/osmocom/ranap/RANAP_HigherBitratesThan16MbpsFlag.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_HigherBitratesThan16MbpsFlag_H_ diff --git a/include/osmocom/ranap/RANAP_HorizontalSpeedAndBearing.h b/include/osmocom/ranap/RANAP_HorizontalSpeedAndBearing.h index 9800231..c4cb88d 100644 --- a/include/osmocom/ranap/RANAP_HorizontalSpeedAndBearing.h +++ b/include/osmocom/ranap/RANAP_HorizontalSpeedAndBearing.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_HorizontalSpeedAndBearing_H_ diff --git a/include/osmocom/ranap/RANAP_HorizontalVelocity.h b/include/osmocom/ranap/RANAP_HorizontalVelocity.h index 802941c..5e5a183 100644 --- a/include/osmocom/ranap/RANAP_HorizontalVelocity.h +++ b/include/osmocom/ranap/RANAP_HorizontalVelocity.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_HorizontalVelocity_H_ diff --git a/include/osmocom/ranap/RANAP_HorizontalVelocityWithUncertainty.h b/include/osmocom/ranap/RANAP_HorizontalVelocityWithUncertainty.h index 5570c8c..3b53cc7 100644 --- a/include/osmocom/ranap/RANAP_HorizontalVelocityWithUncertainty.h +++ b/include/osmocom/ranap/RANAP_HorizontalVelocityWithUncertainty.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_HorizontalVelocityWithUncertainty_H_ diff --git a/include/osmocom/ranap/RANAP_HorizontalWithVerticalVelocity.h b/include/osmocom/ranap/RANAP_HorizontalWithVerticalVelocity.h index e0a03eb..88deea1 100644 --- a/include/osmocom/ranap/RANAP_HorizontalWithVerticalVelocity.h +++ b/include/osmocom/ranap/RANAP_HorizontalWithVerticalVelocity.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_HorizontalWithVerticalVelocity_H_ diff --git a/include/osmocom/ranap/RANAP_HorizontalWithVerticalVelocityAndUncertainty.h b/include/osmocom/ranap/RANAP_HorizontalWithVerticalVelocityAndUncertainty.h index b100f38..011fc13 100644 --- a/include/osmocom/ranap/RANAP_HorizontalWithVerticalVelocityAndUncertainty.h +++ b/include/osmocom/ranap/RANAP_HorizontalWithVerticalVelocityAndUncertainty.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_HorizontalWithVerticalVelocityAndUncertainty_H_ diff --git a/include/osmocom/ranap/RANAP_IE-Extensions.h b/include/osmocom/ranap/RANAP_IE-Extensions.h index c310803..fa5afb4 100644 --- a/include/osmocom/ranap/RANAP_IE-Extensions.h +++ b/include/osmocom/ranap/RANAP_IE-Extensions.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_IE_Extensions_H_ diff --git a/include/osmocom/ranap/RANAP_IE.h b/include/osmocom/ranap/RANAP_IE.h index 3ac83c0..3245dfa 100644 --- a/include/osmocom/ranap/RANAP_IE.h +++ b/include/osmocom/ranap/RANAP_IE.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_IE_H_ diff --git a/include/osmocom/ranap/RANAP_IMEI.h b/include/osmocom/ranap/RANAP_IMEI.h index 0416050..784a579 100644 --- a/include/osmocom/ranap/RANAP_IMEI.h +++ b/include/osmocom/ranap/RANAP_IMEI.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_IMEI_H_ diff --git a/include/osmocom/ranap/RANAP_IMEIGroup.h b/include/osmocom/ranap/RANAP_IMEIGroup.h index a3bd9d0..327a062 100644 --- a/include/osmocom/ranap/RANAP_IMEIGroup.h +++ b/include/osmocom/ranap/RANAP_IMEIGroup.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_IMEIGroup_H_ diff --git a/include/osmocom/ranap/RANAP_IMEIList.h b/include/osmocom/ranap/RANAP_IMEIList.h index 5e1246c..c25073f 100644 --- a/include/osmocom/ranap/RANAP_IMEIList.h +++ b/include/osmocom/ranap/RANAP_IMEIList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_IMEIList_H_ diff --git a/include/osmocom/ranap/RANAP_IMEISV.h b/include/osmocom/ranap/RANAP_IMEISV.h index 2866172..59e0a31 100644 --- a/include/osmocom/ranap/RANAP_IMEISV.h +++ b/include/osmocom/ranap/RANAP_IMEISV.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_IMEISV_H_ diff --git a/include/osmocom/ranap/RANAP_IMEISVGroup.h b/include/osmocom/ranap/RANAP_IMEISVGroup.h index 92a3836..27e185a 100644 --- a/include/osmocom/ranap/RANAP_IMEISVGroup.h +++ b/include/osmocom/ranap/RANAP_IMEISVGroup.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_IMEISVGroup_H_ diff --git a/include/osmocom/ranap/RANAP_IMEISVList.h b/include/osmocom/ranap/RANAP_IMEISVList.h index 8eb1996..2ea53eb 100644 --- a/include/osmocom/ranap/RANAP_IMEISVList.h +++ b/include/osmocom/ranap/RANAP_IMEISVList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_IMEISVList_H_ diff --git a/include/osmocom/ranap/RANAP_IMSI.h b/include/osmocom/ranap/RANAP_IMSI.h index 747c546..e836d87 100644 --- a/include/osmocom/ranap/RANAP_IMSI.h +++ b/include/osmocom/ranap/RANAP_IMSI.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <constr_CHOICE.h> diff --git a/include/osmocom/ranap/RANAP_IPMulticastAddress.h b/include/osmocom/ranap/RANAP_IPMulticastAddress.h index 8724d11..daa3748 100644 --- a/include/osmocom/ranap/RANAP_IPMulticastAddress.h +++ b/include/osmocom/ranap/RANAP_IPMulticastAddress.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_IPMulticastAddress_H_ diff --git a/include/osmocom/ranap/RANAP_IRAT-Measurement-Configuration.h b/include/osmocom/ranap/RANAP_IRAT-Measurement-Configuration.h index e2d1321..44ddc37 100644 --- a/include/osmocom/ranap/RANAP_IRAT-Measurement-Configuration.h +++ b/include/osmocom/ranap/RANAP_IRAT-Measurement-Configuration.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_IRAT_Measurement_Configuration_H_ diff --git a/include/osmocom/ranap/RANAP_IRATmeasurementParameters.h b/include/osmocom/ranap/RANAP_IRATmeasurementParameters.h index e52b0e2..b429c82 100644 --- a/include/osmocom/ranap/RANAP_IRATmeasurementParameters.h +++ b/include/osmocom/ranap/RANAP_IRATmeasurementParameters.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_IRATmeasurementParameters_H_ diff --git a/include/osmocom/ranap/RANAP_ImmediateMDT.h b/include/osmocom/ranap/RANAP_ImmediateMDT.h index 2399e42..ba92863 100644 --- a/include/osmocom/ranap/RANAP_ImmediateMDT.h +++ b/include/osmocom/ranap/RANAP_ImmediateMDT.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ImmediateMDT_H_ diff --git a/include/osmocom/ranap/RANAP_IncludeVelocity.h b/include/osmocom/ranap/RANAP_IncludeVelocity.h index 913d320..94c1e33 100644 --- a/include/osmocom/ranap/RANAP_IncludeVelocity.h +++ b/include/osmocom/ranap/RANAP_IncludeVelocity.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_IncludeVelocity_H_ diff --git a/include/osmocom/ranap/RANAP_InformationExchangeID.h b/include/osmocom/ranap/RANAP_InformationExchangeID.h index a5aac13..760a581 100644 --- a/include/osmocom/ranap/RANAP_InformationExchangeID.h +++ b/include/osmocom/ranap/RANAP_InformationExchangeID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_InformationExchangeID_H_ diff --git a/include/osmocom/ranap/RANAP_InformationExchangeType.h b/include/osmocom/ranap/RANAP_InformationExchangeType.h index 57d05b9..9fde4db 100644 --- a/include/osmocom/ranap/RANAP_InformationExchangeType.h +++ b/include/osmocom/ranap/RANAP_InformationExchangeType.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_InformationExchangeType_H_ diff --git a/include/osmocom/ranap/RANAP_InformationRequestType.h b/include/osmocom/ranap/RANAP_InformationRequestType.h index 03ccc15..612b0dc 100644 --- a/include/osmocom/ranap/RANAP_InformationRequestType.h +++ b/include/osmocom/ranap/RANAP_InformationRequestType.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_InformationRequestType_H_ diff --git a/include/osmocom/ranap/RANAP_InformationRequested.h b/include/osmocom/ranap/RANAP_InformationRequested.h index 0b195b1..b280731 100644 --- a/include/osmocom/ranap/RANAP_InformationRequested.h +++ b/include/osmocom/ranap/RANAP_InformationRequested.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_InformationRequested_H_ diff --git a/include/osmocom/ranap/RANAP_InformationTransferConfirmation.h b/include/osmocom/ranap/RANAP_InformationTransferConfirmation.h index eab0930..65e3ba6 100644 --- a/include/osmocom/ranap/RANAP_InformationTransferConfirmation.h +++ b/include/osmocom/ranap/RANAP_InformationTransferConfirmation.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_InformationTransferConfirmation_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_InformationTransferConfirmation */ typedef struct RANAP_InformationTransferConfirmation { - struct informationTransferConfirmation_ies { + struct RANAP_InformationTransferConfirmation__informationTransferConfirmation_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_InformationTransferFailure.h b/include/osmocom/ranap/RANAP_InformationTransferFailure.h index 3e11e6d..ea7cd8b 100644 --- a/include/osmocom/ranap/RANAP_InformationTransferFailure.h +++ b/include/osmocom/ranap/RANAP_InformationTransferFailure.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_InformationTransferFailure_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_InformationTransferFailure */ typedef struct RANAP_InformationTransferFailure { - struct informationTransferFailure_ies { + struct RANAP_InformationTransferFailure__informationTransferFailure_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_InformationTransferID.h b/include/osmocom/ranap/RANAP_InformationTransferID.h index cc002aa..f4dbd75 100644 --- a/include/osmocom/ranap/RANAP_InformationTransferID.h +++ b/include/osmocom/ranap/RANAP_InformationTransferID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_InformationTransferID_H_ diff --git a/include/osmocom/ranap/RANAP_InformationTransferIndication.h b/include/osmocom/ranap/RANAP_InformationTransferIndication.h index 0a2dcaf..782ef54 100644 --- a/include/osmocom/ranap/RANAP_InformationTransferIndication.h +++ b/include/osmocom/ranap/RANAP_InformationTransferIndication.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_InformationTransferIndication_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_InformationTransferIndication */ typedef struct RANAP_InformationTransferIndication { - struct informationTransferIndication_ies { + struct RANAP_InformationTransferIndication__informationTransferIndication_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_InformationTransferType.h b/include/osmocom/ranap/RANAP_InformationTransferType.h index 5214ad5..ddfb685 100644 --- a/include/osmocom/ranap/RANAP_InformationTransferType.h +++ b/include/osmocom/ranap/RANAP_InformationTransferType.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_InformationTransferType_H_ diff --git a/include/osmocom/ranap/RANAP_InitialUE-Message.h b/include/osmocom/ranap/RANAP_InitialUE-Message.h index f535cd9..fbeea63 100644 --- a/include/osmocom/ranap/RANAP_InitialUE-Message.h +++ b/include/osmocom/ranap/RANAP_InitialUE-Message.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_InitialUE_Message_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_InitialUE-Message */ typedef struct RANAP_InitialUE_Message { - struct initialUE_Message_ies { + struct RANAP_InitialUE_Message__initialUE_Message_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_InitiatingMessage.h b/include/osmocom/ranap/RANAP_InitiatingMessage.h index 62e0667..a6bad77 100644 --- a/include/osmocom/ranap/RANAP_InitiatingMessage.h +++ b/include/osmocom/ranap/RANAP_InitiatingMessage.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_InitiatingMessage_H_ diff --git a/include/osmocom/ranap/RANAP_IntegrityProtectionAlgorithm.h b/include/osmocom/ranap/RANAP_IntegrityProtectionAlgorithm.h index 7ed9284..985a0d5 100644 --- a/include/osmocom/ranap/RANAP_IntegrityProtectionAlgorithm.h +++ b/include/osmocom/ranap/RANAP_IntegrityProtectionAlgorithm.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_IntegrityProtectionAlgorithm_H_ diff --git a/include/osmocom/ranap/RANAP_IntegrityProtectionInformation.h b/include/osmocom/ranap/RANAP_IntegrityProtectionInformation.h index a907df2..ccc6f4d 100644 --- a/include/osmocom/ranap/RANAP_IntegrityProtectionInformation.h +++ b/include/osmocom/ranap/RANAP_IntegrityProtectionInformation.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_IntegrityProtectionInformation_H_ diff --git a/include/osmocom/ranap/RANAP_IntegrityProtectionKey.h b/include/osmocom/ranap/RANAP_IntegrityProtectionKey.h index 4010d71..c9d803d 100644 --- a/include/osmocom/ranap/RANAP_IntegrityProtectionKey.h +++ b/include/osmocom/ranap/RANAP_IntegrityProtectionKey.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_IntegrityProtectionKey_H_ diff --git a/include/osmocom/ranap/RANAP_InterSystemInformation-TransparentContainer.h b/include/osmocom/ranap/RANAP_InterSystemInformation-TransparentContainer.h index d6b1039..4d26d0a 100644 --- a/include/osmocom/ranap/RANAP_InterSystemInformation-TransparentContainer.h +++ b/include/osmocom/ranap/RANAP_InterSystemInformation-TransparentContainer.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_InterSystemInformation_TransparentContainer_H_ diff --git a/include/osmocom/ranap/RANAP_InterSystemInformationTransferType.h b/include/osmocom/ranap/RANAP_InterSystemInformationTransferType.h index 605967e..41665fc 100644 --- a/include/osmocom/ranap/RANAP_InterSystemInformationTransferType.h +++ b/include/osmocom/ranap/RANAP_InterSystemInformationTransferType.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_InterSystemInformationTransferType_H_ diff --git a/include/osmocom/ranap/RANAP_InterfacesToTraceItem.h b/include/osmocom/ranap/RANAP_InterfacesToTraceItem.h index e690f90..b1238fb 100644 --- a/include/osmocom/ranap/RANAP_InterfacesToTraceItem.h +++ b/include/osmocom/ranap/RANAP_InterfacesToTraceItem.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_InterfacesToTraceItem_H_ @@ -20,16 +21,16 @@ extern "C" { #endif /* Dependencies */ -typedef enum interface { - interface_iu_cs = 0, - interface_iu_ps = 1, - interface_iur = 2, - interface_iub = 3, - interface_uu = 4 +typedef enum RANAP_InterfacesToTraceItem__interface { + RANAP_InterfacesToTraceItem__interface_iu_cs = 0, + RANAP_InterfacesToTraceItem__interface_iu_ps = 1, + RANAP_InterfacesToTraceItem__interface_iur = 2, + RANAP_InterfacesToTraceItem__interface_iub = 3, + RANAP_InterfacesToTraceItem__interface_uu = 4 /* * Enumeration is extensible */ -} e_interface; +} e_RANAP_InterfacesToTraceItem__interface; /* RANAP_InterfacesToTraceItem */ typedef struct RANAP_InterfacesToTraceItem { diff --git a/include/osmocom/ranap/RANAP_Iu-ReleaseCommand.h b/include/osmocom/ranap/RANAP_Iu-ReleaseCommand.h index bbe20ec..0ee5c5c 100644 --- a/include/osmocom/ranap/RANAP_Iu-ReleaseCommand.h +++ b/include/osmocom/ranap/RANAP_Iu-ReleaseCommand.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Iu_ReleaseCommand_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_Iu-ReleaseCommand */ typedef struct RANAP_Iu_ReleaseCommand { - struct iu_ReleaseCommand_ies { + struct RANAP_Iu_ReleaseCommand__iu_ReleaseCommand_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_Iu-ReleaseComplete.h b/include/osmocom/ranap/RANAP_Iu-ReleaseComplete.h index b9a7507..2bdcede 100644 --- a/include/osmocom/ranap/RANAP_Iu-ReleaseComplete.h +++ b/include/osmocom/ranap/RANAP_Iu-ReleaseComplete.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Iu_ReleaseComplete_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_Iu-ReleaseComplete */ typedef struct RANAP_Iu_ReleaseComplete { - struct iu_ReleaseComplete_ies { + struct RANAP_Iu_ReleaseComplete__iu_ReleaseComplete_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_Iu-ReleaseRequest.h b/include/osmocom/ranap/RANAP_Iu-ReleaseRequest.h index 6f07090..d2841ea 100644 --- a/include/osmocom/ranap/RANAP_Iu-ReleaseRequest.h +++ b/include/osmocom/ranap/RANAP_Iu-ReleaseRequest.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Iu_ReleaseRequest_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_Iu-ReleaseRequest */ typedef struct RANAP_Iu_ReleaseRequest { - struct iu_ReleaseRequest_ies { + struct RANAP_Iu_ReleaseRequest__iu_ReleaseRequest_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_IuSigConId-IE-ContainerList.h b/include/osmocom/ranap/RANAP_IuSigConId-IE-ContainerList.h index 7654441..cddb63a 100644 --- a/include/osmocom/ranap/RANAP_IuSigConId-IE-ContainerList.h +++ b/include/osmocom/ranap/RANAP_IuSigConId-IE-ContainerList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_IuSigConId_IE_ContainerList_H_ diff --git a/include/osmocom/ranap/RANAP_IuSignallingConnectionIdentifier.h b/include/osmocom/ranap/RANAP_IuSignallingConnectionIdentifier.h index b334891..26d5db8 100644 --- a/include/osmocom/ranap/RANAP_IuSignallingConnectionIdentifier.h +++ b/include/osmocom/ranap/RANAP_IuSignallingConnectionIdentifier.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_IuSignallingConnectionIdentifier_H_ diff --git a/include/osmocom/ranap/RANAP_IuTransportAssociation.h b/include/osmocom/ranap/RANAP_IuTransportAssociation.h index 450c644..c1bab1d 100644 --- a/include/osmocom/ranap/RANAP_IuTransportAssociation.h +++ b/include/osmocom/ranap/RANAP_IuTransportAssociation.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_IuTransportAssociation_H_ diff --git a/include/osmocom/ranap/RANAP_JoinedMBMSBearerService-IEs-Value.h b/include/osmocom/ranap/RANAP_JoinedMBMSBearerService-IEs-Value.h new file mode 100644 index 0000000..69e9be8 --- /dev/null +++ b/include/osmocom/ranap/RANAP_JoinedMBMSBearerService-IEs-Value.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-PDU" + * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` + */ + +#ifndef _RANAP_JoinedMBMSBearerService_IEs_Value_H_ +#define _RANAP_JoinedMBMSBearerService_IEs_Value_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/ranap/RANAP_TMGI.h> +#include <osmocom/ranap/RANAP_MBMS-PTP-RAB-ID.h> +#include <osmocom/ranap/RANAP_ProtocolExtensionContainer.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* RANAP_JoinedMBMSBearerService-IEs-Value */ +typedef struct RANAP_JoinedMBMSBearerService_IEs_Value { + RANAP_TMGI_t tMGI; + RANAP_MBMS_PTP_RAB_ID_t mBMS_PTP_RAB_ID; + RANAP_ProtocolExtensionContainer_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RANAP_JoinedMBMSBearerService_IEs_Value_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RANAP_JoinedMBMSBearerService_IEs_Value; + +#ifdef __cplusplus +} +#endif + +#endif /* _RANAP_JoinedMBMSBearerService_IEs_Value_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/ranap/RANAP_JoinedMBMSBearerService-IEs.h b/include/osmocom/ranap/RANAP_JoinedMBMSBearerService-IEs.h index b27cde4..bf69804 100644 --- a/include/osmocom/ranap/RANAP_JoinedMBMSBearerService-IEs.h +++ b/include/osmocom/ranap/RANAP_JoinedMBMSBearerService-IEs.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_JoinedMBMSBearerService_IEs_H_ @@ -11,11 +12,8 @@ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/ranap/RANAP_JoinedMBMSBearerService-IEs-Value.h> #include <asn_SEQUENCE_OF.h> -#include <osmocom/ranap/RANAP_TMGI.h> -#include <osmocom/ranap/RANAP_MBMS-PTP-RAB-ID.h> -#include <osmocom/ranap/RANAP_ProtocolExtensionContainer.h> -#include <constr_SEQUENCE.h> #include <constr_SEQUENCE_OF.h> #ifdef __cplusplus @@ -24,18 +22,7 @@ extern "C" { /* RANAP_JoinedMBMSBearerService-IEs */ typedef struct RANAP_JoinedMBMSBearerService_IEs { - A_SEQUENCE_OF(struct MemberF { - RANAP_TMGI_t tMGI; - RANAP_MBMS_PTP_RAB_ID_t mBMS_PTP_RAB_ID; - RANAP_ProtocolExtensionContainer_t *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ) list; + A_SEQUENCE_OF(RANAP_JoinedMBMSBearerService_IEs_Value_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/include/osmocom/ranap/RANAP_KeyStatus.h b/include/osmocom/ranap/RANAP_KeyStatus.h index 1b61813..9a3b632 100644 --- a/include/osmocom/ranap/RANAP_KeyStatus.h +++ b/include/osmocom/ranap/RANAP_KeyStatus.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_KeyStatus_H_ diff --git a/include/osmocom/ranap/RANAP_L3-Information.h b/include/osmocom/ranap/RANAP_L3-Information.h index 122c64d..f4f4231 100644 --- a/include/osmocom/ranap/RANAP_L3-Information.h +++ b/include/osmocom/ranap/RANAP_L3-Information.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_L3_Information_H_ diff --git a/include/osmocom/ranap/RANAP_LA-LIST-Value.h b/include/osmocom/ranap/RANAP_LA-LIST-Value.h new file mode 100644 index 0000000..7f34b57 --- /dev/null +++ b/include/osmocom/ranap/RANAP_LA-LIST-Value.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-IEs" + * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` + */ + +#ifndef _RANAP_LA_LIST_Value_H_ +#define _RANAP_LA_LIST_Value_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/ranap/RANAP_LAC.h> +#include <osmocom/ranap/RANAP_ListOF-SNAs.h> +#include <osmocom/ranap/RANAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* RANAP_LA-LIST-Value */ +typedef struct RANAP_LA_LIST_Value { + RANAP_LAC_t lAC; + RANAP_ListOF_SNAs_t listOF_SNAs; + RANAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RANAP_LA_LIST_Value_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RANAP_LA_LIST_Value; + +#ifdef __cplusplus +} +#endif + +#endif /* _RANAP_LA_LIST_Value_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/ranap/RANAP_LA-LIST.h b/include/osmocom/ranap/RANAP_LA-LIST.h index 08e76ed..da09988 100644 --- a/include/osmocom/ranap/RANAP_LA-LIST.h +++ b/include/osmocom/ranap/RANAP_LA-LIST.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LA_LIST_H_ @@ -11,11 +12,8 @@ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/ranap/RANAP_LA-LIST-Value.h> #include <asn_SEQUENCE_OF.h> -#include <osmocom/ranap/RANAP_LAC.h> -#include <osmocom/ranap/RANAP_ListOF-SNAs.h> -#include <osmocom/ranap/RANAP_IE-Extensions.h> -#include <constr_SEQUENCE.h> #include <constr_SEQUENCE_OF.h> #ifdef __cplusplus @@ -24,18 +22,7 @@ extern "C" { /* RANAP_LA-LIST */ typedef struct RANAP_LA_LIST { - A_SEQUENCE_OF(struct MemberA { - RANAP_LAC_t lAC; - RANAP_ListOF_SNAs_t listOF_SNAs; - RANAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ) list; + A_SEQUENCE_OF(RANAP_LA_LIST_Value_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/include/osmocom/ranap/RANAP_LABased.h b/include/osmocom/ranap/RANAP_LABased.h index 49de171..2c5eee9 100644 --- a/include/osmocom/ranap/RANAP_LABased.h +++ b/include/osmocom/ranap/RANAP_LABased.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LABased_H_ diff --git a/include/osmocom/ranap/RANAP_LAC.h b/include/osmocom/ranap/RANAP_LAC.h index ff12809..e450ab9 100644 --- a/include/osmocom/ranap/RANAP_LAC.h +++ b/include/osmocom/ranap/RANAP_LAC.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LAC_H_ diff --git a/include/osmocom/ranap/RANAP_LAI-List.h b/include/osmocom/ranap/RANAP_LAI-List.h index ba2ddf3..a62dd82 100644 --- a/include/osmocom/ranap/RANAP_LAI-List.h +++ b/include/osmocom/ranap/RANAP_LAI-List.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LAI_List_H_ diff --git a/include/osmocom/ranap/RANAP_LAI.h b/include/osmocom/ranap/RANAP_LAI.h index f66b324..789e768 100644 --- a/include/osmocom/ranap/RANAP_LAI.h +++ b/include/osmocom/ranap/RANAP_LAI.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LAI_H_ diff --git a/include/osmocom/ranap/RANAP_LAListofIdleModeUEs.h b/include/osmocom/ranap/RANAP_LAListofIdleModeUEs.h index 4332963..1ecdfac 100644 --- a/include/osmocom/ranap/RANAP_LAListofIdleModeUEs.h +++ b/include/osmocom/ranap/RANAP_LAListofIdleModeUEs.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LAListofIdleModeUEs_H_ diff --git a/include/osmocom/ranap/RANAP_LHN-ID.h b/include/osmocom/ranap/RANAP_LHN-ID.h index a8776b8..eac74fe 100644 --- a/include/osmocom/ranap/RANAP_LHN-ID.h +++ b/include/osmocom/ranap/RANAP_LHN-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LHN_ID_H_ diff --git a/include/osmocom/ranap/RANAP_LastKnownServiceArea.h b/include/osmocom/ranap/RANAP_LastKnownServiceArea.h index 9fa72cd..e9f6c03 100644 --- a/include/osmocom/ranap/RANAP_LastKnownServiceArea.h +++ b/include/osmocom/ranap/RANAP_LastKnownServiceArea.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LastKnownServiceArea_H_ diff --git a/include/osmocom/ranap/RANAP_LastVisitedUTRANCell-Item.h b/include/osmocom/ranap/RANAP_LastVisitedUTRANCell-Item.h index 1adfd3e..3c2ba7c 100644 --- a/include/osmocom/ranap/RANAP_LastVisitedUTRANCell-Item.h +++ b/include/osmocom/ranap/RANAP_LastVisitedUTRANCell-Item.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LastVisitedUTRANCell_Item_H_ diff --git a/include/osmocom/ranap/RANAP_LeftMBMSBearerService-IEs-Value.h b/include/osmocom/ranap/RANAP_LeftMBMSBearerService-IEs-Value.h new file mode 100644 index 0000000..7f8c9d9 --- /dev/null +++ b/include/osmocom/ranap/RANAP_LeftMBMSBearerService-IEs-Value.h @@ -0,0 +1,44 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-PDU" + * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` + */ + +#ifndef _RANAP_LeftMBMSBearerService_IEs_Value_H_ +#define _RANAP_LeftMBMSBearerService_IEs_Value_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/ranap/RANAP_TMGI.h> +#include <osmocom/ranap/RANAP_ProtocolExtensionContainer.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* RANAP_LeftMBMSBearerService-IEs-Value */ +typedef struct RANAP_LeftMBMSBearerService_IEs_Value { + RANAP_TMGI_t tMGI; + RANAP_ProtocolExtensionContainer_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RANAP_LeftMBMSBearerService_IEs_Value_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RANAP_LeftMBMSBearerService_IEs_Value; + +#ifdef __cplusplus +} +#endif + +#endif /* _RANAP_LeftMBMSBearerService_IEs_Value_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/ranap/RANAP_LeftMBMSBearerService-IEs.h b/include/osmocom/ranap/RANAP_LeftMBMSBearerService-IEs.h index f348739..6c23a19 100644 --- a/include/osmocom/ranap/RANAP_LeftMBMSBearerService-IEs.h +++ b/include/osmocom/ranap/RANAP_LeftMBMSBearerService-IEs.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LeftMBMSBearerService_IEs_H_ @@ -11,10 +12,8 @@ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/ranap/RANAP_LeftMBMSBearerService-IEs-Value.h> #include <asn_SEQUENCE_OF.h> -#include <osmocom/ranap/RANAP_TMGI.h> -#include <osmocom/ranap/RANAP_ProtocolExtensionContainer.h> -#include <constr_SEQUENCE.h> #include <constr_SEQUENCE_OF.h> #ifdef __cplusplus @@ -23,17 +22,7 @@ extern "C" { /* RANAP_LeftMBMSBearerService-IEs */ typedef struct RANAP_LeftMBMSBearerService_IEs { - A_SEQUENCE_OF(struct MemberK { - RANAP_TMGI_t tMGI; - RANAP_ProtocolExtensionContainer_t *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ) list; + A_SEQUENCE_OF(RANAP_LeftMBMSBearerService_IEs_Value_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/include/osmocom/ranap/RANAP_Links-to-log.h b/include/osmocom/ranap/RANAP_Links-to-log.h index 8b11a7e..86df02b 100644 --- a/include/osmocom/ranap/RANAP_Links-to-log.h +++ b/include/osmocom/ranap/RANAP_Links-to-log.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Links_to_log_H_ diff --git a/include/osmocom/ranap/RANAP_ListOF-SNAs.h b/include/osmocom/ranap/RANAP_ListOF-SNAs.h index beeb609..6679d01 100644 --- a/include/osmocom/ranap/RANAP_ListOF-SNAs.h +++ b/include/osmocom/ranap/RANAP_ListOF-SNAs.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ListOF_SNAs_H_ diff --git a/include/osmocom/ranap/RANAP_ListOfInterfacesToTrace.h b/include/osmocom/ranap/RANAP_ListOfInterfacesToTrace.h index 3be571b..24a33b1 100644 --- a/include/osmocom/ranap/RANAP_ListOfInterfacesToTrace.h +++ b/include/osmocom/ranap/RANAP_ListOfInterfacesToTrace.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ListOfInterfacesToTrace_H_ diff --git a/include/osmocom/ranap/RANAP_LoadValue.h b/include/osmocom/ranap/RANAP_LoadValue.h index 8cb072d..d21dec8 100644 --- a/include/osmocom/ranap/RANAP_LoadValue.h +++ b/include/osmocom/ranap/RANAP_LoadValue.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LoadValue_H_ diff --git a/include/osmocom/ranap/RANAP_LocationRelatedDataFailure.h b/include/osmocom/ranap/RANAP_LocationRelatedDataFailure.h index 6ac119b..a58062b 100644 --- a/include/osmocom/ranap/RANAP_LocationRelatedDataFailure.h +++ b/include/osmocom/ranap/RANAP_LocationRelatedDataFailure.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LocationRelatedDataFailure_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_LocationRelatedDataFailure */ typedef struct RANAP_LocationRelatedDataFailure { - struct locationRelatedDataFailure_ies { + struct RANAP_LocationRelatedDataFailure__locationRelatedDataFailure_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_LocationRelatedDataRequest.h b/include/osmocom/ranap/RANAP_LocationRelatedDataRequest.h index 3192de2..b5935c0 100644 --- a/include/osmocom/ranap/RANAP_LocationRelatedDataRequest.h +++ b/include/osmocom/ranap/RANAP_LocationRelatedDataRequest.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LocationRelatedDataRequest_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_LocationRelatedDataRequest */ typedef struct RANAP_LocationRelatedDataRequest { - struct locationRelatedDataRequest_ies { + struct RANAP_LocationRelatedDataRequest__locationRelatedDataRequest_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_LocationRelatedDataRequestType.h b/include/osmocom/ranap/RANAP_LocationRelatedDataRequestType.h index 7ed1e3c..c385828 100644 --- a/include/osmocom/ranap/RANAP_LocationRelatedDataRequestType.h +++ b/include/osmocom/ranap/RANAP_LocationRelatedDataRequestType.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LocationRelatedDataRequestType_H_ diff --git a/include/osmocom/ranap/RANAP_LocationRelatedDataRequestTypeSpecificToGERANIuMode.h b/include/osmocom/ranap/RANAP_LocationRelatedDataRequestTypeSpecificToGERANIuMode.h index bf80588..75d8fbd 100644 --- a/include/osmocom/ranap/RANAP_LocationRelatedDataRequestTypeSpecificToGERANIuMode.h +++ b/include/osmocom/ranap/RANAP_LocationRelatedDataRequestTypeSpecificToGERANIuMode.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LocationRelatedDataRequestTypeSpecificToGERANIuMode_H_ diff --git a/include/osmocom/ranap/RANAP_LocationRelatedDataResponse.h b/include/osmocom/ranap/RANAP_LocationRelatedDataResponse.h index 222e9b7..e4860de 100644 --- a/include/osmocom/ranap/RANAP_LocationRelatedDataResponse.h +++ b/include/osmocom/ranap/RANAP_LocationRelatedDataResponse.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LocationRelatedDataResponse_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_LocationRelatedDataResponse */ typedef struct RANAP_LocationRelatedDataResponse { - struct locationRelatedDataResponse_ies { + struct RANAP_LocationRelatedDataResponse__locationRelatedDataResponse_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_LocationReport.h b/include/osmocom/ranap/RANAP_LocationReport.h index e2e8700..16deaff 100644 --- a/include/osmocom/ranap/RANAP_LocationReport.h +++ b/include/osmocom/ranap/RANAP_LocationReport.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LocationReport_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_LocationReport */ typedef struct RANAP_LocationReport { - struct locationReport_ies { + struct RANAP_LocationReport__locationReport_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_LocationReportingControl.h b/include/osmocom/ranap/RANAP_LocationReportingControl.h index 8909093..21f9bf5 100644 --- a/include/osmocom/ranap/RANAP_LocationReportingControl.h +++ b/include/osmocom/ranap/RANAP_LocationReportingControl.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LocationReportingControl_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_LocationReportingControl */ typedef struct RANAP_LocationReportingControl { - struct locationReportingControl_ies { + struct RANAP_LocationReportingControl__locationReportingControl_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_LocationReportingTransferInformation.h b/include/osmocom/ranap/RANAP_LocationReportingTransferInformation.h index dcdcbc2..28f3030 100644 --- a/include/osmocom/ranap/RANAP_LocationReportingTransferInformation.h +++ b/include/osmocom/ranap/RANAP_LocationReportingTransferInformation.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LocationReportingTransferInformation_H_ diff --git a/include/osmocom/ranap/RANAP_LoggedMDT.h b/include/osmocom/ranap/RANAP_LoggedMDT.h index 83f86e5..3dbc482 100644 --- a/include/osmocom/ranap/RANAP_LoggedMDT.h +++ b/include/osmocom/ranap/RANAP_LoggedMDT.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LoggedMDT_H_ diff --git a/include/osmocom/ranap/RANAP_LoggingDuration.h b/include/osmocom/ranap/RANAP_LoggingDuration.h index 90d4509..794acda 100644 --- a/include/osmocom/ranap/RANAP_LoggingDuration.h +++ b/include/osmocom/ranap/RANAP_LoggingDuration.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LoggingDuration_H_ diff --git a/include/osmocom/ranap/RANAP_LoggingInterval.h b/include/osmocom/ranap/RANAP_LoggingInterval.h index 60ebae5..57902be 100644 --- a/include/osmocom/ranap/RANAP_LoggingInterval.h +++ b/include/osmocom/ranap/RANAP_LoggingInterval.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_LoggingInterval_H_ diff --git a/include/osmocom/ranap/RANAP_M1Report.h b/include/osmocom/ranap/RANAP_M1Report.h index 0773dd5..fa514ff 100644 --- a/include/osmocom/ranap/RANAP_M1Report.h +++ b/include/osmocom/ranap/RANAP_M1Report.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_M1Report_H_ diff --git a/include/osmocom/ranap/RANAP_M2Report.h b/include/osmocom/ranap/RANAP_M2Report.h index b38126d..ceccfe9 100644 --- a/include/osmocom/ranap/RANAP_M2Report.h +++ b/include/osmocom/ranap/RANAP_M2Report.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_M2Report_H_ diff --git a/include/osmocom/ranap/RANAP_M4-Collection-Parameters.h b/include/osmocom/ranap/RANAP_M4-Collection-Parameters.h index 40084ca..fbde50c 100644 --- a/include/osmocom/ranap/RANAP_M4-Collection-Parameters.h +++ b/include/osmocom/ranap/RANAP_M4-Collection-Parameters.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_M4_Collection_Parameters_H_ diff --git a/include/osmocom/ranap/RANAP_M4-Period.h b/include/osmocom/ranap/RANAP_M4-Period.h index c6b615d..817e516 100644 --- a/include/osmocom/ranap/RANAP_M4-Period.h +++ b/include/osmocom/ranap/RANAP_M4-Period.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_M4_Period_H_ diff --git a/include/osmocom/ranap/RANAP_M4-Threshold.h b/include/osmocom/ranap/RANAP_M4-Threshold.h index 223cf9f..e2ad5d9 100644 --- a/include/osmocom/ranap/RANAP_M4-Threshold.h +++ b/include/osmocom/ranap/RANAP_M4-Threshold.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_M4_Threshold_H_ diff --git a/include/osmocom/ranap/RANAP_M4Report.h b/include/osmocom/ranap/RANAP_M4Report.h index cafd394..3f6cb22 100644 --- a/include/osmocom/ranap/RANAP_M4Report.h +++ b/include/osmocom/ranap/RANAP_M4Report.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_M4Report_H_ diff --git a/include/osmocom/ranap/RANAP_M5-Period.h b/include/osmocom/ranap/RANAP_M5-Period.h index 9265658..9f813c4 100644 --- a/include/osmocom/ranap/RANAP_M5-Period.h +++ b/include/osmocom/ranap/RANAP_M5-Period.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_M5_Period_H_ diff --git a/include/osmocom/ranap/RANAP_M5Report.h b/include/osmocom/ranap/RANAP_M5Report.h index 1e20feb..90ab7d8 100644 --- a/include/osmocom/ranap/RANAP_M5Report.h +++ b/include/osmocom/ranap/RANAP_M5Report.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_M5Report_H_ diff --git a/include/osmocom/ranap/RANAP_M6-Period.h b/include/osmocom/ranap/RANAP_M6-Period.h index 90c8a84..50e9466 100644 --- a/include/osmocom/ranap/RANAP_M6-Period.h +++ b/include/osmocom/ranap/RANAP_M6-Period.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_M6_Period_H_ diff --git a/include/osmocom/ranap/RANAP_M6Report.h b/include/osmocom/ranap/RANAP_M6Report.h index 46b8336..52f540d 100644 --- a/include/osmocom/ranap/RANAP_M6Report.h +++ b/include/osmocom/ranap/RANAP_M6Report.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_M6Report_H_ diff --git a/include/osmocom/ranap/RANAP_M7-Period.h b/include/osmocom/ranap/RANAP_M7-Period.h index 3fcf0aa..f41564d 100644 --- a/include/osmocom/ranap/RANAP_M7-Period.h +++ b/include/osmocom/ranap/RANAP_M7-Period.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_M7_Period_H_ diff --git a/include/osmocom/ranap/RANAP_M7Report.h b/include/osmocom/ranap/RANAP_M7Report.h index e0587f5..3ab77c2 100644 --- a/include/osmocom/ranap/RANAP_M7Report.h +++ b/include/osmocom/ranap/RANAP_M7Report.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_M7Report_H_ diff --git a/include/osmocom/ranap/RANAP_MBMS-PTP-RAB-ID.h b/include/osmocom/ranap/RANAP_MBMS-PTP-RAB-ID.h index cbc2654..847f057 100644 --- a/include/osmocom/ranap/RANAP_MBMS-PTP-RAB-ID.h +++ b/include/osmocom/ranap/RANAP_MBMS-PTP-RAB-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMS_PTP_RAB_ID_H_ diff --git a/include/osmocom/ranap/RANAP_MBMSBearerServiceType.h b/include/osmocom/ranap/RANAP_MBMSBearerServiceType.h index 03f32f3..2f98da7 100644 --- a/include/osmocom/ranap/RANAP_MBMSBearerServiceType.h +++ b/include/osmocom/ranap/RANAP_MBMSBearerServiceType.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSBearerServiceType_H_ diff --git a/include/osmocom/ranap/RANAP_MBMSCNDe-Registration.h b/include/osmocom/ranap/RANAP_MBMSCNDe-Registration.h index 793e2f7..c4146ac 100644 --- a/include/osmocom/ranap/RANAP_MBMSCNDe-Registration.h +++ b/include/osmocom/ranap/RANAP_MBMSCNDe-Registration.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSCNDe_Registration_H_ diff --git a/include/osmocom/ranap/RANAP_MBMSCNDe-RegistrationRequest.h b/include/osmocom/ranap/RANAP_MBMSCNDe-RegistrationRequest.h index dfd1188..9038c33 100644 --- a/include/osmocom/ranap/RANAP_MBMSCNDe-RegistrationRequest.h +++ b/include/osmocom/ranap/RANAP_MBMSCNDe-RegistrationRequest.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSCNDe_RegistrationRequest_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_MBMSCNDe-RegistrationRequest */ typedef struct RANAP_MBMSCNDe_RegistrationRequest { - struct mbmscnDe_RegistrationRequest_ies { + struct RANAP_MBMSCNDe_RegistrationRequest__mbmscnDe_RegistrationRequest_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_MBMSCNDe-RegistrationResponse.h b/include/osmocom/ranap/RANAP_MBMSCNDe-RegistrationResponse.h index 4c5d1ca..d12b6cb 100644 --- a/include/osmocom/ranap/RANAP_MBMSCNDe-RegistrationResponse.h +++ b/include/osmocom/ranap/RANAP_MBMSCNDe-RegistrationResponse.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSCNDe_RegistrationResponse_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_MBMSCNDe-RegistrationResponse */ typedef struct RANAP_MBMSCNDe_RegistrationResponse { - struct mbmscnDe_RegistrationResponse_ies { + struct RANAP_MBMSCNDe_RegistrationResponse__mbmscnDe_RegistrationResponse_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_MBMSCountingInformation.h b/include/osmocom/ranap/RANAP_MBMSCountingInformation.h index cb56317..21968e5 100644 --- a/include/osmocom/ranap/RANAP_MBMSCountingInformation.h +++ b/include/osmocom/ranap/RANAP_MBMSCountingInformation.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSCountingInformation_H_ diff --git a/include/osmocom/ranap/RANAP_MBMSHCIndicator.h b/include/osmocom/ranap/RANAP_MBMSHCIndicator.h index 71cdccc..52b9c1d 100644 --- a/include/osmocom/ranap/RANAP_MBMSHCIndicator.h +++ b/include/osmocom/ranap/RANAP_MBMSHCIndicator.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSHCIndicator_H_ diff --git a/include/osmocom/ranap/RANAP_MBMSIPMulticastAddressandAPNRequest.h b/include/osmocom/ranap/RANAP_MBMSIPMulticastAddressandAPNRequest.h index 329e54e..6897242 100644 --- a/include/osmocom/ranap/RANAP_MBMSIPMulticastAddressandAPNRequest.h +++ b/include/osmocom/ranap/RANAP_MBMSIPMulticastAddressandAPNRequest.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSIPMulticastAddressandAPNRequest_H_ diff --git a/include/osmocom/ranap/RANAP_MBMSIPMulticastAddressandAPNlist.h b/include/osmocom/ranap/RANAP_MBMSIPMulticastAddressandAPNlist.h index 8dba5c2..f36e1a0 100644 --- a/include/osmocom/ranap/RANAP_MBMSIPMulticastAddressandAPNlist.h +++ b/include/osmocom/ranap/RANAP_MBMSIPMulticastAddressandAPNlist.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSIPMulticastAddressandAPNlist_H_ diff --git a/include/osmocom/ranap/RANAP_MBMSLinkingInformation.h b/include/osmocom/ranap/RANAP_MBMSLinkingInformation.h index 8ce5bc2..c256aca 100644 --- a/include/osmocom/ranap/RANAP_MBMSLinkingInformation.h +++ b/include/osmocom/ranap/RANAP_MBMSLinkingInformation.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSLinkingInformation_H_ diff --git a/include/osmocom/ranap/RANAP_MBMSRABEstablishmentIndication.h b/include/osmocom/ranap/RANAP_MBMSRABEstablishmentIndication.h index 80bacec..e009172 100644 --- a/include/osmocom/ranap/RANAP_MBMSRABEstablishmentIndication.h +++ b/include/osmocom/ranap/RANAP_MBMSRABEstablishmentIndication.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSRABEstablishmentIndication_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_MBMSRABEstablishmentIndication */ typedef struct RANAP_MBMSRABEstablishmentIndication { - struct mbmsrabEstablishmentIndication_ies { + struct RANAP_MBMSRABEstablishmentIndication__mbmsrabEstablishmentIndication_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_MBMSRABRelease.h b/include/osmocom/ranap/RANAP_MBMSRABRelease.h index 6f12d37..c46bce6 100644 --- a/include/osmocom/ranap/RANAP_MBMSRABRelease.h +++ b/include/osmocom/ranap/RANAP_MBMSRABRelease.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSRABRelease_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_MBMSRABRelease */ typedef struct RANAP_MBMSRABRelease { - struct mbmsrabRelease_ies { + struct RANAP_MBMSRABRelease__mbmsrabRelease_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_MBMSRABReleaseFailure.h b/include/osmocom/ranap/RANAP_MBMSRABReleaseFailure.h index 43d55ef..4e272ac 100644 --- a/include/osmocom/ranap/RANAP_MBMSRABReleaseFailure.h +++ b/include/osmocom/ranap/RANAP_MBMSRABReleaseFailure.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSRABReleaseFailure_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_MBMSRABReleaseFailure */ typedef struct RANAP_MBMSRABReleaseFailure { - struct mbmsrabReleaseFailure_ies { + struct RANAP_MBMSRABReleaseFailure__mbmsrabReleaseFailure_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_MBMSRABReleaseRequest.h b/include/osmocom/ranap/RANAP_MBMSRABReleaseRequest.h index 369aee0..c056ead 100644 --- a/include/osmocom/ranap/RANAP_MBMSRABReleaseRequest.h +++ b/include/osmocom/ranap/RANAP_MBMSRABReleaseRequest.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSRABReleaseRequest_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_MBMSRABReleaseRequest */ typedef struct RANAP_MBMSRABReleaseRequest { - struct mbmsrabReleaseRequest_ies { + struct RANAP_MBMSRABReleaseRequest__mbmsrabReleaseRequest_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_MBMSRegistrationFailure.h b/include/osmocom/ranap/RANAP_MBMSRegistrationFailure.h index 76e07d4..57125c5 100644 --- a/include/osmocom/ranap/RANAP_MBMSRegistrationFailure.h +++ b/include/osmocom/ranap/RANAP_MBMSRegistrationFailure.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSRegistrationFailure_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_MBMSRegistrationFailure */ typedef struct RANAP_MBMSRegistrationFailure { - struct mbmsRegistrationFailure_ies { + struct RANAP_MBMSRegistrationFailure__mbmsRegistrationFailure_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_MBMSRegistrationRequest.h b/include/osmocom/ranap/RANAP_MBMSRegistrationRequest.h index 7db35d0..5c9618e 100644 --- a/include/osmocom/ranap/RANAP_MBMSRegistrationRequest.h +++ b/include/osmocom/ranap/RANAP_MBMSRegistrationRequest.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSRegistrationRequest_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_MBMSRegistrationRequest */ typedef struct RANAP_MBMSRegistrationRequest { - struct mbmsRegistrationRequest_ies { + struct RANAP_MBMSRegistrationRequest__mbmsRegistrationRequest_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_MBMSRegistrationRequestType.h b/include/osmocom/ranap/RANAP_MBMSRegistrationRequestType.h index 720b6a6..d8e44b5 100644 --- a/include/osmocom/ranap/RANAP_MBMSRegistrationRequestType.h +++ b/include/osmocom/ranap/RANAP_MBMSRegistrationRequestType.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSRegistrationRequestType_H_ diff --git a/include/osmocom/ranap/RANAP_MBMSRegistrationResponse.h b/include/osmocom/ranap/RANAP_MBMSRegistrationResponse.h index 72bb393..8d17e30 100644 --- a/include/osmocom/ranap/RANAP_MBMSRegistrationResponse.h +++ b/include/osmocom/ranap/RANAP_MBMSRegistrationResponse.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSRegistrationResponse_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_MBMSRegistrationResponse */ typedef struct RANAP_MBMSRegistrationResponse { - struct mbmsRegistrationResponse_ies { + struct RANAP_MBMSRegistrationResponse__mbmsRegistrationResponse_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_MBMSServiceArea.h b/include/osmocom/ranap/RANAP_MBMSServiceArea.h index fe0b524..fb38273 100644 --- a/include/osmocom/ranap/RANAP_MBMSServiceArea.h +++ b/include/osmocom/ranap/RANAP_MBMSServiceArea.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSServiceArea_H_ diff --git a/include/osmocom/ranap/RANAP_MBMSSessionDuration.h b/include/osmocom/ranap/RANAP_MBMSSessionDuration.h index 208da5f..9de61a4 100644 --- a/include/osmocom/ranap/RANAP_MBMSSessionDuration.h +++ b/include/osmocom/ranap/RANAP_MBMSSessionDuration.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSSessionDuration_H_ diff --git a/include/osmocom/ranap/RANAP_MBMSSessionIdentity.h b/include/osmocom/ranap/RANAP_MBMSSessionIdentity.h index f9d7892..ff42719 100644 --- a/include/osmocom/ranap/RANAP_MBMSSessionIdentity.h +++ b/include/osmocom/ranap/RANAP_MBMSSessionIdentity.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSSessionIdentity_H_ diff --git a/include/osmocom/ranap/RANAP_MBMSSessionRepetitionNumber.h b/include/osmocom/ranap/RANAP_MBMSSessionRepetitionNumber.h index 980c186..ce63141 100644 --- a/include/osmocom/ranap/RANAP_MBMSSessionRepetitionNumber.h +++ b/include/osmocom/ranap/RANAP_MBMSSessionRepetitionNumber.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSSessionRepetitionNumber_H_ diff --git a/include/osmocom/ranap/RANAP_MBMSSessionStart.h b/include/osmocom/ranap/RANAP_MBMSSessionStart.h index de6ccd7..fc94744 100644 --- a/include/osmocom/ranap/RANAP_MBMSSessionStart.h +++ b/include/osmocom/ranap/RANAP_MBMSSessionStart.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSSessionStart_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_MBMSSessionStart */ typedef struct RANAP_MBMSSessionStart { - struct mbmsSessionStart_ies { + struct RANAP_MBMSSessionStart__mbmsSessionStart_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_MBMSSessionStartFailure.h b/include/osmocom/ranap/RANAP_MBMSSessionStartFailure.h index ebae2d2..3381e54 100644 --- a/include/osmocom/ranap/RANAP_MBMSSessionStartFailure.h +++ b/include/osmocom/ranap/RANAP_MBMSSessionStartFailure.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSSessionStartFailure_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_MBMSSessionStartFailure */ typedef struct RANAP_MBMSSessionStartFailure { - struct mbmsSessionStartFailure_ies { + struct RANAP_MBMSSessionStartFailure__mbmsSessionStartFailure_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_MBMSSessionStartResponse.h b/include/osmocom/ranap/RANAP_MBMSSessionStartResponse.h index 4171e68..d30826f 100644 --- a/include/osmocom/ranap/RANAP_MBMSSessionStartResponse.h +++ b/include/osmocom/ranap/RANAP_MBMSSessionStartResponse.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSSessionStartResponse_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_MBMSSessionStartResponse */ typedef struct RANAP_MBMSSessionStartResponse { - struct mbmsSessionStartResponse_ies { + struct RANAP_MBMSSessionStartResponse__mbmsSessionStartResponse_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_MBMSSessionStop.h b/include/osmocom/ranap/RANAP_MBMSSessionStop.h index b5d3119..fc98f69 100644 --- a/include/osmocom/ranap/RANAP_MBMSSessionStop.h +++ b/include/osmocom/ranap/RANAP_MBMSSessionStop.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSSessionStop_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_MBMSSessionStop */ typedef struct RANAP_MBMSSessionStop { - struct mbmsSessionStop_ies { + struct RANAP_MBMSSessionStop__mbmsSessionStop_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_MBMSSessionStopResponse.h b/include/osmocom/ranap/RANAP_MBMSSessionStopResponse.h index 0c0acd1..165d3a4 100644 --- a/include/osmocom/ranap/RANAP_MBMSSessionStopResponse.h +++ b/include/osmocom/ranap/RANAP_MBMSSessionStopResponse.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSSessionStopResponse_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_MBMSSessionStopResponse */ typedef struct RANAP_MBMSSessionStopResponse { - struct mbmsSessionStopResponse_ies { + struct RANAP_MBMSSessionStopResponse__mbmsSessionStopResponse_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_MBMSSessionUpdate.h b/include/osmocom/ranap/RANAP_MBMSSessionUpdate.h index 58b3a98..3b5779c 100644 --- a/include/osmocom/ranap/RANAP_MBMSSessionUpdate.h +++ b/include/osmocom/ranap/RANAP_MBMSSessionUpdate.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSSessionUpdate_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_MBMSSessionUpdate */ typedef struct RANAP_MBMSSessionUpdate { - struct mbmsSessionUpdate_ies { + struct RANAP_MBMSSessionUpdate__mbmsSessionUpdate_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_MBMSSessionUpdateFailure.h b/include/osmocom/ranap/RANAP_MBMSSessionUpdateFailure.h index 16829b9..7f6a619 100644 --- a/include/osmocom/ranap/RANAP_MBMSSessionUpdateFailure.h +++ b/include/osmocom/ranap/RANAP_MBMSSessionUpdateFailure.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSSessionUpdateFailure_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_MBMSSessionUpdateFailure */ typedef struct RANAP_MBMSSessionUpdateFailure { - struct mbmsSessionUpdateFailure_ies { + struct RANAP_MBMSSessionUpdateFailure__mbmsSessionUpdateFailure_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_MBMSSessionUpdateResponse.h b/include/osmocom/ranap/RANAP_MBMSSessionUpdateResponse.h index 7736961..7cdd93e 100644 --- a/include/osmocom/ranap/RANAP_MBMSSessionUpdateResponse.h +++ b/include/osmocom/ranap/RANAP_MBMSSessionUpdateResponse.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSSessionUpdateResponse_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_MBMSSessionUpdateResponse */ typedef struct RANAP_MBMSSessionUpdateResponse { - struct mbmsSessionUpdateResponse_ies { + struct RANAP_MBMSSessionUpdateResponse__mbmsSessionUpdateResponse_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_MBMSSynchronisationInformation.h b/include/osmocom/ranap/RANAP_MBMSSynchronisationInformation.h index 66704f6..a2ede91 100644 --- a/include/osmocom/ranap/RANAP_MBMSSynchronisationInformation.h +++ b/include/osmocom/ranap/RANAP_MBMSSynchronisationInformation.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSSynchronisationInformation_H_ diff --git a/include/osmocom/ranap/RANAP_MBMSUELinkingRequest.h b/include/osmocom/ranap/RANAP_MBMSUELinkingRequest.h index f1ea76a..e70436c 100644 --- a/include/osmocom/ranap/RANAP_MBMSUELinkingRequest.h +++ b/include/osmocom/ranap/RANAP_MBMSUELinkingRequest.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSUELinkingRequest_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_MBMSUELinkingRequest */ typedef struct RANAP_MBMSUELinkingRequest { - struct mbmsueLinkingRequest_ies { + struct RANAP_MBMSUELinkingRequest__mbmsueLinkingRequest_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_MBMSUELinkingResponse.h b/include/osmocom/ranap/RANAP_MBMSUELinkingResponse.h index 61e411f..ce39745 100644 --- a/include/osmocom/ranap/RANAP_MBMSUELinkingResponse.h +++ b/include/osmocom/ranap/RANAP_MBMSUELinkingResponse.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MBMSUELinkingResponse_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_MBMSUELinkingResponse */ typedef struct RANAP_MBMSUELinkingResponse { - struct mbmsueLinkingResponse_ies { + struct RANAP_MBMSUELinkingResponse__mbmsueLinkingResponse_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_MDT-Activation.h b/include/osmocom/ranap/RANAP_MDT-Activation.h index d74a08a..374b89d 100644 --- a/include/osmocom/ranap/RANAP_MDT-Activation.h +++ b/include/osmocom/ranap/RANAP_MDT-Activation.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MDT_Activation_H_ diff --git a/include/osmocom/ranap/RANAP_MDT-Configuration.h b/include/osmocom/ranap/RANAP_MDT-Configuration.h index d2c980d..742a527 100644 --- a/include/osmocom/ranap/RANAP_MDT-Configuration.h +++ b/include/osmocom/ranap/RANAP_MDT-Configuration.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MDT_Configuration_H_ diff --git a/include/osmocom/ranap/RANAP_MDT-PLMN-List.h b/include/osmocom/ranap/RANAP_MDT-PLMN-List.h index 8e9884c..c99aa3b 100644 --- a/include/osmocom/ranap/RANAP_MDT-PLMN-List.h +++ b/include/osmocom/ranap/RANAP_MDT-PLMN-List.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MDT_PLMN_List_H_ diff --git a/include/osmocom/ranap/RANAP_MDT-Report-Parameters.h b/include/osmocom/ranap/RANAP_MDT-Report-Parameters.h index 93a98a0..31708d1 100644 --- a/include/osmocom/ranap/RANAP_MDT-Report-Parameters.h +++ b/include/osmocom/ranap/RANAP_MDT-Report-Parameters.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MDT_Report_Parameters_H_ diff --git a/include/osmocom/ranap/RANAP_MDTAreaScope.h b/include/osmocom/ranap/RANAP_MDTAreaScope.h index ad94533..bb63c32 100644 --- a/include/osmocom/ranap/RANAP_MDTAreaScope.h +++ b/include/osmocom/ranap/RANAP_MDTAreaScope.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MDTAreaScope_H_ diff --git a/include/osmocom/ranap/RANAP_MDTMode.h b/include/osmocom/ranap/RANAP_MDTMode.h index 79f39f2..e1ed426 100644 --- a/include/osmocom/ranap/RANAP_MDTMode.h +++ b/include/osmocom/ranap/RANAP_MDTMode.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MDTMode_H_ diff --git a/include/osmocom/ranap/RANAP_MSISDN.h b/include/osmocom/ranap/RANAP_MSISDN.h index 5b248fb..d831f7b 100644 --- a/include/osmocom/ranap/RANAP_MSISDN.h +++ b/include/osmocom/ranap/RANAP_MSISDN.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MSISDN_H_ diff --git a/include/osmocom/ranap/RANAP_Management-Based-MDT-Allowed.h b/include/osmocom/ranap/RANAP_Management-Based-MDT-Allowed.h index 48ad306..d62f0f2 100644 --- a/include/osmocom/ranap/RANAP_Management-Based-MDT-Allowed.h +++ b/include/osmocom/ranap/RANAP_Management-Based-MDT-Allowed.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Management_Based_MDT_Allowed_H_ diff --git a/include/osmocom/ranap/RANAP_MaxBitrate.h b/include/osmocom/ranap/RANAP_MaxBitrate.h index 2dad1b6..95e58f2 100644 --- a/include/osmocom/ranap/RANAP_MaxBitrate.h +++ b/include/osmocom/ranap/RANAP_MaxBitrate.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MaxBitrate_H_ diff --git a/include/osmocom/ranap/RANAP_MaxSDU-Size.h b/include/osmocom/ranap/RANAP_MaxSDU-Size.h index cf680ba..9e722e8 100644 --- a/include/osmocom/ranap/RANAP_MaxSDU-Size.h +++ b/include/osmocom/ranap/RANAP_MaxSDU-Size.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MaxSDU_Size_H_ diff --git a/include/osmocom/ranap/RANAP_MeasBand.h b/include/osmocom/ranap/RANAP_MeasBand.h index 580cd33..14a788c 100644 --- a/include/osmocom/ranap/RANAP_MeasBand.h +++ b/include/osmocom/ranap/RANAP_MeasBand.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MeasBand_H_ diff --git a/include/osmocom/ranap/RANAP_MeasurementQuantity.h b/include/osmocom/ranap/RANAP_MeasurementQuantity.h index 4685528..a952aaf 100644 --- a/include/osmocom/ranap/RANAP_MeasurementQuantity.h +++ b/include/osmocom/ranap/RANAP_MeasurementQuantity.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MeasurementQuantity_H_ diff --git a/include/osmocom/ranap/RANAP_MeasurementsToActivate.h b/include/osmocom/ranap/RANAP_MeasurementsToActivate.h index b0c3695..771d7db 100644 --- a/include/osmocom/ranap/RANAP_MeasurementsToActivate.h +++ b/include/osmocom/ranap/RANAP_MeasurementsToActivate.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MeasurementsToActivate_H_ diff --git a/include/osmocom/ranap/RANAP_MessageStructure-Value.h b/include/osmocom/ranap/RANAP_MessageStructure-Value.h new file mode 100644 index 0000000..9de10da --- /dev/null +++ b/include/osmocom/ranap/RANAP_MessageStructure-Value.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-IEs" + * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` + */ + +#ifndef _RANAP_MessageStructure_Value_H_ +#define _RANAP_MessageStructure_Value_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/ranap/RANAP_ProtocolIE-ID.h> +#include <osmocom/ranap/RANAP_RepetitionNumber1.h> +#include <osmocom/ranap/RANAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* RANAP_MessageStructure-Value */ +typedef struct RANAP_MessageStructure_Value { + RANAP_ProtocolIE_ID_t iE_ID; + RANAP_RepetitionNumber1_t *repetitionNumber /* OPTIONAL */; + RANAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RANAP_MessageStructure_Value_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RANAP_MessageStructure_Value; + +#ifdef __cplusplus +} +#endif + +#endif /* _RANAP_MessageStructure_Value_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/ranap/RANAP_MessageStructure.h b/include/osmocom/ranap/RANAP_MessageStructure.h index f44d0b4..dddadad 100644 --- a/include/osmocom/ranap/RANAP_MessageStructure.h +++ b/include/osmocom/ranap/RANAP_MessageStructure.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_MessageStructure_H_ @@ -11,11 +12,8 @@ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/ranap/RANAP_MessageStructure-Value.h> #include <asn_SEQUENCE_OF.h> -#include <osmocom/ranap/RANAP_ProtocolIE-ID.h> -#include <osmocom/ranap/RANAP_RepetitionNumber1.h> -#include <osmocom/ranap/RANAP_IE-Extensions.h> -#include <constr_SEQUENCE.h> #include <constr_SEQUENCE_OF.h> #ifdef __cplusplus @@ -24,18 +22,7 @@ extern "C" { /* RANAP_MessageStructure */ typedef struct RANAP_MessageStructure { - A_SEQUENCE_OF(struct MemberL { - RANAP_ProtocolIE_ID_t iE_ID; - RANAP_RepetitionNumber1_t *repetitionNumber /* OPTIONAL */; - RANAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ) list; + A_SEQUENCE_OF(RANAP_MessageStructure_Value_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/include/osmocom/ranap/RANAP_NAS-PDU.h b/include/osmocom/ranap/RANAP_NAS-PDU.h index 52a85ee..acaec9e 100644 --- a/include/osmocom/ranap/RANAP_NAS-PDU.h +++ b/include/osmocom/ranap/RANAP_NAS-PDU.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_NAS_PDU_H_ diff --git a/include/osmocom/ranap/RANAP_NAS-SequenceNumber.h b/include/osmocom/ranap/RANAP_NAS-SequenceNumber.h index a394e2d..03417b4 100644 --- a/include/osmocom/ranap/RANAP_NAS-SequenceNumber.h +++ b/include/osmocom/ranap/RANAP_NAS-SequenceNumber.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_NAS_SequenceNumber_H_ diff --git a/include/osmocom/ranap/RANAP_NAS-SynchronisationIndicator.h b/include/osmocom/ranap/RANAP_NAS-SynchronisationIndicator.h index dcd8856..25ff70f 100644 --- a/include/osmocom/ranap/RANAP_NAS-SynchronisationIndicator.h +++ b/include/osmocom/ranap/RANAP_NAS-SynchronisationIndicator.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_NAS_SynchronisationIndicator_H_ diff --git a/include/osmocom/ranap/RANAP_NRTLoadInformationValue.h b/include/osmocom/ranap/RANAP_NRTLoadInformationValue.h index 33db0a0..89423aa 100644 --- a/include/osmocom/ranap/RANAP_NRTLoadInformationValue.h +++ b/include/osmocom/ranap/RANAP_NRTLoadInformationValue.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_NRTLoadInformationValue_H_ diff --git a/include/osmocom/ranap/RANAP_NewBSS-To-OldBSS-Information.h b/include/osmocom/ranap/RANAP_NewBSS-To-OldBSS-Information.h index 13317df..c42ea76 100644 --- a/include/osmocom/ranap/RANAP_NewBSS-To-OldBSS-Information.h +++ b/include/osmocom/ranap/RANAP_NewBSS-To-OldBSS-Information.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_NewBSS_To_OldBSS_Information_H_ diff --git a/include/osmocom/ranap/RANAP_NewRAListofIdleModeUEs.h b/include/osmocom/ranap/RANAP_NewRAListofIdleModeUEs.h index 384213c..09b1c5c 100644 --- a/include/osmocom/ranap/RANAP_NewRAListofIdleModeUEs.h +++ b/include/osmocom/ranap/RANAP_NewRAListofIdleModeUEs.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_NewRAListofIdleModeUEs_H_ diff --git a/include/osmocom/ranap/RANAP_NonSearchingIndication.h b/include/osmocom/ranap/RANAP_NonSearchingIndication.h index ea8d8bd..3aa6e43 100644 --- a/include/osmocom/ranap/RANAP_NonSearchingIndication.h +++ b/include/osmocom/ranap/RANAP_NonSearchingIndication.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_NonSearchingIndication_H_ diff --git a/include/osmocom/ranap/RANAP_NotEmptyRAListofIdleModeUEs.h b/include/osmocom/ranap/RANAP_NotEmptyRAListofIdleModeUEs.h index 70e9005..e532795 100644 --- a/include/osmocom/ranap/RANAP_NotEmptyRAListofIdleModeUEs.h +++ b/include/osmocom/ranap/RANAP_NotEmptyRAListofIdleModeUEs.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_NotEmptyRAListofIdleModeUEs_H_ diff --git a/include/osmocom/ranap/RANAP_NumberOfIuInstances.h b/include/osmocom/ranap/RANAP_NumberOfIuInstances.h index c6c0ea3..39ba745 100644 --- a/include/osmocom/ranap/RANAP_NumberOfIuInstances.h +++ b/include/osmocom/ranap/RANAP_NumberOfIuInstances.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_NumberOfIuInstances_H_ diff --git a/include/osmocom/ranap/RANAP_NumberOfSteps.h b/include/osmocom/ranap/RANAP_NumberOfSteps.h index 5509f49..fb93ac6 100644 --- a/include/osmocom/ranap/RANAP_NumberOfSteps.h +++ b/include/osmocom/ranap/RANAP_NumberOfSteps.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_NumberOfSteps_H_ diff --git a/include/osmocom/ranap/RANAP_OMC-ID.h b/include/osmocom/ranap/RANAP_OMC-ID.h index 042875a..b456a8f 100644 --- a/include/osmocom/ranap/RANAP_OMC-ID.h +++ b/include/osmocom/ranap/RANAP_OMC-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_OMC_ID_H_ diff --git a/include/osmocom/ranap/RANAP_Offload-RAB-Parameters-APN.h b/include/osmocom/ranap/RANAP_Offload-RAB-Parameters-APN.h index ba1bb02..cf08b92 100644 --- a/include/osmocom/ranap/RANAP_Offload-RAB-Parameters-APN.h +++ b/include/osmocom/ranap/RANAP_Offload-RAB-Parameters-APN.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Offload_RAB_Parameters_APN_H_ diff --git a/include/osmocom/ranap/RANAP_Offload-RAB-Parameters-ChargingCharacteristics.h b/include/osmocom/ranap/RANAP_Offload-RAB-Parameters-ChargingCharacteristics.h index 90a89ff..f10aa9d 100644 --- a/include/osmocom/ranap/RANAP_Offload-RAB-Parameters-ChargingCharacteristics.h +++ b/include/osmocom/ranap/RANAP_Offload-RAB-Parameters-ChargingCharacteristics.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Offload_RAB_Parameters_ChargingCharacteristics_H_ diff --git a/include/osmocom/ranap/RANAP_Offload-RAB-Parameters.h b/include/osmocom/ranap/RANAP_Offload-RAB-Parameters.h index 825bcf2..b8499bf 100644 --- a/include/osmocom/ranap/RANAP_Offload-RAB-Parameters.h +++ b/include/osmocom/ranap/RANAP_Offload-RAB-Parameters.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Offload_RAB_Parameters_H_ diff --git a/include/osmocom/ranap/RANAP_OldBSS-ToNewBSS-Information.h b/include/osmocom/ranap/RANAP_OldBSS-ToNewBSS-Information.h index f44e01c..263aaad 100644 --- a/include/osmocom/ranap/RANAP_OldBSS-ToNewBSS-Information.h +++ b/include/osmocom/ranap/RANAP_OldBSS-ToNewBSS-Information.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_OldBSS_ToNewBSS_Information_H_ diff --git a/include/osmocom/ranap/RANAP_Out-Of-UTRAN.h b/include/osmocom/ranap/RANAP_Out-Of-UTRAN.h index fefb72d..5af74b5 100644 --- a/include/osmocom/ranap/RANAP_Out-Of-UTRAN.h +++ b/include/osmocom/ranap/RANAP_Out-Of-UTRAN.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Out_Of_UTRAN_H_ diff --git a/include/osmocom/ranap/RANAP_Outcome.h b/include/osmocom/ranap/RANAP_Outcome.h index ded1fe5..5c61281 100644 --- a/include/osmocom/ranap/RANAP_Outcome.h +++ b/include/osmocom/ranap/RANAP_Outcome.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Outcome_H_ diff --git a/include/osmocom/ranap/RANAP_Overload.h b/include/osmocom/ranap/RANAP_Overload.h index 817d44c..bcdd19b 100644 --- a/include/osmocom/ranap/RANAP_Overload.h +++ b/include/osmocom/ranap/RANAP_Overload.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Overload_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_Overload */ typedef struct RANAP_Overload { - struct overload_ies { + struct RANAP_Overload__overload_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_P-TMSI.h b/include/osmocom/ranap/RANAP_P-TMSI.h index 800a4e2..d72e994 100644 --- a/include/osmocom/ranap/RANAP_P-TMSI.h +++ b/include/osmocom/ranap/RANAP_P-TMSI.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_P_TMSI_H_ diff --git a/include/osmocom/ranap/RANAP_PDP-Type-extension.h b/include/osmocom/ranap/RANAP_PDP-Type-extension.h index 7f13a18..b6c1649 100644 --- a/include/osmocom/ranap/RANAP_PDP-Type-extension.h +++ b/include/osmocom/ranap/RANAP_PDP-Type-extension.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PDP_Type_extension_H_ diff --git a/include/osmocom/ranap/RANAP_PDP-Type.h b/include/osmocom/ranap/RANAP_PDP-Type.h index b1445a2..8d4d9e4 100644 --- a/include/osmocom/ranap/RANAP_PDP-Type.h +++ b/include/osmocom/ranap/RANAP_PDP-Type.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PDP_Type_H_ diff --git a/include/osmocom/ranap/RANAP_PDP-TypeInformation-extension.h b/include/osmocom/ranap/RANAP_PDP-TypeInformation-extension.h index 3b7521d..e0fd970 100644 --- a/include/osmocom/ranap/RANAP_PDP-TypeInformation-extension.h +++ b/include/osmocom/ranap/RANAP_PDP-TypeInformation-extension.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PDP_TypeInformation_extension_H_ diff --git a/include/osmocom/ranap/RANAP_PDP-TypeInformation.h b/include/osmocom/ranap/RANAP_PDP-TypeInformation.h index 0c81cff..f4f55ff 100644 --- a/include/osmocom/ranap/RANAP_PDP-TypeInformation.h +++ b/include/osmocom/ranap/RANAP_PDP-TypeInformation.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PDP_TypeInformation_H_ diff --git a/include/osmocom/ranap/RANAP_PDUType14FrameSequenceNumber.h b/include/osmocom/ranap/RANAP_PDUType14FrameSequenceNumber.h index 52c678b..63463ba 100644 --- a/include/osmocom/ranap/RANAP_PDUType14FrameSequenceNumber.h +++ b/include/osmocom/ranap/RANAP_PDUType14FrameSequenceNumber.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PDUType14FrameSequenceNumber_H_ diff --git a/include/osmocom/ranap/RANAP_PLMNidentity.h b/include/osmocom/ranap/RANAP_PLMNidentity.h index e503804..c56c31b 100644 --- a/include/osmocom/ranap/RANAP_PLMNidentity.h +++ b/include/osmocom/ranap/RANAP_PLMNidentity.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <constr_CHOICE.h> diff --git a/include/osmocom/ranap/RANAP_PLMNs-in-shared-network-Value.h b/include/osmocom/ranap/RANAP_PLMNs-in-shared-network-Value.h new file mode 100644 index 0000000..e10ea6e --- /dev/null +++ b/include/osmocom/ranap/RANAP_PLMNs-in-shared-network-Value.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-IEs" + * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` + */ + +#ifndef _RANAP_PLMNs_in_shared_network_Value_H_ +#define _RANAP_PLMNs_in_shared_network_Value_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/ranap/RANAP_PLMNidentity.h> +#include <osmocom/ranap/RANAP_LA-LIST.h> +#include <osmocom/ranap/RANAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* RANAP_PLMNs-in-shared-network-Value */ +typedef struct RANAP_PLMNs_in_shared_network_Value { + RANAP_PLMNidentity_t pLMNidentity; + RANAP_LA_LIST_t lA_LIST; + RANAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RANAP_PLMNs_in_shared_network_Value_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RANAP_PLMNs_in_shared_network_Value; + +#ifdef __cplusplus +} +#endif + +#endif /* _RANAP_PLMNs_in_shared_network_Value_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/ranap/RANAP_PLMNs-in-shared-network.h b/include/osmocom/ranap/RANAP_PLMNs-in-shared-network.h index d335490..d11d0ee 100644 --- a/include/osmocom/ranap/RANAP_PLMNs-in-shared-network.h +++ b/include/osmocom/ranap/RANAP_PLMNs-in-shared-network.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PLMNs_in_shared_network_H_ @@ -11,11 +12,8 @@ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/ranap/RANAP_PLMNs-in-shared-network-Value.h> #include <asn_SEQUENCE_OF.h> -#include <osmocom/ranap/RANAP_PLMNidentity.h> -#include <osmocom/ranap/RANAP_LA-LIST.h> -#include <osmocom/ranap/RANAP_IE-Extensions.h> -#include <constr_SEQUENCE.h> #include <constr_SEQUENCE_OF.h> #ifdef __cplusplus @@ -24,18 +22,7 @@ extern "C" { /* RANAP_PLMNs-in-shared-network */ typedef struct RANAP_PLMNs_in_shared_network { - A_SEQUENCE_OF(struct MemberM { - RANAP_PLMNidentity_t pLMNidentity; - RANAP_LA_LIST_t lA_LIST; - RANAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ) list; + A_SEQUENCE_OF(RANAP_PLMNs_in_shared_network_Value_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/include/osmocom/ranap/RANAP_Paging.h b/include/osmocom/ranap/RANAP_Paging.h index cf96a39..5f28438 100644 --- a/include/osmocom/ranap/RANAP_Paging.h +++ b/include/osmocom/ranap/RANAP_Paging.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Paging_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_Paging */ typedef struct RANAP_Paging { - struct paging_ies { + struct RANAP_Paging__paging_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_PagingAreaID.h b/include/osmocom/ranap/RANAP_PagingAreaID.h index 40ac1cb..de48470 100644 --- a/include/osmocom/ranap/RANAP_PagingAreaID.h +++ b/include/osmocom/ranap/RANAP_PagingAreaID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PagingAreaID_H_ diff --git a/include/osmocom/ranap/RANAP_PagingCause.h b/include/osmocom/ranap/RANAP_PagingCause.h index cf9167b..f1a6b4d 100644 --- a/include/osmocom/ranap/RANAP_PagingCause.h +++ b/include/osmocom/ranap/RANAP_PagingCause.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PagingCause_H_ diff --git a/include/osmocom/ranap/RANAP_PeriodicLocationInfo.h b/include/osmocom/ranap/RANAP_PeriodicLocationInfo.h index 358ee7f..1e2843e 100644 --- a/include/osmocom/ranap/RANAP_PeriodicLocationInfo.h +++ b/include/osmocom/ranap/RANAP_PeriodicLocationInfo.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PeriodicLocationInfo_H_ diff --git a/include/osmocom/ranap/RANAP_PeriodicReportingIndicator.h b/include/osmocom/ranap/RANAP_PeriodicReportingIndicator.h index 6b4bf5f..d42e98e 100644 --- a/include/osmocom/ranap/RANAP_PeriodicReportingIndicator.h +++ b/include/osmocom/ranap/RANAP_PeriodicReportingIndicator.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PeriodicReportingIndicator_H_ diff --git a/include/osmocom/ranap/RANAP_PermanentNAS-UE-ID.h b/include/osmocom/ranap/RANAP_PermanentNAS-UE-ID.h index 7292f28..2532285 100644 --- a/include/osmocom/ranap/RANAP_PermanentNAS-UE-ID.h +++ b/include/osmocom/ranap/RANAP_PermanentNAS-UE-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PermanentNAS_UE_ID_H_ diff --git a/include/osmocom/ranap/RANAP_PermittedEncryptionAlgorithms.h b/include/osmocom/ranap/RANAP_PermittedEncryptionAlgorithms.h index 062182f..168b705 100644 --- a/include/osmocom/ranap/RANAP_PermittedEncryptionAlgorithms.h +++ b/include/osmocom/ranap/RANAP_PermittedEncryptionAlgorithms.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PermittedEncryptionAlgorithms_H_ diff --git a/include/osmocom/ranap/RANAP_PermittedIntegrityProtectionAlgorithms.h b/include/osmocom/ranap/RANAP_PermittedIntegrityProtectionAlgorithms.h index 22d87f4..61746a6 100644 --- a/include/osmocom/ranap/RANAP_PermittedIntegrityProtectionAlgorithms.h +++ b/include/osmocom/ranap/RANAP_PermittedIntegrityProtectionAlgorithms.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PermittedIntegrityProtectionAlgorithms_H_ diff --git a/include/osmocom/ranap/RANAP_Port-Number.h b/include/osmocom/ranap/RANAP_Port-Number.h index 3e64495..a2ba6ac 100644 --- a/include/osmocom/ranap/RANAP_Port-Number.h +++ b/include/osmocom/ranap/RANAP_Port-Number.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Port_Number_H_ diff --git a/include/osmocom/ranap/RANAP_PositionData.h b/include/osmocom/ranap/RANAP_PositionData.h index a1365c2..337bceb 100644 --- a/include/osmocom/ranap/RANAP_PositionData.h +++ b/include/osmocom/ranap/RANAP_PositionData.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PositionData_H_ diff --git a/include/osmocom/ranap/RANAP_PositionDataSpecificToGERANIuMode.h b/include/osmocom/ranap/RANAP_PositionDataSpecificToGERANIuMode.h index e0692d6..16ae6e6 100644 --- a/include/osmocom/ranap/RANAP_PositionDataSpecificToGERANIuMode.h +++ b/include/osmocom/ranap/RANAP_PositionDataSpecificToGERANIuMode.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PositionDataSpecificToGERANIuMode_H_ diff --git a/include/osmocom/ranap/RANAP_PositioningDataDiscriminator.h b/include/osmocom/ranap/RANAP_PositioningDataDiscriminator.h index 8e9da75..8396af4 100644 --- a/include/osmocom/ranap/RANAP_PositioningDataDiscriminator.h +++ b/include/osmocom/ranap/RANAP_PositioningDataDiscriminator.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PositioningDataDiscriminator_H_ diff --git a/include/osmocom/ranap/RANAP_PositioningDataSet.h b/include/osmocom/ranap/RANAP_PositioningDataSet.h index 7b6372b..c0d8706 100644 --- a/include/osmocom/ranap/RANAP_PositioningDataSet.h +++ b/include/osmocom/ranap/RANAP_PositioningDataSet.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PositioningDataSet_H_ diff --git a/include/osmocom/ranap/RANAP_PositioningMethodAndUsage.h b/include/osmocom/ranap/RANAP_PositioningMethodAndUsage.h index f8306f9..d08ffe9 100644 --- a/include/osmocom/ranap/RANAP_PositioningMethodAndUsage.h +++ b/include/osmocom/ranap/RANAP_PositioningMethodAndUsage.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PositioningMethodAndUsage_H_ diff --git a/include/osmocom/ranap/RANAP_PositioningPriority.h b/include/osmocom/ranap/RANAP_PositioningPriority.h index 673c475..f710dd7 100644 --- a/include/osmocom/ranap/RANAP_PositioningPriority.h +++ b/include/osmocom/ranap/RANAP_PositioningPriority.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PositioningPriority_H_ diff --git a/include/osmocom/ranap/RANAP_Pre-emptionCapability.h b/include/osmocom/ranap/RANAP_Pre-emptionCapability.h index 7bcdc26..9f3491b 100644 --- a/include/osmocom/ranap/RANAP_Pre-emptionCapability.h +++ b/include/osmocom/ranap/RANAP_Pre-emptionCapability.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Pre_emptionCapability_H_ diff --git a/include/osmocom/ranap/RANAP_Pre-emptionVulnerability.h b/include/osmocom/ranap/RANAP_Pre-emptionVulnerability.h index d8ec7ee..a3b7092 100644 --- a/include/osmocom/ranap/RANAP_Pre-emptionVulnerability.h +++ b/include/osmocom/ranap/RANAP_Pre-emptionVulnerability.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Pre_emptionVulnerability_H_ diff --git a/include/osmocom/ranap/RANAP_Presence.h b/include/osmocom/ranap/RANAP_Presence.h index ee14482..598a183 100644 --- a/include/osmocom/ranap/RANAP_Presence.h +++ b/include/osmocom/ranap/RANAP_Presence.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-CommonDataTypes" * found in "../../asn1/ranap/RANAP-CommonDataTypes.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Presence_H_ diff --git a/include/osmocom/ranap/RANAP_Priority-Class-Indicator.h b/include/osmocom/ranap/RANAP_Priority-Class-Indicator.h index 932cd87..ca1c482 100644 --- a/include/osmocom/ranap/RANAP_Priority-Class-Indicator.h +++ b/include/osmocom/ranap/RANAP_Priority-Class-Indicator.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Priority_Class_Indicator_H_ diff --git a/include/osmocom/ranap/RANAP_PriorityLevel.h b/include/osmocom/ranap/RANAP_PriorityLevel.h index 75bc5d7..4fcccb8 100644 --- a/include/osmocom/ranap/RANAP_PriorityLevel.h +++ b/include/osmocom/ranap/RANAP_PriorityLevel.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PriorityLevel_H_ diff --git a/include/osmocom/ranap/RANAP_PrivateIE-ID.h b/include/osmocom/ranap/RANAP_PrivateIE-ID.h index 59a28de..c2e4cf6 100644 --- a/include/osmocom/ranap/RANAP_PrivateIE-ID.h +++ b/include/osmocom/ranap/RANAP_PrivateIE-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-CommonDataTypes" * found in "../../asn1/ranap/RANAP-CommonDataTypes.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PrivateIE_ID_H_ diff --git a/include/osmocom/ranap/RANAP_PrivateMessage.h b/include/osmocom/ranap/RANAP_PrivateMessage.h index a783e37..a395a47 100644 --- a/include/osmocom/ranap/RANAP_PrivateMessage.h +++ b/include/osmocom/ranap/RANAP_PrivateMessage.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_PrivateMessage_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_PrivateMessage */ typedef struct RANAP_PrivateMessage { - struct privateMessage_ies { + struct RANAP_PrivateMessage__privateMessage_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_ProcedureCode.h b/include/osmocom/ranap/RANAP_ProcedureCode.h index 9a7763c..ec54542 100644 --- a/include/osmocom/ranap/RANAP_ProcedureCode.h +++ b/include/osmocom/ranap/RANAP_ProcedureCode.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-CommonDataTypes" * found in "../../asn1/ranap/RANAP-CommonDataTypes.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ProcedureCode_H_ diff --git a/include/osmocom/ranap/RANAP_ProtocolError-IE-ContainerList.h b/include/osmocom/ranap/RANAP_ProtocolError-IE-ContainerList.h index 3090462..79749ea 100644 --- a/include/osmocom/ranap/RANAP_ProtocolError-IE-ContainerList.h +++ b/include/osmocom/ranap/RANAP_ProtocolError-IE-ContainerList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ProtocolError_IE_ContainerList_H_ diff --git a/include/osmocom/ranap/RANAP_ProtocolExtensionContainer.h b/include/osmocom/ranap/RANAP_ProtocolExtensionContainer.h index ce7e39a..b61625b 100644 --- a/include/osmocom/ranap/RANAP_ProtocolExtensionContainer.h +++ b/include/osmocom/ranap/RANAP_ProtocolExtensionContainer.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ProtocolExtensionContainer_H_ diff --git a/include/osmocom/ranap/RANAP_ProtocolExtensionField.h b/include/osmocom/ranap/RANAP_ProtocolExtensionField.h index 110eeae..3c26d07 100644 --- a/include/osmocom/ranap/RANAP_ProtocolExtensionField.h +++ b/include/osmocom/ranap/RANAP_ProtocolExtensionField.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ProtocolExtensionField_H_ diff --git a/include/osmocom/ranap/RANAP_ProtocolExtensionID.h b/include/osmocom/ranap/RANAP_ProtocolExtensionID.h index 83c5226..68e2af2 100644 --- a/include/osmocom/ranap/RANAP_ProtocolExtensionID.h +++ b/include/osmocom/ranap/RANAP_ProtocolExtensionID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-CommonDataTypes" * found in "../../asn1/ranap/RANAP-CommonDataTypes.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ProtocolExtensionID_H_ diff --git a/include/osmocom/ranap/RANAP_ProtocolIE-Container.h b/include/osmocom/ranap/RANAP_ProtocolIE-Container.h index 4987e62..b634ece 100644 --- a/include/osmocom/ranap/RANAP_ProtocolIE-Container.h +++ b/include/osmocom/ranap/RANAP_ProtocolIE-Container.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ProtocolIE_Container_H_ diff --git a/include/osmocom/ranap/RANAP_ProtocolIE-ContainerPair.h b/include/osmocom/ranap/RANAP_ProtocolIE-ContainerPair.h index 79d0676..ceb2383 100644 --- a/include/osmocom/ranap/RANAP_ProtocolIE-ContainerPair.h +++ b/include/osmocom/ranap/RANAP_ProtocolIE-ContainerPair.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ProtocolIE_ContainerPair_H_ diff --git a/include/osmocom/ranap/RANAP_ProtocolIE-FieldPair.h b/include/osmocom/ranap/RANAP_ProtocolIE-FieldPair.h index 0b5e3e0..b7683a2 100644 --- a/include/osmocom/ranap/RANAP_ProtocolIE-FieldPair.h +++ b/include/osmocom/ranap/RANAP_ProtocolIE-FieldPair.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ProtocolIE_FieldPair_H_ diff --git a/include/osmocom/ranap/RANAP_ProtocolIE-ID.h b/include/osmocom/ranap/RANAP_ProtocolIE-ID.h index 9dbbc03..acaea88 100644 --- a/include/osmocom/ranap/RANAP_ProtocolIE-ID.h +++ b/include/osmocom/ranap/RANAP_ProtocolIE-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-CommonDataTypes" * found in "../../asn1/ranap/RANAP-CommonDataTypes.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ProtocolIE_ID_H_ diff --git a/include/osmocom/ranap/RANAP_ProvidedData.h b/include/osmocom/ranap/RANAP_ProvidedData.h index 4d17369..c1fe989 100644 --- a/include/osmocom/ranap/RANAP_ProvidedData.h +++ b/include/osmocom/ranap/RANAP_ProvidedData.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ProvidedData_H_ diff --git a/include/osmocom/ranap/RANAP_QueuingAllowed.h b/include/osmocom/ranap/RANAP_QueuingAllowed.h index 3cf03c8..9adfc5d 100644 --- a/include/osmocom/ranap/RANAP_QueuingAllowed.h +++ b/include/osmocom/ranap/RANAP_QueuingAllowed.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_QueuingAllowed_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-AssignmentRequest.h b/include/osmocom/ranap/RANAP_RAB-AssignmentRequest.h index 508b56d..1fa4415 100644 --- a/include/osmocom/ranap/RANAP_RAB-AssignmentRequest.h +++ b/include/osmocom/ranap/RANAP_RAB-AssignmentRequest.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_AssignmentRequest_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-AssignmentRequest */ typedef struct RANAP_RAB_AssignmentRequest { - struct raB_AssignmentRequest_ies { + struct RANAP_RAB_AssignmentRequest__raB_AssignmentRequest_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-AssignmentResponse.h b/include/osmocom/ranap/RANAP_RAB-AssignmentResponse.h index 181da05..995cd5a 100644 --- a/include/osmocom/ranap/RANAP_RAB-AssignmentResponse.h +++ b/include/osmocom/ranap/RANAP_RAB-AssignmentResponse.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_AssignmentResponse_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-AssignmentResponse */ typedef struct RANAP_RAB_AssignmentResponse { - struct raB_AssignmentResponse_ies { + struct RANAP_RAB_AssignmentResponse__raB_AssignmentResponse_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-AsymmetryIndicator.h b/include/osmocom/ranap/RANAP_RAB-AsymmetryIndicator.h index d5f5e09..d013568 100644 --- a/include/osmocom/ranap/RANAP_RAB-AsymmetryIndicator.h +++ b/include/osmocom/ranap/RANAP_RAB-AsymmetryIndicator.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_AsymmetryIndicator_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-ContextItem-RANAP-RelocInf.h b/include/osmocom/ranap/RANAP_RAB-ContextItem-RANAP-RelocInf.h index 3bac5ec..346ae81 100644 --- a/include/osmocom/ranap/RANAP_RAB-ContextItem-RANAP-RelocInf.h +++ b/include/osmocom/ranap/RANAP_RAB-ContextItem-RANAP-RelocInf.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_ContextItem_RANAP_RelocInf_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-ContextItem.h b/include/osmocom/ranap/RANAP_RAB-ContextItem.h index ddd0265..86abc93 100644 --- a/include/osmocom/ranap/RANAP_RAB-ContextItem.h +++ b/include/osmocom/ranap/RANAP_RAB-ContextItem.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_ContextItem_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-ContextList-RANAP-RelocInf.h b/include/osmocom/ranap/RANAP_RAB-ContextList-RANAP-RelocInf.h index 79f3432..0384cbb 100644 --- a/include/osmocom/ranap/RANAP_RAB-ContextList-RANAP-RelocInf.h +++ b/include/osmocom/ranap/RANAP_RAB-ContextList-RANAP-RelocInf.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_ContextList_RANAP_RelocInf_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-ContextList-RANAP-RelocInf */ typedef struct RANAP_RAB_ContextList_RANAP_RelocInf { - struct raB_ContextList_RANAP_RelocInf_ies { + struct RANAP_RAB_ContextList_RANAP_RelocInf__raB_ContextList_RANAP_RelocInf_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-ContextList.h b/include/osmocom/ranap/RANAP_RAB-ContextList.h index 68bc6cd..c157c45 100644 --- a/include/osmocom/ranap/RANAP_RAB-ContextList.h +++ b/include/osmocom/ranap/RANAP_RAB-ContextList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_ContextList_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-ContextList */ typedef struct RANAP_RAB_ContextList { - struct raB_ContextList_ies { + struct RANAP_RAB_ContextList__raB_ContextList_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-DataForwardingItem-SRNS-CtxReq.h b/include/osmocom/ranap/RANAP_RAB-DataForwardingItem-SRNS-CtxReq.h index 4ebe04b..8caa9f9 100644 --- a/include/osmocom/ranap/RANAP_RAB-DataForwardingItem-SRNS-CtxReq.h +++ b/include/osmocom/ranap/RANAP_RAB-DataForwardingItem-SRNS-CtxReq.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_DataForwardingItem_SRNS_CtxReq_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-DataForwardingItem.h b/include/osmocom/ranap/RANAP_RAB-DataForwardingItem.h index dd96d6e..a8e0a40 100644 --- a/include/osmocom/ranap/RANAP_RAB-DataForwardingItem.h +++ b/include/osmocom/ranap/RANAP_RAB-DataForwardingItem.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_DataForwardingItem_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-DataForwardingList-SRNS-CtxReq.h b/include/osmocom/ranap/RANAP_RAB-DataForwardingList-SRNS-CtxReq.h index 4659a09..7d671a6 100644 --- a/include/osmocom/ranap/RANAP_RAB-DataForwardingList-SRNS-CtxReq.h +++ b/include/osmocom/ranap/RANAP_RAB-DataForwardingList-SRNS-CtxReq.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_DataForwardingList_SRNS_CtxReq_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-DataForwardingList-SRNS-CtxReq */ typedef struct RANAP_RAB_DataForwardingList_SRNS_CtxReq { - struct raB_DataForwardingList_SRNS_CtxReq_ies { + struct RANAP_RAB_DataForwardingList_SRNS_CtxReq__raB_DataForwardingList_SRNS_CtxReq_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-DataForwardingList.h b/include/osmocom/ranap/RANAP_RAB-DataForwardingList.h index 79b6724..a2e117c 100644 --- a/include/osmocom/ranap/RANAP_RAB-DataForwardingList.h +++ b/include/osmocom/ranap/RANAP_RAB-DataForwardingList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_DataForwardingList_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-DataForwardingList */ typedef struct RANAP_RAB_DataForwardingList { - struct raB_DataForwardingList_ies { + struct RANAP_RAB_DataForwardingList__raB_DataForwardingList_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-DataVolumeReportItem.h b/include/osmocom/ranap/RANAP_RAB-DataVolumeReportItem.h index 2c500ac..7c742ac 100644 --- a/include/osmocom/ranap/RANAP_RAB-DataVolumeReportItem.h +++ b/include/osmocom/ranap/RANAP_RAB-DataVolumeReportItem.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_DataVolumeReportItem_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-DataVolumeReportList.h b/include/osmocom/ranap/RANAP_RAB-DataVolumeReportList.h index fd1a5a9..91f4a86 100644 --- a/include/osmocom/ranap/RANAP_RAB-DataVolumeReportList.h +++ b/include/osmocom/ranap/RANAP_RAB-DataVolumeReportList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_DataVolumeReportList_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-DataVolumeReportList */ typedef struct RANAP_RAB_DataVolumeReportList { - struct raB_DataVolumeReportList_ies { + struct RANAP_RAB_DataVolumeReportList__raB_DataVolumeReportList_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-DataVolumeReportRequestItem.h b/include/osmocom/ranap/RANAP_RAB-DataVolumeReportRequestItem.h index f928e0a..57dbb35 100644 --- a/include/osmocom/ranap/RANAP_RAB-DataVolumeReportRequestItem.h +++ b/include/osmocom/ranap/RANAP_RAB-DataVolumeReportRequestItem.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_DataVolumeReportRequestItem_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-DataVolumeReportRequestList.h b/include/osmocom/ranap/RANAP_RAB-DataVolumeReportRequestList.h index cda59bb..ecacde5 100644 --- a/include/osmocom/ranap/RANAP_RAB-DataVolumeReportRequestList.h +++ b/include/osmocom/ranap/RANAP_RAB-DataVolumeReportRequestList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_DataVolumeReportRequestList_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-DataVolumeReportRequestList */ typedef struct RANAP_RAB_DataVolumeReportRequestList { - struct raB_DataVolumeReportRequestList_ies { + struct RANAP_RAB_DataVolumeReportRequestList__raB_DataVolumeReportRequestList_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-FailedItem-EnhRelocInfoRes.h b/include/osmocom/ranap/RANAP_RAB-FailedItem-EnhRelocInfoRes.h index cfcf0f0..186c5e5 100644 --- a/include/osmocom/ranap/RANAP_RAB-FailedItem-EnhRelocInfoRes.h +++ b/include/osmocom/ranap/RANAP_RAB-FailedItem-EnhRelocInfoRes.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_FailedItem_EnhRelocInfoRes_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-FailedItem.h b/include/osmocom/ranap/RANAP_RAB-FailedItem.h index f7a6416..d984245 100644 --- a/include/osmocom/ranap/RANAP_RAB-FailedItem.h +++ b/include/osmocom/ranap/RANAP_RAB-FailedItem.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_FailedItem_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-FailedList-EnhRelocInfoRes.h b/include/osmocom/ranap/RANAP_RAB-FailedList-EnhRelocInfoRes.h index 310dddb..170e23b 100644 --- a/include/osmocom/ranap/RANAP_RAB-FailedList-EnhRelocInfoRes.h +++ b/include/osmocom/ranap/RANAP_RAB-FailedList-EnhRelocInfoRes.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_FailedList_EnhRelocInfoRes_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-FailedList-EnhRelocInfoRes */ typedef struct RANAP_RAB_FailedList_EnhRelocInfoRes { - struct raB_FailedList_EnhRelocInfoRes_ies { + struct RANAP_RAB_FailedList_EnhRelocInfoRes__raB_FailedList_EnhRelocInfoRes_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-FailedList.h b/include/osmocom/ranap/RANAP_RAB-FailedList.h index 333fe89..4ac7a0a 100644 --- a/include/osmocom/ranap/RANAP_RAB-FailedList.h +++ b/include/osmocom/ranap/RANAP_RAB-FailedList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_FailedList_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-FailedList */ typedef struct RANAP_RAB_FailedList { - struct raB_FailedList_ies { + struct RANAP_RAB_FailedList__raB_FailedList_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-ID.h b/include/osmocom/ranap/RANAP_RAB-ID.h index 2166574..ee45f43 100644 --- a/include/osmocom/ranap/RANAP_RAB-ID.h +++ b/include/osmocom/ranap/RANAP_RAB-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_ID_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-IE-ContainerList.h b/include/osmocom/ranap/RANAP_RAB-IE-ContainerList.h index 9371d29..b077ece 100644 --- a/include/osmocom/ranap/RANAP_RAB-IE-ContainerList.h +++ b/include/osmocom/ranap/RANAP_RAB-IE-ContainerList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_IE_ContainerList_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-IE-ContainerPairList.h b/include/osmocom/ranap/RANAP_RAB-IE-ContainerPairList.h index 10db90a..699f9b6 100644 --- a/include/osmocom/ranap/RANAP_RAB-IE-ContainerPairList.h +++ b/include/osmocom/ranap/RANAP_RAB-IE-ContainerPairList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_IE_ContainerPairList_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-ModifyItem.h b/include/osmocom/ranap/RANAP_RAB-ModifyItem.h index 0b2d5da..c6f3afd 100644 --- a/include/osmocom/ranap/RANAP_RAB-ModifyItem.h +++ b/include/osmocom/ranap/RANAP_RAB-ModifyItem.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_ModifyItem_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-ModifyList.h b/include/osmocom/ranap/RANAP_RAB-ModifyList.h index 45c4ab9..948aaee 100644 --- a/include/osmocom/ranap/RANAP_RAB-ModifyList.h +++ b/include/osmocom/ranap/RANAP_RAB-ModifyList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_ModifyList_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-ModifyList */ typedef struct RANAP_RAB_ModifyList { - struct raB_ModifyList_ies { + struct RANAP_RAB_ModifyList__raB_ModifyList_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-ModifyRequest.h b/include/osmocom/ranap/RANAP_RAB-ModifyRequest.h index 2a358a6..bbb7487 100644 --- a/include/osmocom/ranap/RANAP_RAB-ModifyRequest.h +++ b/include/osmocom/ranap/RANAP_RAB-ModifyRequest.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_ModifyRequest_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-ModifyRequest */ typedef struct RANAP_RAB_ModifyRequest { - struct raB_ModifyRequest_ies { + struct RANAP_RAB_ModifyRequest__raB_ModifyRequest_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-Parameter-ExtendedGuaranteedBitrateList.h b/include/osmocom/ranap/RANAP_RAB-Parameter-ExtendedGuaranteedBitrateList.h index e5dd173..c7e0bf5 100644 --- a/include/osmocom/ranap/RANAP_RAB-Parameter-ExtendedGuaranteedBitrateList.h +++ b/include/osmocom/ranap/RANAP_RAB-Parameter-ExtendedGuaranteedBitrateList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_Parameter_ExtendedGuaranteedBitrateList_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-Parameter-ExtendedMaxBitrateList.h b/include/osmocom/ranap/RANAP_RAB-Parameter-ExtendedMaxBitrateList.h index 414c33a..4db964f 100644 --- a/include/osmocom/ranap/RANAP_RAB-Parameter-ExtendedMaxBitrateList.h +++ b/include/osmocom/ranap/RANAP_RAB-Parameter-ExtendedMaxBitrateList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_Parameter_ExtendedMaxBitrateList_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-Parameter-GuaranteedBitrateList.h b/include/osmocom/ranap/RANAP_RAB-Parameter-GuaranteedBitrateList.h index af13305..212b4d2 100644 --- a/include/osmocom/ranap/RANAP_RAB-Parameter-GuaranteedBitrateList.h +++ b/include/osmocom/ranap/RANAP_RAB-Parameter-GuaranteedBitrateList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_Parameter_GuaranteedBitrateList_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-Parameter-MaxBitrateList.h b/include/osmocom/ranap/RANAP_RAB-Parameter-MaxBitrateList.h index 5557a45..5951131 100644 --- a/include/osmocom/ranap/RANAP_RAB-Parameter-MaxBitrateList.h +++ b/include/osmocom/ranap/RANAP_RAB-Parameter-MaxBitrateList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_Parameter_MaxBitrateList_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-Parameters.h b/include/osmocom/ranap/RANAP_RAB-Parameters.h index 7c37ad9..2b69b3f 100644 --- a/include/osmocom/ranap/RANAP_RAB-Parameters.h +++ b/include/osmocom/ranap/RANAP_RAB-Parameters.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_Parameters_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-QueuedItem.h b/include/osmocom/ranap/RANAP_RAB-QueuedItem.h index c67d6c1..4aa573b 100644 --- a/include/osmocom/ranap/RANAP_RAB-QueuedItem.h +++ b/include/osmocom/ranap/RANAP_RAB-QueuedItem.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_QueuedItem_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-QueuedList.h b/include/osmocom/ranap/RANAP_RAB-QueuedList.h index 94439ef..d068683 100644 --- a/include/osmocom/ranap/RANAP_RAB-QueuedList.h +++ b/include/osmocom/ranap/RANAP_RAB-QueuedList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_QueuedList_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-QueuedList */ typedef struct RANAP_RAB_QueuedList { - struct raB_QueuedList_ies { + struct RANAP_RAB_QueuedList__raB_QueuedList_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-ReleaseFailedList.h b/include/osmocom/ranap/RANAP_RAB-ReleaseFailedList.h index 808c42a..eb26b16 100644 --- a/include/osmocom/ranap/RANAP_RAB-ReleaseFailedList.h +++ b/include/osmocom/ranap/RANAP_RAB-ReleaseFailedList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_ReleaseFailedList_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-ReleaseItem.h b/include/osmocom/ranap/RANAP_RAB-ReleaseItem.h index 28934cb..41682d0 100644 --- a/include/osmocom/ranap/RANAP_RAB-ReleaseItem.h +++ b/include/osmocom/ranap/RANAP_RAB-ReleaseItem.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_ReleaseItem_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-ReleaseList.h b/include/osmocom/ranap/RANAP_RAB-ReleaseList.h index 4ac68bd..5e62832 100644 --- a/include/osmocom/ranap/RANAP_RAB-ReleaseList.h +++ b/include/osmocom/ranap/RANAP_RAB-ReleaseList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_ReleaseList_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-ReleaseList */ typedef struct RANAP_RAB_ReleaseList { - struct raB_ReleaseList_ies { + struct RANAP_RAB_ReleaseList__raB_ReleaseList_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-ReleaseRequest.h b/include/osmocom/ranap/RANAP_RAB-ReleaseRequest.h index 0b09f38..883fe1e 100644 --- a/include/osmocom/ranap/RANAP_RAB-ReleaseRequest.h +++ b/include/osmocom/ranap/RANAP_RAB-ReleaseRequest.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_ReleaseRequest_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-ReleaseRequest */ typedef struct RANAP_RAB_ReleaseRequest { - struct raB_ReleaseRequest_ies { + struct RANAP_RAB_ReleaseRequest__raB_ReleaseRequest_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-ReleasedItem-IuRelComp.h b/include/osmocom/ranap/RANAP_RAB-ReleasedItem-IuRelComp.h index 1d73866..9e1408e 100644 --- a/include/osmocom/ranap/RANAP_RAB-ReleasedItem-IuRelComp.h +++ b/include/osmocom/ranap/RANAP_RAB-ReleasedItem-IuRelComp.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_ReleasedItem_IuRelComp_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-ReleasedItem.h b/include/osmocom/ranap/RANAP_RAB-ReleasedItem.h index 14bd8fa..0f7655c 100644 --- a/include/osmocom/ranap/RANAP_RAB-ReleasedItem.h +++ b/include/osmocom/ranap/RANAP_RAB-ReleasedItem.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_ReleasedItem_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-ReleasedList-IuRelComp.h b/include/osmocom/ranap/RANAP_RAB-ReleasedList-IuRelComp.h index 98bb6c7..53a13d4 100644 --- a/include/osmocom/ranap/RANAP_RAB-ReleasedList-IuRelComp.h +++ b/include/osmocom/ranap/RANAP_RAB-ReleasedList-IuRelComp.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_ReleasedList_IuRelComp_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-ReleasedList-IuRelComp */ typedef struct RANAP_RAB_ReleasedList_IuRelComp { - struct raB_ReleasedList_IuRelComp_ies { + struct RANAP_RAB_ReleasedList_IuRelComp__raB_ReleasedList_IuRelComp_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-ReleasedList.h b/include/osmocom/ranap/RANAP_RAB-ReleasedList.h index 9f047c7..4869564 100644 --- a/include/osmocom/ranap/RANAP_RAB-ReleasedList.h +++ b/include/osmocom/ranap/RANAP_RAB-ReleasedList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_ReleasedList_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-ReleasedList */ typedef struct RANAP_RAB_ReleasedList { - struct raB_ReleasedList_ies { + struct RANAP_RAB_ReleasedList__raB_ReleasedList_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-RelocationReleaseItem.h b/include/osmocom/ranap/RANAP_RAB-RelocationReleaseItem.h index ab8cf40..d598020 100644 --- a/include/osmocom/ranap/RANAP_RAB-RelocationReleaseItem.h +++ b/include/osmocom/ranap/RANAP_RAB-RelocationReleaseItem.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_RelocationReleaseItem_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-RelocationReleaseList.h b/include/osmocom/ranap/RANAP_RAB-RelocationReleaseList.h index f008a3b..cb09be1 100644 --- a/include/osmocom/ranap/RANAP_RAB-RelocationReleaseList.h +++ b/include/osmocom/ranap/RANAP_RAB-RelocationReleaseList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_RelocationReleaseList_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-RelocationReleaseList */ typedef struct RANAP_RAB_RelocationReleaseList { - struct raB_RelocationReleaseList_ies { + struct RANAP_RAB_RelocationReleaseList__raB_RelocationReleaseList_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-SetupItem-EnhRelocInfoReq.h b/include/osmocom/ranap/RANAP_RAB-SetupItem-EnhRelocInfoReq.h index ed6cb11..a6c8d10 100644 --- a/include/osmocom/ranap/RANAP_RAB-SetupItem-EnhRelocInfoReq.h +++ b/include/osmocom/ranap/RANAP_RAB-SetupItem-EnhRelocInfoReq.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_SetupItem_EnhRelocInfoReq_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-SetupItem-EnhRelocInfoRes.h b/include/osmocom/ranap/RANAP_RAB-SetupItem-EnhRelocInfoRes.h index 8de47bb..cc67424 100644 --- a/include/osmocom/ranap/RANAP_RAB-SetupItem-EnhRelocInfoRes.h +++ b/include/osmocom/ranap/RANAP_RAB-SetupItem-EnhRelocInfoRes.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_SetupItem_EnhRelocInfoRes_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-SetupItem-EnhancedRelocCompleteReq.h b/include/osmocom/ranap/RANAP_RAB-SetupItem-EnhancedRelocCompleteReq.h index 16e4e94..66539ce 100644 --- a/include/osmocom/ranap/RANAP_RAB-SetupItem-EnhancedRelocCompleteReq.h +++ b/include/osmocom/ranap/RANAP_RAB-SetupItem-EnhancedRelocCompleteReq.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_SetupItem_EnhancedRelocCompleteReq_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-SetupItem-EnhancedRelocCompleteRes.h b/include/osmocom/ranap/RANAP_RAB-SetupItem-EnhancedRelocCompleteRes.h index b20556f..603381e 100644 --- a/include/osmocom/ranap/RANAP_RAB-SetupItem-EnhancedRelocCompleteRes.h +++ b/include/osmocom/ranap/RANAP_RAB-SetupItem-EnhancedRelocCompleteRes.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_SetupItem_EnhancedRelocCompleteRes_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-SetupItem-RelocReq.h b/include/osmocom/ranap/RANAP_RAB-SetupItem-RelocReq.h index fd2b921..b91e705 100644 --- a/include/osmocom/ranap/RANAP_RAB-SetupItem-RelocReq.h +++ b/include/osmocom/ranap/RANAP_RAB-SetupItem-RelocReq.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_SetupItem_RelocReq_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-SetupItem-RelocReqAck.h b/include/osmocom/ranap/RANAP_RAB-SetupItem-RelocReqAck.h index c520c66..8974901 100644 --- a/include/osmocom/ranap/RANAP_RAB-SetupItem-RelocReqAck.h +++ b/include/osmocom/ranap/RANAP_RAB-SetupItem-RelocReqAck.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_SetupItem_RelocReqAck_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-SetupList-EnhRelocInfoReq.h b/include/osmocom/ranap/RANAP_RAB-SetupList-EnhRelocInfoReq.h index 074f88b..e18dc40 100644 --- a/include/osmocom/ranap/RANAP_RAB-SetupList-EnhRelocInfoReq.h +++ b/include/osmocom/ranap/RANAP_RAB-SetupList-EnhRelocInfoReq.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_SetupList_EnhRelocInfoReq_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-SetupList-EnhRelocInfoReq */ typedef struct RANAP_RAB_SetupList_EnhRelocInfoReq { - struct raB_SetupList_EnhRelocInfoReq_ies { + struct RANAP_RAB_SetupList_EnhRelocInfoReq__raB_SetupList_EnhRelocInfoReq_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-SetupList-EnhRelocInfoRes.h b/include/osmocom/ranap/RANAP_RAB-SetupList-EnhRelocInfoRes.h index 3c054bd..763dc2f 100644 --- a/include/osmocom/ranap/RANAP_RAB-SetupList-EnhRelocInfoRes.h +++ b/include/osmocom/ranap/RANAP_RAB-SetupList-EnhRelocInfoRes.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_SetupList_EnhRelocInfoRes_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-SetupList-EnhRelocInfoRes */ typedef struct RANAP_RAB_SetupList_EnhRelocInfoRes { - struct raB_SetupList_EnhRelocInfoRes_ies { + struct RANAP_RAB_SetupList_EnhRelocInfoRes__raB_SetupList_EnhRelocInfoRes_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-SetupList-EnhancedRelocCompleteReq.h b/include/osmocom/ranap/RANAP_RAB-SetupList-EnhancedRelocCompleteReq.h index 87dc504..6235b87 100644 --- a/include/osmocom/ranap/RANAP_RAB-SetupList-EnhancedRelocCompleteReq.h +++ b/include/osmocom/ranap/RANAP_RAB-SetupList-EnhancedRelocCompleteReq.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_SetupList_EnhancedRelocCompleteReq_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-SetupList-EnhancedRelocCompleteReq */ typedef struct RANAP_RAB_SetupList_EnhancedRelocCompleteReq { - struct raB_SetupList_EnhancedRelocCompleteReq_ies { + struct RANAP_RAB_SetupList_EnhancedRelocCompleteReq__raB_SetupList_EnhancedRelocCompleteReq_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-SetupList-EnhancedRelocCompleteRes.h b/include/osmocom/ranap/RANAP_RAB-SetupList-EnhancedRelocCompleteRes.h index cc32d0c..5114947 100644 --- a/include/osmocom/ranap/RANAP_RAB-SetupList-EnhancedRelocCompleteRes.h +++ b/include/osmocom/ranap/RANAP_RAB-SetupList-EnhancedRelocCompleteRes.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_SetupList_EnhancedRelocCompleteRes_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-SetupList-EnhancedRelocCompleteRes */ typedef struct RANAP_RAB_SetupList_EnhancedRelocCompleteRes { - struct raB_SetupList_EnhancedRelocCompleteRes_ies { + struct RANAP_RAB_SetupList_EnhancedRelocCompleteRes__raB_SetupList_EnhancedRelocCompleteRes_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-SetupList-RelocReq.h b/include/osmocom/ranap/RANAP_RAB-SetupList-RelocReq.h index 1004ed5..bb38114 100644 --- a/include/osmocom/ranap/RANAP_RAB-SetupList-RelocReq.h +++ b/include/osmocom/ranap/RANAP_RAB-SetupList-RelocReq.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_SetupList_RelocReq_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-SetupList-RelocReq */ typedef struct RANAP_RAB_SetupList_RelocReq { - struct raB_SetupList_RelocReq_ies { + struct RANAP_RAB_SetupList_RelocReq__raB_SetupList_RelocReq_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-SetupList-RelocReqAck.h b/include/osmocom/ranap/RANAP_RAB-SetupList-RelocReqAck.h index 8df1869..a79f807 100644 --- a/include/osmocom/ranap/RANAP_RAB-SetupList-RelocReqAck.h +++ b/include/osmocom/ranap/RANAP_RAB-SetupList-RelocReqAck.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_SetupList_RelocReqAck_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-SetupList-RelocReqAck */ typedef struct RANAP_RAB_SetupList_RelocReqAck { - struct raB_SetupList_RelocReqAck_ies { + struct RANAP_RAB_SetupList_RelocReqAck__raB_SetupList_RelocReqAck_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-SetupOrModifiedItem.h b/include/osmocom/ranap/RANAP_RAB-SetupOrModifiedItem.h index bebf2c7..d36f7eb 100644 --- a/include/osmocom/ranap/RANAP_RAB-SetupOrModifiedItem.h +++ b/include/osmocom/ranap/RANAP_RAB-SetupOrModifiedItem.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_SetupOrModifiedItem_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-SetupOrModifiedList.h b/include/osmocom/ranap/RANAP_RAB-SetupOrModifiedList.h index 81dd128..62df45e 100644 --- a/include/osmocom/ranap/RANAP_RAB-SetupOrModifiedList.h +++ b/include/osmocom/ranap/RANAP_RAB-SetupOrModifiedList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_SetupOrModifiedList_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-SetupOrModifiedList */ typedef struct RANAP_RAB_SetupOrModifiedList { - struct raB_SetupOrModifiedList_ies { + struct RANAP_RAB_SetupOrModifiedList__raB_SetupOrModifiedList_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-SetupOrModifyItemFirst.h b/include/osmocom/ranap/RANAP_RAB-SetupOrModifyItemFirst.h index d613698..b2e7b58 100644 --- a/include/osmocom/ranap/RANAP_RAB-SetupOrModifyItemFirst.h +++ b/include/osmocom/ranap/RANAP_RAB-SetupOrModifyItemFirst.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_SetupOrModifyItemFirst_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-SetupOrModifyItemSecond.h b/include/osmocom/ranap/RANAP_RAB-SetupOrModifyItemSecond.h index c2270d5..c63cc30 100644 --- a/include/osmocom/ranap/RANAP_RAB-SetupOrModifyItemSecond.h +++ b/include/osmocom/ranap/RANAP_RAB-SetupOrModifyItemSecond.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_SetupOrModifyItemSecond_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-SetupOrModifyList.h b/include/osmocom/ranap/RANAP_RAB-SetupOrModifyList.h index 58c1759..2b77e3c 100644 --- a/include/osmocom/ranap/RANAP_RAB-SetupOrModifyList.h +++ b/include/osmocom/ranap/RANAP_RAB-SetupOrModifyList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_SetupOrModifyList_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-SubflowCombinationBitRate.h b/include/osmocom/ranap/RANAP_RAB-SubflowCombinationBitRate.h index 6c3eaa4..6d939ad 100644 --- a/include/osmocom/ranap/RANAP_RAB-SubflowCombinationBitRate.h +++ b/include/osmocom/ranap/RANAP_RAB-SubflowCombinationBitRate.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_SubflowCombinationBitRate_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-ToBeReleasedItem-EnhancedRelocCompleteRes.h b/include/osmocom/ranap/RANAP_RAB-ToBeReleasedItem-EnhancedRelocCompleteRes.h index 7884317..66e1d6e 100644 --- a/include/osmocom/ranap/RANAP_RAB-ToBeReleasedItem-EnhancedRelocCompleteRes.h +++ b/include/osmocom/ranap/RANAP_RAB-ToBeReleasedItem-EnhancedRelocCompleteRes.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_ToBeReleasedItem_EnhancedRelocCompleteRes_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-ToBeReleasedList-EnhancedRelocCompleteRes.h b/include/osmocom/ranap/RANAP_RAB-ToBeReleasedList-EnhancedRelocCompleteRes.h index a9d4fd9..200fa41 100644 --- a/include/osmocom/ranap/RANAP_RAB-ToBeReleasedList-EnhancedRelocCompleteRes.h +++ b/include/osmocom/ranap/RANAP_RAB-ToBeReleasedList-EnhancedRelocCompleteRes.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_ToBeReleasedList_EnhancedRelocCompleteRes_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RAB-ToBeReleasedList-EnhancedRelocCompleteRes */ typedef struct RANAP_RAB_ToBeReleasedList_EnhancedRelocCompleteRes { - struct raB_ToBeReleasedList_EnhancedRelocCompleteRes_ies { + struct RANAP_RAB_ToBeReleasedList_EnhancedRelocCompleteRes__raB_ToBeReleasedList_EnhancedRelocCompleteRes_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAB-TrCH-Mapping.h b/include/osmocom/ranap/RANAP_RAB-TrCH-Mapping.h index 3e69734..94a5014 100644 --- a/include/osmocom/ranap/RANAP_RAB-TrCH-Mapping.h +++ b/include/osmocom/ranap/RANAP_RAB-TrCH-Mapping.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_TrCH_Mapping_H_ diff --git a/include/osmocom/ranap/RANAP_RAB-TrCH-MappingItem.h b/include/osmocom/ranap/RANAP_RAB-TrCH-MappingItem.h index d84a86c..6ad6e76 100644 --- a/include/osmocom/ranap/RANAP_RAB-TrCH-MappingItem.h +++ b/include/osmocom/ranap/RANAP_RAB-TrCH-MappingItem.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAB_TrCH_MappingItem_H_ diff --git a/include/osmocom/ranap/RANAP_RABDataVolumeReport-Value.h b/include/osmocom/ranap/RANAP_RABDataVolumeReport-Value.h new file mode 100644 index 0000000..e9ca3d5 --- /dev/null +++ b/include/osmocom/ranap/RANAP_RABDataVolumeReport-Value.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-IEs" + * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` + */ + +#ifndef _RANAP_RABDataVolumeReport_Value_H_ +#define _RANAP_RABDataVolumeReport_Value_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/ranap/RANAP_UnsuccessfullyTransmittedDataVolume.h> +#include <osmocom/ranap/RANAP_DataVolumeReference.h> +#include <osmocom/ranap/RANAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* RANAP_RABDataVolumeReport-Value */ +typedef struct RANAP_RABDataVolumeReport_Value { + RANAP_UnsuccessfullyTransmittedDataVolume_t dl_UnsuccessfullyTransmittedDataVolume; + RANAP_DataVolumeReference_t *dataVolumeReference /* OPTIONAL */; + RANAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RANAP_RABDataVolumeReport_Value_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RANAP_RABDataVolumeReport_Value; + +#ifdef __cplusplus +} +#endif + +#endif /* _RANAP_RABDataVolumeReport_Value_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/ranap/RANAP_RABDataVolumeReport.h b/include/osmocom/ranap/RANAP_RABDataVolumeReport.h index ab671d5..77058cd 100644 --- a/include/osmocom/ranap/RANAP_RABDataVolumeReport.h +++ b/include/osmocom/ranap/RANAP_RABDataVolumeReport.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RABDataVolumeReport_H_ @@ -11,11 +12,8 @@ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/ranap/RANAP_RABDataVolumeReport-Value.h> #include <asn_SEQUENCE_OF.h> -#include <osmocom/ranap/RANAP_UnsuccessfullyTransmittedDataVolume.h> -#include <osmocom/ranap/RANAP_DataVolumeReference.h> -#include <osmocom/ranap/RANAP_IE-Extensions.h> -#include <constr_SEQUENCE.h> #include <constr_SEQUENCE_OF.h> #ifdef __cplusplus @@ -24,18 +22,7 @@ extern "C" { /* RANAP_RABDataVolumeReport */ typedef struct RANAP_RABDataVolumeReport { - A_SEQUENCE_OF(struct MemberN { - RANAP_UnsuccessfullyTransmittedDataVolume_t dl_UnsuccessfullyTransmittedDataVolume; - RANAP_DataVolumeReference_t *dataVolumeReference /* OPTIONAL */; - RANAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ) list; + A_SEQUENCE_OF(RANAP_RABDataVolumeReport_Value_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/include/osmocom/ranap/RANAP_RABParametersList-Value.h b/include/osmocom/ranap/RANAP_RABParametersList-Value.h new file mode 100644 index 0000000..2f7730e --- /dev/null +++ b/include/osmocom/ranap/RANAP_RABParametersList-Value.h @@ -0,0 +1,50 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-IEs" + * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` + */ + +#ifndef _RANAP_RABParametersList_Value_H_ +#define _RANAP_RABParametersList_Value_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/ranap/RANAP_RAB-ID.h> +#include <osmocom/ranap/RANAP_CN-DomainIndicator.h> +#include <osmocom/ranap/RANAP_RABDataVolumeReport.h> +#include <osmocom/ranap/RANAP_UPInformation.h> +#include <osmocom/ranap/RANAP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* RANAP_RABParametersList-Value */ +typedef struct RANAP_RABParametersList_Value { + RANAP_RAB_ID_t rab_Id; + RANAP_CN_DomainIndicator_t cn_domain; + RANAP_RABDataVolumeReport_t *rabDataVolumeReport /* OPTIONAL */; + RANAP_UPInformation_t *upInformation /* OPTIONAL */; + RANAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RANAP_RABParametersList_Value_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RANAP_RABParametersList_Value; + +#ifdef __cplusplus +} +#endif + +#endif /* _RANAP_RABParametersList_Value_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/ranap/RANAP_RABParametersList.h b/include/osmocom/ranap/RANAP_RABParametersList.h index f3bec06..898f500 100644 --- a/include/osmocom/ranap/RANAP_RABParametersList.h +++ b/include/osmocom/ranap/RANAP_RABParametersList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RABParametersList_H_ @@ -11,13 +12,8 @@ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/ranap/RANAP_RABParametersList-Value.h> #include <asn_SEQUENCE_OF.h> -#include <osmocom/ranap/RANAP_RAB-ID.h> -#include <osmocom/ranap/RANAP_CN-DomainIndicator.h> -#include <osmocom/ranap/RANAP_RABDataVolumeReport.h> -#include <osmocom/ranap/RANAP_UPInformation.h> -#include <osmocom/ranap/RANAP_IE-Extensions.h> -#include <constr_SEQUENCE.h> #include <constr_SEQUENCE_OF.h> #ifdef __cplusplus @@ -26,20 +22,7 @@ extern "C" { /* RANAP_RABParametersList */ typedef struct RANAP_RABParametersList { - A_SEQUENCE_OF(struct MemberB { - RANAP_RAB_ID_t rab_Id; - RANAP_CN_DomainIndicator_t cn_domain; - RANAP_RABDataVolumeReport_t *rabDataVolumeReport /* OPTIONAL */; - RANAP_UPInformation_t *upInformation /* OPTIONAL */; - RANAP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ) list; + A_SEQUENCE_OF(RANAP_RABParametersList_Value_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/include/osmocom/ranap/RANAP_RABased.h b/include/osmocom/ranap/RANAP_RABased.h index 5ddfaa4..380e677 100644 --- a/include/osmocom/ranap/RANAP_RABased.h +++ b/include/osmocom/ranap/RANAP_RABased.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RABased_H_ diff --git a/include/osmocom/ranap/RANAP_RABs-ContextFailedtoTransferItem.h b/include/osmocom/ranap/RANAP_RABs-ContextFailedtoTransferItem.h index 09ba8b6..b69627a 100644 --- a/include/osmocom/ranap/RANAP_RABs-ContextFailedtoTransferItem.h +++ b/include/osmocom/ranap/RANAP_RABs-ContextFailedtoTransferItem.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RABs_ContextFailedtoTransferItem_H_ diff --git a/include/osmocom/ranap/RANAP_RABs-ContextFailedtoTransferList.h b/include/osmocom/ranap/RANAP_RABs-ContextFailedtoTransferList.h index 6dae24e..15bb776 100644 --- a/include/osmocom/ranap/RANAP_RABs-ContextFailedtoTransferList.h +++ b/include/osmocom/ranap/RANAP_RABs-ContextFailedtoTransferList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RABs_ContextFailedtoTransferList_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RABs-ContextFailedtoTransferList */ typedef struct RANAP_RABs_ContextFailedtoTransferList { - struct raBs_ContextFailedtoTransferList_ies { + struct RANAP_RABs_ContextFailedtoTransferList__raBs_ContextFailedtoTransferList_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RABs-failed-to-reportItem.h b/include/osmocom/ranap/RANAP_RABs-failed-to-reportItem.h index c3032e5..c1b8c2b 100644 --- a/include/osmocom/ranap/RANAP_RABs-failed-to-reportItem.h +++ b/include/osmocom/ranap/RANAP_RABs-failed-to-reportItem.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RABs_failed_to_reportItem_H_ diff --git a/include/osmocom/ranap/RANAP_RABs-failed-to-reportList.h b/include/osmocom/ranap/RANAP_RABs-failed-to-reportList.h index 33e3943..3e2641c 100644 --- a/include/osmocom/ranap/RANAP_RABs-failed-to-reportList.h +++ b/include/osmocom/ranap/RANAP_RABs-failed-to-reportList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RABs_failed_to_reportList_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RABs-failed-to-reportList */ typedef struct RANAP_RABs_failed_to_reportList { - struct raBs_failed_to_reportList_ies { + struct RANAP_RABs_failed_to_reportList__raBs_failed_to_reportList_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAC.h b/include/osmocom/ranap/RANAP_RAC.h index 1de733a..e232fab 100644 --- a/include/osmocom/ranap/RANAP_RAC.h +++ b/include/osmocom/ranap/RANAP_RAC.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAC_H_ diff --git a/include/osmocom/ranap/RANAP_RAI-List.h b/include/osmocom/ranap/RANAP_RAI-List.h index bc4f843..aed5f7c 100644 --- a/include/osmocom/ranap/RANAP_RAI-List.h +++ b/include/osmocom/ranap/RANAP_RAI-List.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAI_List_H_ diff --git a/include/osmocom/ranap/RANAP_RAI.h b/include/osmocom/ranap/RANAP_RAI.h index eb822d1..0f42bcd 100644 --- a/include/osmocom/ranap/RANAP_RAI.h +++ b/include/osmocom/ranap/RANAP_RAI.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAI_H_ diff --git a/include/osmocom/ranap/RANAP_RAListofIdleModeUEs.h b/include/osmocom/ranap/RANAP_RAListofIdleModeUEs.h index 15dd881..896b481 100644 --- a/include/osmocom/ranap/RANAP_RAListofIdleModeUEs.h +++ b/include/osmocom/ranap/RANAP_RAListofIdleModeUEs.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAListofIdleModeUEs_H_ @@ -27,13 +28,13 @@ typedef enum RANAP_RAListofIdleModeUEs_PR { /* Extensions may appear below */ } RANAP_RAListofIdleModeUEs_PR; -typedef enum emptyFullRAListofIdleModeUEs { - emptyFullRAListofIdleModeUEs_emptylist = 0, - emptyFullRAListofIdleModeUEs_fulllist = 1 +typedef enum RANAP_RAListofIdleModeUEs__emptyFullRAListofIdleModeUEs { + RANAP_RAListofIdleModeUEs__emptyFullRAListofIdleModeUEs_emptylist = 0, + RANAP_RAListofIdleModeUEs__emptyFullRAListofIdleModeUEs_fulllist = 1 /* * Enumeration is extensible */ -} e_emptyFullRAListofIdleModeUEs; +} e_RANAP_RAListofIdleModeUEs__emptyFullRAListofIdleModeUEs; /* RANAP_RAListofIdleModeUEs */ typedef struct RANAP_RAListofIdleModeUEs { diff --git a/include/osmocom/ranap/RANAP_RAListwithNoIdleModeUEsAnyMore.h b/include/osmocom/ranap/RANAP_RAListwithNoIdleModeUEsAnyMore.h index 1b144f6..3bc7eab 100644 --- a/include/osmocom/ranap/RANAP_RAListwithNoIdleModeUEsAnyMore.h +++ b/include/osmocom/ranap/RANAP_RAListwithNoIdleModeUEsAnyMore.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAListwithNoIdleModeUEsAnyMore_H_ diff --git a/include/osmocom/ranap/RANAP_RANAP-EnhancedRelocationInformationRequest.h b/include/osmocom/ranap/RANAP_RANAP-EnhancedRelocationInformationRequest.h index 8a75799..39a5b3c 100644 --- a/include/osmocom/ranap/RANAP_RANAP-EnhancedRelocationInformationRequest.h +++ b/include/osmocom/ranap/RANAP_RANAP-EnhancedRelocationInformationRequest.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RANAP_EnhancedRelocationInformationRequest_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RANAP-EnhancedRelocationInformationRequest */ typedef struct RANAP_RANAP_EnhancedRelocationInformationRequest { - struct ranaP_EnhancedRelocationInformationRequest_ies { + struct RANAP_RANAP_EnhancedRelocationInformationRequest__ranaP_EnhancedRelocationInformationRequest_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RANAP-EnhancedRelocationInformationResponse.h b/include/osmocom/ranap/RANAP_RANAP-EnhancedRelocationInformationResponse.h index 3175411..e0ab3f2 100644 --- a/include/osmocom/ranap/RANAP_RANAP-EnhancedRelocationInformationResponse.h +++ b/include/osmocom/ranap/RANAP_RANAP-EnhancedRelocationInformationResponse.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RANAP_EnhancedRelocationInformationResponse_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RANAP-EnhancedRelocationInformationResponse */ typedef struct RANAP_RANAP_EnhancedRelocationInformationResponse { - struct ranaP_EnhancedRelocationInformationResponse_ies { + struct RANAP_RANAP_EnhancedRelocationInformationResponse__ranaP_EnhancedRelocationInformationResponse_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RANAP-PDU.h b/include/osmocom/ranap/RANAP_RANAP-PDU.h index b2039bd..f7db5c2 100644 --- a/include/osmocom/ranap/RANAP_RANAP-PDU.h +++ b/include/osmocom/ranap/RANAP_RANAP-PDU.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RANAP_PDU_H_ diff --git a/include/osmocom/ranap/RANAP_RANAP-RelocationInformation.h b/include/osmocom/ranap/RANAP_RANAP-RelocationInformation.h index 3d28873..2dac034 100644 --- a/include/osmocom/ranap/RANAP_RANAP-RelocationInformation.h +++ b/include/osmocom/ranap/RANAP_RANAP-RelocationInformation.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RANAP_RelocationInformation_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RANAP-RelocationInformation */ typedef struct RANAP_RANAP_RelocationInformation { - struct ranaP_RelocationInformation_ies { + struct RANAP_RANAP_RelocationInformation__ranaP_RelocationInformation_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RAT-Type.h b/include/osmocom/ranap/RANAP_RAT-Type.h index 55c5467..584321c 100644 --- a/include/osmocom/ranap/RANAP_RAT-Type.h +++ b/include/osmocom/ranap/RANAP_RAT-Type.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAT_Type_H_ diff --git a/include/osmocom/ranap/RANAP_RAofIdleModeUEs.h b/include/osmocom/ranap/RANAP_RAofIdleModeUEs.h index 66eb253..c525bb8 100644 --- a/include/osmocom/ranap/RANAP_RAofIdleModeUEs.h +++ b/include/osmocom/ranap/RANAP_RAofIdleModeUEs.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RAofIdleModeUEs_H_ diff --git a/include/osmocom/ranap/RANAP_RIM-Transfer.h b/include/osmocom/ranap/RANAP_RIM-Transfer.h index 12d9660..193fafc 100644 --- a/include/osmocom/ranap/RANAP_RIM-Transfer.h +++ b/include/osmocom/ranap/RANAP_RIM-Transfer.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RIM_Transfer_H_ diff --git a/include/osmocom/ranap/RANAP_RIMInformation.h b/include/osmocom/ranap/RANAP_RIMInformation.h index 47b60e9..3767ecd 100644 --- a/include/osmocom/ranap/RANAP_RIMInformation.h +++ b/include/osmocom/ranap/RANAP_RIMInformation.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RIMInformation_H_ diff --git a/include/osmocom/ranap/RANAP_RIMRoutingAddress.h b/include/osmocom/ranap/RANAP_RIMRoutingAddress.h index 841570d..e007fee 100644 --- a/include/osmocom/ranap/RANAP_RIMRoutingAddress.h +++ b/include/osmocom/ranap/RANAP_RIMRoutingAddress.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RIMRoutingAddress_H_ diff --git a/include/osmocom/ranap/RANAP_RNC-ID.h b/include/osmocom/ranap/RANAP_RNC-ID.h index 713b3f1..29e0497 100644 --- a/include/osmocom/ranap/RANAP_RNC-ID.h +++ b/include/osmocom/ranap/RANAP_RNC-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RNC_ID_H_ diff --git a/include/osmocom/ranap/RANAP_RNCTraceInformation.h b/include/osmocom/ranap/RANAP_RNCTraceInformation.h index 0bfbaf5..9f6bbb3 100644 --- a/include/osmocom/ranap/RANAP_RNCTraceInformation.h +++ b/include/osmocom/ranap/RANAP_RNCTraceInformation.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RNCTraceInformation_H_ @@ -22,10 +23,10 @@ extern "C" { #endif /* Dependencies */ -typedef enum traceActivationIndicato { - traceActivationIndicato_activated = 0, - traceActivationIndicato_deactivated = 1 -} e_traceActivationIndicato; +typedef enum RANAP_RNCTraceInformation__traceActivationIndicato { + RANAP_RNCTraceInformation__traceActivationIndicato_activated = 0, + RANAP_RNCTraceInformation__traceActivationIndicato_deactivated = 1 +} e_RANAP_RNCTraceInformation__traceActivationIndicato; /* RANAP_RNCTraceInformation */ typedef struct RANAP_RNCTraceInformation { diff --git a/include/osmocom/ranap/RANAP_RNSAPRelocationParameters.h b/include/osmocom/ranap/RANAP_RNSAPRelocationParameters.h index a5dfd26..b7a4574 100644 --- a/include/osmocom/ranap/RANAP_RNSAPRelocationParameters.h +++ b/include/osmocom/ranap/RANAP_RNSAPRelocationParameters.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RNSAPRelocationParameters_H_ diff --git a/include/osmocom/ranap/RANAP_RRC-Container.h b/include/osmocom/ranap/RANAP_RRC-Container.h index 5cda4b7..093fb9a 100644 --- a/include/osmocom/ranap/RANAP_RRC-Container.h +++ b/include/osmocom/ranap/RANAP_RRC-Container.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RRC_Container_H_ diff --git a/include/osmocom/ranap/RANAP_RSRQ-Extension.h b/include/osmocom/ranap/RANAP_RSRQ-Extension.h index 6fd0231..747a895 100644 --- a/include/osmocom/ranap/RANAP_RSRQ-Extension.h +++ b/include/osmocom/ranap/RANAP_RSRQ-Extension.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RSRQ_Extension_H_ diff --git a/include/osmocom/ranap/RANAP_RSRQ-Type.h b/include/osmocom/ranap/RANAP_RSRQ-Type.h index 5846b93..8b97ff9 100644 --- a/include/osmocom/ranap/RANAP_RSRQ-Type.h +++ b/include/osmocom/ranap/RANAP_RSRQ-Type.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RSRQ_Type_H_ diff --git a/include/osmocom/ranap/RANAP_RSRVCC-HO-Indication.h b/include/osmocom/ranap/RANAP_RSRVCC-HO-Indication.h index b775efa..1bc6b4d 100644 --- a/include/osmocom/ranap/RANAP_RSRVCC-HO-Indication.h +++ b/include/osmocom/ranap/RANAP_RSRVCC-HO-Indication.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RSRVCC_HO_Indication_H_ diff --git a/include/osmocom/ranap/RANAP_RSRVCC-Information.h b/include/osmocom/ranap/RANAP_RSRVCC-Information.h index d4d8e79..65205e8 100644 --- a/include/osmocom/ranap/RANAP_RSRVCC-Information.h +++ b/include/osmocom/ranap/RANAP_RSRVCC-Information.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RSRVCC_Information_H_ diff --git a/include/osmocom/ranap/RANAP_RSRVCC-Operation-Possible.h b/include/osmocom/ranap/RANAP_RSRVCC-Operation-Possible.h index 0be569a..246f1ed 100644 --- a/include/osmocom/ranap/RANAP_RSRVCC-Operation-Possible.h +++ b/include/osmocom/ranap/RANAP_RSRVCC-Operation-Possible.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RSRVCC_Operation_Possible_H_ diff --git a/include/osmocom/ranap/RANAP_RTLoadValue.h b/include/osmocom/ranap/RANAP_RTLoadValue.h index 4e5fb5c..d19dc1c 100644 --- a/include/osmocom/ranap/RANAP_RTLoadValue.h +++ b/include/osmocom/ranap/RANAP_RTLoadValue.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RTLoadValue_H_ diff --git a/include/osmocom/ranap/RANAP_RateControlAllowed.h b/include/osmocom/ranap/RANAP_RateControlAllowed.h index a465d17..e60e4c3 100644 --- a/include/osmocom/ranap/RANAP_RateControlAllowed.h +++ b/include/osmocom/ranap/RANAP_RateControlAllowed.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RateControlAllowed_H_ diff --git a/include/osmocom/ranap/RANAP_RedirectAttemptFlag.h b/include/osmocom/ranap/RANAP_RedirectAttemptFlag.h index df1be41..0864b1b 100644 --- a/include/osmocom/ranap/RANAP_RedirectAttemptFlag.h +++ b/include/osmocom/ranap/RANAP_RedirectAttemptFlag.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RedirectAttemptFlag_H_ diff --git a/include/osmocom/ranap/RANAP_RedirectionCompleted.h b/include/osmocom/ranap/RANAP_RedirectionCompleted.h index 21eabeb..328f1d5 100644 --- a/include/osmocom/ranap/RANAP_RedirectionCompleted.h +++ b/include/osmocom/ranap/RANAP_RedirectionCompleted.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RedirectionCompleted_H_ diff --git a/include/osmocom/ranap/RANAP_RedirectionIndication.h b/include/osmocom/ranap/RANAP_RedirectionIndication.h index 444d707..1e3a665 100644 --- a/include/osmocom/ranap/RANAP_RedirectionIndication.h +++ b/include/osmocom/ranap/RANAP_RedirectionIndication.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RedirectionIndication_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RedirectionIndication */ typedef struct RANAP_RedirectionIndication { - struct redirectionIndication_ies { + struct RANAP_RedirectionIndication__redirectionIndication_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RejectCauseValue.h b/include/osmocom/ranap/RANAP_RejectCauseValue.h index 0a5f26f..143c5a5 100644 --- a/include/osmocom/ranap/RANAP_RejectCauseValue.h +++ b/include/osmocom/ranap/RANAP_RejectCauseValue.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RejectCauseValue_H_ diff --git a/include/osmocom/ranap/RANAP_RelocationCancel.h b/include/osmocom/ranap/RANAP_RelocationCancel.h index bddd051..b4f5c34 100644 --- a/include/osmocom/ranap/RANAP_RelocationCancel.h +++ b/include/osmocom/ranap/RANAP_RelocationCancel.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RelocationCancel_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RelocationCancel */ typedef struct RANAP_RelocationCancel { - struct relocationCancel_ies { + struct RANAP_RelocationCancel__relocationCancel_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RelocationCancelAcknowledge.h b/include/osmocom/ranap/RANAP_RelocationCancelAcknowledge.h index 4bbceb9..8fe69f4 100644 --- a/include/osmocom/ranap/RANAP_RelocationCancelAcknowledge.h +++ b/include/osmocom/ranap/RANAP_RelocationCancelAcknowledge.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RelocationCancelAcknowledge_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RelocationCancelAcknowledge */ typedef struct RANAP_RelocationCancelAcknowledge { - struct relocationCancelAcknowledge_ies { + struct RANAP_RelocationCancelAcknowledge__relocationCancelAcknowledge_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RelocationCommand.h b/include/osmocom/ranap/RANAP_RelocationCommand.h index d17d86b..d187a47 100644 --- a/include/osmocom/ranap/RANAP_RelocationCommand.h +++ b/include/osmocom/ranap/RANAP_RelocationCommand.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RelocationCommand_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RelocationCommand */ typedef struct RANAP_RelocationCommand { - struct relocationCommand_ies { + struct RANAP_RelocationCommand__relocationCommand_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RelocationComplete.h b/include/osmocom/ranap/RANAP_RelocationComplete.h index 4e7b5d8..5f46679 100644 --- a/include/osmocom/ranap/RANAP_RelocationComplete.h +++ b/include/osmocom/ranap/RANAP_RelocationComplete.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RelocationComplete_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RelocationComplete */ typedef struct RANAP_RelocationComplete { - struct relocationComplete_ies { + struct RANAP_RelocationComplete__relocationComplete_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RelocationDetect.h b/include/osmocom/ranap/RANAP_RelocationDetect.h index d06ba66..171b030 100644 --- a/include/osmocom/ranap/RANAP_RelocationDetect.h +++ b/include/osmocom/ranap/RANAP_RelocationDetect.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RelocationDetect_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RelocationDetect */ typedef struct RANAP_RelocationDetect { - struct relocationDetect_ies { + struct RANAP_RelocationDetect__relocationDetect_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RelocationFailure.h b/include/osmocom/ranap/RANAP_RelocationFailure.h index 76d3d57..896ac43 100644 --- a/include/osmocom/ranap/RANAP_RelocationFailure.h +++ b/include/osmocom/ranap/RANAP_RelocationFailure.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RelocationFailure_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RelocationFailure */ typedef struct RANAP_RelocationFailure { - struct relocationFailure_ies { + struct RANAP_RelocationFailure__relocationFailure_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RelocationPreparationFailure.h b/include/osmocom/ranap/RANAP_RelocationPreparationFailure.h index 8781bbe..640c06d 100644 --- a/include/osmocom/ranap/RANAP_RelocationPreparationFailure.h +++ b/include/osmocom/ranap/RANAP_RelocationPreparationFailure.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RelocationPreparationFailure_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RelocationPreparationFailure */ typedef struct RANAP_RelocationPreparationFailure { - struct relocationPreparationFailure_ies { + struct RANAP_RelocationPreparationFailure__relocationPreparationFailure_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RelocationRequest.h b/include/osmocom/ranap/RANAP_RelocationRequest.h index 06d4c07..bec964e 100644 --- a/include/osmocom/ranap/RANAP_RelocationRequest.h +++ b/include/osmocom/ranap/RANAP_RelocationRequest.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RelocationRequest_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RelocationRequest */ typedef struct RANAP_RelocationRequest { - struct relocationRequest_ies { + struct RANAP_RelocationRequest__relocationRequest_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RelocationRequestAcknowledge.h b/include/osmocom/ranap/RANAP_RelocationRequestAcknowledge.h index ba13e88..1a6cb9a 100644 --- a/include/osmocom/ranap/RANAP_RelocationRequestAcknowledge.h +++ b/include/osmocom/ranap/RANAP_RelocationRequestAcknowledge.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RelocationRequestAcknowledge_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RelocationRequestAcknowledge */ typedef struct RANAP_RelocationRequestAcknowledge { - struct relocationRequestAcknowledge_ies { + struct RANAP_RelocationRequestAcknowledge__relocationRequestAcknowledge_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RelocationRequired.h b/include/osmocom/ranap/RANAP_RelocationRequired.h index 1187c90..b6c45ea 100644 --- a/include/osmocom/ranap/RANAP_RelocationRequired.h +++ b/include/osmocom/ranap/RANAP_RelocationRequired.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RelocationRequired_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_RelocationRequired */ typedef struct RANAP_RelocationRequired { - struct relocationRequired_ies { + struct RANAP_RelocationRequired__relocationRequired_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_RelocationRequirement.h b/include/osmocom/ranap/RANAP_RelocationRequirement.h index 56623ed..a32fb4a 100644 --- a/include/osmocom/ranap/RANAP_RelocationRequirement.h +++ b/include/osmocom/ranap/RANAP_RelocationRequirement.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RelocationRequirement_H_ diff --git a/include/osmocom/ranap/RANAP_RelocationType.h b/include/osmocom/ranap/RANAP_RelocationType.h index 4ad5f58..7b79661 100644 --- a/include/osmocom/ranap/RANAP_RelocationType.h +++ b/include/osmocom/ranap/RANAP_RelocationType.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RelocationType_H_ diff --git a/include/osmocom/ranap/RANAP_RepetitionNumber0.h b/include/osmocom/ranap/RANAP_RepetitionNumber0.h index 41e8950..0034cc8 100644 --- a/include/osmocom/ranap/RANAP_RepetitionNumber0.h +++ b/include/osmocom/ranap/RANAP_RepetitionNumber0.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RepetitionNumber0_H_ diff --git a/include/osmocom/ranap/RANAP_RepetitionNumber1.h b/include/osmocom/ranap/RANAP_RepetitionNumber1.h index b151d87..912f291 100644 --- a/include/osmocom/ranap/RANAP_RepetitionNumber1.h +++ b/include/osmocom/ranap/RANAP_RepetitionNumber1.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RepetitionNumber1_H_ diff --git a/include/osmocom/ranap/RANAP_ReportAmount.h b/include/osmocom/ranap/RANAP_ReportAmount.h index daf8dd6..203e6d0 100644 --- a/include/osmocom/ranap/RANAP_ReportAmount.h +++ b/include/osmocom/ranap/RANAP_ReportAmount.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ReportAmount_H_ diff --git a/include/osmocom/ranap/RANAP_ReportArea.h b/include/osmocom/ranap/RANAP_ReportArea.h index e5ea1c8..17b0ac2 100644 --- a/include/osmocom/ranap/RANAP_ReportArea.h +++ b/include/osmocom/ranap/RANAP_ReportArea.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ReportArea_H_ diff --git a/include/osmocom/ranap/RANAP_ReportChangeOfSAI.h b/include/osmocom/ranap/RANAP_ReportChangeOfSAI.h index b6e0a05..e315465 100644 --- a/include/osmocom/ranap/RANAP_ReportChangeOfSAI.h +++ b/include/osmocom/ranap/RANAP_ReportChangeOfSAI.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ReportChangeOfSAI_H_ diff --git a/include/osmocom/ranap/RANAP_ReportInterval.h b/include/osmocom/ranap/RANAP_ReportInterval.h index 6efdb1a..0c7deb7 100644 --- a/include/osmocom/ranap/RANAP_ReportInterval.h +++ b/include/osmocom/ranap/RANAP_ReportInterval.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ReportInterval_H_ diff --git a/include/osmocom/ranap/RANAP_RequestType.h b/include/osmocom/ranap/RANAP_RequestType.h index 86ed875..c845dd7 100644 --- a/include/osmocom/ranap/RANAP_RequestType.h +++ b/include/osmocom/ranap/RANAP_RequestType.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RequestType_H_ diff --git a/include/osmocom/ranap/RANAP_Requested-RAB-Parameter-ExtendedGuaranteedBitrateList.h b/include/osmocom/ranap/RANAP_Requested-RAB-Parameter-ExtendedGuaranteedBitrateList.h index 963d25a..1f256a6 100644 --- a/include/osmocom/ranap/RANAP_Requested-RAB-Parameter-ExtendedGuaranteedBitrateList.h +++ b/include/osmocom/ranap/RANAP_Requested-RAB-Parameter-ExtendedGuaranteedBitrateList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Requested_RAB_Parameter_ExtendedGuaranteedBitrateList_H_ diff --git a/include/osmocom/ranap/RANAP_Requested-RAB-Parameter-ExtendedMaxBitrateList.h b/include/osmocom/ranap/RANAP_Requested-RAB-Parameter-ExtendedMaxBitrateList.h index c878ec9..8434fe4 100644 --- a/include/osmocom/ranap/RANAP_Requested-RAB-Parameter-ExtendedMaxBitrateList.h +++ b/include/osmocom/ranap/RANAP_Requested-RAB-Parameter-ExtendedMaxBitrateList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Requested_RAB_Parameter_ExtendedMaxBitrateList_H_ diff --git a/include/osmocom/ranap/RANAP_Requested-RAB-Parameter-GuaranteedBitrateList.h b/include/osmocom/ranap/RANAP_Requested-RAB-Parameter-GuaranteedBitrateList.h index d2d39ad..5db3cc9 100644 --- a/include/osmocom/ranap/RANAP_Requested-RAB-Parameter-GuaranteedBitrateList.h +++ b/include/osmocom/ranap/RANAP_Requested-RAB-Parameter-GuaranteedBitrateList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Requested_RAB_Parameter_GuaranteedBitrateList_H_ diff --git a/include/osmocom/ranap/RANAP_Requested-RAB-Parameter-MaxBitrateList.h b/include/osmocom/ranap/RANAP_Requested-RAB-Parameter-MaxBitrateList.h index 22047b7..d2b51fb 100644 --- a/include/osmocom/ranap/RANAP_Requested-RAB-Parameter-MaxBitrateList.h +++ b/include/osmocom/ranap/RANAP_Requested-RAB-Parameter-MaxBitrateList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Requested_RAB_Parameter_MaxBitrateList_H_ diff --git a/include/osmocom/ranap/RANAP_Requested-RAB-Parameter-Values.h b/include/osmocom/ranap/RANAP_Requested-RAB-Parameter-Values.h index 82352fd..d59edc4 100644 --- a/include/osmocom/ranap/RANAP_Requested-RAB-Parameter-Values.h +++ b/include/osmocom/ranap/RANAP_Requested-RAB-Parameter-Values.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Requested_RAB_Parameter_Values_H_ diff --git a/include/osmocom/ranap/RANAP_RequestedGANSSAssistanceData.h b/include/osmocom/ranap/RANAP_RequestedGANSSAssistanceData.h index 86adfde..4a2ecc2 100644 --- a/include/osmocom/ranap/RANAP_RequestedGANSSAssistanceData.h +++ b/include/osmocom/ranap/RANAP_RequestedGANSSAssistanceData.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RequestedGANSSAssistanceData_H_ diff --git a/include/osmocom/ranap/RANAP_RequestedGPSAssistanceData.h b/include/osmocom/ranap/RANAP_RequestedGPSAssistanceData.h index 0ce5a5c..0dbd806 100644 --- a/include/osmocom/ranap/RANAP_RequestedGPSAssistanceData.h +++ b/include/osmocom/ranap/RANAP_RequestedGPSAssistanceData.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RequestedGPSAssistanceData_H_ diff --git a/include/osmocom/ranap/RANAP_RequestedLocationRelatedDataType.h b/include/osmocom/ranap/RANAP_RequestedLocationRelatedDataType.h index 786ea7c..7290d68 100644 --- a/include/osmocom/ranap/RANAP_RequestedLocationRelatedDataType.h +++ b/include/osmocom/ranap/RANAP_RequestedLocationRelatedDataType.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RequestedLocationRelatedDataType_H_ diff --git a/include/osmocom/ranap/RANAP_RequestedMBMSIPMulticastAddressandAPNRequest.h b/include/osmocom/ranap/RANAP_RequestedMBMSIPMulticastAddressandAPNRequest.h index 9ba0d86..6ebbb5c 100644 --- a/include/osmocom/ranap/RANAP_RequestedMBMSIPMulticastAddressandAPNRequest.h +++ b/include/osmocom/ranap/RANAP_RequestedMBMSIPMulticastAddressandAPNRequest.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RequestedMBMSIPMulticastAddressandAPNRequest_H_ diff --git a/include/osmocom/ranap/RANAP_RequestedMulticastServiceList.h b/include/osmocom/ranap/RANAP_RequestedMulticastServiceList.h index 9d0923c..104a004 100644 --- a/include/osmocom/ranap/RANAP_RequestedMulticastServiceList.h +++ b/include/osmocom/ranap/RANAP_RequestedMulticastServiceList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_RequestedMulticastServiceList_H_ diff --git a/include/osmocom/ranap/RANAP_Reset.h b/include/osmocom/ranap/RANAP_Reset.h index f02a5fb..1c4d80f 100644 --- a/include/osmocom/ranap/RANAP_Reset.h +++ b/include/osmocom/ranap/RANAP_Reset.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Reset_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_Reset */ typedef struct RANAP_Reset { - struct reset_ies { + struct RANAP_Reset__reset_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_ResetAcknowledge.h b/include/osmocom/ranap/RANAP_ResetAcknowledge.h index dc5c643..4b082cc 100644 --- a/include/osmocom/ranap/RANAP_ResetAcknowledge.h +++ b/include/osmocom/ranap/RANAP_ResetAcknowledge.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ResetAcknowledge_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_ResetAcknowledge */ typedef struct RANAP_ResetAcknowledge { - struct resetAcknowledge_ies { + struct RANAP_ResetAcknowledge__resetAcknowledge_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_ResetResource.h b/include/osmocom/ranap/RANAP_ResetResource.h index ba35fa6..a8d9c5b 100644 --- a/include/osmocom/ranap/RANAP_ResetResource.h +++ b/include/osmocom/ranap/RANAP_ResetResource.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ResetResource_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_ResetResource */ typedef struct RANAP_ResetResource { - struct resetResource_ies { + struct RANAP_ResetResource__resetResource_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_ResetResourceAckItem.h b/include/osmocom/ranap/RANAP_ResetResourceAckItem.h index 94ae632..3c16cf3 100644 --- a/include/osmocom/ranap/RANAP_ResetResourceAckItem.h +++ b/include/osmocom/ranap/RANAP_ResetResourceAckItem.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ResetResourceAckItem_H_ diff --git a/include/osmocom/ranap/RANAP_ResetResourceAckList.h b/include/osmocom/ranap/RANAP_ResetResourceAckList.h index 9d699b5..2a52a06 100644 --- a/include/osmocom/ranap/RANAP_ResetResourceAckList.h +++ b/include/osmocom/ranap/RANAP_ResetResourceAckList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ResetResourceAckList_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_ResetResourceAckList */ typedef struct RANAP_ResetResourceAckList { - struct resetResourceAckList_ies { + struct RANAP_ResetResourceAckList__resetResourceAckList_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_ResetResourceAcknowledge.h b/include/osmocom/ranap/RANAP_ResetResourceAcknowledge.h index f268623..24cffe9 100644 --- a/include/osmocom/ranap/RANAP_ResetResourceAcknowledge.h +++ b/include/osmocom/ranap/RANAP_ResetResourceAcknowledge.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ResetResourceAcknowledge_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_ResetResourceAcknowledge */ typedef struct RANAP_ResetResourceAcknowledge { - struct resetResourceAcknowledge_ies { + struct RANAP_ResetResourceAcknowledge__resetResourceAcknowledge_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_ResetResourceItem.h b/include/osmocom/ranap/RANAP_ResetResourceItem.h index 9482a16..da73555 100644 --- a/include/osmocom/ranap/RANAP_ResetResourceItem.h +++ b/include/osmocom/ranap/RANAP_ResetResourceItem.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ResetResourceItem_H_ diff --git a/include/osmocom/ranap/RANAP_ResetResourceList.h b/include/osmocom/ranap/RANAP_ResetResourceList.h index b840101..d68b3f5 100644 --- a/include/osmocom/ranap/RANAP_ResetResourceList.h +++ b/include/osmocom/ranap/RANAP_ResetResourceList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ResetResourceList_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_ResetResourceList */ typedef struct RANAP_ResetResourceList { - struct resetResourceList_ies { + struct RANAP_ResetResourceList__resetResourceList_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_ResidualBitErrorRatio.h b/include/osmocom/ranap/RANAP_ResidualBitErrorRatio.h index 5acfc8c..8544859 100644 --- a/include/osmocom/ranap/RANAP_ResidualBitErrorRatio.h +++ b/include/osmocom/ranap/RANAP_ResidualBitErrorRatio.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ResidualBitErrorRatio_H_ diff --git a/include/osmocom/ranap/RANAP_ResponseTime.h b/include/osmocom/ranap/RANAP_ResponseTime.h index daeda50..f460361 100644 --- a/include/osmocom/ranap/RANAP_ResponseTime.h +++ b/include/osmocom/ranap/RANAP_ResponseTime.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_ResponseTime_H_ diff --git a/include/osmocom/ranap/RANAP_SAC.h b/include/osmocom/ranap/RANAP_SAC.h index f7d7e80..3320e19 100644 --- a/include/osmocom/ranap/RANAP_SAC.h +++ b/include/osmocom/ranap/RANAP_SAC.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SAC_H_ diff --git a/include/osmocom/ranap/RANAP_SAI.h b/include/osmocom/ranap/RANAP_SAI.h index 1a8d622..a548ad5 100644 --- a/include/osmocom/ranap/RANAP_SAI.h +++ b/include/osmocom/ranap/RANAP_SAI.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SAI_H_ diff --git a/include/osmocom/ranap/RANAP_SAPI.h b/include/osmocom/ranap/RANAP_SAPI.h index 51a4996..a6e80d9 100644 --- a/include/osmocom/ranap/RANAP_SAPI.h +++ b/include/osmocom/ranap/RANAP_SAPI.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SAPI_H_ diff --git a/include/osmocom/ranap/RANAP_SDU-ErrorRatio.h b/include/osmocom/ranap/RANAP_SDU-ErrorRatio.h index 8835247..091372c 100644 --- a/include/osmocom/ranap/RANAP_SDU-ErrorRatio.h +++ b/include/osmocom/ranap/RANAP_SDU-ErrorRatio.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SDU_ErrorRatio_H_ diff --git a/include/osmocom/ranap/RANAP_SDU-FormatInformationParameterItem.h b/include/osmocom/ranap/RANAP_SDU-FormatInformationParameterItem.h index ed966d2..b1fe751 100644 --- a/include/osmocom/ranap/RANAP_SDU-FormatInformationParameterItem.h +++ b/include/osmocom/ranap/RANAP_SDU-FormatInformationParameterItem.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SDU_FormatInformationParameterItem_H_ diff --git a/include/osmocom/ranap/RANAP_SDU-FormatInformationParameters.h b/include/osmocom/ranap/RANAP_SDU-FormatInformationParameters.h index 6eb520c..363f2f0 100644 --- a/include/osmocom/ranap/RANAP_SDU-FormatInformationParameters.h +++ b/include/osmocom/ranap/RANAP_SDU-FormatInformationParameters.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SDU_FormatInformationParameters_H_ diff --git a/include/osmocom/ranap/RANAP_SDU-ParameterItem.h b/include/osmocom/ranap/RANAP_SDU-ParameterItem.h index dd700b8..4b8f126 100644 --- a/include/osmocom/ranap/RANAP_SDU-ParameterItem.h +++ b/include/osmocom/ranap/RANAP_SDU-ParameterItem.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SDU_ParameterItem_H_ diff --git a/include/osmocom/ranap/RANAP_SDU-Parameters.h b/include/osmocom/ranap/RANAP_SDU-Parameters.h index 5fc7f8b..e9608fe 100644 --- a/include/osmocom/ranap/RANAP_SDU-Parameters.h +++ b/include/osmocom/ranap/RANAP_SDU-Parameters.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SDU_Parameters_H_ diff --git a/include/osmocom/ranap/RANAP_SNA-Access-Information.h b/include/osmocom/ranap/RANAP_SNA-Access-Information.h index e98207a..797d354 100644 --- a/include/osmocom/ranap/RANAP_SNA-Access-Information.h +++ b/include/osmocom/ranap/RANAP_SNA-Access-Information.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SNA_Access_Information_H_ diff --git a/include/osmocom/ranap/RANAP_SNAC.h b/include/osmocom/ranap/RANAP_SNAC.h index e6e06f9..79dc234 100644 --- a/include/osmocom/ranap/RANAP_SNAC.h +++ b/include/osmocom/ranap/RANAP_SNAC.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SNAC_H_ diff --git a/include/osmocom/ranap/RANAP_SRB-ID.h b/include/osmocom/ranap/RANAP_SRB-ID.h index 1b86a32..dd17391 100644 --- a/include/osmocom/ranap/RANAP_SRB-ID.h +++ b/include/osmocom/ranap/RANAP_SRB-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SRB_ID_H_ diff --git a/include/osmocom/ranap/RANAP_SRB-TrCH-Mapping.h b/include/osmocom/ranap/RANAP_SRB-TrCH-Mapping.h index 7cb3959..23b4b4b 100644 --- a/include/osmocom/ranap/RANAP_SRB-TrCH-Mapping.h +++ b/include/osmocom/ranap/RANAP_SRB-TrCH-Mapping.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SRB_TrCH_Mapping_H_ diff --git a/include/osmocom/ranap/RANAP_SRB-TrCH-MappingItem.h b/include/osmocom/ranap/RANAP_SRB-TrCH-MappingItem.h index 36032e9..da0bfb7 100644 --- a/include/osmocom/ranap/RANAP_SRB-TrCH-MappingItem.h +++ b/include/osmocom/ranap/RANAP_SRB-TrCH-MappingItem.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SRB_TrCH_MappingItem_H_ diff --git a/include/osmocom/ranap/RANAP_SRNS-ContextRequest.h b/include/osmocom/ranap/RANAP_SRNS-ContextRequest.h index 168b9b5..737e8e5 100644 --- a/include/osmocom/ranap/RANAP_SRNS-ContextRequest.h +++ b/include/osmocom/ranap/RANAP_SRNS-ContextRequest.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SRNS_ContextRequest_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_SRNS-ContextRequest */ typedef struct RANAP_SRNS_ContextRequest { - struct srnS_ContextRequest_ies { + struct RANAP_SRNS_ContextRequest__srnS_ContextRequest_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_SRNS-ContextResponse.h b/include/osmocom/ranap/RANAP_SRNS-ContextResponse.h index 57fa412..0ff355c 100644 --- a/include/osmocom/ranap/RANAP_SRNS-ContextResponse.h +++ b/include/osmocom/ranap/RANAP_SRNS-ContextResponse.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SRNS_ContextResponse_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_SRNS-ContextResponse */ typedef struct RANAP_SRNS_ContextResponse { - struct srnS_ContextResponse_ies { + struct RANAP_SRNS_ContextResponse__srnS_ContextResponse_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_SRNS-DataForwardCommand.h b/include/osmocom/ranap/RANAP_SRNS-DataForwardCommand.h index ab554fd..a6c1abd 100644 --- a/include/osmocom/ranap/RANAP_SRNS-DataForwardCommand.h +++ b/include/osmocom/ranap/RANAP_SRNS-DataForwardCommand.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SRNS_DataForwardCommand_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_SRNS-DataForwardCommand */ typedef struct RANAP_SRNS_DataForwardCommand { - struct srnS_DataForwardCommand_ies { + struct RANAP_SRNS_DataForwardCommand__srnS_DataForwardCommand_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_SRVCC-CSKeysRequest.h b/include/osmocom/ranap/RANAP_SRVCC-CSKeysRequest.h index d9c9093..8ac3906 100644 --- a/include/osmocom/ranap/RANAP_SRVCC-CSKeysRequest.h +++ b/include/osmocom/ranap/RANAP_SRVCC-CSKeysRequest.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SRVCC_CSKeysRequest_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_SRVCC-CSKeysRequest */ typedef struct RANAP_SRVCC_CSKeysRequest { - struct srvcC_CSKeysRequest_ies { + struct RANAP_SRVCC_CSKeysRequest__srvcC_CSKeysRequest_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_SRVCC-CSKeysResponse.h b/include/osmocom/ranap/RANAP_SRVCC-CSKeysResponse.h index b143eab..f28eff2 100644 --- a/include/osmocom/ranap/RANAP_SRVCC-CSKeysResponse.h +++ b/include/osmocom/ranap/RANAP_SRVCC-CSKeysResponse.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SRVCC_CSKeysResponse_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_SRVCC-CSKeysResponse */ typedef struct RANAP_SRVCC_CSKeysResponse { - struct srvcC_CSKeysResponse_ies { + struct RANAP_SRVCC_CSKeysResponse__srvcC_CSKeysResponse_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_SRVCC-HO-Indication.h b/include/osmocom/ranap/RANAP_SRVCC-HO-Indication.h index 36caa2d..ce21280 100644 --- a/include/osmocom/ranap/RANAP_SRVCC-HO-Indication.h +++ b/include/osmocom/ranap/RANAP_SRVCC-HO-Indication.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SRVCC_HO_Indication_H_ diff --git a/include/osmocom/ranap/RANAP_SRVCC-Information.h b/include/osmocom/ranap/RANAP_SRVCC-Information.h index ef851b1..5915a16 100644 --- a/include/osmocom/ranap/RANAP_SRVCC-Information.h +++ b/include/osmocom/ranap/RANAP_SRVCC-Information.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SRVCC_Information_H_ diff --git a/include/osmocom/ranap/RANAP_SRVCC-Operation-Possible.h b/include/osmocom/ranap/RANAP_SRVCC-Operation-Possible.h index c839c8b..7e94252 100644 --- a/include/osmocom/ranap/RANAP_SRVCC-Operation-Possible.h +++ b/include/osmocom/ranap/RANAP_SRVCC-Operation-Possible.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SRVCC_Operation_Possible_H_ diff --git a/include/osmocom/ranap/RANAP_SecurityModeCommand.h b/include/osmocom/ranap/RANAP_SecurityModeCommand.h index 482b6ea..34deb81 100644 --- a/include/osmocom/ranap/RANAP_SecurityModeCommand.h +++ b/include/osmocom/ranap/RANAP_SecurityModeCommand.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SecurityModeCommand_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_SecurityModeCommand */ typedef struct RANAP_SecurityModeCommand { - struct securityModeCommand_ies { + struct RANAP_SecurityModeCommand__securityModeCommand_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_SecurityModeComplete.h b/include/osmocom/ranap/RANAP_SecurityModeComplete.h index 5a99eb0..8af7797 100644 --- a/include/osmocom/ranap/RANAP_SecurityModeComplete.h +++ b/include/osmocom/ranap/RANAP_SecurityModeComplete.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SecurityModeComplete_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_SecurityModeComplete */ typedef struct RANAP_SecurityModeComplete { - struct securityModeComplete_ies { + struct RANAP_SecurityModeComplete__securityModeComplete_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_SecurityModeReject.h b/include/osmocom/ranap/RANAP_SecurityModeReject.h index 1aa69da..d3f37ce 100644 --- a/include/osmocom/ranap/RANAP_SecurityModeReject.h +++ b/include/osmocom/ranap/RANAP_SecurityModeReject.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SecurityModeReject_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_SecurityModeReject */ typedef struct RANAP_SecurityModeReject { - struct securityModeReject_ies { + struct RANAP_SecurityModeReject__securityModeReject_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_Service-Handover.h b/include/osmocom/ranap/RANAP_Service-Handover.h index 1d54b1b..c6539b2 100644 --- a/include/osmocom/ranap/RANAP_Service-Handover.h +++ b/include/osmocom/ranap/RANAP_Service-Handover.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Service_Handover_H_ diff --git a/include/osmocom/ranap/RANAP_Session-Re-establishment-Indicator.h b/include/osmocom/ranap/RANAP_Session-Re-establishment-Indicator.h index ea9b931..3182e03 100644 --- a/include/osmocom/ranap/RANAP_Session-Re-establishment-Indicator.h +++ b/include/osmocom/ranap/RANAP_Session-Re-establishment-Indicator.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Session_Re_establishment_Indicator_H_ diff --git a/include/osmocom/ranap/RANAP_SessionUpdateID.h b/include/osmocom/ranap/RANAP_SessionUpdateID.h index 3d9f9aa..d3d1f30 100644 --- a/include/osmocom/ranap/RANAP_SessionUpdateID.h +++ b/include/osmocom/ranap/RANAP_SessionUpdateID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SessionUpdateID_H_ diff --git a/include/osmocom/ranap/RANAP_Shared-Network-Information.h b/include/osmocom/ranap/RANAP_Shared-Network-Information.h index 74afbd1..f893974 100644 --- a/include/osmocom/ranap/RANAP_Shared-Network-Information.h +++ b/include/osmocom/ranap/RANAP_Shared-Network-Information.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Shared_Network_Information_H_ diff --git a/include/osmocom/ranap/RANAP_SignallingIndication.h b/include/osmocom/ranap/RANAP_SignallingIndication.h index 4c95a32..3687296 100644 --- a/include/osmocom/ranap/RANAP_SignallingIndication.h +++ b/include/osmocom/ranap/RANAP_SignallingIndication.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SignallingIndication_H_ diff --git a/include/osmocom/ranap/RANAP_Source-ToTarget-TransparentContainer.h b/include/osmocom/ranap/RANAP_Source-ToTarget-TransparentContainer.h index 84b1571..e172097 100644 --- a/include/osmocom/ranap/RANAP_Source-ToTarget-TransparentContainer.h +++ b/include/osmocom/ranap/RANAP_Source-ToTarget-TransparentContainer.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Source_ToTarget_TransparentContainer_H_ diff --git a/include/osmocom/ranap/RANAP_SourceBSS-ToTargetBSS-TransparentContainer.h b/include/osmocom/ranap/RANAP_SourceBSS-ToTargetBSS-TransparentContainer.h index e86c070..d0b9a1d 100644 --- a/include/osmocom/ranap/RANAP_SourceBSS-ToTargetBSS-TransparentContainer.h +++ b/include/osmocom/ranap/RANAP_SourceBSS-ToTargetBSS-TransparentContainer.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SourceBSS_ToTargetBSS_TransparentContainer_H_ diff --git a/include/osmocom/ranap/RANAP_SourceCellID.h b/include/osmocom/ranap/RANAP_SourceCellID.h index 2c4e679..e6bcfc0 100644 --- a/include/osmocom/ranap/RANAP_SourceCellID.h +++ b/include/osmocom/ranap/RANAP_SourceCellID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SourceCellID_H_ diff --git a/include/osmocom/ranap/RANAP_SourceID.h b/include/osmocom/ranap/RANAP_SourceID.h index ef4acc0..5c2998c 100644 --- a/include/osmocom/ranap/RANAP_SourceID.h +++ b/include/osmocom/ranap/RANAP_SourceID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SourceID_H_ diff --git a/include/osmocom/ranap/RANAP_SourceRNC-ID.h b/include/osmocom/ranap/RANAP_SourceRNC-ID.h index 17ed1c1..d98abad 100644 --- a/include/osmocom/ranap/RANAP_SourceRNC-ID.h +++ b/include/osmocom/ranap/RANAP_SourceRNC-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SourceRNC_ID_H_ diff --git a/include/osmocom/ranap/RANAP_SourceRNC-ToTargetRNC-TransparentContainer.h b/include/osmocom/ranap/RANAP_SourceRNC-ToTargetRNC-TransparentContainer.h index 8065a9a..7a2df7f 100644 --- a/include/osmocom/ranap/RANAP_SourceRNC-ToTargetRNC-TransparentContainer.h +++ b/include/osmocom/ranap/RANAP_SourceRNC-ToTargetRNC-TransparentContainer.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SourceRNC_ToTargetRNC_TransparentContainer_H_ diff --git a/include/osmocom/ranap/RANAP_SourceStatisticsDescriptor.h b/include/osmocom/ranap/RANAP_SourceStatisticsDescriptor.h index 5f459eb..b7f3597 100644 --- a/include/osmocom/ranap/RANAP_SourceStatisticsDescriptor.h +++ b/include/osmocom/ranap/RANAP_SourceStatisticsDescriptor.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SourceStatisticsDescriptor_H_ diff --git a/include/osmocom/ranap/RANAP_SourceUTRANCellID.h b/include/osmocom/ranap/RANAP_SourceUTRANCellID.h index 551a7f6..b77e47d 100644 --- a/include/osmocom/ranap/RANAP_SourceUTRANCellID.h +++ b/include/osmocom/ranap/RANAP_SourceUTRANCellID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SourceUTRANCellID_H_ diff --git a/include/osmocom/ranap/RANAP_SourceeNodeB-ToTargeteNodeB-TransparentContainer.h b/include/osmocom/ranap/RANAP_SourceeNodeB-ToTargeteNodeB-TransparentContainer.h index 347fb40..22af1da 100644 --- a/include/osmocom/ranap/RANAP_SourceeNodeB-ToTargeteNodeB-TransparentContainer.h +++ b/include/osmocom/ranap/RANAP_SourceeNodeB-ToTargeteNodeB-TransparentContainer.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SourceeNodeB_ToTargeteNodeB_TransparentContainer_H_ diff --git a/include/osmocom/ranap/RANAP_SubflowSDU-Size.h b/include/osmocom/ranap/RANAP_SubflowSDU-Size.h index daaf20b..e05af69 100644 --- a/include/osmocom/ranap/RANAP_SubflowSDU-Size.h +++ b/include/osmocom/ranap/RANAP_SubflowSDU-Size.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SubflowSDU_Size_H_ diff --git a/include/osmocom/ranap/RANAP_SubscriberProfileIDforRFP.h b/include/osmocom/ranap/RANAP_SubscriberProfileIDforRFP.h index 984957b..ca06359 100644 --- a/include/osmocom/ranap/RANAP_SubscriberProfileIDforRFP.h +++ b/include/osmocom/ranap/RANAP_SubscriberProfileIDforRFP.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SubscriberProfileIDforRFP_H_ diff --git a/include/osmocom/ranap/RANAP_SuccessfulOutcome.h b/include/osmocom/ranap/RANAP_SuccessfulOutcome.h index bd0364c..5c4a045 100644 --- a/include/osmocom/ranap/RANAP_SuccessfulOutcome.h +++ b/include/osmocom/ranap/RANAP_SuccessfulOutcome.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SuccessfulOutcome_H_ diff --git a/include/osmocom/ranap/RANAP_SupportedBitrate.h b/include/osmocom/ranap/RANAP_SupportedBitrate.h index a65f694..cdcd4e9 100644 --- a/include/osmocom/ranap/RANAP_SupportedBitrate.h +++ b/include/osmocom/ranap/RANAP_SupportedBitrate.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SupportedBitrate_H_ diff --git a/include/osmocom/ranap/RANAP_SupportedRAB-ParameterBitrateList.h b/include/osmocom/ranap/RANAP_SupportedRAB-ParameterBitrateList.h index 3677899..b1a1d2a 100644 --- a/include/osmocom/ranap/RANAP_SupportedRAB-ParameterBitrateList.h +++ b/include/osmocom/ranap/RANAP_SupportedRAB-ParameterBitrateList.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_SupportedRAB_ParameterBitrateList_H_ diff --git a/include/osmocom/ranap/RANAP_TAC.h b/include/osmocom/ranap/RANAP_TAC.h index 7b3e47b..e273412 100644 --- a/include/osmocom/ranap/RANAP_TAC.h +++ b/include/osmocom/ranap/RANAP_TAC.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TAC_H_ diff --git a/include/osmocom/ranap/RANAP_TAI.h b/include/osmocom/ranap/RANAP_TAI.h index 8fbcb30..2b5ab90 100644 --- a/include/osmocom/ranap/RANAP_TAI.h +++ b/include/osmocom/ranap/RANAP_TAI.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TAI_H_ diff --git a/include/osmocom/ranap/RANAP_TBCD-STRING.h b/include/osmocom/ranap/RANAP_TBCD-STRING.h index b3787aa..e94e6a9 100644 --- a/include/osmocom/ranap/RANAP_TBCD-STRING.h +++ b/include/osmocom/ranap/RANAP_TBCD-STRING.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TBCD_STRING_H_ diff --git a/include/osmocom/ranap/RANAP_TMGI.h b/include/osmocom/ranap/RANAP_TMGI.h index 9697529..eceab6e 100644 --- a/include/osmocom/ranap/RANAP_TMGI.h +++ b/include/osmocom/ranap/RANAP_TMGI.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TMGI_H_ diff --git a/include/osmocom/ranap/RANAP_TMSI.h b/include/osmocom/ranap/RANAP_TMSI.h index f4d4c4d..78c0415 100644 --- a/include/osmocom/ranap/RANAP_TMSI.h +++ b/include/osmocom/ranap/RANAP_TMSI.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TMSI_H_ diff --git a/include/osmocom/ranap/RANAP_TNLInformationEnhRelInfoReq.h b/include/osmocom/ranap/RANAP_TNLInformationEnhRelInfoReq.h index 4f2e2e1..99fc514 100644 --- a/include/osmocom/ranap/RANAP_TNLInformationEnhRelInfoReq.h +++ b/include/osmocom/ranap/RANAP_TNLInformationEnhRelInfoReq.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TNLInformationEnhRelInfoReq_H_ diff --git a/include/osmocom/ranap/RANAP_TNLInformationEnhRelInfoRes.h b/include/osmocom/ranap/RANAP_TNLInformationEnhRelInfoRes.h index 6b8efbb..351b984 100644 --- a/include/osmocom/ranap/RANAP_TNLInformationEnhRelInfoRes.h +++ b/include/osmocom/ranap/RANAP_TNLInformationEnhRelInfoRes.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TNLInformationEnhRelInfoRes_H_ diff --git a/include/osmocom/ranap/RANAP_Target-ToSource-TransparentContainer.h b/include/osmocom/ranap/RANAP_Target-ToSource-TransparentContainer.h index 0b82065..7f518bf 100644 --- a/include/osmocom/ranap/RANAP_Target-ToSource-TransparentContainer.h +++ b/include/osmocom/ranap/RANAP_Target-ToSource-TransparentContainer.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Target_ToSource_TransparentContainer_H_ diff --git a/include/osmocom/ranap/RANAP_TargetBSS-ToSourceBSS-TransparentContainer.h b/include/osmocom/ranap/RANAP_TargetBSS-ToSourceBSS-TransparentContainer.h index 9ee065e..8cd67a0 100644 --- a/include/osmocom/ranap/RANAP_TargetBSS-ToSourceBSS-TransparentContainer.h +++ b/include/osmocom/ranap/RANAP_TargetBSS-ToSourceBSS-TransparentContainer.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TargetBSS_ToSourceBSS_TransparentContainer_H_ diff --git a/include/osmocom/ranap/RANAP_TargetCellId.h b/include/osmocom/ranap/RANAP_TargetCellId.h index 06dcb01..ba2f863 100644 --- a/include/osmocom/ranap/RANAP_TargetCellId.h +++ b/include/osmocom/ranap/RANAP_TargetCellId.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TargetCellId_H_ diff --git a/include/osmocom/ranap/RANAP_TargetENB-ID.h b/include/osmocom/ranap/RANAP_TargetENB-ID.h index 0566213..d50bfd8 100644 --- a/include/osmocom/ranap/RANAP_TargetENB-ID.h +++ b/include/osmocom/ranap/RANAP_TargetENB-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TargetENB_ID_H_ diff --git a/include/osmocom/ranap/RANAP_TargetID.h b/include/osmocom/ranap/RANAP_TargetID.h index fa8a82f..5eedcb5 100644 --- a/include/osmocom/ranap/RANAP_TargetID.h +++ b/include/osmocom/ranap/RANAP_TargetID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TargetID_H_ diff --git a/include/osmocom/ranap/RANAP_TargetRNC-ID.h b/include/osmocom/ranap/RANAP_TargetRNC-ID.h index 0d6dc98..36d9564 100644 --- a/include/osmocom/ranap/RANAP_TargetRNC-ID.h +++ b/include/osmocom/ranap/RANAP_TargetRNC-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TargetRNC_ID_H_ diff --git a/include/osmocom/ranap/RANAP_TargetRNC-ToSourceRNC-TransparentContainer.h b/include/osmocom/ranap/RANAP_TargetRNC-ToSourceRNC-TransparentContainer.h index eb1d973..74627e3 100644 --- a/include/osmocom/ranap/RANAP_TargetRNC-ToSourceRNC-TransparentContainer.h +++ b/include/osmocom/ranap/RANAP_TargetRNC-ToSourceRNC-TransparentContainer.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TargetRNC_ToSourceRNC_TransparentContainer_H_ diff --git a/include/osmocom/ranap/RANAP_TargeteNodeB-ToSourceeNodeB-TransparentContainer.h b/include/osmocom/ranap/RANAP_TargeteNodeB-ToSourceeNodeB-TransparentContainer.h index 82f02cd..c63c892 100644 --- a/include/osmocom/ranap/RANAP_TargeteNodeB-ToSourceeNodeB-TransparentContainer.h +++ b/include/osmocom/ranap/RANAP_TargeteNodeB-ToSourceeNodeB-TransparentContainer.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TargeteNodeB_ToSourceeNodeB_TransparentContainer_H_ diff --git a/include/osmocom/ranap/RANAP_TemporaryUE-ID.h b/include/osmocom/ranap/RANAP_TemporaryUE-ID.h index 3d27c00..ac3bdc8 100644 --- a/include/osmocom/ranap/RANAP_TemporaryUE-ID.h +++ b/include/osmocom/ranap/RANAP_TemporaryUE-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TemporaryUE_ID_H_ diff --git a/include/osmocom/ranap/RANAP_Time-UE-StayedInCell-EnhancedGranularity.h b/include/osmocom/ranap/RANAP_Time-UE-StayedInCell-EnhancedGranularity.h index f525d6a..bd09bbc 100644 --- a/include/osmocom/ranap/RANAP_Time-UE-StayedInCell-EnhancedGranularity.h +++ b/include/osmocom/ranap/RANAP_Time-UE-StayedInCell-EnhancedGranularity.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Time_UE_StayedInCell_EnhancedGranularity_H_ diff --git a/include/osmocom/ranap/RANAP_Time-UE-StayedInCell.h b/include/osmocom/ranap/RANAP_Time-UE-StayedInCell.h index d87a899..d1ea0d5 100644 --- a/include/osmocom/ranap/RANAP_Time-UE-StayedInCell.h +++ b/include/osmocom/ranap/RANAP_Time-UE-StayedInCell.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_Time_UE_StayedInCell_H_ diff --git a/include/osmocom/ranap/RANAP_TimeToMBMSDataTransfer.h b/include/osmocom/ranap/RANAP_TimeToMBMSDataTransfer.h index 31ede6e..c7eb3ed 100644 --- a/include/osmocom/ranap/RANAP_TimeToMBMSDataTransfer.h +++ b/include/osmocom/ranap/RANAP_TimeToMBMSDataTransfer.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TimeToMBMSDataTransfer_H_ diff --git a/include/osmocom/ranap/RANAP_TimingDifferenceULDL.h b/include/osmocom/ranap/RANAP_TimingDifferenceULDL.h index 7497493..cb4b341 100644 --- a/include/osmocom/ranap/RANAP_TimingDifferenceULDL.h +++ b/include/osmocom/ranap/RANAP_TimingDifferenceULDL.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TimingDifferenceULDL_H_ diff --git a/include/osmocom/ranap/RANAP_TrCH-ID-List.h b/include/osmocom/ranap/RANAP_TrCH-ID-List.h index 77ca281..662298f 100644 --- a/include/osmocom/ranap/RANAP_TrCH-ID-List.h +++ b/include/osmocom/ranap/RANAP_TrCH-ID-List.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TrCH_ID_List_H_ diff --git a/include/osmocom/ranap/RANAP_TrCH-ID.h b/include/osmocom/ranap/RANAP_TrCH-ID.h index 2ab369b..6165d81 100644 --- a/include/osmocom/ranap/RANAP_TrCH-ID.h +++ b/include/osmocom/ranap/RANAP_TrCH-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TrCH_ID_H_ diff --git a/include/osmocom/ranap/RANAP_TraceDepth.h b/include/osmocom/ranap/RANAP_TraceDepth.h index 4bad74d..6690bf2 100644 --- a/include/osmocom/ranap/RANAP_TraceDepth.h +++ b/include/osmocom/ranap/RANAP_TraceDepth.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TraceDepth_H_ diff --git a/include/osmocom/ranap/RANAP_TraceInformation.h b/include/osmocom/ranap/RANAP_TraceInformation.h index 6281c4e..6f6ca92 100644 --- a/include/osmocom/ranap/RANAP_TraceInformation.h +++ b/include/osmocom/ranap/RANAP_TraceInformation.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TraceInformation_H_ diff --git a/include/osmocom/ranap/RANAP_TracePropagationParameters.h b/include/osmocom/ranap/RANAP_TracePropagationParameters.h index 271a352..116fb62 100644 --- a/include/osmocom/ranap/RANAP_TracePropagationParameters.h +++ b/include/osmocom/ranap/RANAP_TracePropagationParameters.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TracePropagationParameters_H_ diff --git a/include/osmocom/ranap/RANAP_TraceRecordingSessionInformation.h b/include/osmocom/ranap/RANAP_TraceRecordingSessionInformation.h index aac7b89..8d059b6 100644 --- a/include/osmocom/ranap/RANAP_TraceRecordingSessionInformation.h +++ b/include/osmocom/ranap/RANAP_TraceRecordingSessionInformation.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TraceRecordingSessionInformation_H_ diff --git a/include/osmocom/ranap/RANAP_TraceRecordingSessionReference.h b/include/osmocom/ranap/RANAP_TraceRecordingSessionReference.h index 7545987..f461542 100644 --- a/include/osmocom/ranap/RANAP_TraceRecordingSessionReference.h +++ b/include/osmocom/ranap/RANAP_TraceRecordingSessionReference.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TraceRecordingSessionReference_H_ diff --git a/include/osmocom/ranap/RANAP_TraceReference.h b/include/osmocom/ranap/RANAP_TraceReference.h index ab3069d..ccdbdcf 100644 --- a/include/osmocom/ranap/RANAP_TraceReference.h +++ b/include/osmocom/ranap/RANAP_TraceReference.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TraceReference_H_ diff --git a/include/osmocom/ranap/RANAP_TraceType.h b/include/osmocom/ranap/RANAP_TraceType.h index 1f1edb4..f8a3207 100644 --- a/include/osmocom/ranap/RANAP_TraceType.h +++ b/include/osmocom/ranap/RANAP_TraceType.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TraceType_H_ diff --git a/include/osmocom/ranap/RANAP_TrafficClass.h b/include/osmocom/ranap/RANAP_TrafficClass.h index 5d3eb28..3343669 100644 --- a/include/osmocom/ranap/RANAP_TrafficClass.h +++ b/include/osmocom/ranap/RANAP_TrafficClass.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TrafficClass_H_ diff --git a/include/osmocom/ranap/RANAP_TrafficHandlingPriority.h b/include/osmocom/ranap/RANAP_TrafficHandlingPriority.h index 2067c21..03dc7e8 100644 --- a/include/osmocom/ranap/RANAP_TrafficHandlingPriority.h +++ b/include/osmocom/ranap/RANAP_TrafficHandlingPriority.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TrafficHandlingPriority_H_ diff --git a/include/osmocom/ranap/RANAP_TransferDelay.h b/include/osmocom/ranap/RANAP_TransferDelay.h index 7339967..cc60dfb 100644 --- a/include/osmocom/ranap/RANAP_TransferDelay.h +++ b/include/osmocom/ranap/RANAP_TransferDelay.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TransferDelay_H_ diff --git a/include/osmocom/ranap/RANAP_TransportLayerAddress.h b/include/osmocom/ranap/RANAP_TransportLayerAddress.h index fb99bac..846b9c0 100644 --- a/include/osmocom/ranap/RANAP_TransportLayerAddress.h +++ b/include/osmocom/ranap/RANAP_TransportLayerAddress.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TransportLayerAddress_H_ diff --git a/include/osmocom/ranap/RANAP_TransportLayerInformation.h b/include/osmocom/ranap/RANAP_TransportLayerInformation.h index dd443c4..ef029a7 100644 --- a/include/osmocom/ranap/RANAP_TransportLayerInformation.h +++ b/include/osmocom/ranap/RANAP_TransportLayerInformation.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TransportLayerInformation_H_ diff --git a/include/osmocom/ranap/RANAP_TriggerID.h b/include/osmocom/ranap/RANAP_TriggerID.h index eba5820..0ae1ade 100644 --- a/include/osmocom/ranap/RANAP_TriggerID.h +++ b/include/osmocom/ranap/RANAP_TriggerID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TriggerID_H_ diff --git a/include/osmocom/ranap/RANAP_TriggeringMessage.h b/include/osmocom/ranap/RANAP_TriggeringMessage.h index f43f734..db0f134 100644 --- a/include/osmocom/ranap/RANAP_TriggeringMessage.h +++ b/include/osmocom/ranap/RANAP_TriggeringMessage.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-CommonDataTypes" * found in "../../asn1/ranap/RANAP-CommonDataTypes.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TriggeringMessage_H_ diff --git a/include/osmocom/ranap/RANAP_TunnelInformation.h b/include/osmocom/ranap/RANAP_TunnelInformation.h index 679b41a..4f445ab 100644 --- a/include/osmocom/ranap/RANAP_TunnelInformation.h +++ b/include/osmocom/ranap/RANAP_TunnelInformation.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TunnelInformation_H_ diff --git a/include/osmocom/ranap/RANAP_TypeOfError.h b/include/osmocom/ranap/RANAP_TypeOfError.h index 12b0528..1ba016f 100644 --- a/include/osmocom/ranap/RANAP_TypeOfError.h +++ b/include/osmocom/ranap/RANAP_TypeOfError.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_TypeOfError_H_ diff --git a/include/osmocom/ranap/RANAP_UE-AggregateMaximumBitRate.h b/include/osmocom/ranap/RANAP_UE-AggregateMaximumBitRate.h index 2029073..f340645 100644 --- a/include/osmocom/ranap/RANAP_UE-AggregateMaximumBitRate.h +++ b/include/osmocom/ranap/RANAP_UE-AggregateMaximumBitRate.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UE_AggregateMaximumBitRate_H_ diff --git a/include/osmocom/ranap/RANAP_UE-AggregateMaximumBitRateDownlink.h b/include/osmocom/ranap/RANAP_UE-AggregateMaximumBitRateDownlink.h index 0e6c196..7c94006 100644 --- a/include/osmocom/ranap/RANAP_UE-AggregateMaximumBitRateDownlink.h +++ b/include/osmocom/ranap/RANAP_UE-AggregateMaximumBitRateDownlink.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UE_AggregateMaximumBitRateDownlink_H_ diff --git a/include/osmocom/ranap/RANAP_UE-AggregateMaximumBitRateUplink.h b/include/osmocom/ranap/RANAP_UE-AggregateMaximumBitRateUplink.h index fca65bf..7327612 100644 --- a/include/osmocom/ranap/RANAP_UE-AggregateMaximumBitRateUplink.h +++ b/include/osmocom/ranap/RANAP_UE-AggregateMaximumBitRateUplink.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UE_AggregateMaximumBitRateUplink_H_ diff --git a/include/osmocom/ranap/RANAP_UE-History-Information.h b/include/osmocom/ranap/RANAP_UE-History-Information.h index 92df8b9..7374c7d 100644 --- a/include/osmocom/ranap/RANAP_UE-History-Information.h +++ b/include/osmocom/ranap/RANAP_UE-History-Information.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UE_History_Information_H_ diff --git a/include/osmocom/ranap/RANAP_UE-ID.h b/include/osmocom/ranap/RANAP_UE-ID.h index 0bc2fc7..d0d36ae 100644 --- a/include/osmocom/ranap/RANAP_UE-ID.h +++ b/include/osmocom/ranap/RANAP_UE-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UE_ID_H_ diff --git a/include/osmocom/ranap/RANAP_UESBI-Iu.h b/include/osmocom/ranap/RANAP_UESBI-Iu.h index 44057fa..b10a54f 100644 --- a/include/osmocom/ranap/RANAP_UESBI-Iu.h +++ b/include/osmocom/ranap/RANAP_UESBI-Iu.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UESBI_Iu_H_ diff --git a/include/osmocom/ranap/RANAP_UESBI-IuA.h b/include/osmocom/ranap/RANAP_UESBI-IuA.h index c4c51bb..995985b 100644 --- a/include/osmocom/ranap/RANAP_UESBI-IuA.h +++ b/include/osmocom/ranap/RANAP_UESBI-IuA.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UESBI_IuA_H_ diff --git a/include/osmocom/ranap/RANAP_UESBI-IuB.h b/include/osmocom/ranap/RANAP_UESBI-IuB.h index 4e8648b..a87900a 100644 --- a/include/osmocom/ranap/RANAP_UESBI-IuB.h +++ b/include/osmocom/ranap/RANAP_UESBI-IuB.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UESBI_IuB_H_ diff --git a/include/osmocom/ranap/RANAP_UESpecificInformationIndication.h b/include/osmocom/ranap/RANAP_UESpecificInformationIndication.h index a4bad3a..c26310f 100644 --- a/include/osmocom/ranap/RANAP_UESpecificInformationIndication.h +++ b/include/osmocom/ranap/RANAP_UESpecificInformationIndication.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UESpecificInformationIndication_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_UESpecificInformationIndication */ typedef struct RANAP_UESpecificInformationIndication { - struct ueSpecificInformationIndication_ies { + struct RANAP_UESpecificInformationIndication__ueSpecificInformationIndication_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_UL-GTP-PDU-SequenceNumber.h b/include/osmocom/ranap/RANAP_UL-GTP-PDU-SequenceNumber.h index 3a969ae..a2f7e72 100644 --- a/include/osmocom/ranap/RANAP_UL-GTP-PDU-SequenceNumber.h +++ b/include/osmocom/ranap/RANAP_UL-GTP-PDU-SequenceNumber.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UL_GTP_PDU_SequenceNumber_H_ diff --git a/include/osmocom/ranap/RANAP_UL-N-PDU-SequenceNumber.h b/include/osmocom/ranap/RANAP_UL-N-PDU-SequenceNumber.h index b7304c7..66f7f57 100644 --- a/include/osmocom/ranap/RANAP_UL-N-PDU-SequenceNumber.h +++ b/include/osmocom/ranap/RANAP_UL-N-PDU-SequenceNumber.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UL_N_PDU_SequenceNumber_H_ diff --git a/include/osmocom/ranap/RANAP_UP-ModeVersions.h b/include/osmocom/ranap/RANAP_UP-ModeVersions.h index 209bb28..9cbc484 100644 --- a/include/osmocom/ranap/RANAP_UP-ModeVersions.h +++ b/include/osmocom/ranap/RANAP_UP-ModeVersions.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UP_ModeVersions_H_ diff --git a/include/osmocom/ranap/RANAP_UPInformation.h b/include/osmocom/ranap/RANAP_UPInformation.h index 8d0af41..7d067fc 100644 --- a/include/osmocom/ranap/RANAP_UPInformation.h +++ b/include/osmocom/ranap/RANAP_UPInformation.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UPInformation_H_ diff --git a/include/osmocom/ranap/RANAP_UPInitialisationFrame.h b/include/osmocom/ranap/RANAP_UPInitialisationFrame.h index 1118f14..057f940 100644 --- a/include/osmocom/ranap/RANAP_UPInitialisationFrame.h +++ b/include/osmocom/ranap/RANAP_UPInitialisationFrame.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UPInitialisationFrame_H_ diff --git a/include/osmocom/ranap/RANAP_USCH-ID.h b/include/osmocom/ranap/RANAP_USCH-ID.h index 2462e8e..ca1a9db 100644 --- a/include/osmocom/ranap/RANAP_USCH-ID.h +++ b/include/osmocom/ranap/RANAP_USCH-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_USCH_ID_H_ diff --git a/include/osmocom/ranap/RANAP_UTRAN-CellID.h b/include/osmocom/ranap/RANAP_UTRAN-CellID.h index f86ce05..556ee4b 100644 --- a/include/osmocom/ranap/RANAP_UTRAN-CellID.h +++ b/include/osmocom/ranap/RANAP_UTRAN-CellID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UTRAN_CellID_H_ diff --git a/include/osmocom/ranap/RANAP_UeRadioCapabilityMatchRequest.h b/include/osmocom/ranap/RANAP_UeRadioCapabilityMatchRequest.h index 735951b..ca11f20 100644 --- a/include/osmocom/ranap/RANAP_UeRadioCapabilityMatchRequest.h +++ b/include/osmocom/ranap/RANAP_UeRadioCapabilityMatchRequest.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UeRadioCapabilityMatchRequest_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_UeRadioCapabilityMatchRequest */ typedef struct RANAP_UeRadioCapabilityMatchRequest { - struct ueRadioCapabilityMatchRequest_ies { + struct RANAP_UeRadioCapabilityMatchRequest__ueRadioCapabilityMatchRequest_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_UeRadioCapabilityMatchResponse.h b/include/osmocom/ranap/RANAP_UeRadioCapabilityMatchResponse.h index a589878..58074d7 100644 --- a/include/osmocom/ranap/RANAP_UeRadioCapabilityMatchResponse.h +++ b/include/osmocom/ranap/RANAP_UeRadioCapabilityMatchResponse.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UeRadioCapabilityMatchResponse_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_UeRadioCapabilityMatchResponse */ typedef struct RANAP_UeRadioCapabilityMatchResponse { - struct ueRadioCapabilityMatchResponse_ies { + struct RANAP_UeRadioCapabilityMatchResponse__ueRadioCapabilityMatchResponse_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_UnsuccessfulLinking-IEs-Value.h b/include/osmocom/ranap/RANAP_UnsuccessfulLinking-IEs-Value.h new file mode 100644 index 0000000..f8d7a67 --- /dev/null +++ b/include/osmocom/ranap/RANAP_UnsuccessfulLinking-IEs-Value.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-PDU" + * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` + */ + +#ifndef _RANAP_UnsuccessfulLinking_IEs_Value_H_ +#define _RANAP_UnsuccessfulLinking_IEs_Value_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/ranap/RANAP_TMGI.h> +#include <osmocom/ranap/RANAP_Cause.h> +#include <osmocom/ranap/RANAP_ProtocolExtensionContainer.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* RANAP_UnsuccessfulLinking-IEs-Value */ +typedef struct RANAP_UnsuccessfulLinking_IEs_Value { + RANAP_TMGI_t tMGI; + RANAP_Cause_t cause; + RANAP_ProtocolExtensionContainer_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RANAP_UnsuccessfulLinking_IEs_Value_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RANAP_UnsuccessfulLinking_IEs_Value; + +#ifdef __cplusplus +} +#endif + +#endif /* _RANAP_UnsuccessfulLinking_IEs_Value_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/ranap/RANAP_UnsuccessfulLinking-IEs.h b/include/osmocom/ranap/RANAP_UnsuccessfulLinking-IEs.h index 149db08..9a3af1c 100644 --- a/include/osmocom/ranap/RANAP_UnsuccessfulLinking-IEs.h +++ b/include/osmocom/ranap/RANAP_UnsuccessfulLinking-IEs.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UnsuccessfulLinking_IEs_H_ @@ -11,11 +12,8 @@ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/ranap/RANAP_UnsuccessfulLinking-IEs-Value.h> #include <asn_SEQUENCE_OF.h> -#include <osmocom/ranap/RANAP_TMGI.h> -#include <osmocom/ranap/RANAP_Cause.h> -#include <osmocom/ranap/RANAP_ProtocolExtensionContainer.h> -#include <constr_SEQUENCE.h> #include <constr_SEQUENCE_OF.h> #ifdef __cplusplus @@ -24,18 +22,7 @@ extern "C" { /* RANAP_UnsuccessfulLinking-IEs */ typedef struct RANAP_UnsuccessfulLinking_IEs { - A_SEQUENCE_OF(struct MemberD { - RANAP_TMGI_t tMGI; - RANAP_Cause_t cause; - RANAP_ProtocolExtensionContainer_t *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ) list; + A_SEQUENCE_OF(RANAP_UnsuccessfulLinking_IEs_Value_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/include/osmocom/ranap/RANAP_UnsuccessfulOutcome.h b/include/osmocom/ranap/RANAP_UnsuccessfulOutcome.h index cbd7ee8..92e3022 100644 --- a/include/osmocom/ranap/RANAP_UnsuccessfulOutcome.h +++ b/include/osmocom/ranap/RANAP_UnsuccessfulOutcome.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UnsuccessfulOutcome_H_ diff --git a/include/osmocom/ranap/RANAP_UnsuccessfullyTransmittedDataVolume.h b/include/osmocom/ranap/RANAP_UnsuccessfullyTransmittedDataVolume.h index be64f7b..851ff9f 100644 --- a/include/osmocom/ranap/RANAP_UnsuccessfullyTransmittedDataVolume.h +++ b/include/osmocom/ranap/RANAP_UnsuccessfullyTransmittedDataVolume.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UnsuccessfullyTransmittedDataVolume_H_ diff --git a/include/osmocom/ranap/RANAP_UplinkInformationExchangeFailure.h b/include/osmocom/ranap/RANAP_UplinkInformationExchangeFailure.h index 817d5f5..c50b905 100644 --- a/include/osmocom/ranap/RANAP_UplinkInformationExchangeFailure.h +++ b/include/osmocom/ranap/RANAP_UplinkInformationExchangeFailure.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UplinkInformationExchangeFailure_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_UplinkInformationExchangeFailure */ typedef struct RANAP_UplinkInformationExchangeFailure { - struct uplinkInformationExchangeFailure_ies { + struct RANAP_UplinkInformationExchangeFailure__uplinkInformationExchangeFailure_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_UplinkInformationExchangeRequest.h b/include/osmocom/ranap/RANAP_UplinkInformationExchangeRequest.h index d07a3a7..b517aa4 100644 --- a/include/osmocom/ranap/RANAP_UplinkInformationExchangeRequest.h +++ b/include/osmocom/ranap/RANAP_UplinkInformationExchangeRequest.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UplinkInformationExchangeRequest_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_UplinkInformationExchangeRequest */ typedef struct RANAP_UplinkInformationExchangeRequest { - struct uplinkInformationExchangeRequest_ies { + struct RANAP_UplinkInformationExchangeRequest__uplinkInformationExchangeRequest_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_UplinkInformationExchangeResponse.h b/include/osmocom/ranap/RANAP_UplinkInformationExchangeResponse.h index 093acce..de6ca98 100644 --- a/include/osmocom/ranap/RANAP_UplinkInformationExchangeResponse.h +++ b/include/osmocom/ranap/RANAP_UplinkInformationExchangeResponse.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UplinkInformationExchangeResponse_H_ @@ -22,7 +23,7 @@ extern "C" { /* RANAP_UplinkInformationExchangeResponse */ typedef struct RANAP_UplinkInformationExchangeResponse { - struct uplinkInformationExchangeResponse_ies { + struct RANAP_UplinkInformationExchangeResponse__uplinkInformationExchangeResponse_ies { A_SEQUENCE_OF(RANAP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/ranap/RANAP_UserPlaneInformation.h b/include/osmocom/ranap/RANAP_UserPlaneInformation.h index 3ae61ec..762181d 100644 --- a/include/osmocom/ranap/RANAP_UserPlaneInformation.h +++ b/include/osmocom/ranap/RANAP_UserPlaneInformation.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UserPlaneInformation_H_ diff --git a/include/osmocom/ranap/RANAP_UserPlaneMode.h b/include/osmocom/ranap/RANAP_UserPlaneMode.h index f2d6786..4f7e8d6 100644 --- a/include/osmocom/ranap/RANAP_UserPlaneMode.h +++ b/include/osmocom/ranap/RANAP_UserPlaneMode.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_UserPlaneMode_H_ diff --git a/include/osmocom/ranap/RANAP_VelocityEstimate.h b/include/osmocom/ranap/RANAP_VelocityEstimate.h index 69d41f4..cfdc5a1 100644 --- a/include/osmocom/ranap/RANAP_VelocityEstimate.h +++ b/include/osmocom/ranap/RANAP_VelocityEstimate.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_VelocityEstimate_H_ diff --git a/include/osmocom/ranap/RANAP_VerticalAccuracyCode.h b/include/osmocom/ranap/RANAP_VerticalAccuracyCode.h index 92cb974..1c1d0db 100644 --- a/include/osmocom/ranap/RANAP_VerticalAccuracyCode.h +++ b/include/osmocom/ranap/RANAP_VerticalAccuracyCode.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_VerticalAccuracyCode_H_ diff --git a/include/osmocom/ranap/RANAP_VerticalSpeedDirection.h b/include/osmocom/ranap/RANAP_VerticalSpeedDirection.h index feac00c..ac0f933 100644 --- a/include/osmocom/ranap/RANAP_VerticalSpeedDirection.h +++ b/include/osmocom/ranap/RANAP_VerticalSpeedDirection.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_VerticalSpeedDirection_H_ diff --git a/include/osmocom/ranap/RANAP_VerticalVelocity.h b/include/osmocom/ranap/RANAP_VerticalVelocity.h index 15906f3..84c38fa 100644 --- a/include/osmocom/ranap/RANAP_VerticalVelocity.h +++ b/include/osmocom/ranap/RANAP_VerticalVelocity.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_VerticalVelocity_H_ diff --git a/include/osmocom/ranap/RANAP_VoiceSupportMatchIndicator.h b/include/osmocom/ranap/RANAP_VoiceSupportMatchIndicator.h index f4644b3..5da4c98 100644 --- a/include/osmocom/ranap/RANAP_VoiceSupportMatchIndicator.h +++ b/include/osmocom/ranap/RANAP_VoiceSupportMatchIndicator.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #ifndef _RANAP_VoiceSupportMatchIndicator_H_ diff --git a/include/osmocom/ranap/iu_client.h b/include/osmocom/ranap/iu_client.h index 24a5af9..2e72839 100644 --- a/include/osmocom/ranap/iu_client.h +++ b/include/osmocom/ranap/iu_client.h @@ -75,9 +75,9 @@ int ranap_iu_tx_sec_mode_cmd(struct ranap_ue_conn_ctx *uectx, struct osmo_auth_v int ranap_iu_tx_common_id(struct ranap_ue_conn_ctx *ue_ctx, const char *imsi); int ranap_iu_tx_release(struct ranap_ue_conn_ctx *ctx, const struct RANAP_Cause *cause); -/* transmit a Iu Release Command and free the ctx afterwards. - * If a Release Complete is not received within timeout s, - * release the SCCP connection. */ +/* Transmit a Iu Release Command and submit event RANAP_IU_EVENT_IU_RELEASE upon + * Release Complete or timeout. Caller is responsible to free the context and + * closing the SCCP connection (ranap_iu_free_ue) upon recieval of the event. */ void ranap_iu_tx_release_free(struct ranap_ue_conn_ctx *ctx, const struct RANAP_Cause *cause, int timeout); diff --git a/include/osmocom/ranap/iu_helpers.h b/include/osmocom/ranap/iu_helpers.h index 9d801be..3a06c4b 100644 --- a/include/osmocom/ranap/iu_helpers.h +++ b/include/osmocom/ranap/iu_helpers.h @@ -1,13 +1,23 @@ #pragma once #include <stdint.h> +#include <stdbool.h> #include <sys/types.h> #include <osmocom/ranap/RANAP_IuTransportAssociation.h> #include <osmocom/ranap/RANAP_TransportLayerAddress.h> +#include <osmocom/ranap/RANAP_TransportLayerInformation.h> + +struct osmo_sockaddr; int ranap_bcd_decode(char *out, size_t out_len, const uint8_t *in, size_t in_len); int ranap_imsi_encode(uint8_t *out, size_t out_len, const char *in); int ranap_transp_assoc_decode(uint16_t *port, const RANAP_IuTransportAssociation_t *transp_assoc); int ranap_transp_layer_addr_decode(char *addr, unsigned int addr_len, const RANAP_TransportLayerAddress_t *trasp_layer_addr); +int ranap_transp_layer_addr_decode2(struct osmo_sockaddr *addr, bool *uses_x213_nsap, + const RANAP_TransportLayerAddress_t *trasp_layer_addr); +RANAP_TransportLayerInformation_t *ranap_new_transp_info_rtp(struct osmo_sockaddr *addr, bool use_x213_nsap); +RANAP_TransportLayerInformation_t *ranap_new_transp_info_gtp(struct osmo_sockaddr *addr, uint32_t tei, + bool use_x213_nsap); +int ranap_new_transp_layer_addr(BIT_STRING_t *out, struct osmo_sockaddr *addr, bool use_x213_nsap); diff --git a/include/osmocom/ranap/ranap_common.h b/include/osmocom/ranap/ranap_common.h index 8899bd5..0da7b10 100644 --- a/include/osmocom/ranap/ranap_common.h +++ b/include/osmocom/ranap/ranap_common.h @@ -593,8 +593,11 @@ struct gprs_ra_id; -#define RANAP_DEBUG(x, args ...) DEBUGP(_ranap_DRANAP, x, ## args) extern int _ranap_DRANAP; +#define RANAP_DEBUG(x, args ...) DEBUGP(_ranap_DRANAP, x, ## args) + +/* Callback to be used with decoder functions in ranap_common_cn.c ranap_common_ran.c */ +typedef void (*ranap_handle_cb)(void *priv, ranap_message *ranap_msg); extern int asn1_xer_print; @@ -641,5 +644,25 @@ int ranap_ip_from_transp_layer_addr(const BIT_STRING_t *in, uint32_t *ip); /* The generated version does not work, this is a custom one */ int ranap_decode_rab_setupormodifieditemies_fromlist( - RANAP_RAB_SetupOrModifiedItemIEs_t *raB_SetupOrModifiedItemIEs, - ANY_t *any_p); + RANAP_RAB_SetupOrModifiedItemIEs_t *raB_SetupOrModifiedItemIEs, + ANY_t *any_p); + +/* There is no generated decoder available, this is a custom one */ +int ranap_decode_rab_faileditemies_fromlist( + RANAP_RAB_FailedItemIEs_t *raB_FailedItemIEs, + ANY_t *any_p); + +/* There is no generated decoder available, this is a custom one */ +int ranap_decode_rab_releaseitemies_fromlist( + RANAP_RAB_ReleaseItemIEs_t *raB_ReleaseItemIEs, + ANY_t *any_p); + +/* There is no generated decoder available, this is a custom one */ +int ranap_decode_rab_setupormodifyitemfirst( + RANAP_RAB_SetupOrModifyItemFirst_t *raB_SetupOrModifyItemFirst, + ANY_t *any_p); + +/* There is no generated decoder available, this is a custom one */ +int ranap_decode_rab_releaseditemies_fromlist( + RANAP_RAB_ReleasedItemIEs_t *raB_ReleasedItemIEs, + ANY_t *any_p); diff --git a/include/osmocom/ranap/ranap_common_cn.h b/include/osmocom/ranap/ranap_common_cn.h index dfce358..5f82378 100644 --- a/include/osmocom/ranap/ranap_common_cn.h +++ b/include/osmocom/ranap/ranap_common_cn.h @@ -5,10 +5,24 @@ #include <osmocom/ranap/ranap_common.h> #include <osmocom/ranap/ranap_ies_defs.h> -typedef void (*ranap_handle_cb)(void *ctx, ranap_message *ranap_msg); +/* free a decoded connection-less RANAP message */ +void ranap_cn_rx_cl_free(ranap_message *message); + +/* decode a connection-less RANAP message */ +int ranap_cn_rx_cl_decode2(ranap_message *message, uint8_t *data, size_t len); +int ranap_cn_rx_cl_decode(void *unused, ranap_message *message, uint8_t *data, size_t len) + OSMO_DEPRECATED("Use ranap_cn_rx_cl_decode2() instead, the first arg is not used"); /* receive a connection-less RANAP message */ -int ranap_cn_rx_cl(ranap_handle_cb cb, void *ctx, uint8_t *data, size_t len); +int ranap_cn_rx_cl(ranap_handle_cb cb, void *priv, uint8_t *data, size_t len); + +/* free a decoded connection-oriented RANAP message */ +void ranap_cn_rx_co_free(ranap_message *message); + +/* decode a connection-oriented RANAP message */ +int ranap_cn_rx_co_decode2(ranap_message *message, uint8_t *data, size_t len); +int ranap_cn_rx_co_decode(void *unused, ranap_message *message, uint8_t *data, size_t len) + OSMO_DEPRECATED("Use ranap_cn_rx_co_decode2() instead, the first arg is not used"); /* receive a connection-oriented RANAP message */ -int ranap_cn_rx_co(ranap_handle_cb cb, void *ctx, uint8_t *data, size_t len); +int ranap_cn_rx_co(ranap_handle_cb cb, void *priv, uint8_t *data, size_t len); diff --git a/include/osmocom/ranap/ranap_common_ran.h b/include/osmocom/ranap/ranap_common_ran.h new file mode 100644 index 0000000..5eef272 --- /dev/null +++ b/include/osmocom/ranap/ranap_common_ran.h @@ -0,0 +1,15 @@ +#pragma once + +#include <stdint.h> + +#include <osmocom/ranap/ranap_common.h> +#include <osmocom/ranap/ranap_ies_defs.h> + +/* free a decoded connection-oriented RANAP message */ +void ranap_ran_rx_co_free(ranap_message *message); + +/* decode a connection-oriented RANAP message */ +int ranap_ran_rx_co_decode(void *ctx, ranap_message *message, uint8_t *data, size_t len); + +/* receive a connection-oriented RANAP message */ +int ranap_ran_rx_co(ranap_handle_cb cb, void *ctx, uint8_t *data, size_t len); diff --git a/include/osmocom/ranap/ranap_msg_factory.h b/include/osmocom/ranap/ranap_msg_factory.h index f1f3fcc..4b42d05 100644 --- a/include/osmocom/ranap/ranap_msg_factory.h +++ b/include/osmocom/ranap/ranap_msg_factory.h @@ -13,6 +13,9 @@ struct msgb *ranap_new_msg_dt(uint8_t sapi, const uint8_t *nas, unsigned int nas_len); /*! \brief generate RANAP SECURITY MODE COMMAND message */ +struct msgb *ranap_new_msg_sec_mod_cmd2(const uint8_t *ik, const uint8_t *ck, enum RANAP_KeyStatus status, + uint8_t uia_bitmask, uint8_t uea_bitmask); + struct msgb *ranap_new_msg_sec_mod_cmd(const uint8_t *ik, const uint8_t *ck, enum RANAP_KeyStatus status); /*! \brief generate RANAP SECURITY MODE COMPLETE message */ @@ -44,6 +47,9 @@ struct msgb *ranap_new_msg_rab_assign_data(uint8_t rab_id, uint32_t gtp_ip, /*! \brief generate RANAP RESET message */ struct msgb *ranap_new_msg_reset(RANAP_CN_DomainIndicator_t domain, const RANAP_Cause_t *cause); +struct msgb *ranap_new_msg_reset2(RANAP_CN_DomainIndicator_t domain, + const RANAP_Cause_t *cause, + RANAP_GlobalRNC_ID_t *rnc_id); /*! \brief generate RANAP RESET ACK message */ struct msgb *ranap_new_msg_reset_ack(RANAP_CN_DomainIndicator_t domain, diff --git a/include/osmocom/rua/Makefile.am b/include/osmocom/rua/Makefile.am index 307f123..e85f1e6 100644 --- a/include/osmocom/rua/Makefile.am +++ b/include/osmocom/rua/Makefile.am @@ -1,4 +1,4 @@ -noinst_HEADERS = \ +rua_HEADERS = \ rua_common.h rua_ies_defs.h rua_msg_factory.h \ RUA_Ansi-41-IDNNS.h \ RUA_Cause.h \ @@ -12,6 +12,7 @@ noinst_HEADERS = \ RUA_Context-ID.h \ RUA_CriticalityDiagnostics.h \ RUA_CriticalityDiagnostics-IE-List.h \ + RUA_CriticalityDiagnostics-IE-List-Value.h \ RUA_Criticality.h \ RUA_CSGMembershipStatus.h \ RUA_DirectTransfer.h \ @@ -36,5 +37,7 @@ noinst_HEADERS = \ RUA_TypeOfError.h \ RUA_UnsuccessfulOutcome.h +ruadir = $(includedir)/osmocom/rua + DISTCLEANFILES = \ rua_ies_defs.h diff --git a/include/osmocom/rua/RUA_Ansi-41-IDNNS.h b/include/osmocom/rua/RUA_Ansi-41-IDNNS.h index eb0dd6b..9c78efd 100644 --- a/include/osmocom/rua/RUA_Ansi-41-IDNNS.h +++ b/include/osmocom/rua/RUA_Ansi-41-IDNNS.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_Ansi_41_IDNNS_H_ diff --git a/include/osmocom/rua/RUA_CN-DomainIndicator.h b/include/osmocom/rua/RUA_CN-DomainIndicator.h index 171a049..60eadb9 100644 --- a/include/osmocom/rua/RUA_CN-DomainIndicator.h +++ b/include/osmocom/rua/RUA_CN-DomainIndicator.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_CN_DomainIndicator_H_ diff --git a/include/osmocom/rua/RUA_CSGMembershipStatus.h b/include/osmocom/rua/RUA_CSGMembershipStatus.h index 2c27609..cc5cbb6 100644 --- a/include/osmocom/rua/RUA_CSGMembershipStatus.h +++ b/include/osmocom/rua/RUA_CSGMembershipStatus.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_CSGMembershipStatus_H_ diff --git a/include/osmocom/rua/RUA_Cause.h b/include/osmocom/rua/RUA_Cause.h index 97a1c1e..860b7e1 100644 --- a/include/osmocom/rua/RUA_Cause.h +++ b/include/osmocom/rua/RUA_Cause.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_Cause_H_ diff --git a/include/osmocom/rua/RUA_CauseMisc.h b/include/osmocom/rua/RUA_CauseMisc.h index d21dc99..ffb4fe7 100644 --- a/include/osmocom/rua/RUA_CauseMisc.h +++ b/include/osmocom/rua/RUA_CauseMisc.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_CauseMisc_H_ diff --git a/include/osmocom/rua/RUA_CauseProtocol.h b/include/osmocom/rua/RUA_CauseProtocol.h index a1d8f11..661105c 100644 --- a/include/osmocom/rua/RUA_CauseProtocol.h +++ b/include/osmocom/rua/RUA_CauseProtocol.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_CauseProtocol_H_ diff --git a/include/osmocom/rua/RUA_CauseRadioNetwork.h b/include/osmocom/rua/RUA_CauseRadioNetwork.h index d267b69..47a6ebd 100644 --- a/include/osmocom/rua/RUA_CauseRadioNetwork.h +++ b/include/osmocom/rua/RUA_CauseRadioNetwork.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_CauseRadioNetwork_H_ diff --git a/include/osmocom/rua/RUA_CauseTransport.h b/include/osmocom/rua/RUA_CauseTransport.h index 62597a7..a18cca5 100644 --- a/include/osmocom/rua/RUA_CauseTransport.h +++ b/include/osmocom/rua/RUA_CauseTransport.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_CauseTransport_H_ diff --git a/include/osmocom/rua/RUA_Connect.h b/include/osmocom/rua/RUA_Connect.h index 63c071f..b006269 100644 --- a/include/osmocom/rua/RUA_Connect.h +++ b/include/osmocom/rua/RUA_Connect.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_Connect_H_ @@ -22,7 +23,7 @@ extern "C" { /* RUA_Connect */ typedef struct RUA_Connect { - struct connect_ies { + struct RUA_Connect__connect_ies { A_SEQUENCE_OF(RUA_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/rua/RUA_ConnectionlessTransfer.h b/include/osmocom/rua/RUA_ConnectionlessTransfer.h index 2e2fed6..c14ee5a 100644 --- a/include/osmocom/rua/RUA_ConnectionlessTransfer.h +++ b/include/osmocom/rua/RUA_ConnectionlessTransfer.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_ConnectionlessTransfer_H_ @@ -22,7 +23,7 @@ extern "C" { /* RUA_ConnectionlessTransfer */ typedef struct RUA_ConnectionlessTransfer { - struct connectionlessTransfer_ies { + struct RUA_ConnectionlessTransfer__connectionlessTransfer_ies { A_SEQUENCE_OF(RUA_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/rua/RUA_Context-ID.h b/include/osmocom/rua/RUA_Context-ID.h index f4f354c..b96a7bb 100644 --- a/include/osmocom/rua/RUA_Context-ID.h +++ b/include/osmocom/rua/RUA_Context-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_Context_ID_H_ diff --git a/include/osmocom/rua/RUA_Criticality.h b/include/osmocom/rua/RUA_Criticality.h index efd11bc..26a330c 100644 --- a/include/osmocom/rua/RUA_Criticality.h +++ b/include/osmocom/rua/RUA_Criticality.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-CommonDataTypes" * found in "../../asn1/rua/RUA-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_Criticality_H_ diff --git a/include/osmocom/rua/RUA_CriticalityDiagnostics-IE-List-Value.h b/include/osmocom/rua/RUA_CriticalityDiagnostics-IE-List-Value.h new file mode 100644 index 0000000..37de343 --- /dev/null +++ b/include/osmocom/rua/RUA_CriticalityDiagnostics-IE-List-Value.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RUA-IEs" + * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _RUA_CriticalityDiagnostics_IE_List_Value_H_ +#define _RUA_CriticalityDiagnostics_IE_List_Value_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/rua/RUA_Criticality.h> +#include <osmocom/rua/RUA_ProtocolIE-ID.h> +#include <osmocom/rua/RUA_TypeOfError.h> +#include <osmocom/rua/RUA_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* RUA_CriticalityDiagnostics-IE-List-Value */ +typedef struct RUA_CriticalityDiagnostics_IE_List_Value { + RUA_Criticality_t iECriticality; + RUA_ProtocolIE_ID_t iE_ID; + RUA_TypeOfError_t typeOfError; + RUA_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} RUA_CriticalityDiagnostics_IE_List_Value_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_RUA_CriticalityDiagnostics_IE_List_Value; + +#ifdef __cplusplus +} +#endif + +#endif /* _RUA_CriticalityDiagnostics_IE_List_Value_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/rua/RUA_CriticalityDiagnostics-IE-List.h b/include/osmocom/rua/RUA_CriticalityDiagnostics-IE-List.h index c10dc14..7d22b95 100644 --- a/include/osmocom/rua/RUA_CriticalityDiagnostics-IE-List.h +++ b/include/osmocom/rua/RUA_CriticalityDiagnostics-IE-List.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_CriticalityDiagnostics_IE_List_H_ @@ -11,12 +12,8 @@ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/rua/RUA_CriticalityDiagnostics-IE-List-Value.h> #include <asn_SEQUENCE_OF.h> -#include <osmocom/rua/RUA_Criticality.h> -#include <osmocom/rua/RUA_ProtocolIE-ID.h> -#include <osmocom/rua/RUA_TypeOfError.h> -#include <osmocom/rua/RUA_IE-Extensions.h> -#include <constr_SEQUENCE.h> #include <constr_SEQUENCE_OF.h> #ifdef __cplusplus @@ -25,19 +22,7 @@ extern "C" { /* RUA_CriticalityDiagnostics-IE-List */ typedef struct RUA_CriticalityDiagnostics_IE_List { - A_SEQUENCE_OF(struct Member { - RUA_Criticality_t iECriticality; - RUA_ProtocolIE_ID_t iE_ID; - RUA_TypeOfError_t typeOfError; - RUA_IE_Extensions_t *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ) list; + A_SEQUENCE_OF(RUA_CriticalityDiagnostics_IE_List_Value_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/include/osmocom/rua/RUA_CriticalityDiagnostics.h b/include/osmocom/rua/RUA_CriticalityDiagnostics.h index 119893d..b4d6d96 100644 --- a/include/osmocom/rua/RUA_CriticalityDiagnostics.h +++ b/include/osmocom/rua/RUA_CriticalityDiagnostics.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_CriticalityDiagnostics_H_ diff --git a/include/osmocom/rua/RUA_DirectTransfer.h b/include/osmocom/rua/RUA_DirectTransfer.h index 223bf83..8de1593 100644 --- a/include/osmocom/rua/RUA_DirectTransfer.h +++ b/include/osmocom/rua/RUA_DirectTransfer.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_DirectTransfer_H_ @@ -22,7 +23,7 @@ extern "C" { /* RUA_DirectTransfer */ typedef struct RUA_DirectTransfer { - struct directTransfer_ies { + struct RUA_DirectTransfer__directTransfer_ies { A_SEQUENCE_OF(RUA_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/rua/RUA_Disconnect.h b/include/osmocom/rua/RUA_Disconnect.h index a20cf0d..ff24255 100644 --- a/include/osmocom/rua/RUA_Disconnect.h +++ b/include/osmocom/rua/RUA_Disconnect.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_Disconnect_H_ @@ -22,7 +23,7 @@ extern "C" { /* RUA_Disconnect */ typedef struct RUA_Disconnect { - struct disconnect_ies { + struct RUA_Disconnect__disconnect_ies { A_SEQUENCE_OF(RUA_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/rua/RUA_ErrorIndication.h b/include/osmocom/rua/RUA_ErrorIndication.h index bdc997d..28785f1 100644 --- a/include/osmocom/rua/RUA_ErrorIndication.h +++ b/include/osmocom/rua/RUA_ErrorIndication.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_ErrorIndication_H_ @@ -22,7 +23,7 @@ extern "C" { /* RUA_ErrorIndication */ typedef struct RUA_ErrorIndication { - struct errorIndication_ies { + struct RUA_ErrorIndication__errorIndication_ies { A_SEQUENCE_OF(RUA_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/rua/RUA_Establishment-Cause.h b/include/osmocom/rua/RUA_Establishment-Cause.h index 0ab1a01..ccc7521 100644 --- a/include/osmocom/rua/RUA_Establishment-Cause.h +++ b/include/osmocom/rua/RUA_Establishment-Cause.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_Establishment_Cause_H_ diff --git a/include/osmocom/rua/RUA_Gsm-map-IDNNS.h b/include/osmocom/rua/RUA_Gsm-map-IDNNS.h index 4d59481..634103c 100644 --- a/include/osmocom/rua/RUA_Gsm-map-IDNNS.h +++ b/include/osmocom/rua/RUA_Gsm-map-IDNNS.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_Gsm_map_IDNNS_H_ @@ -21,66 +22,66 @@ extern "C" { #endif /* Dependencies */ -typedef enum routingbasis_PR { - routingbasis_PR_NOTHING, /* No components present */ - routingbasis_PR_localPTMSI, - routingbasis_PR_tMSIofsamePLMN, - routingbasis_PR_tMSIofdifferentPLMN, - routingbasis_PR_iMSIresponsetopaging, - routingbasis_PR_iMSIcauseUEinitiatedEvent, - routingbasis_PR_iMEI, - routingbasis_PR_spare2, - routingbasis_PR_spare1 -} routingbasis_PR; +typedef enum RUA_Gsm_map_IDNNS__routingbasis_PR { + RUA_Gsm_map_IDNNS__routingbasis_PR_NOTHING, /* No components present */ + RUA_Gsm_map_IDNNS__routingbasis_PR_localPTMSI, + RUA_Gsm_map_IDNNS__routingbasis_PR_tMSIofsamePLMN, + RUA_Gsm_map_IDNNS__routingbasis_PR_tMSIofdifferentPLMN, + RUA_Gsm_map_IDNNS__routingbasis_PR_iMSIresponsetopaging, + RUA_Gsm_map_IDNNS__routingbasis_PR_iMSIcauseUEinitiatedEvent, + RUA_Gsm_map_IDNNS__routingbasis_PR_iMEI, + RUA_Gsm_map_IDNNS__routingbasis_PR_spare2, + RUA_Gsm_map_IDNNS__routingbasis_PR_spare1 +} RUA_Gsm_map_IDNNS__routingbasis_PR; /* RUA_Gsm-map-IDNNS */ typedef struct RUA_Gsm_map_IDNNS { - struct routingbasis { - routingbasis_PR present; + struct RUA_Gsm_map_IDNNS__routingbasis { + RUA_Gsm_map_IDNNS__routingbasis_PR present; union RUA_Gsm_map_IDNNS__routingbasis_u { - struct localPTMSI { + struct RUA_Gsm_map_IDNNS__routingbasis__localPTMSI { RUA_RoutingParameter_t routingparameter; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } localPTMSI; - struct tMSIofsamePLMN { + struct RUA_Gsm_map_IDNNS__routingbasis__tMSIofsamePLMN { RUA_RoutingParameter_t routingparameter; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } tMSIofsamePLMN; - struct tMSIofdifferentPLMN { + struct RUA_Gsm_map_IDNNS__routingbasis__tMSIofdifferentPLMN { RUA_RoutingParameter_t routingparameter; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } tMSIofdifferentPLMN; - struct iMSIresponsetopaging { + struct RUA_Gsm_map_IDNNS__routingbasis__iMSIresponsetopaging { RUA_RoutingParameter_t routingparameter; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } iMSIresponsetopaging; - struct iMSIcauseUEinitiatedEvent { + struct RUA_Gsm_map_IDNNS__routingbasis__iMSIcauseUEinitiatedEvent { RUA_RoutingParameter_t routingparameter; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } iMSIcauseUEinitiatedEvent; - struct iMEI { + struct RUA_Gsm_map_IDNNS__routingbasis__iMEI { RUA_RoutingParameter_t routingparameter; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } iMEI; - struct spare2 { + struct RUA_Gsm_map_IDNNS__routingbasis__spare2 { RUA_RoutingParameter_t routingparameter; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } spare2; - struct spare1 { + struct RUA_Gsm_map_IDNNS__routingbasis__spare1 { RUA_RoutingParameter_t routingparameter; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/rua/RUA_IE-Extensions.h b/include/osmocom/rua/RUA_IE-Extensions.h index a7dee0f..364cbd5 100644 --- a/include/osmocom/rua/RUA_IE-Extensions.h +++ b/include/osmocom/rua/RUA_IE-Extensions.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_IE_Extensions_H_ diff --git a/include/osmocom/rua/RUA_IE.h b/include/osmocom/rua/RUA_IE.h index cd1266f..2881366 100644 --- a/include/osmocom/rua/RUA_IE.h +++ b/include/osmocom/rua/RUA_IE.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_IE_H_ diff --git a/include/osmocom/rua/RUA_InitiatingMessage.h b/include/osmocom/rua/RUA_InitiatingMessage.h index a488a99..61dd089 100644 --- a/include/osmocom/rua/RUA_InitiatingMessage.h +++ b/include/osmocom/rua/RUA_InitiatingMessage.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_InitiatingMessage_H_ diff --git a/include/osmocom/rua/RUA_IntraDomainNasNodeSelector.h b/include/osmocom/rua/RUA_IntraDomainNasNodeSelector.h index a90ab26..78c88e7 100644 --- a/include/osmocom/rua/RUA_IntraDomainNasNodeSelector.h +++ b/include/osmocom/rua/RUA_IntraDomainNasNodeSelector.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_IntraDomainNasNodeSelector_H_ @@ -22,25 +23,25 @@ extern "C" { #endif /* Dependencies */ -typedef enum version_PR { - version_PR_NOTHING, /* No components present */ - version_PR_release99, - version_PR_later -} version_PR; -typedef enum cn_Type_PR { - cn_Type_PR_NOTHING, /* No components present */ - cn_Type_PR_gsm_Map_IDNNS, - cn_Type_PR_ansi_41_IDNNS -} cn_Type_PR; +typedef enum RUA_IntraDomainNasNodeSelector__version_PR { + RUA_IntraDomainNasNodeSelector__version_PR_NOTHING, /* No components present */ + RUA_IntraDomainNasNodeSelector__version_PR_release99, + RUA_IntraDomainNasNodeSelector__version_PR_later +} RUA_IntraDomainNasNodeSelector__version_PR; +typedef enum RUA_IntraDomainNasNodeSelector__version__release99__cn_Type_PR { + RUA_IntraDomainNasNodeSelector__version__release99__cn_Type_PR_NOTHING, /* No components present */ + RUA_IntraDomainNasNodeSelector__version__release99__cn_Type_PR_gsm_Map_IDNNS, + RUA_IntraDomainNasNodeSelector__version__release99__cn_Type_PR_ansi_41_IDNNS +} RUA_IntraDomainNasNodeSelector__version__release99__cn_Type_PR; /* RUA_IntraDomainNasNodeSelector */ typedef struct RUA_IntraDomainNasNodeSelector { - struct version { - version_PR present; + struct RUA_IntraDomainNasNodeSelector__version { + RUA_IntraDomainNasNodeSelector__version_PR present; union RUA_IntraDomainNasNodeSelector__version_u { - struct release99 { - struct cn_Type { - cn_Type_PR present; + struct RUA_IntraDomainNasNodeSelector__version__release99 { + struct RUA_IntraDomainNasNodeSelector__version__release99__cn_Type { + RUA_IntraDomainNasNodeSelector__version__release99__cn_Type_PR present; union RUA_IntraDomainNasNodeSelector__version__release99__cn_Type_u { RUA_Gsm_map_IDNNS_t gsm_Map_IDNNS; RUA_Ansi_41_IDNNS_t ansi_41_IDNNS; @@ -53,7 +54,7 @@ typedef struct RUA_IntraDomainNasNodeSelector { /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } release99; - struct later { + struct RUA_IntraDomainNasNodeSelector__version__later { BIT_STRING_t futurecoding; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/rua/RUA_Presence.h b/include/osmocom/rua/RUA_Presence.h index 90faf88..b241dae 100644 --- a/include/osmocom/rua/RUA_Presence.h +++ b/include/osmocom/rua/RUA_Presence.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-CommonDataTypes" * found in "../../asn1/rua/RUA-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_Presence_H_ diff --git a/include/osmocom/rua/RUA_PrivateIE-ID.h b/include/osmocom/rua/RUA_PrivateIE-ID.h index cc7c310..602439d 100644 --- a/include/osmocom/rua/RUA_PrivateIE-ID.h +++ b/include/osmocom/rua/RUA_PrivateIE-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-CommonDataTypes" * found in "../../asn1/rua/RUA-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_PrivateIE_ID_H_ diff --git a/include/osmocom/rua/RUA_PrivateMessage.h b/include/osmocom/rua/RUA_PrivateMessage.h index 4b18bfc..d385bf0 100644 --- a/include/osmocom/rua/RUA_PrivateMessage.h +++ b/include/osmocom/rua/RUA_PrivateMessage.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_PrivateMessage_H_ @@ -22,7 +23,7 @@ extern "C" { /* RUA_PrivateMessage */ typedef struct RUA_PrivateMessage { - struct privateMessage_ies { + struct RUA_PrivateMessage__privateMessage_ies { A_SEQUENCE_OF(RUA_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/rua/RUA_ProcedureCode.h b/include/osmocom/rua/RUA_ProcedureCode.h index 959ccd1..616a6df 100644 --- a/include/osmocom/rua/RUA_ProcedureCode.h +++ b/include/osmocom/rua/RUA_ProcedureCode.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-CommonDataTypes" * found in "../../asn1/rua/RUA-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_ProcedureCode_H_ diff --git a/include/osmocom/rua/RUA_ProtocolIE-ID.h b/include/osmocom/rua/RUA_ProtocolIE-ID.h index 1eecdc4..db53b3c 100644 --- a/include/osmocom/rua/RUA_ProtocolIE-ID.h +++ b/include/osmocom/rua/RUA_ProtocolIE-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-CommonDataTypes" * found in "../../asn1/rua/RUA-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_ProtocolIE_ID_H_ diff --git a/include/osmocom/rua/RUA_RANAP-Message.h b/include/osmocom/rua/RUA_RANAP-Message.h index 0dc755a..b5d2ffc 100644 --- a/include/osmocom/rua/RUA_RANAP-Message.h +++ b/include/osmocom/rua/RUA_RANAP-Message.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_RANAP_Message_H_ diff --git a/include/osmocom/rua/RUA_RUA-PDU.h b/include/osmocom/rua/RUA_RUA-PDU.h index 7f5bdb7..77fb655 100644 --- a/include/osmocom/rua/RUA_RUA-PDU.h +++ b/include/osmocom/rua/RUA_RUA-PDU.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_RUA_PDU_H_ diff --git a/include/osmocom/rua/RUA_RoutingParameter.h b/include/osmocom/rua/RUA_RoutingParameter.h index 2373f72..9766176 100644 --- a/include/osmocom/rua/RUA_RoutingParameter.h +++ b/include/osmocom/rua/RUA_RoutingParameter.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_RoutingParameter_H_ diff --git a/include/osmocom/rua/RUA_SuccessfulOutcome.h b/include/osmocom/rua/RUA_SuccessfulOutcome.h index 28938a3..b7208f5 100644 --- a/include/osmocom/rua/RUA_SuccessfulOutcome.h +++ b/include/osmocom/rua/RUA_SuccessfulOutcome.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_SuccessfulOutcome_H_ diff --git a/include/osmocom/rua/RUA_TriggeringMessage.h b/include/osmocom/rua/RUA_TriggeringMessage.h index b094da6..c1e017b 100644 --- a/include/osmocom/rua/RUA_TriggeringMessage.h +++ b/include/osmocom/rua/RUA_TriggeringMessage.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-CommonDataTypes" * found in "../../asn1/rua/RUA-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_TriggeringMessage_H_ diff --git a/include/osmocom/rua/RUA_TypeOfError.h b/include/osmocom/rua/RUA_TypeOfError.h index 4a45bff..7d6cf41 100644 --- a/include/osmocom/rua/RUA_TypeOfError.h +++ b/include/osmocom/rua/RUA_TypeOfError.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_TypeOfError_H_ diff --git a/include/osmocom/rua/RUA_UnsuccessfulOutcome.h b/include/osmocom/rua/RUA_UnsuccessfulOutcome.h index c9b6003..09e1a13 100644 --- a/include/osmocom/rua/RUA_UnsuccessfulOutcome.h +++ b/include/osmocom/rua/RUA_UnsuccessfulOutcome.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _RUA_UnsuccessfulOutcome_H_ diff --git a/include/osmocom/rua/rua_common.h b/include/osmocom/rua/rua_common.h index 9b3a65c..a88c9a2 100644 --- a/include/osmocom/rua/rua_common.h +++ b/include/osmocom/rua/rua_common.h @@ -44,7 +44,8 @@ #include <osmocom/core/logging.h> -#define RUA_DEBUG(x, args ...) DEBUGP(0, x, ## args) +extern int _rua_DRUA; +#define RUA_DEBUG(x, args ...) DEBUGP(_rua_DRUA, x, ## args) extern int asn1_xer_print; @@ -68,4 +69,6 @@ struct msgb *rua_generate_unsuccessful_outcome( RUA_IE_t *rua_new_ie(RUA_ProtocolIE_ID_t id, RUA_Criticality_t criticality, asn_TYPE_descriptor_t *type, void *sptr); -char *rua_cause_str(RUA_Cause_t *cause); +char *rua_cause_str(const RUA_Cause_t *cause); + +void rua_set_log_area(int log_area); diff --git a/include/osmocom/sabp/Makefile.am b/include/osmocom/sabp/Makefile.am index f89984f..848bb39 100644 --- a/include/osmocom/sabp/Makefile.am +++ b/include/osmocom/sabp/Makefile.am @@ -27,7 +27,9 @@ sabp_HEADERS = \ SABP_Cause.h \ SABP_Criticality-Diagnostics.h \ SABP_CriticalityDiagnostics-IE-List.h \ + SABP_CriticalityDiagnostics-IE-List-Value.h \ SABP_MessageStructure.h \ + SABP_MessageStructure-Value.h \ SABP_Data-Coding-Scheme.h \ SABP_Failure-List.h \ SABP_Failure-List-Item.h \ diff --git a/include/osmocom/sabp/SABP_Available-Bandwidth.h b/include/osmocom/sabp/SABP_Available-Bandwidth.h index 645b0d7..b8d2950 100644 --- a/include/osmocom/sabp/SABP_Available-Bandwidth.h +++ b/include/osmocom/sabp/SABP_Available-Bandwidth.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Available_Bandwidth_H_ diff --git a/include/osmocom/sabp/SABP_Broadcast-Message-Content-Validity-Indicator.h b/include/osmocom/sabp/SABP_Broadcast-Message-Content-Validity-Indicator.h index 3544605..6406f95 100644 --- a/include/osmocom/sabp/SABP_Broadcast-Message-Content-Validity-Indicator.h +++ b/include/osmocom/sabp/SABP_Broadcast-Message-Content-Validity-Indicator.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Broadcast_Message_Content_Validity_Indicator_H_ diff --git a/include/osmocom/sabp/SABP_Broadcast-Message-Content.h b/include/osmocom/sabp/SABP_Broadcast-Message-Content.h index 3f4e9c2..b5400a2 100644 --- a/include/osmocom/sabp/SABP_Broadcast-Message-Content.h +++ b/include/osmocom/sabp/SABP_Broadcast-Message-Content.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Broadcast_Message_Content_H_ diff --git a/include/osmocom/sabp/SABP_Category.h b/include/osmocom/sabp/SABP_Category.h index f33800b..278e2cd 100644 --- a/include/osmocom/sabp/SABP_Category.h +++ b/include/osmocom/sabp/SABP_Category.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Category_H_ diff --git a/include/osmocom/sabp/SABP_Cause.h b/include/osmocom/sabp/SABP_Cause.h index d294526..5c15c82 100644 --- a/include/osmocom/sabp/SABP_Cause.h +++ b/include/osmocom/sabp/SABP_Cause.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Cause_H_ diff --git a/include/osmocom/sabp/SABP_Criticality-Diagnostics.h b/include/osmocom/sabp/SABP_Criticality-Diagnostics.h index db3120d..0bc4074 100644 --- a/include/osmocom/sabp/SABP_Criticality-Diagnostics.h +++ b/include/osmocom/sabp/SABP_Criticality-Diagnostics.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Criticality_Diagnostics_H_ diff --git a/include/osmocom/sabp/SABP_Criticality.h b/include/osmocom/sabp/SABP_Criticality.h index 7a1e015..eaf8db6 100644 --- a/include/osmocom/sabp/SABP_Criticality.h +++ b/include/osmocom/sabp/SABP_Criticality.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-CommonDataTypes" * found in "../../asn1/sabp/SABP-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Criticality_H_ diff --git a/include/osmocom/sabp/SABP_CriticalityDiagnostics-IE-List-Value.h b/include/osmocom/sabp/SABP_CriticalityDiagnostics-IE-List-Value.h new file mode 100644 index 0000000..9ffa03e --- /dev/null +++ b/include/osmocom/sabp/SABP_CriticalityDiagnostics-IE-List-Value.h @@ -0,0 +1,48 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "SABP-IEs" + * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _SABP_CriticalityDiagnostics_IE_List_Value_H_ +#define _SABP_CriticalityDiagnostics_IE_List_Value_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/sabp/SABP_Criticality.h> +#include <osmocom/sabp/SABP_ProtocolIE-ID.h> +#include <osmocom/sabp/SABP_RepetitionNumber0.h> +#include <osmocom/sabp/SABP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* SABP_CriticalityDiagnostics-IE-List-Value */ +typedef struct SABP_CriticalityDiagnostics_IE_List_Value { + SABP_Criticality_t iECriticality; + SABP_ProtocolIE_ID_t iE_ID; + SABP_RepetitionNumber0_t *repetitionNumber /* OPTIONAL */; + SABP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SABP_CriticalityDiagnostics_IE_List_Value_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SABP_CriticalityDiagnostics_IE_List_Value; + +#ifdef __cplusplus +} +#endif + +#endif /* _SABP_CriticalityDiagnostics_IE_List_Value_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/sabp/SABP_CriticalityDiagnostics-IE-List.h b/include/osmocom/sabp/SABP_CriticalityDiagnostics-IE-List.h index 2d2fa40..9a89c2b 100644 --- a/include/osmocom/sabp/SABP_CriticalityDiagnostics-IE-List.h +++ b/include/osmocom/sabp/SABP_CriticalityDiagnostics-IE-List.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_CriticalityDiagnostics_IE_List_H_ @@ -11,12 +12,8 @@ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/sabp/SABP_CriticalityDiagnostics-IE-List-Value.h> #include <asn_SEQUENCE_OF.h> -#include <osmocom/sabp/SABP_Criticality.h> -#include <osmocom/sabp/SABP_ProtocolIE-ID.h> -#include <osmocom/sabp/SABP_RepetitionNumber0.h> -#include <osmocom/sabp/SABP_IE-Extensions.h> -#include <constr_SEQUENCE.h> #include <constr_SEQUENCE_OF.h> #ifdef __cplusplus @@ -25,19 +22,7 @@ extern "C" { /* SABP_CriticalityDiagnostics-IE-List */ typedef struct SABP_CriticalityDiagnostics_IE_List { - A_SEQUENCE_OF(struct Member { - SABP_Criticality_t iECriticality; - SABP_ProtocolIE_ID_t iE_ID; - SABP_RepetitionNumber0_t *repetitionNumber /* OPTIONAL */; - SABP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ) list; + A_SEQUENCE_OF(SABP_CriticalityDiagnostics_IE_List_Value_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/include/osmocom/sabp/SABP_Data-Coding-Scheme.h b/include/osmocom/sabp/SABP_Data-Coding-Scheme.h index 4ecae15..909155f 100644 --- a/include/osmocom/sabp/SABP_Data-Coding-Scheme.h +++ b/include/osmocom/sabp/SABP_Data-Coding-Scheme.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Data_Coding_Scheme_H_ diff --git a/include/osmocom/sabp/SABP_Error-Indication.h b/include/osmocom/sabp/SABP_Error-Indication.h index f857601..21ecc59 100644 --- a/include/osmocom/sabp/SABP_Error-Indication.h +++ b/include/osmocom/sabp/SABP_Error-Indication.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Error_Indication_H_ @@ -22,7 +23,7 @@ extern "C" { /* SABP_Error-Indication */ typedef struct SABP_Error_Indication { - struct error_Indication_ies { + struct SABP_Error_Indication__error_Indication_ies { A_SEQUENCE_OF(SABP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/sabp/SABP_Failure-List-Item.h b/include/osmocom/sabp/SABP_Failure-List-Item.h index 9c8200f..dec3bf6 100644 --- a/include/osmocom/sabp/SABP_Failure-List-Item.h +++ b/include/osmocom/sabp/SABP_Failure-List-Item.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Failure_List_Item_H_ diff --git a/include/osmocom/sabp/SABP_Failure-List.h b/include/osmocom/sabp/SABP_Failure-List.h index 4455a26..26f8326 100644 --- a/include/osmocom/sabp/SABP_Failure-List.h +++ b/include/osmocom/sabp/SABP_Failure-List.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Failure_List_H_ diff --git a/include/osmocom/sabp/SABP_Failure.h b/include/osmocom/sabp/SABP_Failure.h index a4927c9..e9b4f92 100644 --- a/include/osmocom/sabp/SABP_Failure.h +++ b/include/osmocom/sabp/SABP_Failure.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Failure_H_ @@ -22,7 +23,7 @@ extern "C" { /* SABP_Failure */ typedef struct SABP_Failure { - struct failure_ies { + struct SABP_Failure__failure_ies { A_SEQUENCE_OF(SABP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/sabp/SABP_IE-Extensions.h b/include/osmocom/sabp/SABP_IE-Extensions.h index 9faa7be..b87c308 100644 --- a/include/osmocom/sabp/SABP_IE-Extensions.h +++ b/include/osmocom/sabp/SABP_IE-Extensions.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_IE_Extensions_H_ diff --git a/include/osmocom/sabp/SABP_IE.h b/include/osmocom/sabp/SABP_IE.h index 0de75c9..13c2537 100644 --- a/include/osmocom/sabp/SABP_IE.h +++ b/include/osmocom/sabp/SABP_IE.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_IE_H_ diff --git a/include/osmocom/sabp/SABP_InitiatingMessage.h b/include/osmocom/sabp/SABP_InitiatingMessage.h index 77bc931..0da1b3a 100644 --- a/include/osmocom/sabp/SABP_InitiatingMessage.h +++ b/include/osmocom/sabp/SABP_InitiatingMessage.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_InitiatingMessage_H_ diff --git a/include/osmocom/sabp/SABP_Kill-Complete.h b/include/osmocom/sabp/SABP_Kill-Complete.h index de5b618..6a1dce7 100644 --- a/include/osmocom/sabp/SABP_Kill-Complete.h +++ b/include/osmocom/sabp/SABP_Kill-Complete.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Kill_Complete_H_ @@ -22,7 +23,7 @@ extern "C" { /* SABP_Kill-Complete */ typedef struct SABP_Kill_Complete { - struct kill_Complete_ies { + struct SABP_Kill_Complete__kill_Complete_ies { A_SEQUENCE_OF(SABP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/sabp/SABP_Kill-Failure.h b/include/osmocom/sabp/SABP_Kill-Failure.h index 803e2dc..59a71ae 100644 --- a/include/osmocom/sabp/SABP_Kill-Failure.h +++ b/include/osmocom/sabp/SABP_Kill-Failure.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Kill_Failure_H_ @@ -22,7 +23,7 @@ extern "C" { /* SABP_Kill-Failure */ typedef struct SABP_Kill_Failure { - struct kill_Failure_ies { + struct SABP_Kill_Failure__kill_Failure_ies { A_SEQUENCE_OF(SABP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/sabp/SABP_Kill.h b/include/osmocom/sabp/SABP_Kill.h index 54a728c..bc52825 100644 --- a/include/osmocom/sabp/SABP_Kill.h +++ b/include/osmocom/sabp/SABP_Kill.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Kill_H_ @@ -22,7 +23,7 @@ extern "C" { /* SABP_Kill */ typedef struct SABP_Kill { - struct kill_ies { + struct SABP_Kill__kill_ies { A_SEQUENCE_OF(SABP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/sabp/SABP_Load-Query-Complete.h b/include/osmocom/sabp/SABP_Load-Query-Complete.h index ba592cf..4c034e7 100644 --- a/include/osmocom/sabp/SABP_Load-Query-Complete.h +++ b/include/osmocom/sabp/SABP_Load-Query-Complete.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Load_Query_Complete_H_ @@ -22,7 +23,7 @@ extern "C" { /* SABP_Load-Query-Complete */ typedef struct SABP_Load_Query_Complete { - struct load_Query_Complete_ies { + struct SABP_Load_Query_Complete__load_Query_Complete_ies { A_SEQUENCE_OF(SABP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/sabp/SABP_Load-Query-Failure.h b/include/osmocom/sabp/SABP_Load-Query-Failure.h index 2795a6b..7697843 100644 --- a/include/osmocom/sabp/SABP_Load-Query-Failure.h +++ b/include/osmocom/sabp/SABP_Load-Query-Failure.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Load_Query_Failure_H_ @@ -22,7 +23,7 @@ extern "C" { /* SABP_Load-Query-Failure */ typedef struct SABP_Load_Query_Failure { - struct load_Query_Failure_ies { + struct SABP_Load_Query_Failure__load_Query_Failure_ies { A_SEQUENCE_OF(SABP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/sabp/SABP_Load-Query.h b/include/osmocom/sabp/SABP_Load-Query.h index 527f006..3d49c65 100644 --- a/include/osmocom/sabp/SABP_Load-Query.h +++ b/include/osmocom/sabp/SABP_Load-Query.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Load_Query_H_ @@ -22,7 +23,7 @@ extern "C" { /* SABP_Load-Query */ typedef struct SABP_Load_Query { - struct load_Query_ies { + struct SABP_Load_Query__load_Query_ies { A_SEQUENCE_OF(SABP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/sabp/SABP_Message-Identifier.h b/include/osmocom/sabp/SABP_Message-Identifier.h index 9a5ece0..e6d64d0 100644 --- a/include/osmocom/sabp/SABP_Message-Identifier.h +++ b/include/osmocom/sabp/SABP_Message-Identifier.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Message_Identifier_H_ diff --git a/include/osmocom/sabp/SABP_Message-Status-Query-Complete.h b/include/osmocom/sabp/SABP_Message-Status-Query-Complete.h index bfb73d9..1b6b564 100644 --- a/include/osmocom/sabp/SABP_Message-Status-Query-Complete.h +++ b/include/osmocom/sabp/SABP_Message-Status-Query-Complete.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Message_Status_Query_Complete_H_ @@ -22,7 +23,7 @@ extern "C" { /* SABP_Message-Status-Query-Complete */ typedef struct SABP_Message_Status_Query_Complete { - struct message_Status_Query_Complete_ies { + struct SABP_Message_Status_Query_Complete__message_Status_Query_Complete_ies { A_SEQUENCE_OF(SABP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/sabp/SABP_Message-Status-Query-Failure.h b/include/osmocom/sabp/SABP_Message-Status-Query-Failure.h index 4f24d5c..bf2ade5 100644 --- a/include/osmocom/sabp/SABP_Message-Status-Query-Failure.h +++ b/include/osmocom/sabp/SABP_Message-Status-Query-Failure.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Message_Status_Query_Failure_H_ @@ -22,7 +23,7 @@ extern "C" { /* SABP_Message-Status-Query-Failure */ typedef struct SABP_Message_Status_Query_Failure { - struct message_Status_Query_Failure_ies { + struct SABP_Message_Status_Query_Failure__message_Status_Query_Failure_ies { A_SEQUENCE_OF(SABP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/sabp/SABP_Message-Status-Query.h b/include/osmocom/sabp/SABP_Message-Status-Query.h index 407c41c..be9f68e 100644 --- a/include/osmocom/sabp/SABP_Message-Status-Query.h +++ b/include/osmocom/sabp/SABP_Message-Status-Query.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Message_Status_Query_H_ @@ -22,7 +23,7 @@ extern "C" { /* SABP_Message-Status-Query */ typedef struct SABP_Message_Status_Query { - struct message_Status_Query_ies { + struct SABP_Message_Status_Query__message_Status_Query_ies { A_SEQUENCE_OF(SABP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/sabp/SABP_MessageStructure-Value.h b/include/osmocom/sabp/SABP_MessageStructure-Value.h new file mode 100644 index 0000000..11b839a --- /dev/null +++ b/include/osmocom/sabp/SABP_MessageStructure-Value.h @@ -0,0 +1,46 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "SABP-IEs" + * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#ifndef _SABP_MessageStructure_Value_H_ +#define _SABP_MessageStructure_Value_H_ + + +#include <asn_application.h> + +/* Including external dependencies */ +#include <osmocom/sabp/SABP_ProtocolIE-ID.h> +#include <osmocom/sabp/SABP_RepetitionNumber1.h> +#include <osmocom/sabp/SABP_IE-Extensions.h> +#include <constr_SEQUENCE.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/* SABP_MessageStructure-Value */ +typedef struct SABP_MessageStructure_Value { + SABP_ProtocolIE_ID_t iE_ID; + SABP_RepetitionNumber1_t *repetitionNumber /* OPTIONAL */; + SABP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; + /* + * This type is extensible, + * possible extensions are below. + */ + + /* Context for parsing across buffer boundaries */ + asn_struct_ctx_t _asn_ctx; +} SABP_MessageStructure_Value_t; + +/* Implementation */ +extern asn_TYPE_descriptor_t asn_DEF_SABP_MessageStructure_Value; + +#ifdef __cplusplus +} +#endif + +#endif /* _SABP_MessageStructure_Value_H_ */ +#include <asn_internal.h> diff --git a/include/osmocom/sabp/SABP_MessageStructure.h b/include/osmocom/sabp/SABP_MessageStructure.h index f63f28e..5ab48b0 100644 --- a/include/osmocom/sabp/SABP_MessageStructure.h +++ b/include/osmocom/sabp/SABP_MessageStructure.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_MessageStructure_H_ @@ -11,11 +12,8 @@ #include <asn_application.h> /* Including external dependencies */ +#include <osmocom/sabp/SABP_MessageStructure-Value.h> #include <asn_SEQUENCE_OF.h> -#include <osmocom/sabp/SABP_ProtocolIE-ID.h> -#include <osmocom/sabp/SABP_RepetitionNumber1.h> -#include <osmocom/sabp/SABP_IE-Extensions.h> -#include <constr_SEQUENCE.h> #include <constr_SEQUENCE_OF.h> #ifdef __cplusplus @@ -24,18 +22,7 @@ extern "C" { /* SABP_MessageStructure */ typedef struct SABP_MessageStructure { - A_SEQUENCE_OF(struct MemberA { - SABP_ProtocolIE_ID_t iE_ID; - SABP_RepetitionNumber1_t *repetitionNumber /* OPTIONAL */; - SABP_IE_Extensions_t *iE_Extensions /* OPTIONAL */; - /* - * This type is extensible, - * possible extensions are below. - */ - - /* Context for parsing across buffer boundaries */ - asn_struct_ctx_t _asn_ctx; - } ) list; + A_SEQUENCE_OF(SABP_MessageStructure_Value_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; diff --git a/include/osmocom/sabp/SABP_New-Serial-Number.h b/include/osmocom/sabp/SABP_New-Serial-Number.h index cebf264..2f17a3d 100644 --- a/include/osmocom/sabp/SABP_New-Serial-Number.h +++ b/include/osmocom/sabp/SABP_New-Serial-Number.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_New_Serial_Number_H_ diff --git a/include/osmocom/sabp/SABP_Number-Of-Broadcasts-Completed-Info.h b/include/osmocom/sabp/SABP_Number-Of-Broadcasts-Completed-Info.h index 93c8c28..15eaf19 100644 --- a/include/osmocom/sabp/SABP_Number-Of-Broadcasts-Completed-Info.h +++ b/include/osmocom/sabp/SABP_Number-Of-Broadcasts-Completed-Info.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Number_Of_Broadcasts_Completed_Info_H_ diff --git a/include/osmocom/sabp/SABP_Number-of-Broadcasts-Completed-List-Item.h b/include/osmocom/sabp/SABP_Number-of-Broadcasts-Completed-List-Item.h index bea9d35..76c66b6 100644 --- a/include/osmocom/sabp/SABP_Number-of-Broadcasts-Completed-List-Item.h +++ b/include/osmocom/sabp/SABP_Number-of-Broadcasts-Completed-List-Item.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Number_of_Broadcasts_Completed_List_Item_H_ diff --git a/include/osmocom/sabp/SABP_Number-of-Broadcasts-Completed-List.h b/include/osmocom/sabp/SABP_Number-of-Broadcasts-Completed-List.h index cea0be5..479821d 100644 --- a/include/osmocom/sabp/SABP_Number-of-Broadcasts-Completed-List.h +++ b/include/osmocom/sabp/SABP_Number-of-Broadcasts-Completed-List.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Number_of_Broadcasts_Completed_List_H_ diff --git a/include/osmocom/sabp/SABP_Number-of-Broadcasts-Requested.h b/include/osmocom/sabp/SABP_Number-of-Broadcasts-Requested.h index b795bd0..aea577a 100644 --- a/include/osmocom/sabp/SABP_Number-of-Broadcasts-Requested.h +++ b/include/osmocom/sabp/SABP_Number-of-Broadcasts-Requested.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Number_of_Broadcasts_Requested_H_ diff --git a/include/osmocom/sabp/SABP_Old-Serial-Number.h b/include/osmocom/sabp/SABP_Old-Serial-Number.h index 4765e4d..860fc17 100644 --- a/include/osmocom/sabp/SABP_Old-Serial-Number.h +++ b/include/osmocom/sabp/SABP_Old-Serial-Number.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Old_Serial_Number_H_ diff --git a/include/osmocom/sabp/SABP_Paging-ETWS-Indicator.h b/include/osmocom/sabp/SABP_Paging-ETWS-Indicator.h index fd76add..d8e7c74 100644 --- a/include/osmocom/sabp/SABP_Paging-ETWS-Indicator.h +++ b/include/osmocom/sabp/SABP_Paging-ETWS-Indicator.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Paging_ETWS_Indicator_H_ diff --git a/include/osmocom/sabp/SABP_Presence.h b/include/osmocom/sabp/SABP_Presence.h index e5c7468..f3270eb 100644 --- a/include/osmocom/sabp/SABP_Presence.h +++ b/include/osmocom/sabp/SABP_Presence.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-CommonDataTypes" * found in "../../asn1/sabp/SABP-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Presence_H_ diff --git a/include/osmocom/sabp/SABP_ProcedureCode.h b/include/osmocom/sabp/SABP_ProcedureCode.h index 854f113..bf114fe 100644 --- a/include/osmocom/sabp/SABP_ProcedureCode.h +++ b/include/osmocom/sabp/SABP_ProcedureCode.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-CommonDataTypes" * found in "../../asn1/sabp/SABP-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_ProcedureCode_H_ diff --git a/include/osmocom/sabp/SABP_ProtocolExtensionID.h b/include/osmocom/sabp/SABP_ProtocolExtensionID.h index babb695..cce30ab 100644 --- a/include/osmocom/sabp/SABP_ProtocolExtensionID.h +++ b/include/osmocom/sabp/SABP_ProtocolExtensionID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-CommonDataTypes" * found in "../../asn1/sabp/SABP-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_ProtocolExtensionID_H_ diff --git a/include/osmocom/sabp/SABP_ProtocolIE-ID.h b/include/osmocom/sabp/SABP_ProtocolIE-ID.h index 06e8b8d..511eccb 100644 --- a/include/osmocom/sabp/SABP_ProtocolIE-ID.h +++ b/include/osmocom/sabp/SABP_ProtocolIE-ID.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-CommonDataTypes" * found in "../../asn1/sabp/SABP-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_ProtocolIE_ID_H_ diff --git a/include/osmocom/sabp/SABP_Radio-Resource-Loading-List-Item.h b/include/osmocom/sabp/SABP_Radio-Resource-Loading-List-Item.h index 566b65b..3185c31 100644 --- a/include/osmocom/sabp/SABP_Radio-Resource-Loading-List-Item.h +++ b/include/osmocom/sabp/SABP_Radio-Resource-Loading-List-Item.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Radio_Resource_Loading_List_Item_H_ diff --git a/include/osmocom/sabp/SABP_Radio-Resource-Loading-List.h b/include/osmocom/sabp/SABP_Radio-Resource-Loading-List.h index 011b0bb..5ff26a0 100644 --- a/include/osmocom/sabp/SABP_Radio-Resource-Loading-List.h +++ b/include/osmocom/sabp/SABP_Radio-Resource-Loading-List.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Radio_Resource_Loading_List_H_ diff --git a/include/osmocom/sabp/SABP_Recovery-Indication.h b/include/osmocom/sabp/SABP_Recovery-Indication.h index 443090f..69608da 100644 --- a/include/osmocom/sabp/SABP_Recovery-Indication.h +++ b/include/osmocom/sabp/SABP_Recovery-Indication.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Recovery_Indication_H_ diff --git a/include/osmocom/sabp/SABP_Repetition-Period.h b/include/osmocom/sabp/SABP_Repetition-Period.h index 251c3d2..9b9576f 100644 --- a/include/osmocom/sabp/SABP_Repetition-Period.h +++ b/include/osmocom/sabp/SABP_Repetition-Period.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Repetition_Period_H_ diff --git a/include/osmocom/sabp/SABP_RepetitionNumber0.h b/include/osmocom/sabp/SABP_RepetitionNumber0.h index 890abc2..dcc8adf 100644 --- a/include/osmocom/sabp/SABP_RepetitionNumber0.h +++ b/include/osmocom/sabp/SABP_RepetitionNumber0.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_RepetitionNumber0_H_ diff --git a/include/osmocom/sabp/SABP_RepetitionNumber1.h b/include/osmocom/sabp/SABP_RepetitionNumber1.h index a9ba2eb..e2e6f92 100644 --- a/include/osmocom/sabp/SABP_RepetitionNumber1.h +++ b/include/osmocom/sabp/SABP_RepetitionNumber1.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_RepetitionNumber1_H_ diff --git a/include/osmocom/sabp/SABP_Reset-Complete.h b/include/osmocom/sabp/SABP_Reset-Complete.h index db75a83..8870e38 100644 --- a/include/osmocom/sabp/SABP_Reset-Complete.h +++ b/include/osmocom/sabp/SABP_Reset-Complete.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Reset_Complete_H_ @@ -22,7 +23,7 @@ extern "C" { /* SABP_Reset-Complete */ typedef struct SABP_Reset_Complete { - struct reset_Complete_ies { + struct SABP_Reset_Complete__reset_Complete_ies { A_SEQUENCE_OF(SABP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/sabp/SABP_Reset-Failure.h b/include/osmocom/sabp/SABP_Reset-Failure.h index de0f20d..899a118 100644 --- a/include/osmocom/sabp/SABP_Reset-Failure.h +++ b/include/osmocom/sabp/SABP_Reset-Failure.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Reset_Failure_H_ @@ -22,7 +23,7 @@ extern "C" { /* SABP_Reset-Failure */ typedef struct SABP_Reset_Failure { - struct reset_Failure_ies { + struct SABP_Reset_Failure__reset_Failure_ies { A_SEQUENCE_OF(SABP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/sabp/SABP_Reset.h b/include/osmocom/sabp/SABP_Reset.h index 379d455..4916a2b 100644 --- a/include/osmocom/sabp/SABP_Reset.h +++ b/include/osmocom/sabp/SABP_Reset.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Reset_H_ @@ -22,7 +23,7 @@ extern "C" { /* SABP_Reset */ typedef struct SABP_Reset { - struct reset_ies { + struct SABP_Reset__reset_ies { A_SEQUENCE_OF(SABP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/sabp/SABP_Restart.h b/include/osmocom/sabp/SABP_Restart.h index ee67cca..de5e9bb 100644 --- a/include/osmocom/sabp/SABP_Restart.h +++ b/include/osmocom/sabp/SABP_Restart.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Restart_H_ @@ -22,7 +23,7 @@ extern "C" { /* SABP_Restart */ typedef struct SABP_Restart { - struct restart_ies { + struct SABP_Restart__restart_ies { A_SEQUENCE_OF(SABP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/sabp/SABP_SABP-PDU.h b/include/osmocom/sabp/SABP_SABP-PDU.h index 28d5560..b7c93f9 100644 --- a/include/osmocom/sabp/SABP_SABP-PDU.h +++ b/include/osmocom/sabp/SABP_SABP-PDU.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_SABP_PDU_H_ diff --git a/include/osmocom/sabp/SABP_Serial-Number.h b/include/osmocom/sabp/SABP_Serial-Number.h index 7833942..ed34f55 100644 --- a/include/osmocom/sabp/SABP_Serial-Number.h +++ b/include/osmocom/sabp/SABP_Serial-Number.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Serial_Number_H_ diff --git a/include/osmocom/sabp/SABP_Service-Area-Identifier.h b/include/osmocom/sabp/SABP_Service-Area-Identifier.h index 47b9cd4..ea0934f 100644 --- a/include/osmocom/sabp/SABP_Service-Area-Identifier.h +++ b/include/osmocom/sabp/SABP_Service-Area-Identifier.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Service_Area_Identifier_H_ diff --git a/include/osmocom/sabp/SABP_Service-Areas-List.h b/include/osmocom/sabp/SABP_Service-Areas-List.h index db56c4a..34a07d6 100644 --- a/include/osmocom/sabp/SABP_Service-Areas-List.h +++ b/include/osmocom/sabp/SABP_Service-Areas-List.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Service_Areas_List_H_ diff --git a/include/osmocom/sabp/SABP_SuccessfulOutcome.h b/include/osmocom/sabp/SABP_SuccessfulOutcome.h index 8438bf0..1e72de4 100644 --- a/include/osmocom/sabp/SABP_SuccessfulOutcome.h +++ b/include/osmocom/sabp/SABP_SuccessfulOutcome.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_SuccessfulOutcome_H_ diff --git a/include/osmocom/sabp/SABP_TriggeringMessage.h b/include/osmocom/sabp/SABP_TriggeringMessage.h index 9d49726..134ba69 100644 --- a/include/osmocom/sabp/SABP_TriggeringMessage.h +++ b/include/osmocom/sabp/SABP_TriggeringMessage.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-CommonDataTypes" * found in "../../asn1/sabp/SABP-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_TriggeringMessage_H_ diff --git a/include/osmocom/sabp/SABP_TypeOfError.h b/include/osmocom/sabp/SABP_TypeOfError.h index f303195..2c50d97 100644 --- a/include/osmocom/sabp/SABP_TypeOfError.h +++ b/include/osmocom/sabp/SABP_TypeOfError.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_TypeOfError_H_ diff --git a/include/osmocom/sabp/SABP_UnsuccessfulOutcome.h b/include/osmocom/sabp/SABP_UnsuccessfulOutcome.h index fe2059c..b4fe2c0 100644 --- a/include/osmocom/sabp/SABP_UnsuccessfulOutcome.h +++ b/include/osmocom/sabp/SABP_UnsuccessfulOutcome.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_UnsuccessfulOutcome_H_ diff --git a/include/osmocom/sabp/SABP_Warning-Type.h b/include/osmocom/sabp/SABP_Warning-Type.h index 11534b5..96b7ef3 100644 --- a/include/osmocom/sabp/SABP_Warning-Type.h +++ b/include/osmocom/sabp/SABP_Warning-Type.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Warning_Type_H_ diff --git a/include/osmocom/sabp/SABP_WarningSecurityInfo.h b/include/osmocom/sabp/SABP_WarningSecurityInfo.h index bb79a2a..4409492 100644 --- a/include/osmocom/sabp/SABP_WarningSecurityInfo.h +++ b/include/osmocom/sabp/SABP_WarningSecurityInfo.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_WarningSecurityInfo_H_ diff --git a/include/osmocom/sabp/SABP_Write-Replace-Complete.h b/include/osmocom/sabp/SABP_Write-Replace-Complete.h index d118f98..a9a8451 100644 --- a/include/osmocom/sabp/SABP_Write-Replace-Complete.h +++ b/include/osmocom/sabp/SABP_Write-Replace-Complete.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Write_Replace_Complete_H_ @@ -22,7 +23,7 @@ extern "C" { /* SABP_Write-Replace-Complete */ typedef struct SABP_Write_Replace_Complete { - struct write_Replace_Complete_ies { + struct SABP_Write_Replace_Complete__write_Replace_Complete_ies { A_SEQUENCE_OF(SABP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/sabp/SABP_Write-Replace-Failure.h b/include/osmocom/sabp/SABP_Write-Replace-Failure.h index 99e8400..9bd3d6e 100644 --- a/include/osmocom/sabp/SABP_Write-Replace-Failure.h +++ b/include/osmocom/sabp/SABP_Write-Replace-Failure.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Write_Replace_Failure_H_ @@ -22,7 +23,7 @@ extern "C" { /* SABP_Write-Replace-Failure */ typedef struct SABP_Write_Replace_Failure { - struct write_Replace_Failure_ies { + struct SABP_Write_Replace_Failure__write_Replace_Failure_ies { A_SEQUENCE_OF(SABP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/include/osmocom/sabp/SABP_Write-Replace.h b/include/osmocom/sabp/SABP_Write-Replace.h index 1c895d5..f1b41eb 100644 --- a/include/osmocom/sabp/SABP_Write-Replace.h +++ b/include/osmocom/sabp/SABP_Write-Replace.h @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #ifndef _SABP_Write_Replace_H_ @@ -22,7 +23,7 @@ extern "C" { /* SABP_Write-Replace */ typedef struct SABP_Write_Replace { - struct write_Replace_ies { + struct SABP_Write_Replace__write_Replace_ies { A_SEQUENCE_OF(SABP_IE_t) list; /* Context for parsing across buffer boundaries */ diff --git a/libosmo-hnbap.pc.in b/libosmo-hnbap.pc.in new file mode 100644 index 0000000..db05756 --- /dev/null +++ b/libosmo-hnbap.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: Osmocom HNBAP protocol library +Description: C Utility Library +Version: @VERSION@ +Libs: -L${libdir} -losmo-hnbap +Cflags: -I${includedir}/ diff --git a/libosmo-rua.pc.in b/libosmo-rua.pc.in new file mode 100644 index 0000000..b9bd1d4 --- /dev/null +++ b/libosmo-rua.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: Osmocom RUA protocol library +Description: C Utility Library +Version: @VERSION@ +Libs: -L${libdir} -losmo-rua +Cflags: -I${includedir}/ diff --git a/move-asn1-header-files.sh b/move-asn1-header-files.sh index b968323..7c996b2 100755 --- a/move-asn1-header-files.sh +++ b/move-asn1-header-files.sh @@ -12,6 +12,22 @@ base_dir="$(dirname "$0")" include_subdir="$1" shift +# Abort if any of the header files are missing +for i in "$@"; do + if ! [ -e "$i" ]; then + echo + echo "ERROR: file '$i' has not been generated by asn1c!" + echo + echo "Are you using the Osmocom asn1c fork with the" \ + "ASN1C_PREFIX feature?" + echo + echo "More information:" + echo "https://osmocom.org/projects/osmohnbgw/wiki/Generate_sources_from_ASN1_files" + echo + exit 1 + fi +done + include_dir="$base_dir/include/$include_subdir" mkdir -p "$include_dir" echo "$PWD/*.h --> $include_dir" @@ -22,6 +38,7 @@ collect_sed_commands() { shift echo "s,^#include \"$fname\"$,#include <$include_subdir/$fname>," + echo "s, \* \tfound in \"${base_dir}, * \tfound in \"../..," done } diff --git a/src/Makefile.am b/src/Makefile.am index 1c3a64a..44c4c43 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = hnbap rua ranap sabp tests +SUBDIRS = hnbap rua ranap sabp # Build {hnbap,rua,ranap}_{encoder,decoder}.c using asn1tostruct ASN1_ROOT = $(top_srcdir)/asn1 @@ -7,7 +7,7 @@ BUILT_SOURCES = hnbap_decoder.c hnbap_encoder.c rua_decoder.c rua_encoder.c sabp gen_hnbap.stamp gen_rua.stamp gen_ranap.stamp gen_sabp.stamp gen_hnbap.stamp: $(ASN1_ROOT)/hnbap/HNBAP-PDU-Contents.asn $(ASN1TOSTRUCT) - $(ASN1TOSTRUCT) -f $< + $(ASN1TOSTRUCT) -p HNBAP_ -f $< # We also need to replace the include in the newly generated .c files: sed -i 's,^#include "hnbap_ies_defs.h",#include <osmocom/hnbap/hnbap_ies_defs.h>,' hnbap_encoder.c hnbap_decoder.c sed -i 's,^#include "hnbap_common.h",#include <osmocom/hnbap/hnbap_common.h>,' hnbap_encoder.c hnbap_decoder.c hnbap_ies_defs.h @@ -61,37 +61,31 @@ AM_CFLAGS = -Wall -I$(top_srcdir)/include -I$(top_builddir)/include \ # build the shared RANAP + SABP library # -RANAP_LIBVERSION=3:0:0 -SABP_LIBVERSION=0:0:0 -lib_LTLIBRARIES = libosmo-ranap.la libosmo-sabp.la -libosmo_ranap_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(RANAP_LIBVERSION) +HNBAP_LIBVERSION=1:0:1 +RANAP_LIBVERSION=8:1:1 +RUA_LIBVERSION=1:1:1 +SABP_LIBVERSION=2:0:1 +lib_LTLIBRARIES = libosmo-hnbap.la libosmo-ranap.la libosmo-rua.la libosmo-sabp.la +libosmo_hnbap_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HNBAP_LIBVERSION) -no-undefined +libosmo_hnbap_la_LIBADD = $(OSMOCORE_LIBS) $(OSMOGSM_LIBS) $(OSMOVTY_LIBS) $(OSMOSIGTRAN_LIBS) \ + $(ASN1C_LIBS) hnbap/libosmo-asn1-hnbap.la +libosmo_hnbap_la_SOURCES = hnbap_common.c hnbap_encoder.c hnbap_decoder.c + +libosmo_ranap_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(RANAP_LIBVERSION) -no-undefined libosmo_ranap_la_LIBADD = $(OSMOCORE_LIBS) $(OSMOGSM_LIBS) $(OSMOVTY_LIBS) $(OSMOSIGTRAN_LIBS) \ $(ASN1C_LIBS) ranap/libosmo-asn1-ranap.la libosmo_ranap_la_SOURCES = ranap_common.c ranap_encoder.c ranap_decoder.c ranap_msg_factory.c iu_helpers.c \ - ranap_common_cn.c iu_client.c iu_client_vty.c + ranap_common_cn.c ranap_common_ran.c iu_client.c iu_client_vty.c -libosmo_sabp_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(SABP_LIBVERSION) +libosmo_rua_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(RUA_LIBVERSION) -no-undefined +libosmo_rua_la_LIBADD = $(OSMOCORE_LIBS) $(OSMOGSM_LIBS) $(OSMOVTY_LIBS) $(OSMOSIGTRAN_LIBS) \ + $(ASN1C_LIBS) rua/libosmo-asn1-rua.la +libosmo_rua_la_SOURCES = rua_common.c rua_encoder.c rua_decoder.c rua_msg_factory.c + +libosmo_sabp_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(SABP_LIBVERSION) -no-undefined libosmo_sabp_la_LIBADD = $(OSMOCORE_LIBS) $(OSMOGSM_LIBS) $(OSMOVTY_LIBS) $(OSMOSIGTRAN_LIBS) \ $(ASN1C_LIBS) sabp/libosmo-asn1-sabp.la -libosmo_sabp_la_SOURCES = sabp_common.c sabp_encoder.c sabp_decoder.c - - -# build the actual HomeNodeB gateway -# -bin_PROGRAMS = osmo-hnbgw - -osmo_hnbgw_SOURCES = hnbap_encoder.c hnbap_decoder.c hnbap_common.c \ - rua_encoder.c rua_decoder.c rua_common.c \ - rua_msg_factory.c \ - hnbgw.c hnbgw_hnbap.c hnbgw_rua.c hnbgw_ranap.c \ - hnbgw_vty.c \ - context_map.c hnbgw_cn.c - -osmo_hnbgw_LDADD = $(OSMOCORE_LIBS) $(OSMOGSM_LIBS) $(OSMOVTY_LIBS) $(OSMOCTRL_LIBS) \ - $(ASN1C_LIBS) $(OSMOSIGTRAN_LIBS) \ - $(OSMONETIF_LIBS) \ - hnbap/libosmo-asn1-hnbap.a rua/libosmo-asn1-rua.a \ - libosmo-ranap.la +libosmo_sabp_la_SOURCES = sabp_common.c sabp_encoder.c sabp_decoder.c regen: regenerate-from-asn1-source diff --git a/src/context_map.c b/src/context_map.c deleted file mode 100644 index dc555bf..0000000 --- a/src/context_map.c +++ /dev/null @@ -1,182 +0,0 @@ -/* Mapper between RUA ContextID (24 bit, per HNB) and the SUA/SCCP - * Connection ID (32bit, per signalling link) */ - -/* (C) 2015 by Harald Welte <laforge@gnumonks.org> - * All Rights Reserved - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -/* an expired mapping is destroyed after 1..2 * EXPIRY_TIMER_SECS */ -#define EXPIRY_TIMER_SECS 23 - -#include <osmocom/core/timer.h> - -#include <osmocom/iuh/hnbgw.h> -#include <osmocom/iuh/context_map.h> - -const struct value_string hnbgw_context_map_state_names[] = { - {MAP_S_NULL , "not-initialized"}, - {MAP_S_ACTIVE , "active"}, - {MAP_S_RESERVED1, "inactive-reserved"}, - {MAP_S_RESERVED2, "inactive-discard"}, - {0, NULL} -}; - -/* is a given SCCP USER SAP Connection ID in use for a given CN link? */ -static int cn_id_in_use(struct hnbgw_cnlink *cn, uint32_t id) -{ - struct hnbgw_context_map *map; - - llist_for_each_entry(map, &cn->map_list, cn_list) { - if (map->scu_conn_id == id) - return 1; - } - return 0; -} - -/* try to allocate a new SCCP User SAP Connection ID */ -static int alloc_cn_conn_id(struct hnbgw_cnlink *cn, uint32_t *id_out) -{ - uint32_t i; - uint32_t id; - - for (i = 0; i < 0xffffffff; i++) { - id = cn->next_conn_id++; - if (!cn_id_in_use(cn, id)) { - *id_out = id; - return 1; - } - } - return -1; -} - -/* Map from a HNB + ContextID to the SCCP-side Connection ID */ -struct hnbgw_context_map * -context_map_alloc_by_hnb(struct hnb_context *hnb, uint32_t rua_ctx_id, - bool is_ps, - struct hnbgw_cnlink *cn_if_new) -{ - struct hnbgw_context_map *map; - uint32_t new_scu_conn_id; - - llist_for_each_entry(map, &hnb->map_list, hnb_list) { - if (map->state != MAP_S_ACTIVE) - continue; - if (map->cn_link != cn_if_new) { - continue; - } - if (map->rua_ctx_id == rua_ctx_id - && map->is_ps == is_ps) { - return map; - } - } - - if (alloc_cn_conn_id(cn_if_new, &new_scu_conn_id) < 0) { - LOGP(DMAIN, LOGL_ERROR, "Unable to allocate CN connection ID\n"); - return NULL; - } - - LOGP(DMAIN, LOGL_INFO, "Creating new Mapping RUA CTX %p/%u <-> SCU Conn ID %p/%u\n", - hnb, rua_ctx_id, cn_if_new, new_scu_conn_id); - - /* alloate a new map entry */ - map = talloc_zero(hnb, struct hnbgw_context_map); - map->state = MAP_S_NULL; - map->cn_link = cn_if_new; - map->hnb_ctx = hnb; - map->rua_ctx_id = rua_ctx_id; - map->is_ps = is_ps; - map->scu_conn_id = new_scu_conn_id; - - /* put it into both lists */ - llist_add_tail(&map->hnb_list, &hnb->map_list); - llist_add_tail(&map->cn_list, &cn_if_new->map_list); - map->state = MAP_S_ACTIVE; - - return map; -} - -/* Map from a CN + Connection ID to HNB + Context ID */ -struct hnbgw_context_map * -context_map_by_cn(struct hnbgw_cnlink *cn, uint32_t scu_conn_id) -{ - struct hnbgw_context_map *map; - - llist_for_each_entry(map, &cn->map_list, cn_list) { - if (map->state != MAP_S_ACTIVE) - continue; - if (map->scu_conn_id == scu_conn_id) { - return map; - } - } - /* we don't allocate new mappings in the CN->HNB - * direction, as the RUA=SCCP=SUA connections are always - * established from HNB towards CN. */ - LOGP(DMAIN, LOGL_NOTICE, "Unable to resolve map for CN " - "connection ID %p/%u\n", cn, scu_conn_id); - return NULL; -} - -void context_map_deactivate(struct hnbgw_context_map *map) -{ - /* set the state to reserved. We still show up in the list and - * avoid re-allocation of the context-id until we are cleaned up - * by the context_map garbage collector timer */ - - if (map->state != MAP_S_RESERVED2) - map->state = MAP_S_RESERVED1; -} - -static struct osmo_timer_list context_map_tmr; - -static void context_map_tmr_cb(void *data) -{ - struct hnb_gw *gw = data; - struct hnbgw_cnlink *cn = gw->sccp.cnlink; - struct hnbgw_context_map *map, *next_map; - - DEBUGP(DMAIN, "Running context mapper garbage collection\n"); - llist_for_each_entry_safe(map, next_map, &cn->map_list, cn_list) { - switch (map->state) { - case MAP_S_RESERVED1: - /* first time we see this reserved - * entry: mark it for stage 2 */ - map->state = MAP_S_RESERVED2; - break; - case MAP_S_RESERVED2: - /* second time we see this reserved - * entry: remove it */ - map->state = MAP_S_NULL; - llist_del(&map->cn_list); - llist_del(&map->hnb_list); - talloc_free(map); - break; - default: - break; - } - } - /* re-schedule this timer */ - osmo_timer_schedule(&context_map_tmr, EXPIRY_TIMER_SECS, 0); -} - -int context_map_init(struct hnb_gw *gw) -{ - context_map_tmr.cb = context_map_tmr_cb; - context_map_tmr.data = gw; - osmo_timer_schedule(&context_map_tmr, EXPIRY_TIMER_SECS, 0); - - return 0; -} diff --git a/src/hnbap/Access-stratum-release-indicator.c b/src/hnbap/Access-stratum-release-indicator.c deleted file mode 100644 index cf16e39..0000000 --- a/src/hnbap/Access-stratum-release-indicator.c +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/Access-stratum-release-indicator.h> - -int -Access_stratum_release_indicator_constraint(asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - /* Replace with underlying type checker */ - td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; - return td->check_constraints(td, sptr, ctfailcb, app_key); -} - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static void -Access_stratum_release_indicator_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { - td->free_struct = asn_DEF_NativeEnumerated.free_struct; - td->print_struct = asn_DEF_NativeEnumerated.print_struct; - td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; - td->ber_decoder = asn_DEF_NativeEnumerated.ber_decoder; - td->der_encoder = asn_DEF_NativeEnumerated.der_encoder; - td->xer_decoder = asn_DEF_NativeEnumerated.xer_decoder; - td->xer_encoder = asn_DEF_NativeEnumerated.xer_encoder; - td->uper_decoder = asn_DEF_NativeEnumerated.uper_decoder; - td->uper_encoder = asn_DEF_NativeEnumerated.uper_encoder; - td->aper_decoder = asn_DEF_NativeEnumerated.aper_decoder; - td->aper_encoder = asn_DEF_NativeEnumerated.aper_encoder; - if(!td->per_constraints) - td->per_constraints = asn_DEF_NativeEnumerated.per_constraints; - td->elements = asn_DEF_NativeEnumerated.elements; - td->elements_count = asn_DEF_NativeEnumerated.elements_count; - /* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */ -} - -void -Access_stratum_release_indicator_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - Access_stratum_release_indicator_1_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -int -Access_stratum_release_indicator_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - Access_stratum_release_indicator_1_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -asn_dec_rval_t -Access_stratum_release_indicator_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, - void **structure, const void *bufptr, size_t size, int tag_mode) { - Access_stratum_release_indicator_1_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -asn_enc_rval_t -Access_stratum_release_indicator_encode_der(asn_TYPE_descriptor_t *td, - void *structure, int tag_mode, ber_tlv_tag_t tag, - asn_app_consume_bytes_f *cb, void *app_key) { - Access_stratum_release_indicator_1_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -asn_dec_rval_t -Access_stratum_release_indicator_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, - void **structure, const char *opt_mname, const void *bufptr, size_t size) { - Access_stratum_release_indicator_1_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -asn_enc_rval_t -Access_stratum_release_indicator_encode_xer(asn_TYPE_descriptor_t *td, void *structure, - int ilevel, enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { - Access_stratum_release_indicator_1_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -asn_dec_rval_t -Access_stratum_release_indicator_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, - asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - Access_stratum_release_indicator_1_inherit_TYPE_descriptor(td); - return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); -} - -asn_enc_rval_t -Access_stratum_release_indicator_encode_uper(asn_TYPE_descriptor_t *td, - asn_per_constraints_t *constraints, - void *structure, asn_per_outp_t *per_out) { - Access_stratum_release_indicator_1_inherit_TYPE_descriptor(td); - return td->uper_encoder(td, constraints, structure, per_out); -} - -asn_enc_rval_t -Access_stratum_release_indicator_encode_aper(asn_TYPE_descriptor_t *td, - asn_per_constraints_t *constraints, - void *structure, asn_per_outp_t *per_out) { - Access_stratum_release_indicator_1_inherit_TYPE_descriptor(td); - return td->aper_encoder(td, constraints, structure, per_out); -} - -asn_dec_rval_t -Access_stratum_release_indicator_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, - asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - Access_stratum_release_indicator_1_inherit_TYPE_descriptor(td); - return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); -} - -static asn_per_constraints_t asn_PER_type_Access_stratum_release_indicator_constr_1 GCC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0l, 5l } /* (0..5,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_Access_stratum_release_indicator_value2enum_1[] = { - { 0, 3, "r99" }, - { 1, 5, "rel-4" }, - { 2, 5, "rel-5" }, - { 3, 5, "rel-6" }, - { 4, 5, "rel-7" }, - { 5, 16, "rel-8-and-beyond" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_Access_stratum_release_indicator_enum2value_1[] = { - 0, /* r99(0) */ - 1, /* rel-4(1) */ - 2, /* rel-5(2) */ - 3, /* rel-6(3) */ - 4, /* rel-7(4) */ - 5 /* rel-8-and-beyond(5) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_Access_stratum_release_indicator_specs_1 = { - asn_MAP_Access_stratum_release_indicator_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_Access_stratum_release_indicator_enum2value_1, /* N => "tag"; sorted by N */ - 6, /* Number of elements in the maps */ - 7, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_Access_stratum_release_indicator_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_Access_stratum_release_indicator = { - "Access-stratum-release-indicator", - "Access-stratum-release-indicator", - Access_stratum_release_indicator_free, - Access_stratum_release_indicator_print, - Access_stratum_release_indicator_constraint, - Access_stratum_release_indicator_decode_ber, - Access_stratum_release_indicator_encode_der, - Access_stratum_release_indicator_decode_xer, - Access_stratum_release_indicator_encode_xer, - Access_stratum_release_indicator_decode_uper, - Access_stratum_release_indicator_encode_uper, - Access_stratum_release_indicator_decode_aper, - Access_stratum_release_indicator_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_Access_stratum_release_indicator_tags_1, - sizeof(asn_DEF_Access_stratum_release_indicator_tags_1) - /sizeof(asn_DEF_Access_stratum_release_indicator_tags_1[0]), /* 1 */ - asn_DEF_Access_stratum_release_indicator_tags_1, /* Same as above */ - sizeof(asn_DEF_Access_stratum_release_indicator_tags_1) - /sizeof(asn_DEF_Access_stratum_release_indicator_tags_1[0]), /* 1 */ - &asn_PER_type_Access_stratum_release_indicator_constr_1, - 0, 0, /* Defined elsewhere */ - &asn_SPC_Access_stratum_release_indicator_specs_1 /* Additional specs */ -}; - diff --git a/src/hnbap/AccessResult.c b/src/hnbap/AccessResult.c deleted file mode 100644 index 705f6b2..0000000 --- a/src/hnbap/AccessResult.c +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/AccessResult.h> - -int -AccessResult_constraint(asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - /* Replace with underlying type checker */ - td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; - return td->check_constraints(td, sptr, ctfailcb, app_key); -} - -/* - * This type is implemented using NativeEnumerated, - * so here we adjust the DEF accordingly. - */ -static void -AccessResult_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { - td->free_struct = asn_DEF_NativeEnumerated.free_struct; - td->print_struct = asn_DEF_NativeEnumerated.print_struct; - td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; - td->ber_decoder = asn_DEF_NativeEnumerated.ber_decoder; - td->der_encoder = asn_DEF_NativeEnumerated.der_encoder; - td->xer_decoder = asn_DEF_NativeEnumerated.xer_decoder; - td->xer_encoder = asn_DEF_NativeEnumerated.xer_encoder; - td->uper_decoder = asn_DEF_NativeEnumerated.uper_decoder; - td->uper_encoder = asn_DEF_NativeEnumerated.uper_encoder; - td->aper_decoder = asn_DEF_NativeEnumerated.aper_decoder; - td->aper_encoder = asn_DEF_NativeEnumerated.aper_encoder; - if(!td->per_constraints) - td->per_constraints = asn_DEF_NativeEnumerated.per_constraints; - td->elements = asn_DEF_NativeEnumerated.elements; - td->elements_count = asn_DEF_NativeEnumerated.elements_count; - /* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */ -} - -void -AccessResult_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - AccessResult_1_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -int -AccessResult_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - AccessResult_1_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -asn_dec_rval_t -AccessResult_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, - void **structure, const void *bufptr, size_t size, int tag_mode) { - AccessResult_1_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -asn_enc_rval_t -AccessResult_encode_der(asn_TYPE_descriptor_t *td, - void *structure, int tag_mode, ber_tlv_tag_t tag, - asn_app_consume_bytes_f *cb, void *app_key) { - AccessResult_1_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -asn_dec_rval_t -AccessResult_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, - void **structure, const char *opt_mname, const void *bufptr, size_t size) { - AccessResult_1_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -asn_enc_rval_t -AccessResult_encode_xer(asn_TYPE_descriptor_t *td, void *structure, - int ilevel, enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { - AccessResult_1_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -asn_dec_rval_t -AccessResult_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, - asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - AccessResult_1_inherit_TYPE_descriptor(td); - return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); -} - -asn_enc_rval_t -AccessResult_encode_uper(asn_TYPE_descriptor_t *td, - asn_per_constraints_t *constraints, - void *structure, asn_per_outp_t *per_out) { - AccessResult_1_inherit_TYPE_descriptor(td); - return td->uper_encoder(td, constraints, structure, per_out); -} - -asn_enc_rval_t -AccessResult_encode_aper(asn_TYPE_descriptor_t *td, - asn_per_constraints_t *constraints, - void *structure, asn_per_outp_t *per_out) { - AccessResult_1_inherit_TYPE_descriptor(td); - return td->aper_encoder(td, constraints, structure, per_out); -} - -asn_dec_rval_t -AccessResult_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, - asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - AccessResult_1_inherit_TYPE_descriptor(td); - return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); -} - -static asn_per_constraints_t asn_PER_type_AccessResult_constr_1 GCC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0l, 1l } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static const asn_INTEGER_enum_map_t asn_MAP_AccessResult_value2enum_1[] = { - { 0, 7, "allowed" }, - { 1, 10, "notAllowed" } - /* This list is extensible */ -}; -static const unsigned int asn_MAP_AccessResult_enum2value_1[] = { - 0, /* allowed(0) */ - 1 /* notAllowed(1) */ - /* This list is extensible */ -}; -static const asn_INTEGER_specifics_t asn_SPC_AccessResult_specs_1 = { - asn_MAP_AccessResult_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_AccessResult_enum2value_1, /* N => "tag"; sorted by N */ - 2, /* Number of elements in the maps */ - 3, /* Extensions before this member */ - 1, /* Strict enumeration */ - 0, /* Native long size */ - 0 -}; -static const ber_tlv_tag_t asn_DEF_AccessResult_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_AccessResult = { - "AccessResult", - "AccessResult", - AccessResult_free, - AccessResult_print, - AccessResult_constraint, - AccessResult_decode_ber, - AccessResult_encode_der, - AccessResult_decode_xer, - AccessResult_encode_xer, - AccessResult_decode_uper, - AccessResult_encode_uper, - AccessResult_decode_aper, - AccessResult_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_AccessResult_tags_1, - sizeof(asn_DEF_AccessResult_tags_1) - /sizeof(asn_DEF_AccessResult_tags_1[0]), /* 1 */ - asn_DEF_AccessResult_tags_1, /* Same as above */ - sizeof(asn_DEF_AccessResult_tags_1) - /sizeof(asn_DEF_AccessResult_tags_1[0]), /* 1 */ - &asn_PER_type_AccessResult_constr_1, - 0, 0, /* Defined elsewhere */ - &asn_SPC_AccessResult_specs_1 /* Additional specs */ -}; - diff --git a/src/hnbap/AdditionalNeighbourInfoList.c b/src/hnbap/AdditionalNeighbourInfoList.c deleted file mode 100644 index 7049be2..0000000 --- a/src/hnbap/AdditionalNeighbourInfoList.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/AdditionalNeighbourInfoList.h> - -static asn_per_constraints_t asn_PER_type_AdditionalNeighbourInfoList_constr_1 GCC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 7, 7, 1l, 128l } /* (SIZE(1..128)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_AdditionalNeighbourInfoList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_HNBConfigInfo, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_AdditionalNeighbourInfoList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_AdditionalNeighbourInfoList_specs_1 = { - sizeof(struct AdditionalNeighbourInfoList), - offsetof(struct AdditionalNeighbourInfoList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_AdditionalNeighbourInfoList = { - "AdditionalNeighbourInfoList", - "AdditionalNeighbourInfoList", - SEQUENCE_OF_free, - SEQUENCE_OF_print, - SEQUENCE_OF_constraint, - SEQUENCE_OF_decode_ber, - SEQUENCE_OF_encode_der, - SEQUENCE_OF_decode_xer, - SEQUENCE_OF_encode_xer, - SEQUENCE_OF_decode_uper, - SEQUENCE_OF_encode_uper, - SEQUENCE_OF_decode_aper, - SEQUENCE_OF_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_AdditionalNeighbourInfoList_tags_1, - sizeof(asn_DEF_AdditionalNeighbourInfoList_tags_1) - /sizeof(asn_DEF_AdditionalNeighbourInfoList_tags_1[0]), /* 1 */ - asn_DEF_AdditionalNeighbourInfoList_tags_1, /* Same as above */ - sizeof(asn_DEF_AdditionalNeighbourInfoList_tags_1) - /sizeof(asn_DEF_AdditionalNeighbourInfoList_tags_1[0]), /* 1 */ - &asn_PER_type_AdditionalNeighbourInfoList_constr_1, - asn_MBR_AdditionalNeighbourInfoList_1, - 1, /* Single element */ - &asn_SPC_AdditionalNeighbourInfoList_specs_1 /* Additional specs */ -}; - diff --git a/src/hnbap/BindingID.c b/src/hnbap/BindingID.c deleted file mode 100644 index b806fdf..0000000 --- a/src/hnbap/BindingID.c +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/BindingID.h> - -int -BindingID_constraint(asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; - size_t size; - - if(!sptr) { - _ASN_CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - size = st->size; - - if((size >= 1l && size <= 4l)) { - /* Constraint check succeeded */ - return 0; - } else { - _ASN_CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using OCTET_STRING, - * so here we adjust the DEF accordingly. - */ -static void -BindingID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { - td->free_struct = asn_DEF_OCTET_STRING.free_struct; - td->print_struct = asn_DEF_OCTET_STRING.print_struct; - td->check_constraints = asn_DEF_OCTET_STRING.check_constraints; - td->ber_decoder = asn_DEF_OCTET_STRING.ber_decoder; - td->der_encoder = asn_DEF_OCTET_STRING.der_encoder; - td->xer_decoder = asn_DEF_OCTET_STRING.xer_decoder; - td->xer_encoder = asn_DEF_OCTET_STRING.xer_encoder; - td->uper_decoder = asn_DEF_OCTET_STRING.uper_decoder; - td->uper_encoder = asn_DEF_OCTET_STRING.uper_encoder; - td->aper_decoder = asn_DEF_OCTET_STRING.aper_decoder; - td->aper_encoder = asn_DEF_OCTET_STRING.aper_encoder; - if(!td->per_constraints) - td->per_constraints = asn_DEF_OCTET_STRING.per_constraints; - td->elements = asn_DEF_OCTET_STRING.elements; - td->elements_count = asn_DEF_OCTET_STRING.elements_count; - td->specifics = asn_DEF_OCTET_STRING.specifics; -} - -void -BindingID_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - BindingID_1_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -int -BindingID_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - BindingID_1_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -asn_dec_rval_t -BindingID_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, - void **structure, const void *bufptr, size_t size, int tag_mode) { - BindingID_1_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -asn_enc_rval_t -BindingID_encode_der(asn_TYPE_descriptor_t *td, - void *structure, int tag_mode, ber_tlv_tag_t tag, - asn_app_consume_bytes_f *cb, void *app_key) { - BindingID_1_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -asn_dec_rval_t -BindingID_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, - void **structure, const char *opt_mname, const void *bufptr, size_t size) { - BindingID_1_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -asn_enc_rval_t -BindingID_encode_xer(asn_TYPE_descriptor_t *td, void *structure, - int ilevel, enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { - BindingID_1_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -asn_dec_rval_t -BindingID_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, - asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - BindingID_1_inherit_TYPE_descriptor(td); - return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); -} - -asn_enc_rval_t -BindingID_encode_uper(asn_TYPE_descriptor_t *td, - asn_per_constraints_t *constraints, - void *structure, asn_per_outp_t *per_out) { - BindingID_1_inherit_TYPE_descriptor(td); - return td->uper_encoder(td, constraints, structure, per_out); -} - -asn_enc_rval_t -BindingID_encode_aper(asn_TYPE_descriptor_t *td, - asn_per_constraints_t *constraints, - void *structure, asn_per_outp_t *per_out) { - BindingID_1_inherit_TYPE_descriptor(td); - return td->aper_encoder(td, constraints, structure, per_out); -} - -asn_dec_rval_t -BindingID_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, - asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - BindingID_1_inherit_TYPE_descriptor(td); - return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); -} - -static asn_per_constraints_t asn_PER_type_BindingID_constr_1 GCC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 1l, 4l } /* (SIZE(1..4,...)) */, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_BindingID_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_BindingID = { - "BindingID", - "BindingID", - BindingID_free, - BindingID_print, - BindingID_constraint, - BindingID_decode_ber, - BindingID_encode_der, - BindingID_decode_xer, - BindingID_encode_xer, - BindingID_decode_uper, - BindingID_encode_uper, - BindingID_decode_aper, - BindingID_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_BindingID_tags_1, - sizeof(asn_DEF_BindingID_tags_1) - /sizeof(asn_DEF_BindingID_tags_1[0]), /* 1 */ - asn_DEF_BindingID_tags_1, /* Same as above */ - sizeof(asn_DEF_BindingID_tags_1) - /sizeof(asn_DEF_BindingID_tags_1[0]), /* 1 */ - &asn_PER_type_BindingID_constr_1, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/src/hnbap/ConfigurationInformation.c b/src/hnbap/ConfigurationInformation.c deleted file mode 100644 index b9b7be3..0000000 --- a/src/hnbap/ConfigurationInformation.c +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/ConfigurationInformation.h> - -static asn_per_constraints_t asn_PER_type_ConfigurationInformation_constr_1 GCC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0l, 1l } /* (0..1,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_ConfigurationInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ConfigurationInformation, choice.provided), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HNBConfigurationInformationProvided, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "provided" - }, - { ATF_NOFLAGS, 0, offsetof(struct ConfigurationInformation, choice.missing), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HNBConfigurationInformationMissing, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "missing" - }, -}; -static const asn_TYPE_tag2member_t asn_MAP_ConfigurationInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* provided */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* missing */ -}; -static asn_CHOICE_specifics_t asn_SPC_ConfigurationInformation_specs_1 = { - sizeof(struct ConfigurationInformation), - offsetof(struct ConfigurationInformation, _asn_ctx), - offsetof(struct ConfigurationInformation, present), - sizeof(((struct ConfigurationInformation *)0)->present), - asn_MAP_ConfigurationInformation_tag2el_1, - 2, /* Count of tags in the map */ - 0, - 2 /* Extensions start */ -}; -asn_TYPE_descriptor_t asn_DEF_ConfigurationInformation = { - "ConfigurationInformation", - "ConfigurationInformation", - CHOICE_free, - CHOICE_print, - CHOICE_constraint, - CHOICE_decode_ber, - CHOICE_encode_der, - CHOICE_decode_xer, - CHOICE_encode_xer, - CHOICE_decode_uper, - CHOICE_encode_uper, - CHOICE_decode_aper, - CHOICE_encode_aper, - CHOICE_outmost_tag, - 0, /* No effective tags (pointer) */ - 0, /* No effective tags (count) */ - 0, /* No tags (pointer) */ - 0, /* No tags (count) */ - &asn_PER_type_ConfigurationInformation_constr_1, - asn_MBR_ConfigurationInformation_1, - 2, /* Elements count */ - &asn_SPC_ConfigurationInformation_specs_1 /* Additional specs */ -}; - diff --git a/src/hnbap/CriticalityDiagnostics-IE-List.c b/src/hnbap/CriticalityDiagnostics-IE-List.c deleted file mode 100644 index b3f48e8..0000000 --- a/src/hnbap/CriticalityDiagnostics-IE-List.c +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/CriticalityDiagnostics-IE-List.h> - -static asn_per_constraints_t asn_PER_type_CriticalityDiagnostics_IE_List_constr_1 GCC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 8, 8, 1l, 256l } /* (SIZE(1..256)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_Member_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct Member, iECriticality), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Criticality, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iECriticality" - }, - { ATF_NOFLAGS, 0, offsetof(struct Member, iE_ID), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_ProtocolIE_ID, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-ID" - }, - { ATF_NOFLAGS, 0, offsetof(struct Member, typeOfError), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_TypeOfError, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "typeOfError" - }, - { ATF_POINTER, 1, offsetof(struct Member, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_Member_oms_2[] = { 3 }; -static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* iECriticality */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* iE-ID */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* typeOfError */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = { - sizeof(struct Member), - offsetof(struct Member, _asn_ctx), - asn_MAP_Member_tag2el_2, - 4, /* Count of tags in the map */ - asn_MAP_Member_oms_2, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* Start extensions */ - 5 /* Stop extensions */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_Member_2 = { - "SEQUENCE", - "SEQUENCE", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_Member_tags_2, - sizeof(asn_DEF_Member_tags_2) - /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ - asn_DEF_Member_tags_2, /* Same as above */ - sizeof(asn_DEF_Member_tags_2) - /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_Member_2, - 4, /* Elements count */ - &asn_SPC_Member_specs_2 /* Additional specs */ -}; - -static asn_TYPE_member_t asn_MBR_CriticalityDiagnostics_IE_List_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_Member_2, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_CriticalityDiagnostics_IE_List_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_CriticalityDiagnostics_IE_List_specs_1 = { - sizeof(struct CriticalityDiagnostics_IE_List), - offsetof(struct CriticalityDiagnostics_IE_List, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_CriticalityDiagnostics_IE_List = { - "CriticalityDiagnostics-IE-List", - "CriticalityDiagnostics-IE-List", - SEQUENCE_OF_free, - SEQUENCE_OF_print, - SEQUENCE_OF_constraint, - SEQUENCE_OF_decode_ber, - SEQUENCE_OF_encode_der, - SEQUENCE_OF_decode_xer, - SEQUENCE_OF_encode_xer, - SEQUENCE_OF_decode_uper, - SEQUENCE_OF_encode_uper, - SEQUENCE_OF_decode_aper, - SEQUENCE_OF_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_CriticalityDiagnostics_IE_List_tags_1, - sizeof(asn_DEF_CriticalityDiagnostics_IE_List_tags_1) - /sizeof(asn_DEF_CriticalityDiagnostics_IE_List_tags_1[0]), /* 1 */ - asn_DEF_CriticalityDiagnostics_IE_List_tags_1, /* Same as above */ - sizeof(asn_DEF_CriticalityDiagnostics_IE_List_tags_1) - /sizeof(asn_DEF_CriticalityDiagnostics_IE_List_tags_1[0]), /* 1 */ - &asn_PER_type_CriticalityDiagnostics_IE_List_constr_1, - asn_MBR_CriticalityDiagnostics_IE_List_1, - 1, /* Single element */ - &asn_SPC_CriticalityDiagnostics_IE_List_specs_1 /* Additional specs */ -}; - diff --git a/src/hnbap/GeographicalLocation.c b/src/hnbap/GeographicalLocation.c deleted file mode 100644 index a151db9..0000000 --- a/src/hnbap/GeographicalLocation.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/GeographicalLocation.h> - -static asn_TYPE_member_t asn_MBR_GeographicalLocation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GeographicalLocation, geographicalCoordinates), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GeographicalCoordinates, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "geographicalCoordinates" - }, - { ATF_NOFLAGS, 0, offsetof(struct GeographicalLocation, altitudeAndDirection), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_AltitudeAndDirection, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "altitudeAndDirection" - }, - { ATF_POINTER, 1, offsetof(struct GeographicalLocation, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_GeographicalLocation_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_GeographicalLocation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_GeographicalLocation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* geographicalCoordinates */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* altitudeAndDirection */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_GeographicalLocation_specs_1 = { - sizeof(struct GeographicalLocation), - offsetof(struct GeographicalLocation, _asn_ctx), - asn_MAP_GeographicalLocation_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_GeographicalLocation_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* Start extensions */ - 4 /* Stop extensions */ -}; -asn_TYPE_descriptor_t asn_DEF_GeographicalLocation = { - "GeographicalLocation", - "GeographicalLocation", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_GeographicalLocation_tags_1, - sizeof(asn_DEF_GeographicalLocation_tags_1) - /sizeof(asn_DEF_GeographicalLocation_tags_1[0]), /* 1 */ - asn_DEF_GeographicalLocation_tags_1, /* Same as above */ - sizeof(asn_DEF_GeographicalLocation_tags_1) - /sizeof(asn_DEF_GeographicalLocation_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_GeographicalLocation_1, - 3, /* Elements count */ - &asn_SPC_GeographicalLocation_specs_1 /* Additional specs */ -}; - diff --git a/src/hnbap/HNB-Cell-Identifier.c b/src/hnbap/HNB-Cell-Identifier.c deleted file mode 100644 index 20a4e5e..0000000 --- a/src/hnbap/HNB-Cell-Identifier.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/HNB-Cell-Identifier.h> - -static asn_TYPE_member_t asn_MBR_HNB_Cell_Identifier_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HNB_Cell_Identifier, pLMNidentity), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PLMNidentity, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "pLMNidentity" - }, - { ATF_NOFLAGS, 0, offsetof(struct HNB_Cell_Identifier, cellIdentity), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CellIdentity, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "cellIdentity" - }, - { ATF_POINTER, 1, offsetof(struct HNB_Cell_Identifier, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_HNB_Cell_Identifier_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_HNB_Cell_Identifier_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_HNB_Cell_Identifier_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pLMNidentity */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellIdentity */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_HNB_Cell_Identifier_specs_1 = { - sizeof(struct HNB_Cell_Identifier), - offsetof(struct HNB_Cell_Identifier, _asn_ctx), - asn_MAP_HNB_Cell_Identifier_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_HNB_Cell_Identifier_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* Start extensions */ - 4 /* Stop extensions */ -}; -asn_TYPE_descriptor_t asn_DEF_HNB_Cell_Identifier = { - "HNB-Cell-Identifier", - "HNB-Cell-Identifier", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_HNB_Cell_Identifier_tags_1, - sizeof(asn_DEF_HNB_Cell_Identifier_tags_1) - /sizeof(asn_DEF_HNB_Cell_Identifier_tags_1[0]), /* 1 */ - asn_DEF_HNB_Cell_Identifier_tags_1, /* Same as above */ - sizeof(asn_DEF_HNB_Cell_Identifier_tags_1) - /sizeof(asn_DEF_HNB_Cell_Identifier_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_HNB_Cell_Identifier_1, - 3, /* Elements count */ - &asn_SPC_HNB_Cell_Identifier_specs_1 /* Additional specs */ -}; - diff --git a/src/hnbap/HNB-Identity.c b/src/hnbap/HNB-Identity.c deleted file mode 100644 index a442f1a..0000000 --- a/src/hnbap/HNB-Identity.c +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/HNB-Identity.h> - -static asn_TYPE_member_t asn_MBR_HNB_Identity_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HNB_Identity, hNB_Identity_Info), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HNB_Identity_Info, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "hNB-Identity-Info" - }, - { ATF_POINTER, 1, offsetof(struct HNB_Identity, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_HNB_Identity_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_HNB_Identity_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_HNB_Identity_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* hNB-Identity-Info */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_HNB_Identity_specs_1 = { - sizeof(struct HNB_Identity), - offsetof(struct HNB_Identity, _asn_ctx), - asn_MAP_HNB_Identity_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_HNB_Identity_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* Start extensions */ - 3 /* Stop extensions */ -}; -asn_TYPE_descriptor_t asn_DEF_HNB_Identity = { - "HNB-Identity", - "HNB-Identity", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_HNB_Identity_tags_1, - sizeof(asn_DEF_HNB_Identity_tags_1) - /sizeof(asn_DEF_HNB_Identity_tags_1[0]), /* 1 */ - asn_DEF_HNB_Identity_tags_1, /* Same as above */ - sizeof(asn_DEF_HNB_Identity_tags_1) - /sizeof(asn_DEF_HNB_Identity_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_HNB_Identity_1, - 2, /* Elements count */ - &asn_SPC_HNB_Identity_specs_1 /* Additional specs */ -}; - diff --git a/src/hnbap/HNB-Location-Information.c b/src/hnbap/HNB-Location-Information.c deleted file mode 100644 index eba9787..0000000 --- a/src/hnbap/HNB-Location-Information.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/HNB-Location-Information.h> - -static asn_TYPE_member_t asn_MBR_HNB_Location_Information_1[] = { - { ATF_POINTER, 3, offsetof(struct HNB_Location_Information, macroCoverageInfo), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_MacroCoverageInformation, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "macroCoverageInfo" - }, - { ATF_POINTER, 2, offsetof(struct HNB_Location_Information, geographicalCoordinates), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_GeographicalLocation, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "geographicalCoordinates" - }, - { ATF_POINTER, 1, offsetof(struct HNB_Location_Information, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_HNB_Location_Information_oms_1[] = { 0, 1, 2 }; -static const ber_tlv_tag_t asn_DEF_HNB_Location_Information_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_HNB_Location_Information_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* macroCoverageInfo */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* geographicalCoordinates */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_HNB_Location_Information_specs_1 = { - sizeof(struct HNB_Location_Information), - offsetof(struct HNB_Location_Information, _asn_ctx), - asn_MAP_HNB_Location_Information_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_HNB_Location_Information_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 2, /* Start extensions */ - 4 /* Stop extensions */ -}; -asn_TYPE_descriptor_t asn_DEF_HNB_Location_Information = { - "HNB-Location-Information", - "HNB-Location-Information", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_HNB_Location_Information_tags_1, - sizeof(asn_DEF_HNB_Location_Information_tags_1) - /sizeof(asn_DEF_HNB_Location_Information_tags_1[0]), /* 1 */ - asn_DEF_HNB_Location_Information_tags_1, /* Same as above */ - sizeof(asn_DEF_HNB_Location_Information_tags_1) - /sizeof(asn_DEF_HNB_Location_Information_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_HNB_Location_Information_1, - 3, /* Elements count */ - &asn_SPC_HNB_Location_Information_specs_1 /* Additional specs */ -}; - diff --git a/src/hnbap/HNBAP_Access-stratum-release-indicator.c b/src/hnbap/HNBAP_Access-stratum-release-indicator.c new file mode 100644 index 0000000..747b8d5 --- /dev/null +++ b/src/hnbap/HNBAP_Access-stratum-release-indicator.c @@ -0,0 +1,176 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_Access-stratum-release-indicator.h> + +int +HNBAP_Access_stratum_release_indicator_constraint(asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + /* Replace with underlying type checker */ + td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; + return td->check_constraints(td, sptr, ctfailcb, app_key); +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static void +HNBAP_Access_stratum_release_indicator_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { + td->free_struct = asn_DEF_NativeEnumerated.free_struct; + td->print_struct = asn_DEF_NativeEnumerated.print_struct; + td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; + td->ber_decoder = asn_DEF_NativeEnumerated.ber_decoder; + td->der_encoder = asn_DEF_NativeEnumerated.der_encoder; + td->xer_decoder = asn_DEF_NativeEnumerated.xer_decoder; + td->xer_encoder = asn_DEF_NativeEnumerated.xer_encoder; + td->uper_decoder = asn_DEF_NativeEnumerated.uper_decoder; + td->uper_encoder = asn_DEF_NativeEnumerated.uper_encoder; + td->aper_decoder = asn_DEF_NativeEnumerated.aper_decoder; + td->aper_encoder = asn_DEF_NativeEnumerated.aper_encoder; + if(!td->per_constraints) + td->per_constraints = asn_DEF_NativeEnumerated.per_constraints; + td->elements = asn_DEF_NativeEnumerated.elements; + td->elements_count = asn_DEF_NativeEnumerated.elements_count; + /* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */ +} + +void +HNBAP_Access_stratum_release_indicator_free(asn_TYPE_descriptor_t *td, + void *struct_ptr, int contents_only) { + HNBAP_Access_stratum_release_indicator_1_inherit_TYPE_descriptor(td); + td->free_struct(td, struct_ptr, contents_only); +} + +int +HNBAP_Access_stratum_release_indicator_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, + int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { + HNBAP_Access_stratum_release_indicator_1_inherit_TYPE_descriptor(td); + return td->print_struct(td, struct_ptr, ilevel, cb, app_key); +} + +asn_dec_rval_t +HNBAP_Access_stratum_release_indicator_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, + void **structure, const void *bufptr, size_t size, int tag_mode) { + HNBAP_Access_stratum_release_indicator_1_inherit_TYPE_descriptor(td); + return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); +} + +asn_enc_rval_t +HNBAP_Access_stratum_release_indicator_encode_der(asn_TYPE_descriptor_t *td, + void *structure, int tag_mode, ber_tlv_tag_t tag, + asn_app_consume_bytes_f *cb, void *app_key) { + HNBAP_Access_stratum_release_indicator_1_inherit_TYPE_descriptor(td); + return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); +} + +asn_dec_rval_t +HNBAP_Access_stratum_release_indicator_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, + void **structure, const char *opt_mname, const void *bufptr, size_t size) { + HNBAP_Access_stratum_release_indicator_1_inherit_TYPE_descriptor(td); + return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); +} + +asn_enc_rval_t +HNBAP_Access_stratum_release_indicator_encode_xer(asn_TYPE_descriptor_t *td, void *structure, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + HNBAP_Access_stratum_release_indicator_1_inherit_TYPE_descriptor(td); + return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); +} + +asn_dec_rval_t +HNBAP_Access_stratum_release_indicator_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, + asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { + HNBAP_Access_stratum_release_indicator_1_inherit_TYPE_descriptor(td); + return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); +} + +asn_enc_rval_t +HNBAP_Access_stratum_release_indicator_encode_uper(asn_TYPE_descriptor_t *td, + asn_per_constraints_t *constraints, + void *structure, asn_per_outp_t *per_out) { + HNBAP_Access_stratum_release_indicator_1_inherit_TYPE_descriptor(td); + return td->uper_encoder(td, constraints, structure, per_out); +} + +asn_enc_rval_t +HNBAP_Access_stratum_release_indicator_encode_aper(asn_TYPE_descriptor_t *td, + asn_per_constraints_t *constraints, + void *structure, asn_per_outp_t *per_out) { + HNBAP_Access_stratum_release_indicator_1_inherit_TYPE_descriptor(td); + return td->aper_encoder(td, constraints, structure, per_out); +} + +asn_dec_rval_t +HNBAP_Access_stratum_release_indicator_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, + asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { + HNBAP_Access_stratum_release_indicator_1_inherit_TYPE_descriptor(td); + return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); +} + +static asn_per_constraints_t asn_PER_type_HNBAP_Access_stratum_release_indicator_constr_1 GCC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0l, 5l } /* (0..5,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +static const asn_INTEGER_enum_map_t asn_MAP_HNBAP_Access_stratum_release_indicator_value2enum_1[] = { + { 0, 3, "r99" }, + { 1, 5, "rel-4" }, + { 2, 5, "rel-5" }, + { 3, 5, "rel-6" }, + { 4, 5, "rel-7" }, + { 5, 16, "rel-8-and-beyond" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_HNBAP_Access_stratum_release_indicator_enum2value_1[] = { + 0, /* r99(0) */ + 1, /* rel-4(1) */ + 2, /* rel-5(2) */ + 3, /* rel-6(3) */ + 4, /* rel-7(4) */ + 5 /* rel-8-and-beyond(5) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_HNBAP_Access_stratum_release_indicator_specs_1 = { + asn_MAP_HNBAP_Access_stratum_release_indicator_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_HNBAP_Access_stratum_release_indicator_enum2value_1, /* N => "tag"; sorted by N */ + 6, /* Number of elements in the maps */ + 7, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_HNBAP_Access_stratum_release_indicator_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_Access_stratum_release_indicator = { + "HNBAP_Access-stratum-release-indicator", + "HNBAP_Access-stratum-release-indicator", + HNBAP_Access_stratum_release_indicator_free, + HNBAP_Access_stratum_release_indicator_print, + HNBAP_Access_stratum_release_indicator_constraint, + HNBAP_Access_stratum_release_indicator_decode_ber, + HNBAP_Access_stratum_release_indicator_encode_der, + HNBAP_Access_stratum_release_indicator_decode_xer, + HNBAP_Access_stratum_release_indicator_encode_xer, + HNBAP_Access_stratum_release_indicator_decode_uper, + HNBAP_Access_stratum_release_indicator_encode_uper, + HNBAP_Access_stratum_release_indicator_decode_aper, + HNBAP_Access_stratum_release_indicator_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_Access_stratum_release_indicator_tags_1, + sizeof(asn_DEF_HNBAP_Access_stratum_release_indicator_tags_1) + /sizeof(asn_DEF_HNBAP_Access_stratum_release_indicator_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_Access_stratum_release_indicator_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_Access_stratum_release_indicator_tags_1) + /sizeof(asn_DEF_HNBAP_Access_stratum_release_indicator_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_Access_stratum_release_indicator_constr_1, + 0, 0, /* Defined elsewhere */ + &asn_SPC_HNBAP_Access_stratum_release_indicator_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/Registration-Cause.c b/src/hnbap/HNBAP_AccessResult.c index 6b05441..d473c46 100644 --- a/src/hnbap/Registration-Cause.c +++ b/src/hnbap/HNBAP_AccessResult.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/Registration-Cause.h> +#include <osmocom/hnbap/HNBAP_AccessResult.h> int -Registration_Cause_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_AccessResult_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { /* Replace with underlying type checker */ td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -20,7 +20,7 @@ Registration_Cause_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -Registration_Cause_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_AccessResult_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeEnumerated.free_struct; td->print_struct = asn_DEF_NativeEnumerated.print_struct; td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -40,131 +40,129 @@ Registration_Cause_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -Registration_Cause_free(asn_TYPE_descriptor_t *td, +HNBAP_AccessResult_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - Registration_Cause_1_inherit_TYPE_descriptor(td); + HNBAP_AccessResult_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -Registration_Cause_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_AccessResult_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - Registration_Cause_1_inherit_TYPE_descriptor(td); + HNBAP_AccessResult_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -Registration_Cause_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_AccessResult_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - Registration_Cause_1_inherit_TYPE_descriptor(td); + HNBAP_AccessResult_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -Registration_Cause_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_AccessResult_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - Registration_Cause_1_inherit_TYPE_descriptor(td); + HNBAP_AccessResult_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -Registration_Cause_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_AccessResult_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - Registration_Cause_1_inherit_TYPE_descriptor(td); + HNBAP_AccessResult_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -Registration_Cause_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_AccessResult_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - Registration_Cause_1_inherit_TYPE_descriptor(td); + HNBAP_AccessResult_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -Registration_Cause_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_AccessResult_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - Registration_Cause_1_inherit_TYPE_descriptor(td); + HNBAP_AccessResult_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -Registration_Cause_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_AccessResult_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - Registration_Cause_1_inherit_TYPE_descriptor(td); + HNBAP_AccessResult_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -Registration_Cause_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_AccessResult_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - Registration_Cause_1_inherit_TYPE_descriptor(td); + HNBAP_AccessResult_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -Registration_Cause_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_AccessResult_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - Registration_Cause_1_inherit_TYPE_descriptor(td); + HNBAP_AccessResult_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_Registration_Cause_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_AccessResult_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0l, 1l } /* (0..1,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const asn_INTEGER_enum_map_t asn_MAP_Registration_Cause_value2enum_1[] = { - { 0, 14, "emergency-call" }, - { 1, 6, "normal" }, - { 2, 13, "ue-relocation" } +static const asn_INTEGER_enum_map_t asn_MAP_HNBAP_AccessResult_value2enum_1[] = { + { 0, 7, "allowed" }, + { 1, 10, "notAllowed" } /* This list is extensible */ }; -static const unsigned int asn_MAP_Registration_Cause_enum2value_1[] = { - 0, /* emergency-call(0) */ - 1, /* normal(1) */ - 2 /* ue-relocation(2) */ +static const unsigned int asn_MAP_HNBAP_AccessResult_enum2value_1[] = { + 0, /* allowed(0) */ + 1 /* notAllowed(1) */ /* This list is extensible */ }; -static const asn_INTEGER_specifics_t asn_SPC_Registration_Cause_specs_1 = { - asn_MAP_Registration_Cause_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_Registration_Cause_enum2value_1, /* N => "tag"; sorted by N */ - 3, /* Number of elements in the maps */ +static const asn_INTEGER_specifics_t asn_SPC_HNBAP_AccessResult_specs_1 = { + asn_MAP_HNBAP_AccessResult_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_HNBAP_AccessResult_enum2value_1, /* N => "tag"; sorted by N */ + 2, /* Number of elements in the maps */ 3, /* Extensions before this member */ 1, /* Strict enumeration */ 0, /* Native long size */ 0 }; -static const ber_tlv_tag_t asn_DEF_Registration_Cause_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_AccessResult_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_Registration_Cause = { - "Registration-Cause", - "Registration-Cause", - Registration_Cause_free, - Registration_Cause_print, - Registration_Cause_constraint, - Registration_Cause_decode_ber, - Registration_Cause_encode_der, - Registration_Cause_decode_xer, - Registration_Cause_encode_xer, - Registration_Cause_decode_uper, - Registration_Cause_encode_uper, - Registration_Cause_decode_aper, - Registration_Cause_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_AccessResult = { + "HNBAP_AccessResult", + "HNBAP_AccessResult", + HNBAP_AccessResult_free, + HNBAP_AccessResult_print, + HNBAP_AccessResult_constraint, + HNBAP_AccessResult_decode_ber, + HNBAP_AccessResult_encode_der, + HNBAP_AccessResult_decode_xer, + HNBAP_AccessResult_encode_xer, + HNBAP_AccessResult_decode_uper, + HNBAP_AccessResult_encode_uper, + HNBAP_AccessResult_decode_aper, + HNBAP_AccessResult_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_Registration_Cause_tags_1, - sizeof(asn_DEF_Registration_Cause_tags_1) - /sizeof(asn_DEF_Registration_Cause_tags_1[0]), /* 1 */ - asn_DEF_Registration_Cause_tags_1, /* Same as above */ - sizeof(asn_DEF_Registration_Cause_tags_1) - /sizeof(asn_DEF_Registration_Cause_tags_1[0]), /* 1 */ - &asn_PER_type_Registration_Cause_constr_1, + asn_DEF_HNBAP_AccessResult_tags_1, + sizeof(asn_DEF_HNBAP_AccessResult_tags_1) + /sizeof(asn_DEF_HNBAP_AccessResult_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_AccessResult_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_AccessResult_tags_1) + /sizeof(asn_DEF_HNBAP_AccessResult_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_AccessResult_constr_1, 0, 0, /* Defined elsewhere */ - &asn_SPC_Registration_Cause_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_AccessResult_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/HNBAP_AdditionalNeighbourInfoList.c b/src/hnbap/HNBAP_AdditionalNeighbourInfoList.c new file mode 100644 index 0000000..337fbdb --- /dev/null +++ b/src/hnbap/HNBAP_AdditionalNeighbourInfoList.c @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_AdditionalNeighbourInfoList.h> + +static asn_per_constraints_t asn_PER_type_HNBAP_AdditionalNeighbourInfoList_constr_1 GCC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 7, 7, 1l, 128l } /* (SIZE(1..128)) */, + 0, 0 /* No PER value map */ +}; +static asn_TYPE_member_t asn_MBR_HNBAP_AdditionalNeighbourInfoList_1[] = { + { ATF_POINTER, 0, 0, + -1 /* Ambiguous tag (CHOICE?) */, + 0, + &asn_DEF_HNBAP_HNBConfigInfo, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_HNBAP_AdditionalNeighbourInfoList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_HNBAP_AdditionalNeighbourInfoList_specs_1 = { + sizeof(struct HNBAP_AdditionalNeighbourInfoList), + offsetof(struct HNBAP_AdditionalNeighbourInfoList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_AdditionalNeighbourInfoList = { + "HNBAP_AdditionalNeighbourInfoList", + "HNBAP_AdditionalNeighbourInfoList", + SEQUENCE_OF_free, + SEQUENCE_OF_print, + SEQUENCE_OF_constraint, + SEQUENCE_OF_decode_ber, + SEQUENCE_OF_encode_der, + SEQUENCE_OF_decode_xer, + SEQUENCE_OF_encode_xer, + SEQUENCE_OF_decode_uper, + SEQUENCE_OF_encode_uper, + SEQUENCE_OF_decode_aper, + SEQUENCE_OF_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_AdditionalNeighbourInfoList_tags_1, + sizeof(asn_DEF_HNBAP_AdditionalNeighbourInfoList_tags_1) + /sizeof(asn_DEF_HNBAP_AdditionalNeighbourInfoList_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_AdditionalNeighbourInfoList_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_AdditionalNeighbourInfoList_tags_1) + /sizeof(asn_DEF_HNBAP_AdditionalNeighbourInfoList_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_AdditionalNeighbourInfoList_constr_1, + asn_MBR_HNBAP_AdditionalNeighbourInfoList_1, + 1, /* Single element */ + &asn_SPC_HNBAP_AdditionalNeighbourInfoList_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/AltitudeAndDirection.c b/src/hnbap/HNBAP_AltitudeAndDirection.c index afc4f6e..893838b 100644 --- a/src/hnbap/AltitudeAndDirection.c +++ b/src/hnbap/HNBAP_AltitudeAndDirection.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/AltitudeAndDirection.h> +#include <osmocom/hnbap/HNBAP_AltitudeAndDirection.h> static int directionOfAltitude_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr, @@ -196,8 +196,8 @@ asn_TYPE_descriptor_t asn_DEF_directionOfAltitude_2 = { &asn_SPC_directionOfAltitude_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_AltitudeAndDirection_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct AltitudeAndDirection, directionOfAltitude), +static asn_TYPE_member_t asn_MBR_HNBAP_AltitudeAndDirection_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_AltitudeAndDirection, directionOfAltitude), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_directionOfAltitude_2, @@ -206,7 +206,7 @@ static asn_TYPE_member_t asn_MBR_AltitudeAndDirection_1[] = { 0, "directionOfAltitude" }, - { ATF_NOFLAGS, 0, offsetof(struct AltitudeAndDirection, altitude), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_AltitudeAndDirection, altitude), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_NativeInteger, @@ -216,25 +216,25 @@ static asn_TYPE_member_t asn_MBR_AltitudeAndDirection_1[] = { "altitude" }, }; -static const ber_tlv_tag_t asn_DEF_AltitudeAndDirection_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_AltitudeAndDirection_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_AltitudeAndDirection_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_AltitudeAndDirection_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* directionOfAltitude */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* altitude */ }; -static asn_SEQUENCE_specifics_t asn_SPC_AltitudeAndDirection_specs_1 = { - sizeof(struct AltitudeAndDirection), - offsetof(struct AltitudeAndDirection, _asn_ctx), - asn_MAP_AltitudeAndDirection_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_AltitudeAndDirection_specs_1 = { + sizeof(struct HNBAP_AltitudeAndDirection), + offsetof(struct HNBAP_AltitudeAndDirection, _asn_ctx), + asn_MAP_HNBAP_AltitudeAndDirection_tag2el_1, 2, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 1, /* Start extensions */ 3 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_AltitudeAndDirection = { - "AltitudeAndDirection", - "AltitudeAndDirection", +asn_TYPE_descriptor_t asn_DEF_HNBAP_AltitudeAndDirection = { + "HNBAP_AltitudeAndDirection", + "HNBAP_AltitudeAndDirection", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -247,15 +247,15 @@ asn_TYPE_descriptor_t asn_DEF_AltitudeAndDirection = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_AltitudeAndDirection_tags_1, - sizeof(asn_DEF_AltitudeAndDirection_tags_1) - /sizeof(asn_DEF_AltitudeAndDirection_tags_1[0]), /* 1 */ - asn_DEF_AltitudeAndDirection_tags_1, /* Same as above */ - sizeof(asn_DEF_AltitudeAndDirection_tags_1) - /sizeof(asn_DEF_AltitudeAndDirection_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_AltitudeAndDirection_tags_1, + sizeof(asn_DEF_HNBAP_AltitudeAndDirection_tags_1) + /sizeof(asn_DEF_HNBAP_AltitudeAndDirection_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_AltitudeAndDirection_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_AltitudeAndDirection_tags_1) + /sizeof(asn_DEF_HNBAP_AltitudeAndDirection_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_AltitudeAndDirection_1, + asn_MBR_HNBAP_AltitudeAndDirection_1, 2, /* Elements count */ - &asn_SPC_AltitudeAndDirection_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_AltitudeAndDirection_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/BackoffTimer.c b/src/hnbap/HNBAP_BackoffTimer.c index 81f0b56..2e72a5e 100644 --- a/src/hnbap/BackoffTimer.c +++ b/src/hnbap/HNBAP_BackoffTimer.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/BackoffTimer.h> +#include <osmocom/hnbap/HNBAP_BackoffTimer.h> int -BackoffTimer_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_BackoffTimer_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { long value; @@ -37,7 +37,7 @@ BackoffTimer_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -BackoffTimer_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_BackoffTimer_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeInteger.free_struct; td->print_struct = asn_DEF_NativeInteger.print_struct; td->check_constraints = asn_DEF_NativeInteger.check_constraints; @@ -57,109 +57,109 @@ BackoffTimer_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -BackoffTimer_free(asn_TYPE_descriptor_t *td, +HNBAP_BackoffTimer_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - BackoffTimer_1_inherit_TYPE_descriptor(td); + HNBAP_BackoffTimer_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -BackoffTimer_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_BackoffTimer_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - BackoffTimer_1_inherit_TYPE_descriptor(td); + HNBAP_BackoffTimer_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -BackoffTimer_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_BackoffTimer_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - BackoffTimer_1_inherit_TYPE_descriptor(td); + HNBAP_BackoffTimer_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -BackoffTimer_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_BackoffTimer_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - BackoffTimer_1_inherit_TYPE_descriptor(td); + HNBAP_BackoffTimer_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -BackoffTimer_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_BackoffTimer_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - BackoffTimer_1_inherit_TYPE_descriptor(td); + HNBAP_BackoffTimer_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -BackoffTimer_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_BackoffTimer_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - BackoffTimer_1_inherit_TYPE_descriptor(td); + HNBAP_BackoffTimer_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -BackoffTimer_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_BackoffTimer_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - BackoffTimer_1_inherit_TYPE_descriptor(td); + HNBAP_BackoffTimer_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -BackoffTimer_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_BackoffTimer_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - BackoffTimer_1_inherit_TYPE_descriptor(td); + HNBAP_BackoffTimer_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -BackoffTimer_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_BackoffTimer_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - BackoffTimer_1_inherit_TYPE_descriptor(td); + HNBAP_BackoffTimer_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -BackoffTimer_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_BackoffTimer_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - BackoffTimer_1_inherit_TYPE_descriptor(td); + HNBAP_BackoffTimer_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_BackoffTimer_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_BackoffTimer_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED, 12, 12, 0l, 3600l } /* (0..3600) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_BackoffTimer_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_BackoffTimer_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_BackoffTimer = { - "BackoffTimer", - "BackoffTimer", - BackoffTimer_free, - BackoffTimer_print, - BackoffTimer_constraint, - BackoffTimer_decode_ber, - BackoffTimer_encode_der, - BackoffTimer_decode_xer, - BackoffTimer_encode_xer, - BackoffTimer_decode_uper, - BackoffTimer_encode_uper, - BackoffTimer_decode_aper, - BackoffTimer_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_BackoffTimer = { + "HNBAP_BackoffTimer", + "HNBAP_BackoffTimer", + HNBAP_BackoffTimer_free, + HNBAP_BackoffTimer_print, + HNBAP_BackoffTimer_constraint, + HNBAP_BackoffTimer_decode_ber, + HNBAP_BackoffTimer_encode_der, + HNBAP_BackoffTimer_decode_xer, + HNBAP_BackoffTimer_encode_xer, + HNBAP_BackoffTimer_decode_uper, + HNBAP_BackoffTimer_encode_uper, + HNBAP_BackoffTimer_decode_aper, + HNBAP_BackoffTimer_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_BackoffTimer_tags_1, - sizeof(asn_DEF_BackoffTimer_tags_1) - /sizeof(asn_DEF_BackoffTimer_tags_1[0]), /* 1 */ - asn_DEF_BackoffTimer_tags_1, /* Same as above */ - sizeof(asn_DEF_BackoffTimer_tags_1) - /sizeof(asn_DEF_BackoffTimer_tags_1[0]), /* 1 */ - &asn_PER_type_BackoffTimer_constr_1, + asn_DEF_HNBAP_BackoffTimer_tags_1, + sizeof(asn_DEF_HNBAP_BackoffTimer_tags_1) + /sizeof(asn_DEF_HNBAP_BackoffTimer_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_BackoffTimer_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_BackoffTimer_tags_1) + /sizeof(asn_DEF_HNBAP_BackoffTimer_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_BackoffTimer_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/UDP-Port-Number.c b/src/hnbap/HNBAP_BindingID.c index 45a75bf..39137d1 100644 --- a/src/hnbap/UDP-Port-Number.c +++ b/src/hnbap/HNBAP_BindingID.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/UDP-Port-Number.h> +#include <osmocom/hnbap/HNBAP_BindingID.h> int -UDP_Port_Number_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_BindingID_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; size_t size; @@ -22,7 +22,7 @@ UDP_Port_Number_constraint(asn_TYPE_descriptor_t *td, const void *sptr, size = st->size; - if((size == 2l)) { + if((size >= 1l && size <= 4l)) { /* Constraint check succeeded */ return 0; } else { @@ -38,7 +38,7 @@ UDP_Port_Number_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -UDP_Port_Number_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_BindingID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_OCTET_STRING.free_struct; td->print_struct = asn_DEF_OCTET_STRING.print_struct; td->check_constraints = asn_DEF_OCTET_STRING.check_constraints; @@ -58,109 +58,109 @@ UDP_Port_Number_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -UDP_Port_Number_free(asn_TYPE_descriptor_t *td, +HNBAP_BindingID_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - UDP_Port_Number_1_inherit_TYPE_descriptor(td); + HNBAP_BindingID_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -UDP_Port_Number_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_BindingID_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - UDP_Port_Number_1_inherit_TYPE_descriptor(td); + HNBAP_BindingID_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -UDP_Port_Number_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_BindingID_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - UDP_Port_Number_1_inherit_TYPE_descriptor(td); + HNBAP_BindingID_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -UDP_Port_Number_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_BindingID_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - UDP_Port_Number_1_inherit_TYPE_descriptor(td); + HNBAP_BindingID_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -UDP_Port_Number_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_BindingID_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - UDP_Port_Number_1_inherit_TYPE_descriptor(td); + HNBAP_BindingID_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -UDP_Port_Number_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_BindingID_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - UDP_Port_Number_1_inherit_TYPE_descriptor(td); + HNBAP_BindingID_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -UDP_Port_Number_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_BindingID_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - UDP_Port_Number_1_inherit_TYPE_descriptor(td); + HNBAP_BindingID_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -UDP_Port_Number_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_BindingID_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - UDP_Port_Number_1_inherit_TYPE_descriptor(td); + HNBAP_BindingID_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -UDP_Port_Number_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_BindingID_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - UDP_Port_Number_1_inherit_TYPE_descriptor(td); + HNBAP_BindingID_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -UDP_Port_Number_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_BindingID_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - UDP_Port_Number_1_inherit_TYPE_descriptor(td); + HNBAP_BindingID_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_UDP_Port_Number_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_BindingID_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 2l, 2l } /* (SIZE(2..2)) */, + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 1l, 4l } /* (SIZE(1..4,...)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_UDP_Port_Number_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_BindingID_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_UDP_Port_Number = { - "UDP-Port-Number", - "UDP-Port-Number", - UDP_Port_Number_free, - UDP_Port_Number_print, - UDP_Port_Number_constraint, - UDP_Port_Number_decode_ber, - UDP_Port_Number_encode_der, - UDP_Port_Number_decode_xer, - UDP_Port_Number_encode_xer, - UDP_Port_Number_decode_uper, - UDP_Port_Number_encode_uper, - UDP_Port_Number_decode_aper, - UDP_Port_Number_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_BindingID = { + "HNBAP_BindingID", + "HNBAP_BindingID", + HNBAP_BindingID_free, + HNBAP_BindingID_print, + HNBAP_BindingID_constraint, + HNBAP_BindingID_decode_ber, + HNBAP_BindingID_encode_der, + HNBAP_BindingID_decode_xer, + HNBAP_BindingID_encode_xer, + HNBAP_BindingID_decode_uper, + HNBAP_BindingID_encode_uper, + HNBAP_BindingID_decode_aper, + HNBAP_BindingID_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_UDP_Port_Number_tags_1, - sizeof(asn_DEF_UDP_Port_Number_tags_1) - /sizeof(asn_DEF_UDP_Port_Number_tags_1[0]), /* 1 */ - asn_DEF_UDP_Port_Number_tags_1, /* Same as above */ - sizeof(asn_DEF_UDP_Port_Number_tags_1) - /sizeof(asn_DEF_UDP_Port_Number_tags_1[0]), /* 1 */ - &asn_PER_type_UDP_Port_Number_constr_1, + asn_DEF_HNBAP_BindingID_tags_1, + sizeof(asn_DEF_HNBAP_BindingID_tags_1) + /sizeof(asn_DEF_HNBAP_BindingID_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_BindingID_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_BindingID_tags_1) + /sizeof(asn_DEF_HNBAP_BindingID_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_BindingID_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/HNBAP_CELL-FACHMobilitySupport.c b/src/hnbap/HNBAP_CELL-FACHMobilitySupport.c new file mode 100644 index 0000000..7707cd1 --- /dev/null +++ b/src/hnbap/HNBAP_CELL-FACHMobilitySupport.c @@ -0,0 +1,166 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_CELL-FACHMobilitySupport.h> + +int +HNBAP_CELL_FACHMobilitySupport_constraint(asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + /* Replace with underlying type checker */ + td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; + return td->check_constraints(td, sptr, ctfailcb, app_key); +} + +/* + * This type is implemented using NativeEnumerated, + * so here we adjust the DEF accordingly. + */ +static void +HNBAP_CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { + td->free_struct = asn_DEF_NativeEnumerated.free_struct; + td->print_struct = asn_DEF_NativeEnumerated.print_struct; + td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; + td->ber_decoder = asn_DEF_NativeEnumerated.ber_decoder; + td->der_encoder = asn_DEF_NativeEnumerated.der_encoder; + td->xer_decoder = asn_DEF_NativeEnumerated.xer_decoder; + td->xer_encoder = asn_DEF_NativeEnumerated.xer_encoder; + td->uper_decoder = asn_DEF_NativeEnumerated.uper_decoder; + td->uper_encoder = asn_DEF_NativeEnumerated.uper_encoder; + td->aper_decoder = asn_DEF_NativeEnumerated.aper_decoder; + td->aper_encoder = asn_DEF_NativeEnumerated.aper_encoder; + if(!td->per_constraints) + td->per_constraints = asn_DEF_NativeEnumerated.per_constraints; + td->elements = asn_DEF_NativeEnumerated.elements; + td->elements_count = asn_DEF_NativeEnumerated.elements_count; + /* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */ +} + +void +HNBAP_CELL_FACHMobilitySupport_free(asn_TYPE_descriptor_t *td, + void *struct_ptr, int contents_only) { + HNBAP_CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(td); + td->free_struct(td, struct_ptr, contents_only); +} + +int +HNBAP_CELL_FACHMobilitySupport_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, + int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { + HNBAP_CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(td); + return td->print_struct(td, struct_ptr, ilevel, cb, app_key); +} + +asn_dec_rval_t +HNBAP_CELL_FACHMobilitySupport_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, + void **structure, const void *bufptr, size_t size, int tag_mode) { + HNBAP_CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(td); + return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); +} + +asn_enc_rval_t +HNBAP_CELL_FACHMobilitySupport_encode_der(asn_TYPE_descriptor_t *td, + void *structure, int tag_mode, ber_tlv_tag_t tag, + asn_app_consume_bytes_f *cb, void *app_key) { + HNBAP_CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(td); + return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); +} + +asn_dec_rval_t +HNBAP_CELL_FACHMobilitySupport_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, + void **structure, const char *opt_mname, const void *bufptr, size_t size) { + HNBAP_CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(td); + return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); +} + +asn_enc_rval_t +HNBAP_CELL_FACHMobilitySupport_encode_xer(asn_TYPE_descriptor_t *td, void *structure, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + HNBAP_CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(td); + return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); +} + +asn_dec_rval_t +HNBAP_CELL_FACHMobilitySupport_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, + asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { + HNBAP_CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(td); + return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); +} + +asn_enc_rval_t +HNBAP_CELL_FACHMobilitySupport_encode_uper(asn_TYPE_descriptor_t *td, + asn_per_constraints_t *constraints, + void *structure, asn_per_outp_t *per_out) { + HNBAP_CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(td); + return td->uper_encoder(td, constraints, structure, per_out); +} + +asn_enc_rval_t +HNBAP_CELL_FACHMobilitySupport_encode_aper(asn_TYPE_descriptor_t *td, + asn_per_constraints_t *constraints, + void *structure, asn_per_outp_t *per_out) { + HNBAP_CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(td); + return td->aper_encoder(td, constraints, structure, per_out); +} + +asn_dec_rval_t +HNBAP_CELL_FACHMobilitySupport_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, + asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { + HNBAP_CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(td); + return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); +} + +static asn_per_constraints_t asn_PER_type_HNBAP_CELL_FACHMobilitySupport_constr_1 GCC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0l, 0l } /* (0..0,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +static const asn_INTEGER_enum_map_t asn_MAP_HNBAP_CELL_FACHMobilitySupport_value2enum_1[] = { + { 0, 9, "supported" } + /* This list is extensible */ +}; +static const unsigned int asn_MAP_HNBAP_CELL_FACHMobilitySupport_enum2value_1[] = { + 0 /* supported(0) */ + /* This list is extensible */ +}; +static const asn_INTEGER_specifics_t asn_SPC_HNBAP_CELL_FACHMobilitySupport_specs_1 = { + asn_MAP_HNBAP_CELL_FACHMobilitySupport_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_HNBAP_CELL_FACHMobilitySupport_enum2value_1, /* N => "tag"; sorted by N */ + 1, /* Number of elements in the maps */ + 2, /* Extensions before this member */ + 1, /* Strict enumeration */ + 0, /* Native long size */ + 0 +}; +static const ber_tlv_tag_t asn_DEF_HNBAP_CELL_FACHMobilitySupport_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_CELL_FACHMobilitySupport = { + "HNBAP_CELL-FACHMobilitySupport", + "HNBAP_CELL-FACHMobilitySupport", + HNBAP_CELL_FACHMobilitySupport_free, + HNBAP_CELL_FACHMobilitySupport_print, + HNBAP_CELL_FACHMobilitySupport_constraint, + HNBAP_CELL_FACHMobilitySupport_decode_ber, + HNBAP_CELL_FACHMobilitySupport_encode_der, + HNBAP_CELL_FACHMobilitySupport_decode_xer, + HNBAP_CELL_FACHMobilitySupport_encode_xer, + HNBAP_CELL_FACHMobilitySupport_decode_uper, + HNBAP_CELL_FACHMobilitySupport_encode_uper, + HNBAP_CELL_FACHMobilitySupport_decode_aper, + HNBAP_CELL_FACHMobilitySupport_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_CELL_FACHMobilitySupport_tags_1, + sizeof(asn_DEF_HNBAP_CELL_FACHMobilitySupport_tags_1) + /sizeof(asn_DEF_HNBAP_CELL_FACHMobilitySupport_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_CELL_FACHMobilitySupport_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_CELL_FACHMobilitySupport_tags_1) + /sizeof(asn_DEF_HNBAP_CELL_FACHMobilitySupport_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_CELL_FACHMobilitySupport_constr_1, + 0, 0, /* Defined elsewhere */ + &asn_SPC_HNBAP_CELL_FACHMobilitySupport_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/CGI.c b/src/hnbap/HNBAP_CGI.c index e4b5683..17507cf 100644 --- a/src/hnbap/CGI.c +++ b/src/hnbap/HNBAP_CGI.c @@ -2,72 +2,72 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/CGI.h> +#include <osmocom/hnbap/HNBAP_CGI.h> -static asn_TYPE_member_t asn_MBR_CGI_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CGI, pLMNidentity), +static asn_TYPE_member_t asn_MBR_HNBAP_CGI_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_CGI, pLMNidentity), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_PLMNidentity, + &asn_DEF_HNBAP_PLMNidentity, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "pLMNidentity" }, - { ATF_NOFLAGS, 0, offsetof(struct CGI, lAC), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_CGI, lAC), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_LAC, + &asn_DEF_HNBAP_LAC, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "lAC" }, - { ATF_NOFLAGS, 0, offsetof(struct CGI, cI), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_CGI, cI), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_CI, + &asn_DEF_HNBAP_CI, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "cI" }, - { ATF_POINTER, 1, offsetof(struct CGI, iE_Extensions), + { ATF_POINTER, 1, offsetof(struct HNBAP_CGI, iE_Extensions), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_IE_Extensions, + &asn_DEF_HNBAP_IE_Extensions, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "iE-Extensions" }, }; -static const int asn_MAP_CGI_oms_1[] = { 3 }; -static const ber_tlv_tag_t asn_DEF_CGI_tags_1[] = { +static const int asn_MAP_HNBAP_CGI_oms_1[] = { 3 }; +static const ber_tlv_tag_t asn_DEF_HNBAP_CGI_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_CGI_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_CGI_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pLMNidentity */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* lAC */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* cI */ { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */ }; -static asn_SEQUENCE_specifics_t asn_SPC_CGI_specs_1 = { - sizeof(struct CGI), - offsetof(struct CGI, _asn_ctx), - asn_MAP_CGI_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_CGI_specs_1 = { + sizeof(struct HNBAP_CGI), + offsetof(struct HNBAP_CGI, _asn_ctx), + asn_MAP_HNBAP_CGI_tag2el_1, 4, /* Count of tags in the map */ - asn_MAP_CGI_oms_1, /* Optional members */ + asn_MAP_HNBAP_CGI_oms_1, /* Optional members */ 1, 0, /* Root/Additions */ -1, /* Start extensions */ -1 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_CGI = { - "CGI", - "CGI", +asn_TYPE_descriptor_t asn_DEF_HNBAP_CGI = { + "HNBAP_CGI", + "HNBAP_CGI", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -80,15 +80,15 @@ asn_TYPE_descriptor_t asn_DEF_CGI = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_CGI_tags_1, - sizeof(asn_DEF_CGI_tags_1) - /sizeof(asn_DEF_CGI_tags_1[0]), /* 1 */ - asn_DEF_CGI_tags_1, /* Same as above */ - sizeof(asn_DEF_CGI_tags_1) - /sizeof(asn_DEF_CGI_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_CGI_tags_1, + sizeof(asn_DEF_HNBAP_CGI_tags_1) + /sizeof(asn_DEF_HNBAP_CGI_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_CGI_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_CGI_tags_1) + /sizeof(asn_DEF_HNBAP_CGI_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_CGI_1, + asn_MBR_HNBAP_CGI_1, 4, /* Elements count */ - &asn_SPC_CGI_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_CGI_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/CI.c b/src/hnbap/HNBAP_CI.c index efe1b91..a3d4531 100644 --- a/src/hnbap/CI.c +++ b/src/hnbap/HNBAP_CI.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/CI.h> +#include <osmocom/hnbap/HNBAP_CI.h> int -CI_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_CI_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; size_t size; @@ -38,7 +38,7 @@ CI_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -CI_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_CI_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_OCTET_STRING.free_struct; td->print_struct = asn_DEF_OCTET_STRING.print_struct; td->check_constraints = asn_DEF_OCTET_STRING.check_constraints; @@ -58,109 +58,109 @@ CI_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -CI_free(asn_TYPE_descriptor_t *td, +HNBAP_CI_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - CI_1_inherit_TYPE_descriptor(td); + HNBAP_CI_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -CI_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_CI_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - CI_1_inherit_TYPE_descriptor(td); + HNBAP_CI_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -CI_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CI_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - CI_1_inherit_TYPE_descriptor(td); + HNBAP_CI_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -CI_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_CI_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - CI_1_inherit_TYPE_descriptor(td); + HNBAP_CI_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -CI_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CI_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - CI_1_inherit_TYPE_descriptor(td); + HNBAP_CI_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -CI_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_CI_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - CI_1_inherit_TYPE_descriptor(td); + HNBAP_CI_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -CI_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CI_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CI_1_inherit_TYPE_descriptor(td); + HNBAP_CI_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -CI_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_CI_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CI_1_inherit_TYPE_descriptor(td); + HNBAP_CI_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -CI_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_CI_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CI_1_inherit_TYPE_descriptor(td); + HNBAP_CI_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -CI_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CI_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CI_1_inherit_TYPE_descriptor(td); + HNBAP_CI_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_CI_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_CI_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 0, 0, 2l, 2l } /* (SIZE(2..2)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_CI_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_CI_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_CI = { - "CI", - "CI", - CI_free, - CI_print, - CI_constraint, - CI_decode_ber, - CI_encode_der, - CI_decode_xer, - CI_encode_xer, - CI_decode_uper, - CI_encode_uper, - CI_decode_aper, - CI_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_CI = { + "HNBAP_CI", + "HNBAP_CI", + HNBAP_CI_free, + HNBAP_CI_print, + HNBAP_CI_constraint, + HNBAP_CI_decode_ber, + HNBAP_CI_encode_der, + HNBAP_CI_decode_xer, + HNBAP_CI_encode_xer, + HNBAP_CI_decode_uper, + HNBAP_CI_encode_uper, + HNBAP_CI_decode_aper, + HNBAP_CI_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_CI_tags_1, - sizeof(asn_DEF_CI_tags_1) - /sizeof(asn_DEF_CI_tags_1[0]), /* 1 */ - asn_DEF_CI_tags_1, /* Same as above */ - sizeof(asn_DEF_CI_tags_1) - /sizeof(asn_DEF_CI_tags_1[0]), /* 1 */ - &asn_PER_type_CI_constr_1, + asn_DEF_HNBAP_CI_tags_1, + sizeof(asn_DEF_HNBAP_CI_tags_1) + /sizeof(asn_DEF_HNBAP_CI_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_CI_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_CI_tags_1) + /sizeof(asn_DEF_HNBAP_CI_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_CI_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/CN-DomainIndicator.c b/src/hnbap/HNBAP_CN-DomainIndicator.c index aad8d8f..1374aca 100644 --- a/src/hnbap/CN-DomainIndicator.c +++ b/src/hnbap/HNBAP_CN-DomainIndicator.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/CN-DomainIndicator.h> +#include <osmocom/hnbap/HNBAP_CN-DomainIndicator.h> int -CN_DomainIndicator_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_CN_DomainIndicator_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { /* Replace with underlying type checker */ td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -20,7 +20,7 @@ CN_DomainIndicator_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -CN_DomainIndicator_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_CN_DomainIndicator_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeEnumerated.free_struct; td->print_struct = asn_DEF_NativeEnumerated.print_struct; td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -40,127 +40,127 @@ CN_DomainIndicator_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -CN_DomainIndicator_free(asn_TYPE_descriptor_t *td, +HNBAP_CN_DomainIndicator_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - CN_DomainIndicator_1_inherit_TYPE_descriptor(td); + HNBAP_CN_DomainIndicator_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -CN_DomainIndicator_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_CN_DomainIndicator_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - CN_DomainIndicator_1_inherit_TYPE_descriptor(td); + HNBAP_CN_DomainIndicator_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -CN_DomainIndicator_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CN_DomainIndicator_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - CN_DomainIndicator_1_inherit_TYPE_descriptor(td); + HNBAP_CN_DomainIndicator_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -CN_DomainIndicator_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_CN_DomainIndicator_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - CN_DomainIndicator_1_inherit_TYPE_descriptor(td); + HNBAP_CN_DomainIndicator_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -CN_DomainIndicator_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CN_DomainIndicator_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - CN_DomainIndicator_1_inherit_TYPE_descriptor(td); + HNBAP_CN_DomainIndicator_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -CN_DomainIndicator_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_CN_DomainIndicator_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - CN_DomainIndicator_1_inherit_TYPE_descriptor(td); + HNBAP_CN_DomainIndicator_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -CN_DomainIndicator_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CN_DomainIndicator_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CN_DomainIndicator_1_inherit_TYPE_descriptor(td); + HNBAP_CN_DomainIndicator_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -CN_DomainIndicator_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_CN_DomainIndicator_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CN_DomainIndicator_1_inherit_TYPE_descriptor(td); + HNBAP_CN_DomainIndicator_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -CN_DomainIndicator_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_CN_DomainIndicator_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CN_DomainIndicator_1_inherit_TYPE_descriptor(td); + HNBAP_CN_DomainIndicator_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -CN_DomainIndicator_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CN_DomainIndicator_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CN_DomainIndicator_1_inherit_TYPE_descriptor(td); + HNBAP_CN_DomainIndicator_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_CN_DomainIndicator_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_CN_DomainIndicator_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED, 1, 1, 0l, 1l } /* (0..1) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const asn_INTEGER_enum_map_t asn_MAP_CN_DomainIndicator_value2enum_1[] = { +static const asn_INTEGER_enum_map_t asn_MAP_HNBAP_CN_DomainIndicator_value2enum_1[] = { { 0, 9, "cs-domain" }, { 1, 9, "ps-domain" } }; -static const unsigned int asn_MAP_CN_DomainIndicator_enum2value_1[] = { +static const unsigned int asn_MAP_HNBAP_CN_DomainIndicator_enum2value_1[] = { 0, /* cs-domain(0) */ 1 /* ps-domain(1) */ }; -static const asn_INTEGER_specifics_t asn_SPC_CN_DomainIndicator_specs_1 = { - asn_MAP_CN_DomainIndicator_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_CN_DomainIndicator_enum2value_1, /* N => "tag"; sorted by N */ +static const asn_INTEGER_specifics_t asn_SPC_HNBAP_CN_DomainIndicator_specs_1 = { + asn_MAP_HNBAP_CN_DomainIndicator_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_HNBAP_CN_DomainIndicator_enum2value_1, /* N => "tag"; sorted by N */ 2, /* Number of elements in the maps */ 0, /* Enumeration is not extensible */ 1, /* Strict enumeration */ 0, /* Native long size */ 0 }; -static const ber_tlv_tag_t asn_DEF_CN_DomainIndicator_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_CN_DomainIndicator_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_CN_DomainIndicator = { - "CN-DomainIndicator", - "CN-DomainIndicator", - CN_DomainIndicator_free, - CN_DomainIndicator_print, - CN_DomainIndicator_constraint, - CN_DomainIndicator_decode_ber, - CN_DomainIndicator_encode_der, - CN_DomainIndicator_decode_xer, - CN_DomainIndicator_encode_xer, - CN_DomainIndicator_decode_uper, - CN_DomainIndicator_encode_uper, - CN_DomainIndicator_decode_aper, - CN_DomainIndicator_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_CN_DomainIndicator = { + "HNBAP_CN-DomainIndicator", + "HNBAP_CN-DomainIndicator", + HNBAP_CN_DomainIndicator_free, + HNBAP_CN_DomainIndicator_print, + HNBAP_CN_DomainIndicator_constraint, + HNBAP_CN_DomainIndicator_decode_ber, + HNBAP_CN_DomainIndicator_encode_der, + HNBAP_CN_DomainIndicator_decode_xer, + HNBAP_CN_DomainIndicator_encode_xer, + HNBAP_CN_DomainIndicator_decode_uper, + HNBAP_CN_DomainIndicator_encode_uper, + HNBAP_CN_DomainIndicator_decode_aper, + HNBAP_CN_DomainIndicator_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_CN_DomainIndicator_tags_1, - sizeof(asn_DEF_CN_DomainIndicator_tags_1) - /sizeof(asn_DEF_CN_DomainIndicator_tags_1[0]), /* 1 */ - asn_DEF_CN_DomainIndicator_tags_1, /* Same as above */ - sizeof(asn_DEF_CN_DomainIndicator_tags_1) - /sizeof(asn_DEF_CN_DomainIndicator_tags_1[0]), /* 1 */ - &asn_PER_type_CN_DomainIndicator_constr_1, + asn_DEF_HNBAP_CN_DomainIndicator_tags_1, + sizeof(asn_DEF_HNBAP_CN_DomainIndicator_tags_1) + /sizeof(asn_DEF_HNBAP_CN_DomainIndicator_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_CN_DomainIndicator_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_CN_DomainIndicator_tags_1) + /sizeof(asn_DEF_HNBAP_CN_DomainIndicator_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_CN_DomainIndicator_constr_1, 0, 0, /* Defined elsewhere */ - &asn_SPC_CN_DomainIndicator_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_CN_DomainIndicator_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/CSG-Capability.c b/src/hnbap/HNBAP_CSG-Capability.c index b451923..b98a8e8 100644 --- a/src/hnbap/CSG-Capability.c +++ b/src/hnbap/HNBAP_CSG-Capability.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/CSG-Capability.h> +#include <osmocom/hnbap/HNBAP_CSG-Capability.h> int -CSG_Capability_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_CSG_Capability_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { /* Replace with underlying type checker */ td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -20,7 +20,7 @@ CSG_Capability_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -CSG_Capability_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_CSG_Capability_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeEnumerated.free_struct; td->print_struct = asn_DEF_NativeEnumerated.print_struct; td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -40,129 +40,129 @@ CSG_Capability_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -CSG_Capability_free(asn_TYPE_descriptor_t *td, +HNBAP_CSG_Capability_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - CSG_Capability_1_inherit_TYPE_descriptor(td); + HNBAP_CSG_Capability_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -CSG_Capability_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_CSG_Capability_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - CSG_Capability_1_inherit_TYPE_descriptor(td); + HNBAP_CSG_Capability_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -CSG_Capability_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CSG_Capability_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - CSG_Capability_1_inherit_TYPE_descriptor(td); + HNBAP_CSG_Capability_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -CSG_Capability_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_CSG_Capability_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - CSG_Capability_1_inherit_TYPE_descriptor(td); + HNBAP_CSG_Capability_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -CSG_Capability_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CSG_Capability_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - CSG_Capability_1_inherit_TYPE_descriptor(td); + HNBAP_CSG_Capability_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -CSG_Capability_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_CSG_Capability_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - CSG_Capability_1_inherit_TYPE_descriptor(td); + HNBAP_CSG_Capability_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -CSG_Capability_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CSG_Capability_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CSG_Capability_1_inherit_TYPE_descriptor(td); + HNBAP_CSG_Capability_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -CSG_Capability_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_CSG_Capability_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CSG_Capability_1_inherit_TYPE_descriptor(td); + HNBAP_CSG_Capability_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -CSG_Capability_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_CSG_Capability_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CSG_Capability_1_inherit_TYPE_descriptor(td); + HNBAP_CSG_Capability_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -CSG_Capability_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CSG_Capability_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CSG_Capability_1_inherit_TYPE_descriptor(td); + HNBAP_CSG_Capability_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_CSG_Capability_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_CSG_Capability_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0l, 1l } /* (0..1,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const asn_INTEGER_enum_map_t asn_MAP_CSG_Capability_value2enum_1[] = { +static const asn_INTEGER_enum_map_t asn_MAP_HNBAP_CSG_Capability_value2enum_1[] = { { 0, 11, "csg-capable" }, { 1, 15, "not-csg-capable" } /* This list is extensible */ }; -static const unsigned int asn_MAP_CSG_Capability_enum2value_1[] = { +static const unsigned int asn_MAP_HNBAP_CSG_Capability_enum2value_1[] = { 0, /* csg-capable(0) */ 1 /* not-csg-capable(1) */ /* This list is extensible */ }; -static const asn_INTEGER_specifics_t asn_SPC_CSG_Capability_specs_1 = { - asn_MAP_CSG_Capability_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_CSG_Capability_enum2value_1, /* N => "tag"; sorted by N */ +static const asn_INTEGER_specifics_t asn_SPC_HNBAP_CSG_Capability_specs_1 = { + asn_MAP_HNBAP_CSG_Capability_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_HNBAP_CSG_Capability_enum2value_1, /* N => "tag"; sorted by N */ 2, /* Number of elements in the maps */ 3, /* Extensions before this member */ 1, /* Strict enumeration */ 0, /* Native long size */ 0 }; -static const ber_tlv_tag_t asn_DEF_CSG_Capability_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_CSG_Capability_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_CSG_Capability = { - "CSG-Capability", - "CSG-Capability", - CSG_Capability_free, - CSG_Capability_print, - CSG_Capability_constraint, - CSG_Capability_decode_ber, - CSG_Capability_encode_der, - CSG_Capability_decode_xer, - CSG_Capability_encode_xer, - CSG_Capability_decode_uper, - CSG_Capability_encode_uper, - CSG_Capability_decode_aper, - CSG_Capability_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_CSG_Capability = { + "HNBAP_CSG-Capability", + "HNBAP_CSG-Capability", + HNBAP_CSG_Capability_free, + HNBAP_CSG_Capability_print, + HNBAP_CSG_Capability_constraint, + HNBAP_CSG_Capability_decode_ber, + HNBAP_CSG_Capability_encode_der, + HNBAP_CSG_Capability_decode_xer, + HNBAP_CSG_Capability_encode_xer, + HNBAP_CSG_Capability_decode_uper, + HNBAP_CSG_Capability_encode_uper, + HNBAP_CSG_Capability_decode_aper, + HNBAP_CSG_Capability_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_CSG_Capability_tags_1, - sizeof(asn_DEF_CSG_Capability_tags_1) - /sizeof(asn_DEF_CSG_Capability_tags_1[0]), /* 1 */ - asn_DEF_CSG_Capability_tags_1, /* Same as above */ - sizeof(asn_DEF_CSG_Capability_tags_1) - /sizeof(asn_DEF_CSG_Capability_tags_1[0]), /* 1 */ - &asn_PER_type_CSG_Capability_constr_1, + asn_DEF_HNBAP_CSG_Capability_tags_1, + sizeof(asn_DEF_HNBAP_CSG_Capability_tags_1) + /sizeof(asn_DEF_HNBAP_CSG_Capability_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_CSG_Capability_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_CSG_Capability_tags_1) + /sizeof(asn_DEF_HNBAP_CSG_Capability_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_CSG_Capability_constr_1, 0, 0, /* Defined elsewhere */ - &asn_SPC_CSG_Capability_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_CSG_Capability_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/S-RNTIPrefix.c b/src/hnbap/HNBAP_CSG-ID.c index 1601eb4..402f9e3 100644 --- a/src/hnbap/S-RNTIPrefix.c +++ b/src/hnbap/HNBAP_CSG-ID.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/S-RNTIPrefix.h> +#include <osmocom/hnbap/HNBAP_CSG-ID.h> int -S_RNTIPrefix_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_CSG_ID_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; size_t size; @@ -27,7 +27,7 @@ S_RNTIPrefix_constraint(asn_TYPE_descriptor_t *td, const void *sptr, size = 0; } - if((size >= 1l && size <= 16l)) { + if((size == 27l)) { /* Constraint check succeeded */ return 0; } else { @@ -43,7 +43,7 @@ S_RNTIPrefix_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -S_RNTIPrefix_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_CSG_ID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_BIT_STRING.free_struct; td->print_struct = asn_DEF_BIT_STRING.print_struct; td->check_constraints = asn_DEF_BIT_STRING.check_constraints; @@ -63,109 +63,109 @@ S_RNTIPrefix_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -S_RNTIPrefix_free(asn_TYPE_descriptor_t *td, +HNBAP_CSG_ID_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - S_RNTIPrefix_1_inherit_TYPE_descriptor(td); + HNBAP_CSG_ID_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -S_RNTIPrefix_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_CSG_ID_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - S_RNTIPrefix_1_inherit_TYPE_descriptor(td); + HNBAP_CSG_ID_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -S_RNTIPrefix_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CSG_ID_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - S_RNTIPrefix_1_inherit_TYPE_descriptor(td); + HNBAP_CSG_ID_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -S_RNTIPrefix_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_CSG_ID_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - S_RNTIPrefix_1_inherit_TYPE_descriptor(td); + HNBAP_CSG_ID_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -S_RNTIPrefix_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CSG_ID_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - S_RNTIPrefix_1_inherit_TYPE_descriptor(td); + HNBAP_CSG_ID_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -S_RNTIPrefix_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_CSG_ID_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - S_RNTIPrefix_1_inherit_TYPE_descriptor(td); + HNBAP_CSG_ID_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -S_RNTIPrefix_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CSG_ID_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - S_RNTIPrefix_1_inherit_TYPE_descriptor(td); + HNBAP_CSG_ID_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -S_RNTIPrefix_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_CSG_ID_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - S_RNTIPrefix_1_inherit_TYPE_descriptor(td); + HNBAP_CSG_ID_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -S_RNTIPrefix_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_CSG_ID_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - S_RNTIPrefix_1_inherit_TYPE_descriptor(td); + HNBAP_CSG_ID_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -S_RNTIPrefix_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CSG_ID_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - S_RNTIPrefix_1_inherit_TYPE_descriptor(td); + HNBAP_CSG_ID_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_S_RNTIPrefix_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_CSG_ID_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED | APC_EXTENSIBLE, 4, 4, 1l, 16l } /* (SIZE(1..16,...)) */, + { APC_CONSTRAINED, 0, 0, 27l, 27l } /* (SIZE(27..27)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_S_RNTIPrefix_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_CSG_ID_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_S_RNTIPrefix = { - "S-RNTIPrefix", - "S-RNTIPrefix", - S_RNTIPrefix_free, - S_RNTIPrefix_print, - S_RNTIPrefix_constraint, - S_RNTIPrefix_decode_ber, - S_RNTIPrefix_encode_der, - S_RNTIPrefix_decode_xer, - S_RNTIPrefix_encode_xer, - S_RNTIPrefix_decode_uper, - S_RNTIPrefix_encode_uper, - S_RNTIPrefix_decode_aper, - S_RNTIPrefix_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_CSG_ID = { + "HNBAP_CSG-ID", + "HNBAP_CSG-ID", + HNBAP_CSG_ID_free, + HNBAP_CSG_ID_print, + HNBAP_CSG_ID_constraint, + HNBAP_CSG_ID_decode_ber, + HNBAP_CSG_ID_encode_der, + HNBAP_CSG_ID_decode_xer, + HNBAP_CSG_ID_encode_xer, + HNBAP_CSG_ID_decode_uper, + HNBAP_CSG_ID_encode_uper, + HNBAP_CSG_ID_decode_aper, + HNBAP_CSG_ID_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_S_RNTIPrefix_tags_1, - sizeof(asn_DEF_S_RNTIPrefix_tags_1) - /sizeof(asn_DEF_S_RNTIPrefix_tags_1[0]), /* 1 */ - asn_DEF_S_RNTIPrefix_tags_1, /* Same as above */ - sizeof(asn_DEF_S_RNTIPrefix_tags_1) - /sizeof(asn_DEF_S_RNTIPrefix_tags_1[0]), /* 1 */ - &asn_PER_type_S_RNTIPrefix_constr_1, + asn_DEF_HNBAP_CSG_ID_tags_1, + sizeof(asn_DEF_HNBAP_CSG_ID_tags_1) + /sizeof(asn_DEF_HNBAP_CSG_ID_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_CSG_ID_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_CSG_ID_tags_1) + /sizeof(asn_DEF_HNBAP_CSG_ID_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_CSG_ID_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/CSGMembershipStatus.c b/src/hnbap/HNBAP_CSGMembershipStatus.c index 9c672e4..7496570 100644 --- a/src/hnbap/CSGMembershipStatus.c +++ b/src/hnbap/HNBAP_CSGMembershipStatus.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/CSGMembershipStatus.h> +#include <osmocom/hnbap/HNBAP_CSGMembershipStatus.h> int -CSGMembershipStatus_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_CSGMembershipStatus_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { /* Replace with underlying type checker */ td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -20,7 +20,7 @@ CSGMembershipStatus_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -CSGMembershipStatus_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_CSGMembershipStatus_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeEnumerated.free_struct; td->print_struct = asn_DEF_NativeEnumerated.print_struct; td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -40,129 +40,129 @@ CSGMembershipStatus_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -CSGMembershipStatus_free(asn_TYPE_descriptor_t *td, +HNBAP_CSGMembershipStatus_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - CSGMembershipStatus_1_inherit_TYPE_descriptor(td); + HNBAP_CSGMembershipStatus_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -CSGMembershipStatus_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_CSGMembershipStatus_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - CSGMembershipStatus_1_inherit_TYPE_descriptor(td); + HNBAP_CSGMembershipStatus_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -CSGMembershipStatus_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CSGMembershipStatus_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - CSGMembershipStatus_1_inherit_TYPE_descriptor(td); + HNBAP_CSGMembershipStatus_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -CSGMembershipStatus_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_CSGMembershipStatus_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - CSGMembershipStatus_1_inherit_TYPE_descriptor(td); + HNBAP_CSGMembershipStatus_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -CSGMembershipStatus_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CSGMembershipStatus_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - CSGMembershipStatus_1_inherit_TYPE_descriptor(td); + HNBAP_CSGMembershipStatus_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -CSGMembershipStatus_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_CSGMembershipStatus_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - CSGMembershipStatus_1_inherit_TYPE_descriptor(td); + HNBAP_CSGMembershipStatus_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -CSGMembershipStatus_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CSGMembershipStatus_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CSGMembershipStatus_1_inherit_TYPE_descriptor(td); + HNBAP_CSGMembershipStatus_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -CSGMembershipStatus_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_CSGMembershipStatus_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CSGMembershipStatus_1_inherit_TYPE_descriptor(td); + HNBAP_CSGMembershipStatus_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -CSGMembershipStatus_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_CSGMembershipStatus_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CSGMembershipStatus_1_inherit_TYPE_descriptor(td); + HNBAP_CSGMembershipStatus_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -CSGMembershipStatus_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CSGMembershipStatus_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CSGMembershipStatus_1_inherit_TYPE_descriptor(td); + HNBAP_CSGMembershipStatus_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_CSGMembershipStatus_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_CSGMembershipStatus_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0l, 1l } /* (0..1,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const asn_INTEGER_enum_map_t asn_MAP_CSGMembershipStatus_value2enum_1[] = { +static const asn_INTEGER_enum_map_t asn_MAP_HNBAP_CSGMembershipStatus_value2enum_1[] = { { 0, 6, "member" }, { 1, 10, "non-member" } /* This list is extensible */ }; -static const unsigned int asn_MAP_CSGMembershipStatus_enum2value_1[] = { +static const unsigned int asn_MAP_HNBAP_CSGMembershipStatus_enum2value_1[] = { 0, /* member(0) */ 1 /* non-member(1) */ /* This list is extensible */ }; -static const asn_INTEGER_specifics_t asn_SPC_CSGMembershipStatus_specs_1 = { - asn_MAP_CSGMembershipStatus_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_CSGMembershipStatus_enum2value_1, /* N => "tag"; sorted by N */ +static const asn_INTEGER_specifics_t asn_SPC_HNBAP_CSGMembershipStatus_specs_1 = { + asn_MAP_HNBAP_CSGMembershipStatus_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_HNBAP_CSGMembershipStatus_enum2value_1, /* N => "tag"; sorted by N */ 2, /* Number of elements in the maps */ 3, /* Extensions before this member */ 1, /* Strict enumeration */ 0, /* Native long size */ 0 }; -static const ber_tlv_tag_t asn_DEF_CSGMembershipStatus_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_CSGMembershipStatus_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_CSGMembershipStatus = { - "CSGMembershipStatus", - "CSGMembershipStatus", - CSGMembershipStatus_free, - CSGMembershipStatus_print, - CSGMembershipStatus_constraint, - CSGMembershipStatus_decode_ber, - CSGMembershipStatus_encode_der, - CSGMembershipStatus_decode_xer, - CSGMembershipStatus_encode_xer, - CSGMembershipStatus_decode_uper, - CSGMembershipStatus_encode_uper, - CSGMembershipStatus_decode_aper, - CSGMembershipStatus_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_CSGMembershipStatus = { + "HNBAP_CSGMembershipStatus", + "HNBAP_CSGMembershipStatus", + HNBAP_CSGMembershipStatus_free, + HNBAP_CSGMembershipStatus_print, + HNBAP_CSGMembershipStatus_constraint, + HNBAP_CSGMembershipStatus_decode_ber, + HNBAP_CSGMembershipStatus_encode_der, + HNBAP_CSGMembershipStatus_decode_xer, + HNBAP_CSGMembershipStatus_encode_xer, + HNBAP_CSGMembershipStatus_decode_uper, + HNBAP_CSGMembershipStatus_encode_uper, + HNBAP_CSGMembershipStatus_decode_aper, + HNBAP_CSGMembershipStatus_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_CSGMembershipStatus_tags_1, - sizeof(asn_DEF_CSGMembershipStatus_tags_1) - /sizeof(asn_DEF_CSGMembershipStatus_tags_1[0]), /* 1 */ - asn_DEF_CSGMembershipStatus_tags_1, /* Same as above */ - sizeof(asn_DEF_CSGMembershipStatus_tags_1) - /sizeof(asn_DEF_CSGMembershipStatus_tags_1[0]), /* 1 */ - &asn_PER_type_CSGMembershipStatus_constr_1, + asn_DEF_HNBAP_CSGMembershipStatus_tags_1, + sizeof(asn_DEF_HNBAP_CSGMembershipStatus_tags_1) + /sizeof(asn_DEF_HNBAP_CSGMembershipStatus_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_CSGMembershipStatus_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_CSGMembershipStatus_tags_1) + /sizeof(asn_DEF_HNBAP_CSGMembershipStatus_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_CSGMembershipStatus_constr_1, 0, 0, /* Defined elsewhere */ - &asn_SPC_CSGMembershipStatus_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_CSGMembershipStatus_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/CSGMembershipUpdate.c b/src/hnbap/HNBAP_CSGMembershipUpdate.c index d33562a..82a961d 100644 --- a/src/hnbap/CSGMembershipUpdate.c +++ b/src/hnbap/HNBAP_CSGMembershipUpdate.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/CSGMembershipUpdate.h> +#include <osmocom/hnbap/HNBAP_CSGMembershipUpdate.h> static int memb_csgMembershipUpdate_ies_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, @@ -45,9 +45,9 @@ static asn_per_constraints_t asn_PER_memb_csgMembershipUpdate_ies_constr_2 GCC_N }; static asn_TYPE_member_t asn_MBR_csgMembershipUpdate_ies_2[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_IE, + &asn_DEF_HNBAP_IE, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, @@ -59,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_csgMembershipUpdate_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_csgMembershipUpdate_ies_specs_2 = { - sizeof(struct csgMembershipUpdate_ies), - offsetof(struct csgMembershipUpdate_ies, _asn_ctx), + sizeof(struct HNBAP_CSGMembershipUpdate__csgMembershipUpdate_ies), + offsetof(struct HNBAP_CSGMembershipUpdate__csgMembershipUpdate_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ @@ -91,8 +91,8 @@ asn_TYPE_descriptor_t asn_DEF_csgMembershipUpdate_ies_2 = { &asn_SPC_csgMembershipUpdate_ies_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_CSGMembershipUpdate_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct CSGMembershipUpdate, csgMembershipUpdate_ies), +static asn_TYPE_member_t asn_MBR_HNBAP_CSGMembershipUpdate_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_CSGMembershipUpdate, csgMembershipUpdate_ies), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_csgMembershipUpdate_ies_2, @@ -102,24 +102,24 @@ static asn_TYPE_member_t asn_MBR_CSGMembershipUpdate_1[] = { "csgMembershipUpdate-ies" }, }; -static const ber_tlv_tag_t asn_DEF_CSGMembershipUpdate_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_CSGMembershipUpdate_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_CSGMembershipUpdate_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_CSGMembershipUpdate_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* csgMembershipUpdate-ies */ }; -static asn_SEQUENCE_specifics_t asn_SPC_CSGMembershipUpdate_specs_1 = { - sizeof(struct CSGMembershipUpdate), - offsetof(struct CSGMembershipUpdate, _asn_ctx), - asn_MAP_CSGMembershipUpdate_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_CSGMembershipUpdate_specs_1 = { + sizeof(struct HNBAP_CSGMembershipUpdate), + offsetof(struct HNBAP_CSGMembershipUpdate, _asn_ctx), + asn_MAP_HNBAP_CSGMembershipUpdate_tag2el_1, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 0, /* Start extensions */ 2 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_CSGMembershipUpdate = { - "CSGMembershipUpdate", - "CSGMembershipUpdate", +asn_TYPE_descriptor_t asn_DEF_HNBAP_CSGMembershipUpdate = { + "HNBAP_CSGMembershipUpdate", + "HNBAP_CSGMembershipUpdate", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -132,15 +132,15 @@ asn_TYPE_descriptor_t asn_DEF_CSGMembershipUpdate = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_CSGMembershipUpdate_tags_1, - sizeof(asn_DEF_CSGMembershipUpdate_tags_1) - /sizeof(asn_DEF_CSGMembershipUpdate_tags_1[0]), /* 1 */ - asn_DEF_CSGMembershipUpdate_tags_1, /* Same as above */ - sizeof(asn_DEF_CSGMembershipUpdate_tags_1) - /sizeof(asn_DEF_CSGMembershipUpdate_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_CSGMembershipUpdate_tags_1, + sizeof(asn_DEF_HNBAP_CSGMembershipUpdate_tags_1) + /sizeof(asn_DEF_HNBAP_CSGMembershipUpdate_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_CSGMembershipUpdate_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_CSGMembershipUpdate_tags_1) + /sizeof(asn_DEF_HNBAP_CSGMembershipUpdate_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_CSGMembershipUpdate_1, + asn_MBR_HNBAP_CSGMembershipUpdate_1, 1, /* Elements count */ - &asn_SPC_CSGMembershipUpdate_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_CSGMembershipUpdate_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/Cause.c b/src/hnbap/HNBAP_Cause.c index 229ef51..7dfb5d6 100644 --- a/src/hnbap/Cause.c +++ b/src/hnbap/HNBAP_Cause.c @@ -2,73 +2,73 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/Cause.h> +#include <osmocom/hnbap/HNBAP_Cause.h> -static asn_per_constraints_t asn_PER_type_Cause_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_Cause_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0l, 3l } /* (0..3,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_Cause_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Cause, choice.radioNetwork), +static asn_TYPE_member_t asn_MBR_HNBAP_Cause_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_Cause, choice.radioNetwork), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_CauseRadioNetwork, + &asn_DEF_HNBAP_CauseRadioNetwork, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "radioNetwork" }, - { ATF_NOFLAGS, 0, offsetof(struct Cause, choice.transport), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_Cause, choice.transport), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_CauseTransport, + &asn_DEF_HNBAP_CauseTransport, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "transport" }, - { ATF_NOFLAGS, 0, offsetof(struct Cause, choice.protocol), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_Cause, choice.protocol), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_CauseProtocol, + &asn_DEF_HNBAP_CauseProtocol, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "protocol" }, - { ATF_NOFLAGS, 0, offsetof(struct Cause, choice.misc), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_Cause, choice.misc), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_CauseMisc, + &asn_DEF_HNBAP_CauseMisc, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "misc" }, }; -static const asn_TYPE_tag2member_t asn_MAP_Cause_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_Cause_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* radioNetwork */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* transport */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* protocol */ { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* misc */ }; -static asn_CHOICE_specifics_t asn_SPC_Cause_specs_1 = { - sizeof(struct Cause), - offsetof(struct Cause, _asn_ctx), - offsetof(struct Cause, present), - sizeof(((struct Cause *)0)->present), - asn_MAP_Cause_tag2el_1, +static asn_CHOICE_specifics_t asn_SPC_HNBAP_Cause_specs_1 = { + sizeof(struct HNBAP_Cause), + offsetof(struct HNBAP_Cause, _asn_ctx), + offsetof(struct HNBAP_Cause, present), + sizeof(((struct HNBAP_Cause *)0)->present), + asn_MAP_HNBAP_Cause_tag2el_1, 4, /* Count of tags in the map */ 0, 4 /* Extensions start */ }; -asn_TYPE_descriptor_t asn_DEF_Cause = { - "Cause", - "Cause", +asn_TYPE_descriptor_t asn_DEF_HNBAP_Cause = { + "HNBAP_Cause", + "HNBAP_Cause", CHOICE_free, CHOICE_print, CHOICE_constraint, @@ -85,9 +85,9 @@ asn_TYPE_descriptor_t asn_DEF_Cause = { 0, /* No effective tags (count) */ 0, /* No tags (pointer) */ 0, /* No tags (count) */ - &asn_PER_type_Cause_constr_1, - asn_MBR_Cause_1, + &asn_PER_type_HNBAP_Cause_constr_1, + asn_MBR_HNBAP_Cause_1, 4, /* Elements count */ - &asn_SPC_Cause_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_Cause_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/CauseMisc.c b/src/hnbap/HNBAP_CauseMisc.c index 3ab86d8..2c0aeed 100644 --- a/src/hnbap/CauseMisc.c +++ b/src/hnbap/HNBAP_CauseMisc.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/CauseMisc.h> +#include <osmocom/hnbap/HNBAP_CauseMisc.h> int -CauseMisc_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_CauseMisc_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { /* Replace with underlying type checker */ td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -20,7 +20,7 @@ CauseMisc_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -CauseMisc_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_CauseMisc_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeEnumerated.free_struct; td->print_struct = asn_DEF_NativeEnumerated.print_struct; td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -40,133 +40,133 @@ CauseMisc_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -CauseMisc_free(asn_TYPE_descriptor_t *td, +HNBAP_CauseMisc_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - CauseMisc_1_inherit_TYPE_descriptor(td); + HNBAP_CauseMisc_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -CauseMisc_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_CauseMisc_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - CauseMisc_1_inherit_TYPE_descriptor(td); + HNBAP_CauseMisc_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -CauseMisc_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CauseMisc_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - CauseMisc_1_inherit_TYPE_descriptor(td); + HNBAP_CauseMisc_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -CauseMisc_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_CauseMisc_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - CauseMisc_1_inherit_TYPE_descriptor(td); + HNBAP_CauseMisc_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -CauseMisc_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CauseMisc_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - CauseMisc_1_inherit_TYPE_descriptor(td); + HNBAP_CauseMisc_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -CauseMisc_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_CauseMisc_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - CauseMisc_1_inherit_TYPE_descriptor(td); + HNBAP_CauseMisc_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -CauseMisc_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CauseMisc_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CauseMisc_1_inherit_TYPE_descriptor(td); + HNBAP_CauseMisc_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -CauseMisc_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_CauseMisc_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CauseMisc_1_inherit_TYPE_descriptor(td); + HNBAP_CauseMisc_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -CauseMisc_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_CauseMisc_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CauseMisc_1_inherit_TYPE_descriptor(td); + HNBAP_CauseMisc_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -CauseMisc_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CauseMisc_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CauseMisc_1_inherit_TYPE_descriptor(td); + HNBAP_CauseMisc_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_CauseMisc_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_CauseMisc_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0l, 3l } /* (0..3,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const asn_INTEGER_enum_map_t asn_MAP_CauseMisc_value2enum_1[] = { +static const asn_INTEGER_enum_map_t asn_MAP_HNBAP_CauseMisc_value2enum_1[] = { { 0, 19, "processing-overload" }, { 1, 16, "hardware-failure" }, { 2, 20, "o-and-m-intervention" }, { 3, 11, "unspecified" } /* This list is extensible */ }; -static const unsigned int asn_MAP_CauseMisc_enum2value_1[] = { +static const unsigned int asn_MAP_HNBAP_CauseMisc_enum2value_1[] = { 1, /* hardware-failure(1) */ 2, /* o-and-m-intervention(2) */ 0, /* processing-overload(0) */ 3 /* unspecified(3) */ /* This list is extensible */ }; -static const asn_INTEGER_specifics_t asn_SPC_CauseMisc_specs_1 = { - asn_MAP_CauseMisc_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_CauseMisc_enum2value_1, /* N => "tag"; sorted by N */ +static const asn_INTEGER_specifics_t asn_SPC_HNBAP_CauseMisc_specs_1 = { + asn_MAP_HNBAP_CauseMisc_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_HNBAP_CauseMisc_enum2value_1, /* N => "tag"; sorted by N */ 4, /* Number of elements in the maps */ 5, /* Extensions before this member */ 1, /* Strict enumeration */ 0, /* Native long size */ 0 }; -static const ber_tlv_tag_t asn_DEF_CauseMisc_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_CauseMisc_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_CauseMisc = { - "CauseMisc", - "CauseMisc", - CauseMisc_free, - CauseMisc_print, - CauseMisc_constraint, - CauseMisc_decode_ber, - CauseMisc_encode_der, - CauseMisc_decode_xer, - CauseMisc_encode_xer, - CauseMisc_decode_uper, - CauseMisc_encode_uper, - CauseMisc_decode_aper, - CauseMisc_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_CauseMisc = { + "HNBAP_CauseMisc", + "HNBAP_CauseMisc", + HNBAP_CauseMisc_free, + HNBAP_CauseMisc_print, + HNBAP_CauseMisc_constraint, + HNBAP_CauseMisc_decode_ber, + HNBAP_CauseMisc_encode_der, + HNBAP_CauseMisc_decode_xer, + HNBAP_CauseMisc_encode_xer, + HNBAP_CauseMisc_decode_uper, + HNBAP_CauseMisc_encode_uper, + HNBAP_CauseMisc_decode_aper, + HNBAP_CauseMisc_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_CauseMisc_tags_1, - sizeof(asn_DEF_CauseMisc_tags_1) - /sizeof(asn_DEF_CauseMisc_tags_1[0]), /* 1 */ - asn_DEF_CauseMisc_tags_1, /* Same as above */ - sizeof(asn_DEF_CauseMisc_tags_1) - /sizeof(asn_DEF_CauseMisc_tags_1[0]), /* 1 */ - &asn_PER_type_CauseMisc_constr_1, + asn_DEF_HNBAP_CauseMisc_tags_1, + sizeof(asn_DEF_HNBAP_CauseMisc_tags_1) + /sizeof(asn_DEF_HNBAP_CauseMisc_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_CauseMisc_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_CauseMisc_tags_1) + /sizeof(asn_DEF_HNBAP_CauseMisc_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_CauseMisc_constr_1, 0, 0, /* Defined elsewhere */ - &asn_SPC_CauseMisc_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_CauseMisc_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/CauseProtocol.c b/src/hnbap/HNBAP_CauseProtocol.c index 0529318..d3a8943 100644 --- a/src/hnbap/CauseProtocol.c +++ b/src/hnbap/HNBAP_CauseProtocol.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/CauseProtocol.h> +#include <osmocom/hnbap/HNBAP_CauseProtocol.h> int -CauseProtocol_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_CauseProtocol_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { /* Replace with underlying type checker */ td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -20,7 +20,7 @@ CauseProtocol_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -CauseProtocol_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_CauseProtocol_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeEnumerated.free_struct; td->print_struct = asn_DEF_NativeEnumerated.print_struct; td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -40,85 +40,85 @@ CauseProtocol_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -CauseProtocol_free(asn_TYPE_descriptor_t *td, +HNBAP_CauseProtocol_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - CauseProtocol_1_inherit_TYPE_descriptor(td); + HNBAP_CauseProtocol_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -CauseProtocol_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_CauseProtocol_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - CauseProtocol_1_inherit_TYPE_descriptor(td); + HNBAP_CauseProtocol_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -CauseProtocol_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CauseProtocol_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - CauseProtocol_1_inherit_TYPE_descriptor(td); + HNBAP_CauseProtocol_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -CauseProtocol_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_CauseProtocol_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - CauseProtocol_1_inherit_TYPE_descriptor(td); + HNBAP_CauseProtocol_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -CauseProtocol_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CauseProtocol_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - CauseProtocol_1_inherit_TYPE_descriptor(td); + HNBAP_CauseProtocol_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -CauseProtocol_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_CauseProtocol_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - CauseProtocol_1_inherit_TYPE_descriptor(td); + HNBAP_CauseProtocol_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -CauseProtocol_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CauseProtocol_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CauseProtocol_1_inherit_TYPE_descriptor(td); + HNBAP_CauseProtocol_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -CauseProtocol_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_CauseProtocol_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CauseProtocol_1_inherit_TYPE_descriptor(td); + HNBAP_CauseProtocol_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -CauseProtocol_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_CauseProtocol_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CauseProtocol_1_inherit_TYPE_descriptor(td); + HNBAP_CauseProtocol_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -CauseProtocol_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CauseProtocol_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CauseProtocol_1_inherit_TYPE_descriptor(td); + HNBAP_CauseProtocol_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_CauseProtocol_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_CauseProtocol_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0l, 6l } /* (0..6,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const asn_INTEGER_enum_map_t asn_MAP_CauseProtocol_value2enum_1[] = { +static const asn_INTEGER_enum_map_t asn_MAP_HNBAP_CauseProtocol_value2enum_1[] = { { 0, 21, "transfer-syntax-error" }, { 1, 28, "abstract-syntax-error-reject" }, { 2, 39, "abstract-syntax-error-ignore-and-notify" }, @@ -128,7 +128,7 @@ static const asn_INTEGER_enum_map_t asn_MAP_CauseProtocol_value2enum_1[] = { { 6, 49, "abstract-syntax-error-falsely-constructed-message" } /* This list is extensible */ }; -static const unsigned int asn_MAP_CauseProtocol_enum2value_1[] = { +static const unsigned int asn_MAP_HNBAP_CauseProtocol_enum2value_1[] = { 6, /* abstract-syntax-error-falsely-constructed-message(6) */ 2, /* abstract-syntax-error-ignore-and-notify(2) */ 1, /* abstract-syntax-error-reject(1) */ @@ -138,41 +138,41 @@ static const unsigned int asn_MAP_CauseProtocol_enum2value_1[] = { 5 /* unspecified(5) */ /* This list is extensible */ }; -static const asn_INTEGER_specifics_t asn_SPC_CauseProtocol_specs_1 = { - asn_MAP_CauseProtocol_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_CauseProtocol_enum2value_1, /* N => "tag"; sorted by N */ +static const asn_INTEGER_specifics_t asn_SPC_HNBAP_CauseProtocol_specs_1 = { + asn_MAP_HNBAP_CauseProtocol_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_HNBAP_CauseProtocol_enum2value_1, /* N => "tag"; sorted by N */ 7, /* Number of elements in the maps */ 8, /* Extensions before this member */ 1, /* Strict enumeration */ 0, /* Native long size */ 0 }; -static const ber_tlv_tag_t asn_DEF_CauseProtocol_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_CauseProtocol_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_CauseProtocol = { - "CauseProtocol", - "CauseProtocol", - CauseProtocol_free, - CauseProtocol_print, - CauseProtocol_constraint, - CauseProtocol_decode_ber, - CauseProtocol_encode_der, - CauseProtocol_decode_xer, - CauseProtocol_encode_xer, - CauseProtocol_decode_uper, - CauseProtocol_encode_uper, - CauseProtocol_decode_aper, - CauseProtocol_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_CauseProtocol = { + "HNBAP_CauseProtocol", + "HNBAP_CauseProtocol", + HNBAP_CauseProtocol_free, + HNBAP_CauseProtocol_print, + HNBAP_CauseProtocol_constraint, + HNBAP_CauseProtocol_decode_ber, + HNBAP_CauseProtocol_encode_der, + HNBAP_CauseProtocol_decode_xer, + HNBAP_CauseProtocol_encode_xer, + HNBAP_CauseProtocol_decode_uper, + HNBAP_CauseProtocol_encode_uper, + HNBAP_CauseProtocol_decode_aper, + HNBAP_CauseProtocol_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_CauseProtocol_tags_1, - sizeof(asn_DEF_CauseProtocol_tags_1) - /sizeof(asn_DEF_CauseProtocol_tags_1[0]), /* 1 */ - asn_DEF_CauseProtocol_tags_1, /* Same as above */ - sizeof(asn_DEF_CauseProtocol_tags_1) - /sizeof(asn_DEF_CauseProtocol_tags_1[0]), /* 1 */ - &asn_PER_type_CauseProtocol_constr_1, + asn_DEF_HNBAP_CauseProtocol_tags_1, + sizeof(asn_DEF_HNBAP_CauseProtocol_tags_1) + /sizeof(asn_DEF_HNBAP_CauseProtocol_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_CauseProtocol_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_CauseProtocol_tags_1) + /sizeof(asn_DEF_HNBAP_CauseProtocol_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_CauseProtocol_constr_1, 0, 0, /* Defined elsewhere */ - &asn_SPC_CauseProtocol_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_CauseProtocol_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/CauseRadioNetwork.c b/src/hnbap/HNBAP_CauseRadioNetwork.c index c7c1fd3..f1beead 100644 --- a/src/hnbap/CauseRadioNetwork.c +++ b/src/hnbap/HNBAP_CauseRadioNetwork.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/CauseRadioNetwork.h> +#include <osmocom/hnbap/HNBAP_CauseRadioNetwork.h> int -CauseRadioNetwork_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_CauseRadioNetwork_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { /* Replace with underlying type checker */ td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -20,7 +20,7 @@ CauseRadioNetwork_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -CauseRadioNetwork_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_CauseRadioNetwork_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeEnumerated.free_struct; td->print_struct = asn_DEF_NativeEnumerated.print_struct; td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -40,85 +40,85 @@ CauseRadioNetwork_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -CauseRadioNetwork_free(asn_TYPE_descriptor_t *td, +HNBAP_CauseRadioNetwork_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - CauseRadioNetwork_1_inherit_TYPE_descriptor(td); + HNBAP_CauseRadioNetwork_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -CauseRadioNetwork_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_CauseRadioNetwork_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - CauseRadioNetwork_1_inherit_TYPE_descriptor(td); + HNBAP_CauseRadioNetwork_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -CauseRadioNetwork_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CauseRadioNetwork_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - CauseRadioNetwork_1_inherit_TYPE_descriptor(td); + HNBAP_CauseRadioNetwork_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -CauseRadioNetwork_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_CauseRadioNetwork_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - CauseRadioNetwork_1_inherit_TYPE_descriptor(td); + HNBAP_CauseRadioNetwork_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -CauseRadioNetwork_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CauseRadioNetwork_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - CauseRadioNetwork_1_inherit_TYPE_descriptor(td); + HNBAP_CauseRadioNetwork_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -CauseRadioNetwork_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_CauseRadioNetwork_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - CauseRadioNetwork_1_inherit_TYPE_descriptor(td); + HNBAP_CauseRadioNetwork_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -CauseRadioNetwork_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CauseRadioNetwork_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CauseRadioNetwork_1_inherit_TYPE_descriptor(td); + HNBAP_CauseRadioNetwork_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -CauseRadioNetwork_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_CauseRadioNetwork_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CauseRadioNetwork_1_inherit_TYPE_descriptor(td); + HNBAP_CauseRadioNetwork_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -CauseRadioNetwork_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_CauseRadioNetwork_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CauseRadioNetwork_1_inherit_TYPE_descriptor(td); + HNBAP_CauseRadioNetwork_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -CauseRadioNetwork_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CauseRadioNetwork_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CauseRadioNetwork_1_inherit_TYPE_descriptor(td); + HNBAP_CauseRadioNetwork_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_CauseRadioNetwork_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_CauseRadioNetwork_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 4, 4, 0l, 13l } /* (0..13,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const asn_INTEGER_enum_map_t asn_MAP_CauseRadioNetwork_value2enum_1[] = { +static const asn_INTEGER_enum_map_t asn_MAP_HNBAP_CauseRadioNetwork_value2enum_1[] = { { 0, 8, "overload" }, { 1, 21, "unauthorised-Location" }, { 2, 16, "unauthorised-HNB" }, @@ -137,7 +137,7 @@ static const asn_INTEGER_enum_map_t asn_MAP_CauseRadioNetwork_value2enum_1[] = { { 15, 45, "iurh-connection-to-that-neighbour-not-Allowed" } /* This list is extensible */ }; -static const unsigned int asn_MAP_CauseRadioNetwork_enum2value_1[] = { +static const unsigned int asn_MAP_HNBAP_CauseRadioNetwork_enum2value_1[] = { 7, /* connection-with-UE-lost(7) */ 9, /* hNB-not-registered(9) */ 3, /* hNB-parameter-mismatch(3) */ @@ -156,41 +156,41 @@ static const unsigned int asn_MAP_CauseRadioNetwork_enum2value_1[] = { 10 /* unspecified(10) */ /* This list is extensible */ }; -static const asn_INTEGER_specifics_t asn_SPC_CauseRadioNetwork_specs_1 = { - asn_MAP_CauseRadioNetwork_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_CauseRadioNetwork_enum2value_1, /* N => "tag"; sorted by N */ +static const asn_INTEGER_specifics_t asn_SPC_HNBAP_CauseRadioNetwork_specs_1 = { + asn_MAP_HNBAP_CauseRadioNetwork_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_HNBAP_CauseRadioNetwork_enum2value_1, /* N => "tag"; sorted by N */ 16, /* Number of elements in the maps */ 15, /* Extensions before this member */ 1, /* Strict enumeration */ 0, /* Native long size */ 0 }; -static const ber_tlv_tag_t asn_DEF_CauseRadioNetwork_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_CauseRadioNetwork_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_CauseRadioNetwork = { - "CauseRadioNetwork", - "CauseRadioNetwork", - CauseRadioNetwork_free, - CauseRadioNetwork_print, - CauseRadioNetwork_constraint, - CauseRadioNetwork_decode_ber, - CauseRadioNetwork_encode_der, - CauseRadioNetwork_decode_xer, - CauseRadioNetwork_encode_xer, - CauseRadioNetwork_decode_uper, - CauseRadioNetwork_encode_uper, - CauseRadioNetwork_decode_aper, - CauseRadioNetwork_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_CauseRadioNetwork = { + "HNBAP_CauseRadioNetwork", + "HNBAP_CauseRadioNetwork", + HNBAP_CauseRadioNetwork_free, + HNBAP_CauseRadioNetwork_print, + HNBAP_CauseRadioNetwork_constraint, + HNBAP_CauseRadioNetwork_decode_ber, + HNBAP_CauseRadioNetwork_encode_der, + HNBAP_CauseRadioNetwork_decode_xer, + HNBAP_CauseRadioNetwork_encode_xer, + HNBAP_CauseRadioNetwork_decode_uper, + HNBAP_CauseRadioNetwork_encode_uper, + HNBAP_CauseRadioNetwork_decode_aper, + HNBAP_CauseRadioNetwork_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_CauseRadioNetwork_tags_1, - sizeof(asn_DEF_CauseRadioNetwork_tags_1) - /sizeof(asn_DEF_CauseRadioNetwork_tags_1[0]), /* 1 */ - asn_DEF_CauseRadioNetwork_tags_1, /* Same as above */ - sizeof(asn_DEF_CauseRadioNetwork_tags_1) - /sizeof(asn_DEF_CauseRadioNetwork_tags_1[0]), /* 1 */ - &asn_PER_type_CauseRadioNetwork_constr_1, + asn_DEF_HNBAP_CauseRadioNetwork_tags_1, + sizeof(asn_DEF_HNBAP_CauseRadioNetwork_tags_1) + /sizeof(asn_DEF_HNBAP_CauseRadioNetwork_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_CauseRadioNetwork_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_CauseRadioNetwork_tags_1) + /sizeof(asn_DEF_HNBAP_CauseRadioNetwork_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_CauseRadioNetwork_constr_1, 0, 0, /* Defined elsewhere */ - &asn_SPC_CauseRadioNetwork_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_CauseRadioNetwork_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/CauseTransport.c b/src/hnbap/HNBAP_CauseTransport.c index 5af93bd..e3b6755 100644 --- a/src/hnbap/CauseTransport.c +++ b/src/hnbap/HNBAP_CauseTransport.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/CauseTransport.h> +#include <osmocom/hnbap/HNBAP_CauseTransport.h> int -CauseTransport_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_CauseTransport_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { /* Replace with underlying type checker */ td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -20,7 +20,7 @@ CauseTransport_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -CauseTransport_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_CauseTransport_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeEnumerated.free_struct; td->print_struct = asn_DEF_NativeEnumerated.print_struct; td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -40,129 +40,129 @@ CauseTransport_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -CauseTransport_free(asn_TYPE_descriptor_t *td, +HNBAP_CauseTransport_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - CauseTransport_1_inherit_TYPE_descriptor(td); + HNBAP_CauseTransport_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -CauseTransport_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_CauseTransport_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - CauseTransport_1_inherit_TYPE_descriptor(td); + HNBAP_CauseTransport_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -CauseTransport_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CauseTransport_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - CauseTransport_1_inherit_TYPE_descriptor(td); + HNBAP_CauseTransport_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -CauseTransport_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_CauseTransport_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - CauseTransport_1_inherit_TYPE_descriptor(td); + HNBAP_CauseTransport_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -CauseTransport_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CauseTransport_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - CauseTransport_1_inherit_TYPE_descriptor(td); + HNBAP_CauseTransport_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -CauseTransport_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_CauseTransport_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - CauseTransport_1_inherit_TYPE_descriptor(td); + HNBAP_CauseTransport_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -CauseTransport_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CauseTransport_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CauseTransport_1_inherit_TYPE_descriptor(td); + HNBAP_CauseTransport_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -CauseTransport_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_CauseTransport_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CauseTransport_1_inherit_TYPE_descriptor(td); + HNBAP_CauseTransport_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -CauseTransport_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_CauseTransport_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CauseTransport_1_inherit_TYPE_descriptor(td); + HNBAP_CauseTransport_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -CauseTransport_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_CauseTransport_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CauseTransport_1_inherit_TYPE_descriptor(td); + HNBAP_CauseTransport_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_CauseTransport_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_CauseTransport_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0l, 1l } /* (0..1,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const asn_INTEGER_enum_map_t asn_MAP_CauseTransport_value2enum_1[] = { +static const asn_INTEGER_enum_map_t asn_MAP_HNBAP_CauseTransport_value2enum_1[] = { { 0, 30, "transport-resource-unavailable" }, { 1, 11, "unspecified" } /* This list is extensible */ }; -static const unsigned int asn_MAP_CauseTransport_enum2value_1[] = { +static const unsigned int asn_MAP_HNBAP_CauseTransport_enum2value_1[] = { 0, /* transport-resource-unavailable(0) */ 1 /* unspecified(1) */ /* This list is extensible */ }; -static const asn_INTEGER_specifics_t asn_SPC_CauseTransport_specs_1 = { - asn_MAP_CauseTransport_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_CauseTransport_enum2value_1, /* N => "tag"; sorted by N */ +static const asn_INTEGER_specifics_t asn_SPC_HNBAP_CauseTransport_specs_1 = { + asn_MAP_HNBAP_CauseTransport_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_HNBAP_CauseTransport_enum2value_1, /* N => "tag"; sorted by N */ 2, /* Number of elements in the maps */ 3, /* Extensions before this member */ 1, /* Strict enumeration */ 0, /* Native long size */ 0 }; -static const ber_tlv_tag_t asn_DEF_CauseTransport_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_CauseTransport_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_CauseTransport = { - "CauseTransport", - "CauseTransport", - CauseTransport_free, - CauseTransport_print, - CauseTransport_constraint, - CauseTransport_decode_ber, - CauseTransport_encode_der, - CauseTransport_decode_xer, - CauseTransport_encode_xer, - CauseTransport_decode_uper, - CauseTransport_encode_uper, - CauseTransport_decode_aper, - CauseTransport_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_CauseTransport = { + "HNBAP_CauseTransport", + "HNBAP_CauseTransport", + HNBAP_CauseTransport_free, + HNBAP_CauseTransport_print, + HNBAP_CauseTransport_constraint, + HNBAP_CauseTransport_decode_ber, + HNBAP_CauseTransport_encode_der, + HNBAP_CauseTransport_decode_xer, + HNBAP_CauseTransport_encode_xer, + HNBAP_CauseTransport_decode_uper, + HNBAP_CauseTransport_encode_uper, + HNBAP_CauseTransport_decode_aper, + HNBAP_CauseTransport_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_CauseTransport_tags_1, - sizeof(asn_DEF_CauseTransport_tags_1) - /sizeof(asn_DEF_CauseTransport_tags_1[0]), /* 1 */ - asn_DEF_CauseTransport_tags_1, /* Same as above */ - sizeof(asn_DEF_CauseTransport_tags_1) - /sizeof(asn_DEF_CauseTransport_tags_1[0]), /* 1 */ - &asn_PER_type_CauseTransport_constr_1, + asn_DEF_HNBAP_CauseTransport_tags_1, + sizeof(asn_DEF_HNBAP_CauseTransport_tags_1) + /sizeof(asn_DEF_HNBAP_CauseTransport_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_CauseTransport_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_CauseTransport_tags_1) + /sizeof(asn_DEF_HNBAP_CauseTransport_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_CauseTransport_constr_1, 0, 0, /* Defined elsewhere */ - &asn_SPC_CauseTransport_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_CauseTransport_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/HNBAP_CellIdentity.c b/src/hnbap/HNBAP_CellIdentity.c new file mode 100644 index 0000000..daf8e5e --- /dev/null +++ b/src/hnbap/HNBAP_CellIdentity.c @@ -0,0 +1,172 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_CellIdentity.h> + +int +HNBAP_CellIdentity_constraint(asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + _ASN_CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size == 28l)) { + /* Constraint check succeeded */ + return 0; + } else { + _ASN_CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using BIT_STRING, + * so here we adjust the DEF accordingly. + */ +static void +HNBAP_CellIdentity_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { + td->free_struct = asn_DEF_BIT_STRING.free_struct; + td->print_struct = asn_DEF_BIT_STRING.print_struct; + td->check_constraints = asn_DEF_BIT_STRING.check_constraints; + td->ber_decoder = asn_DEF_BIT_STRING.ber_decoder; + td->der_encoder = asn_DEF_BIT_STRING.der_encoder; + td->xer_decoder = asn_DEF_BIT_STRING.xer_decoder; + td->xer_encoder = asn_DEF_BIT_STRING.xer_encoder; + td->uper_decoder = asn_DEF_BIT_STRING.uper_decoder; + td->uper_encoder = asn_DEF_BIT_STRING.uper_encoder; + td->aper_decoder = asn_DEF_BIT_STRING.aper_decoder; + td->aper_encoder = asn_DEF_BIT_STRING.aper_encoder; + if(!td->per_constraints) + td->per_constraints = asn_DEF_BIT_STRING.per_constraints; + td->elements = asn_DEF_BIT_STRING.elements; + td->elements_count = asn_DEF_BIT_STRING.elements_count; + td->specifics = asn_DEF_BIT_STRING.specifics; +} + +void +HNBAP_CellIdentity_free(asn_TYPE_descriptor_t *td, + void *struct_ptr, int contents_only) { + HNBAP_CellIdentity_1_inherit_TYPE_descriptor(td); + td->free_struct(td, struct_ptr, contents_only); +} + +int +HNBAP_CellIdentity_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, + int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { + HNBAP_CellIdentity_1_inherit_TYPE_descriptor(td); + return td->print_struct(td, struct_ptr, ilevel, cb, app_key); +} + +asn_dec_rval_t +HNBAP_CellIdentity_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, + void **structure, const void *bufptr, size_t size, int tag_mode) { + HNBAP_CellIdentity_1_inherit_TYPE_descriptor(td); + return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); +} + +asn_enc_rval_t +HNBAP_CellIdentity_encode_der(asn_TYPE_descriptor_t *td, + void *structure, int tag_mode, ber_tlv_tag_t tag, + asn_app_consume_bytes_f *cb, void *app_key) { + HNBAP_CellIdentity_1_inherit_TYPE_descriptor(td); + return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); +} + +asn_dec_rval_t +HNBAP_CellIdentity_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, + void **structure, const char *opt_mname, const void *bufptr, size_t size) { + HNBAP_CellIdentity_1_inherit_TYPE_descriptor(td); + return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); +} + +asn_enc_rval_t +HNBAP_CellIdentity_encode_xer(asn_TYPE_descriptor_t *td, void *structure, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + HNBAP_CellIdentity_1_inherit_TYPE_descriptor(td); + return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); +} + +asn_dec_rval_t +HNBAP_CellIdentity_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, + asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { + HNBAP_CellIdentity_1_inherit_TYPE_descriptor(td); + return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); +} + +asn_enc_rval_t +HNBAP_CellIdentity_encode_uper(asn_TYPE_descriptor_t *td, + asn_per_constraints_t *constraints, + void *structure, asn_per_outp_t *per_out) { + HNBAP_CellIdentity_1_inherit_TYPE_descriptor(td); + return td->uper_encoder(td, constraints, structure, per_out); +} + +asn_enc_rval_t +HNBAP_CellIdentity_encode_aper(asn_TYPE_descriptor_t *td, + asn_per_constraints_t *constraints, + void *structure, asn_per_outp_t *per_out) { + HNBAP_CellIdentity_1_inherit_TYPE_descriptor(td); + return td->aper_encoder(td, constraints, structure, per_out); +} + +asn_dec_rval_t +HNBAP_CellIdentity_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, + asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { + HNBAP_CellIdentity_1_inherit_TYPE_descriptor(td); + return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); +} + +static asn_per_constraints_t asn_PER_type_HNBAP_CellIdentity_constr_1 GCC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 28l, 28l } /* (SIZE(28..28)) */, + 0, 0 /* No PER value map */ +}; +static const ber_tlv_tag_t asn_DEF_HNBAP_CellIdentity_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_CellIdentity = { + "HNBAP_CellIdentity", + "HNBAP_CellIdentity", + HNBAP_CellIdentity_free, + HNBAP_CellIdentity_print, + HNBAP_CellIdentity_constraint, + HNBAP_CellIdentity_decode_ber, + HNBAP_CellIdentity_encode_der, + HNBAP_CellIdentity_decode_xer, + HNBAP_CellIdentity_encode_xer, + HNBAP_CellIdentity_decode_uper, + HNBAP_CellIdentity_encode_uper, + HNBAP_CellIdentity_decode_aper, + HNBAP_CellIdentity_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_CellIdentity_tags_1, + sizeof(asn_DEF_HNBAP_CellIdentity_tags_1) + /sizeof(asn_DEF_HNBAP_CellIdentity_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_CellIdentity_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_CellIdentity_tags_1) + /sizeof(asn_DEF_HNBAP_CellIdentity_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_CellIdentity_constr_1, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/src/hnbap/HNBAP_ConfigurationInformation.c b/src/hnbap/HNBAP_ConfigurationInformation.c new file mode 100644 index 0000000..13bfe4a --- /dev/null +++ b/src/hnbap/HNBAP_ConfigurationInformation.c @@ -0,0 +1,73 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_ConfigurationInformation.h> + +static asn_per_constraints_t asn_PER_type_HNBAP_ConfigurationInformation_constr_1 GCC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0l, 1l } /* (0..1,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +static asn_TYPE_member_t asn_MBR_HNBAP_ConfigurationInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_ConfigurationInformation, choice.provided), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_HNBConfigurationInformationProvided, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "provided" + }, + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_ConfigurationInformation, choice.missing), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_HNBConfigurationInformationMissing, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "missing" + }, +}; +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_ConfigurationInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* provided */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* missing */ +}; +static asn_CHOICE_specifics_t asn_SPC_HNBAP_ConfigurationInformation_specs_1 = { + sizeof(struct HNBAP_ConfigurationInformation), + offsetof(struct HNBAP_ConfigurationInformation, _asn_ctx), + offsetof(struct HNBAP_ConfigurationInformation, present), + sizeof(((struct HNBAP_ConfigurationInformation *)0)->present), + asn_MAP_HNBAP_ConfigurationInformation_tag2el_1, + 2, /* Count of tags in the map */ + 0, + 2 /* Extensions start */ +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_ConfigurationInformation = { + "HNBAP_ConfigurationInformation", + "HNBAP_ConfigurationInformation", + CHOICE_free, + CHOICE_print, + CHOICE_constraint, + CHOICE_decode_ber, + CHOICE_encode_der, + CHOICE_decode_xer, + CHOICE_encode_xer, + CHOICE_decode_uper, + CHOICE_encode_uper, + CHOICE_decode_aper, + CHOICE_encode_aper, + CHOICE_outmost_tag, + 0, /* No effective tags (pointer) */ + 0, /* No effective tags (count) */ + 0, /* No tags (pointer) */ + 0, /* No tags (count) */ + &asn_PER_type_HNBAP_ConfigurationInformation_constr_1, + asn_MBR_HNBAP_ConfigurationInformation_1, + 2, /* Elements count */ + &asn_SPC_HNBAP_ConfigurationInformation_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/CSG-ID.c b/src/hnbap/HNBAP_Context-ID.c index 2be0029..c8606d8 100644 --- a/src/hnbap/CSG-ID.c +++ b/src/hnbap/HNBAP_Context-ID.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/CSG-ID.h> +#include <osmocom/hnbap/HNBAP_Context-ID.h> int -CSG_ID_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_Context_ID_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; size_t size; @@ -27,7 +27,7 @@ CSG_ID_constraint(asn_TYPE_descriptor_t *td, const void *sptr, size = 0; } - if((size == 27l)) { + if((size == 24l)) { /* Constraint check succeeded */ return 0; } else { @@ -43,7 +43,7 @@ CSG_ID_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -CSG_ID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_Context_ID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_BIT_STRING.free_struct; td->print_struct = asn_DEF_BIT_STRING.print_struct; td->check_constraints = asn_DEF_BIT_STRING.check_constraints; @@ -63,109 +63,109 @@ CSG_ID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -CSG_ID_free(asn_TYPE_descriptor_t *td, +HNBAP_Context_ID_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - CSG_ID_1_inherit_TYPE_descriptor(td); + HNBAP_Context_ID_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -CSG_ID_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_Context_ID_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - CSG_ID_1_inherit_TYPE_descriptor(td); + HNBAP_Context_ID_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -CSG_ID_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Context_ID_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - CSG_ID_1_inherit_TYPE_descriptor(td); + HNBAP_Context_ID_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -CSG_ID_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_Context_ID_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - CSG_ID_1_inherit_TYPE_descriptor(td); + HNBAP_Context_ID_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -CSG_ID_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Context_ID_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - CSG_ID_1_inherit_TYPE_descriptor(td); + HNBAP_Context_ID_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -CSG_ID_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_Context_ID_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - CSG_ID_1_inherit_TYPE_descriptor(td); + HNBAP_Context_ID_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -CSG_ID_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Context_ID_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CSG_ID_1_inherit_TYPE_descriptor(td); + HNBAP_Context_ID_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -CSG_ID_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_Context_ID_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CSG_ID_1_inherit_TYPE_descriptor(td); + HNBAP_Context_ID_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -CSG_ID_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_Context_ID_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CSG_ID_1_inherit_TYPE_descriptor(td); + HNBAP_Context_ID_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -CSG_ID_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Context_ID_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CSG_ID_1_inherit_TYPE_descriptor(td); + HNBAP_Context_ID_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_CSG_ID_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_Context_ID_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 27l, 27l } /* (SIZE(27..27)) */, + { APC_CONSTRAINED, 0, 0, 24l, 24l } /* (SIZE(24..24)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_CSG_ID_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_Context_ID_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_CSG_ID = { - "CSG-ID", - "CSG-ID", - CSG_ID_free, - CSG_ID_print, - CSG_ID_constraint, - CSG_ID_decode_ber, - CSG_ID_encode_der, - CSG_ID_decode_xer, - CSG_ID_encode_xer, - CSG_ID_decode_uper, - CSG_ID_encode_uper, - CSG_ID_decode_aper, - CSG_ID_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_Context_ID = { + "HNBAP_Context-ID", + "HNBAP_Context-ID", + HNBAP_Context_ID_free, + HNBAP_Context_ID_print, + HNBAP_Context_ID_constraint, + HNBAP_Context_ID_decode_ber, + HNBAP_Context_ID_encode_der, + HNBAP_Context_ID_decode_xer, + HNBAP_Context_ID_encode_xer, + HNBAP_Context_ID_decode_uper, + HNBAP_Context_ID_encode_uper, + HNBAP_Context_ID_decode_aper, + HNBAP_Context_ID_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_CSG_ID_tags_1, - sizeof(asn_DEF_CSG_ID_tags_1) - /sizeof(asn_DEF_CSG_ID_tags_1[0]), /* 1 */ - asn_DEF_CSG_ID_tags_1, /* Same as above */ - sizeof(asn_DEF_CSG_ID_tags_1) - /sizeof(asn_DEF_CSG_ID_tags_1[0]), /* 1 */ - &asn_PER_type_CSG_ID_constr_1, + asn_DEF_HNBAP_Context_ID_tags_1, + sizeof(asn_DEF_HNBAP_Context_ID_tags_1) + /sizeof(asn_DEF_HNBAP_Context_ID_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_Context_ID_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_Context_ID_tags_1) + /sizeof(asn_DEF_HNBAP_Context_ID_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_Context_ID_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/TriggeringMessage.c b/src/hnbap/HNBAP_Criticality.c index c50a487..2ff443f 100644 --- a/src/hnbap/TriggeringMessage.c +++ b/src/hnbap/HNBAP_Criticality.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-CommonDataTypes" * found in "../../asn1/hnbap/HNBAP-CommonDataTypes.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/TriggeringMessage.h> +#include <osmocom/hnbap/HNBAP_Criticality.h> int -TriggeringMessage_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_Criticality_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { /* Replace with underlying type checker */ td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -20,7 +20,7 @@ TriggeringMessage_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -TriggeringMessage_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_Criticality_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeEnumerated.free_struct; td->print_struct = asn_DEF_NativeEnumerated.print_struct; td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -40,129 +40,129 @@ TriggeringMessage_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -TriggeringMessage_free(asn_TYPE_descriptor_t *td, +HNBAP_Criticality_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - TriggeringMessage_1_inherit_TYPE_descriptor(td); + HNBAP_Criticality_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -TriggeringMessage_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_Criticality_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - TriggeringMessage_1_inherit_TYPE_descriptor(td); + HNBAP_Criticality_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -TriggeringMessage_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Criticality_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - TriggeringMessage_1_inherit_TYPE_descriptor(td); + HNBAP_Criticality_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -TriggeringMessage_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_Criticality_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - TriggeringMessage_1_inherit_TYPE_descriptor(td); + HNBAP_Criticality_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -TriggeringMessage_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Criticality_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - TriggeringMessage_1_inherit_TYPE_descriptor(td); + HNBAP_Criticality_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -TriggeringMessage_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_Criticality_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - TriggeringMessage_1_inherit_TYPE_descriptor(td); + HNBAP_Criticality_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -TriggeringMessage_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Criticality_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - TriggeringMessage_1_inherit_TYPE_descriptor(td); + HNBAP_Criticality_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -TriggeringMessage_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_Criticality_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - TriggeringMessage_1_inherit_TYPE_descriptor(td); + HNBAP_Criticality_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -TriggeringMessage_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_Criticality_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - TriggeringMessage_1_inherit_TYPE_descriptor(td); + HNBAP_Criticality_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -TriggeringMessage_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Criticality_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - TriggeringMessage_1_inherit_TYPE_descriptor(td); + HNBAP_Criticality_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_TriggeringMessage_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_Criticality_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED, 2, 2, 0l, 2l } /* (0..2) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const asn_INTEGER_enum_map_t asn_MAP_TriggeringMessage_value2enum_1[] = { - { 0, 18, "initiating-message" }, - { 1, 18, "successful-outcome" }, - { 2, 20, "unsuccessful-outcome" } +static const asn_INTEGER_enum_map_t asn_MAP_HNBAP_Criticality_value2enum_1[] = { + { 0, 6, "reject" }, + { 1, 6, "ignore" }, + { 2, 6, "notify" } }; -static const unsigned int asn_MAP_TriggeringMessage_enum2value_1[] = { - 0, /* initiating-message(0) */ - 1, /* successful-outcome(1) */ - 2 /* unsuccessful-outcome(2) */ +static const unsigned int asn_MAP_HNBAP_Criticality_enum2value_1[] = { + 1, /* ignore(1) */ + 2, /* notify(2) */ + 0 /* reject(0) */ }; -static const asn_INTEGER_specifics_t asn_SPC_TriggeringMessage_specs_1 = { - asn_MAP_TriggeringMessage_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_TriggeringMessage_enum2value_1, /* N => "tag"; sorted by N */ +static const asn_INTEGER_specifics_t asn_SPC_HNBAP_Criticality_specs_1 = { + asn_MAP_HNBAP_Criticality_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_HNBAP_Criticality_enum2value_1, /* N => "tag"; sorted by N */ 3, /* Number of elements in the maps */ 0, /* Enumeration is not extensible */ 1, /* Strict enumeration */ 0, /* Native long size */ 0 }; -static const ber_tlv_tag_t asn_DEF_TriggeringMessage_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_Criticality_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_TriggeringMessage = { - "TriggeringMessage", - "TriggeringMessage", - TriggeringMessage_free, - TriggeringMessage_print, - TriggeringMessage_constraint, - TriggeringMessage_decode_ber, - TriggeringMessage_encode_der, - TriggeringMessage_decode_xer, - TriggeringMessage_encode_xer, - TriggeringMessage_decode_uper, - TriggeringMessage_encode_uper, - TriggeringMessage_decode_aper, - TriggeringMessage_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_Criticality = { + "HNBAP_Criticality", + "HNBAP_Criticality", + HNBAP_Criticality_free, + HNBAP_Criticality_print, + HNBAP_Criticality_constraint, + HNBAP_Criticality_decode_ber, + HNBAP_Criticality_encode_der, + HNBAP_Criticality_decode_xer, + HNBAP_Criticality_encode_xer, + HNBAP_Criticality_decode_uper, + HNBAP_Criticality_encode_uper, + HNBAP_Criticality_decode_aper, + HNBAP_Criticality_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_TriggeringMessage_tags_1, - sizeof(asn_DEF_TriggeringMessage_tags_1) - /sizeof(asn_DEF_TriggeringMessage_tags_1[0]), /* 1 */ - asn_DEF_TriggeringMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_TriggeringMessage_tags_1) - /sizeof(asn_DEF_TriggeringMessage_tags_1[0]), /* 1 */ - &asn_PER_type_TriggeringMessage_constr_1, + asn_DEF_HNBAP_Criticality_tags_1, + sizeof(asn_DEF_HNBAP_Criticality_tags_1) + /sizeof(asn_DEF_HNBAP_Criticality_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_Criticality_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_Criticality_tags_1) + /sizeof(asn_DEF_HNBAP_Criticality_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_Criticality_constr_1, 0, 0, /* Defined elsewhere */ - &asn_SPC_TriggeringMessage_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_Criticality_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/HNBAP_CriticalityDiagnostics-IE-List-Value.c b/src/hnbap/HNBAP_CriticalityDiagnostics-IE-List-Value.c new file mode 100644 index 0000000..6d67ce0 --- /dev/null +++ b/src/hnbap/HNBAP_CriticalityDiagnostics-IE-List-Value.c @@ -0,0 +1,94 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_CriticalityDiagnostics-IE-List-Value.h> + +static asn_TYPE_member_t asn_MBR_HNBAP_CriticalityDiagnostics_IE_List_Value_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_CriticalityDiagnostics_IE_List_Value, iECriticality), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_Criticality, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iECriticality" + }, + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_CriticalityDiagnostics_IE_List_Value, iE_ID), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_ProtocolIE_ID, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-ID" + }, + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_CriticalityDiagnostics_IE_List_Value, typeOfError), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_TypeOfError, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "typeOfError" + }, + { ATF_POINTER, 1, offsetof(struct HNBAP_CriticalityDiagnostics_IE_List_Value, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_HNBAP_CriticalityDiagnostics_IE_List_Value_oms_1[] = { 3 }; +static const ber_tlv_tag_t asn_DEF_HNBAP_CriticalityDiagnostics_IE_List_Value_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_CriticalityDiagnostics_IE_List_Value_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* iECriticality */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* iE-ID */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* typeOfError */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_CriticalityDiagnostics_IE_List_Value_specs_1 = { + sizeof(struct HNBAP_CriticalityDiagnostics_IE_List_Value), + offsetof(struct HNBAP_CriticalityDiagnostics_IE_List_Value, _asn_ctx), + asn_MAP_HNBAP_CriticalityDiagnostics_IE_List_Value_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_HNBAP_CriticalityDiagnostics_IE_List_Value_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* Start extensions */ + 5 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_CriticalityDiagnostics_IE_List_Value = { + "HNBAP_CriticalityDiagnostics-IE-List-Value", + "HNBAP_CriticalityDiagnostics-IE-List-Value", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_CriticalityDiagnostics_IE_List_Value_tags_1, + sizeof(asn_DEF_HNBAP_CriticalityDiagnostics_IE_List_Value_tags_1) + /sizeof(asn_DEF_HNBAP_CriticalityDiagnostics_IE_List_Value_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_CriticalityDiagnostics_IE_List_Value_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_CriticalityDiagnostics_IE_List_Value_tags_1) + /sizeof(asn_DEF_HNBAP_CriticalityDiagnostics_IE_List_Value_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_HNBAP_CriticalityDiagnostics_IE_List_Value_1, + 4, /* Elements count */ + &asn_SPC_HNBAP_CriticalityDiagnostics_IE_List_Value_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/HNBAP_CriticalityDiagnostics-IE-List.c b/src/hnbap/HNBAP_CriticalityDiagnostics-IE-List.c new file mode 100644 index 0000000..0a99963 --- /dev/null +++ b/src/hnbap/HNBAP_CriticalityDiagnostics-IE-List.c @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_CriticalityDiagnostics-IE-List.h> + +static asn_per_constraints_t asn_PER_type_HNBAP_CriticalityDiagnostics_IE_List_constr_1 GCC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 8, 8, 1l, 256l } /* (SIZE(1..256)) */, + 0, 0 /* No PER value map */ +}; +static asn_TYPE_member_t asn_MBR_HNBAP_CriticalityDiagnostics_IE_List_1[] = { + { ATF_POINTER, 0, 0, + -1 /* Ambiguous tag (CHOICE?) */, + 0, + &asn_DEF_HNBAP_CriticalityDiagnostics_IE_List_Value, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_HNBAP_CriticalityDiagnostics_IE_List_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_HNBAP_CriticalityDiagnostics_IE_List_specs_1 = { + sizeof(struct HNBAP_CriticalityDiagnostics_IE_List), + offsetof(struct HNBAP_CriticalityDiagnostics_IE_List, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_CriticalityDiagnostics_IE_List = { + "HNBAP_CriticalityDiagnostics-IE-List", + "HNBAP_CriticalityDiagnostics-IE-List", + SEQUENCE_OF_free, + SEQUENCE_OF_print, + SEQUENCE_OF_constraint, + SEQUENCE_OF_decode_ber, + SEQUENCE_OF_encode_der, + SEQUENCE_OF_decode_xer, + SEQUENCE_OF_encode_xer, + SEQUENCE_OF_decode_uper, + SEQUENCE_OF_encode_uper, + SEQUENCE_OF_decode_aper, + SEQUENCE_OF_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_CriticalityDiagnostics_IE_List_tags_1, + sizeof(asn_DEF_HNBAP_CriticalityDiagnostics_IE_List_tags_1) + /sizeof(asn_DEF_HNBAP_CriticalityDiagnostics_IE_List_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_CriticalityDiagnostics_IE_List_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_CriticalityDiagnostics_IE_List_tags_1) + /sizeof(asn_DEF_HNBAP_CriticalityDiagnostics_IE_List_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_CriticalityDiagnostics_IE_List_constr_1, + asn_MBR_HNBAP_CriticalityDiagnostics_IE_List_1, + 1, /* Single element */ + &asn_SPC_HNBAP_CriticalityDiagnostics_IE_List_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/CriticalityDiagnostics.c b/src/hnbap/HNBAP_CriticalityDiagnostics.c index 289ae3c..e80b352 100644 --- a/src/hnbap/CriticalityDiagnostics.c +++ b/src/hnbap/HNBAP_CriticalityDiagnostics.c @@ -2,82 +2,82 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/CriticalityDiagnostics.h> +#include <osmocom/hnbap/HNBAP_CriticalityDiagnostics.h> -static asn_TYPE_member_t asn_MBR_CriticalityDiagnostics_1[] = { - { ATF_POINTER, 5, offsetof(struct CriticalityDiagnostics, procedureCode), +static asn_TYPE_member_t asn_MBR_HNBAP_CriticalityDiagnostics_1[] = { + { ATF_POINTER, 5, offsetof(struct HNBAP_CriticalityDiagnostics, procedureCode), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_ProcedureCode, + &asn_DEF_HNBAP_ProcedureCode, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "procedureCode" }, - { ATF_POINTER, 4, offsetof(struct CriticalityDiagnostics, triggeringMessage), + { ATF_POINTER, 4, offsetof(struct HNBAP_CriticalityDiagnostics, triggeringMessage), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_TriggeringMessage, + &asn_DEF_HNBAP_TriggeringMessage, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "triggeringMessage" }, - { ATF_POINTER, 3, offsetof(struct CriticalityDiagnostics, procedureCriticality), + { ATF_POINTER, 3, offsetof(struct HNBAP_CriticalityDiagnostics, procedureCriticality), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_Criticality, + &asn_DEF_HNBAP_Criticality, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "procedureCriticality" }, - { ATF_POINTER, 2, offsetof(struct CriticalityDiagnostics, iEsCriticalityDiagnostics), + { ATF_POINTER, 2, offsetof(struct HNBAP_CriticalityDiagnostics, iEsCriticalityDiagnostics), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_CriticalityDiagnostics_IE_List, + &asn_DEF_HNBAP_CriticalityDiagnostics_IE_List, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "iEsCriticalityDiagnostics" }, - { ATF_POINTER, 1, offsetof(struct CriticalityDiagnostics, iE_Extensions), + { ATF_POINTER, 1, offsetof(struct HNBAP_CriticalityDiagnostics, iE_Extensions), (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_IE_Extensions, + &asn_DEF_HNBAP_IE_Extensions, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "iE-Extensions" }, }; -static const int asn_MAP_CriticalityDiagnostics_oms_1[] = { 0, 1, 2, 3, 4 }; -static const ber_tlv_tag_t asn_DEF_CriticalityDiagnostics_tags_1[] = { +static const int asn_MAP_HNBAP_CriticalityDiagnostics_oms_1[] = { 0, 1, 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_HNBAP_CriticalityDiagnostics_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_CriticalityDiagnostics_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_CriticalityDiagnostics_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* procedureCode */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* triggeringMessage */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* procedureCriticality */ { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* iEsCriticalityDiagnostics */ { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* iE-Extensions */ }; -static asn_SEQUENCE_specifics_t asn_SPC_CriticalityDiagnostics_specs_1 = { - sizeof(struct CriticalityDiagnostics), - offsetof(struct CriticalityDiagnostics, _asn_ctx), - asn_MAP_CriticalityDiagnostics_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_CriticalityDiagnostics_specs_1 = { + sizeof(struct HNBAP_CriticalityDiagnostics), + offsetof(struct HNBAP_CriticalityDiagnostics, _asn_ctx), + asn_MAP_HNBAP_CriticalityDiagnostics_tag2el_1, 5, /* Count of tags in the map */ - asn_MAP_CriticalityDiagnostics_oms_1, /* Optional members */ + asn_MAP_HNBAP_CriticalityDiagnostics_oms_1, /* Optional members */ 5, 0, /* Root/Additions */ 4, /* Start extensions */ 6 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_CriticalityDiagnostics = { - "CriticalityDiagnostics", - "CriticalityDiagnostics", +asn_TYPE_descriptor_t asn_DEF_HNBAP_CriticalityDiagnostics = { + "HNBAP_CriticalityDiagnostics", + "HNBAP_CriticalityDiagnostics", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -90,15 +90,15 @@ asn_TYPE_descriptor_t asn_DEF_CriticalityDiagnostics = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_CriticalityDiagnostics_tags_1, - sizeof(asn_DEF_CriticalityDiagnostics_tags_1) - /sizeof(asn_DEF_CriticalityDiagnostics_tags_1[0]), /* 1 */ - asn_DEF_CriticalityDiagnostics_tags_1, /* Same as above */ - sizeof(asn_DEF_CriticalityDiagnostics_tags_1) - /sizeof(asn_DEF_CriticalityDiagnostics_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_CriticalityDiagnostics_tags_1, + sizeof(asn_DEF_HNBAP_CriticalityDiagnostics_tags_1) + /sizeof(asn_DEF_HNBAP_CriticalityDiagnostics_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_CriticalityDiagnostics_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_CriticalityDiagnostics_tags_1) + /sizeof(asn_DEF_HNBAP_CriticalityDiagnostics_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_CriticalityDiagnostics_1, + asn_MBR_HNBAP_CriticalityDiagnostics_1, 5, /* Elements count */ - &asn_SPC_CriticalityDiagnostics_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_CriticalityDiagnostics_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/PTMSI.c b/src/hnbap/HNBAP_ESN.c index 3b37f57..14107f7 100644 --- a/src/hnbap/PTMSI.c +++ b/src/hnbap/HNBAP_ESN.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/PTMSI.h> +#include <osmocom/hnbap/HNBAP_ESN.h> int -PTMSI_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_ESN_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; size_t size; @@ -43,7 +43,7 @@ PTMSI_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -PTMSI_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_ESN_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_BIT_STRING.free_struct; td->print_struct = asn_DEF_BIT_STRING.print_struct; td->check_constraints = asn_DEF_BIT_STRING.check_constraints; @@ -63,109 +63,109 @@ PTMSI_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -PTMSI_free(asn_TYPE_descriptor_t *td, +HNBAP_ESN_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - PTMSI_1_inherit_TYPE_descriptor(td); + HNBAP_ESN_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -PTMSI_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_ESN_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - PTMSI_1_inherit_TYPE_descriptor(td); + HNBAP_ESN_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -PTMSI_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_ESN_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - PTMSI_1_inherit_TYPE_descriptor(td); + HNBAP_ESN_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -PTMSI_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_ESN_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - PTMSI_1_inherit_TYPE_descriptor(td); + HNBAP_ESN_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -PTMSI_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_ESN_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - PTMSI_1_inherit_TYPE_descriptor(td); + HNBAP_ESN_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -PTMSI_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_ESN_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - PTMSI_1_inherit_TYPE_descriptor(td); + HNBAP_ESN_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -PTMSI_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_ESN_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - PTMSI_1_inherit_TYPE_descriptor(td); + HNBAP_ESN_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -PTMSI_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_ESN_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - PTMSI_1_inherit_TYPE_descriptor(td); + HNBAP_ESN_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -PTMSI_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_ESN_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - PTMSI_1_inherit_TYPE_descriptor(td); + HNBAP_ESN_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -PTMSI_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_ESN_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - PTMSI_1_inherit_TYPE_descriptor(td); + HNBAP_ESN_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_PTMSI_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_ESN_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 0, 0, 32l, 32l } /* (SIZE(32..32)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_PTMSI_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_ESN_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_PTMSI = { - "PTMSI", - "PTMSI", - PTMSI_free, - PTMSI_print, - PTMSI_constraint, - PTMSI_decode_ber, - PTMSI_encode_der, - PTMSI_decode_xer, - PTMSI_encode_xer, - PTMSI_decode_uper, - PTMSI_encode_uper, - PTMSI_decode_aper, - PTMSI_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_ESN = { + "HNBAP_ESN", + "HNBAP_ESN", + HNBAP_ESN_free, + HNBAP_ESN_print, + HNBAP_ESN_constraint, + HNBAP_ESN_decode_ber, + HNBAP_ESN_encode_der, + HNBAP_ESN_decode_xer, + HNBAP_ESN_encode_xer, + HNBAP_ESN_decode_uper, + HNBAP_ESN_encode_uper, + HNBAP_ESN_decode_aper, + HNBAP_ESN_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_PTMSI_tags_1, - sizeof(asn_DEF_PTMSI_tags_1) - /sizeof(asn_DEF_PTMSI_tags_1[0]), /* 1 */ - asn_DEF_PTMSI_tags_1, /* Same as above */ - sizeof(asn_DEF_PTMSI_tags_1) - /sizeof(asn_DEF_PTMSI_tags_1[0]), /* 1 */ - &asn_PER_type_PTMSI_constr_1, + asn_DEF_HNBAP_ESN_tags_1, + sizeof(asn_DEF_HNBAP_ESN_tags_1) + /sizeof(asn_DEF_HNBAP_ESN_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_ESN_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_ESN_tags_1) + /sizeof(asn_DEF_HNBAP_ESN_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_ESN_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/ErrorIndication.c b/src/hnbap/HNBAP_ErrorIndication.c index 9765617..7077ab5 100644 --- a/src/hnbap/ErrorIndication.c +++ b/src/hnbap/HNBAP_ErrorIndication.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/ErrorIndication.h> +#include <osmocom/hnbap/HNBAP_ErrorIndication.h> static int memb_errorIndication_ies_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, @@ -45,9 +45,9 @@ static asn_per_constraints_t asn_PER_memb_errorIndication_ies_constr_2 GCC_NOTUS }; static asn_TYPE_member_t asn_MBR_errorIndication_ies_2[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_IE, + &asn_DEF_HNBAP_IE, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, @@ -59,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_errorIndication_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_errorIndication_ies_specs_2 = { - sizeof(struct errorIndication_ies), - offsetof(struct errorIndication_ies, _asn_ctx), + sizeof(struct HNBAP_ErrorIndication__errorIndication_ies), + offsetof(struct HNBAP_ErrorIndication__errorIndication_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ @@ -91,8 +91,8 @@ asn_TYPE_descriptor_t asn_DEF_errorIndication_ies_2 = { &asn_SPC_errorIndication_ies_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_ErrorIndication_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct ErrorIndication, errorIndication_ies), +static asn_TYPE_member_t asn_MBR_HNBAP_ErrorIndication_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_ErrorIndication, errorIndication_ies), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_errorIndication_ies_2, @@ -102,24 +102,24 @@ static asn_TYPE_member_t asn_MBR_ErrorIndication_1[] = { "errorIndication-ies" }, }; -static const ber_tlv_tag_t asn_DEF_ErrorIndication_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_ErrorIndication_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_ErrorIndication_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_ErrorIndication_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* errorIndication-ies */ }; -static asn_SEQUENCE_specifics_t asn_SPC_ErrorIndication_specs_1 = { - sizeof(struct ErrorIndication), - offsetof(struct ErrorIndication, _asn_ctx), - asn_MAP_ErrorIndication_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_ErrorIndication_specs_1 = { + sizeof(struct HNBAP_ErrorIndication), + offsetof(struct HNBAP_ErrorIndication, _asn_ctx), + asn_MAP_HNBAP_ErrorIndication_tag2el_1, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 0, /* Start extensions */ 2 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_ErrorIndication = { - "ErrorIndication", - "ErrorIndication", +asn_TYPE_descriptor_t asn_DEF_HNBAP_ErrorIndication = { + "HNBAP_ErrorIndication", + "HNBAP_ErrorIndication", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -132,15 +132,15 @@ asn_TYPE_descriptor_t asn_DEF_ErrorIndication = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_ErrorIndication_tags_1, - sizeof(asn_DEF_ErrorIndication_tags_1) - /sizeof(asn_DEF_ErrorIndication_tags_1[0]), /* 1 */ - asn_DEF_ErrorIndication_tags_1, /* Same as above */ - sizeof(asn_DEF_ErrorIndication_tags_1) - /sizeof(asn_DEF_ErrorIndication_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_ErrorIndication_tags_1, + sizeof(asn_DEF_HNBAP_ErrorIndication_tags_1) + /sizeof(asn_DEF_HNBAP_ErrorIndication_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_ErrorIndication_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_ErrorIndication_tags_1) + /sizeof(asn_DEF_HNBAP_ErrorIndication_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_ErrorIndication_1, + asn_MBR_HNBAP_ErrorIndication_1, 1, /* Elements count */ - &asn_SPC_ErrorIndication_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_ErrorIndication_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/Ipv4Address.c b/src/hnbap/HNBAP_GTP-TEI.c index b56a5a5..448d611 100644 --- a/src/hnbap/Ipv4Address.c +++ b/src/hnbap/HNBAP_GTP-TEI.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/Ipv4Address.h> +#include <osmocom/hnbap/HNBAP_GTP-TEI.h> int -Ipv4Address_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_GTP_TEI_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; size_t size; @@ -38,7 +38,7 @@ Ipv4Address_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -Ipv4Address_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_GTP_TEI_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_OCTET_STRING.free_struct; td->print_struct = asn_DEF_OCTET_STRING.print_struct; td->check_constraints = asn_DEF_OCTET_STRING.check_constraints; @@ -58,109 +58,109 @@ Ipv4Address_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -Ipv4Address_free(asn_TYPE_descriptor_t *td, +HNBAP_GTP_TEI_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - Ipv4Address_1_inherit_TYPE_descriptor(td); + HNBAP_GTP_TEI_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -Ipv4Address_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_GTP_TEI_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - Ipv4Address_1_inherit_TYPE_descriptor(td); + HNBAP_GTP_TEI_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -Ipv4Address_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_GTP_TEI_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - Ipv4Address_1_inherit_TYPE_descriptor(td); + HNBAP_GTP_TEI_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -Ipv4Address_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_GTP_TEI_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - Ipv4Address_1_inherit_TYPE_descriptor(td); + HNBAP_GTP_TEI_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -Ipv4Address_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_GTP_TEI_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - Ipv4Address_1_inherit_TYPE_descriptor(td); + HNBAP_GTP_TEI_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -Ipv4Address_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_GTP_TEI_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - Ipv4Address_1_inherit_TYPE_descriptor(td); + HNBAP_GTP_TEI_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -Ipv4Address_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_GTP_TEI_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - Ipv4Address_1_inherit_TYPE_descriptor(td); + HNBAP_GTP_TEI_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -Ipv4Address_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_GTP_TEI_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - Ipv4Address_1_inherit_TYPE_descriptor(td); + HNBAP_GTP_TEI_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -Ipv4Address_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_GTP_TEI_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - Ipv4Address_1_inherit_TYPE_descriptor(td); + HNBAP_GTP_TEI_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -Ipv4Address_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_GTP_TEI_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - Ipv4Address_1_inherit_TYPE_descriptor(td); + HNBAP_GTP_TEI_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_Ipv4Address_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_GTP_TEI_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 0, 0, 4l, 4l } /* (SIZE(4..4)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_Ipv4Address_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_GTP_TEI_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_Ipv4Address = { - "Ipv4Address", - "Ipv4Address", - Ipv4Address_free, - Ipv4Address_print, - Ipv4Address_constraint, - Ipv4Address_decode_ber, - Ipv4Address_encode_der, - Ipv4Address_decode_xer, - Ipv4Address_encode_xer, - Ipv4Address_decode_uper, - Ipv4Address_encode_uper, - Ipv4Address_decode_aper, - Ipv4Address_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_GTP_TEI = { + "HNBAP_GTP-TEI", + "HNBAP_GTP-TEI", + HNBAP_GTP_TEI_free, + HNBAP_GTP_TEI_print, + HNBAP_GTP_TEI_constraint, + HNBAP_GTP_TEI_decode_ber, + HNBAP_GTP_TEI_encode_der, + HNBAP_GTP_TEI_decode_xer, + HNBAP_GTP_TEI_encode_xer, + HNBAP_GTP_TEI_decode_uper, + HNBAP_GTP_TEI_encode_uper, + HNBAP_GTP_TEI_decode_aper, + HNBAP_GTP_TEI_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_Ipv4Address_tags_1, - sizeof(asn_DEF_Ipv4Address_tags_1) - /sizeof(asn_DEF_Ipv4Address_tags_1[0]), /* 1 */ - asn_DEF_Ipv4Address_tags_1, /* Same as above */ - sizeof(asn_DEF_Ipv4Address_tags_1) - /sizeof(asn_DEF_Ipv4Address_tags_1[0]), /* 1 */ - &asn_PER_type_Ipv4Address_constr_1, + asn_DEF_HNBAP_GTP_TEI_tags_1, + sizeof(asn_DEF_HNBAP_GTP_TEI_tags_1) + /sizeof(asn_DEF_HNBAP_GTP_TEI_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_GTP_TEI_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_GTP_TEI_tags_1) + /sizeof(asn_DEF_HNBAP_GTP_TEI_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_GTP_TEI_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/GeographicalCoordinates.c b/src/hnbap/HNBAP_GeographicalCoordinates.c index 329b709..286a1f3 100644 --- a/src/hnbap/GeographicalCoordinates.c +++ b/src/hnbap/HNBAP_GeographicalCoordinates.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/GeographicalCoordinates.h> +#include <osmocom/hnbap/HNBAP_GeographicalCoordinates.h> static int latitudeSign_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr, @@ -226,8 +226,8 @@ asn_TYPE_descriptor_t asn_DEF_latitudeSign_2 = { &asn_SPC_latitudeSign_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_GeographicalCoordinates_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct GeographicalCoordinates, latitudeSign), +static asn_TYPE_member_t asn_MBR_HNBAP_GeographicalCoordinates_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_GeographicalCoordinates, latitudeSign), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_latitudeSign_2, @@ -236,7 +236,7 @@ static asn_TYPE_member_t asn_MBR_GeographicalCoordinates_1[] = { 0, "latitudeSign" }, - { ATF_NOFLAGS, 0, offsetof(struct GeographicalCoordinates, latitude), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_GeographicalCoordinates, latitude), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_NativeInteger, @@ -245,7 +245,7 @@ static asn_TYPE_member_t asn_MBR_GeographicalCoordinates_1[] = { 0, "latitude" }, - { ATF_NOFLAGS, 0, offsetof(struct GeographicalCoordinates, longitude), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_GeographicalCoordinates, longitude), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_NativeInteger, @@ -254,39 +254,39 @@ static asn_TYPE_member_t asn_MBR_GeographicalCoordinates_1[] = { 0, "longitude" }, - { ATF_POINTER, 1, offsetof(struct GeographicalCoordinates, iE_Extensions), + { ATF_POINTER, 1, offsetof(struct HNBAP_GeographicalCoordinates, iE_Extensions), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_IE_Extensions, + &asn_DEF_HNBAP_IE_Extensions, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "iE-Extensions" }, }; -static const int asn_MAP_GeographicalCoordinates_oms_1[] = { 3 }; -static const ber_tlv_tag_t asn_DEF_GeographicalCoordinates_tags_1[] = { +static const int asn_MAP_HNBAP_GeographicalCoordinates_oms_1[] = { 3 }; +static const ber_tlv_tag_t asn_DEF_HNBAP_GeographicalCoordinates_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_GeographicalCoordinates_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_GeographicalCoordinates_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* latitudeSign */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* latitude */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* longitude */ { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */ }; -static asn_SEQUENCE_specifics_t asn_SPC_GeographicalCoordinates_specs_1 = { - sizeof(struct GeographicalCoordinates), - offsetof(struct GeographicalCoordinates, _asn_ctx), - asn_MAP_GeographicalCoordinates_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_GeographicalCoordinates_specs_1 = { + sizeof(struct HNBAP_GeographicalCoordinates), + offsetof(struct HNBAP_GeographicalCoordinates, _asn_ctx), + asn_MAP_HNBAP_GeographicalCoordinates_tag2el_1, 4, /* Count of tags in the map */ - asn_MAP_GeographicalCoordinates_oms_1, /* Optional members */ + asn_MAP_HNBAP_GeographicalCoordinates_oms_1, /* Optional members */ 1, 0, /* Root/Additions */ 3, /* Start extensions */ 5 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_GeographicalCoordinates = { - "GeographicalCoordinates", - "GeographicalCoordinates", +asn_TYPE_descriptor_t asn_DEF_HNBAP_GeographicalCoordinates = { + "HNBAP_GeographicalCoordinates", + "HNBAP_GeographicalCoordinates", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -299,15 +299,15 @@ asn_TYPE_descriptor_t asn_DEF_GeographicalCoordinates = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_GeographicalCoordinates_tags_1, - sizeof(asn_DEF_GeographicalCoordinates_tags_1) - /sizeof(asn_DEF_GeographicalCoordinates_tags_1[0]), /* 1 */ - asn_DEF_GeographicalCoordinates_tags_1, /* Same as above */ - sizeof(asn_DEF_GeographicalCoordinates_tags_1) - /sizeof(asn_DEF_GeographicalCoordinates_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_GeographicalCoordinates_tags_1, + sizeof(asn_DEF_HNBAP_GeographicalCoordinates_tags_1) + /sizeof(asn_DEF_HNBAP_GeographicalCoordinates_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_GeographicalCoordinates_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_GeographicalCoordinates_tags_1) + /sizeof(asn_DEF_HNBAP_GeographicalCoordinates_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_GeographicalCoordinates_1, + asn_MBR_HNBAP_GeographicalCoordinates_1, 4, /* Elements count */ - &asn_SPC_GeographicalCoordinates_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_GeographicalCoordinates_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/HNBAP_GeographicalLocation.c b/src/hnbap/HNBAP_GeographicalLocation.c new file mode 100644 index 0000000..1d7c895 --- /dev/null +++ b/src/hnbap/HNBAP_GeographicalLocation.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_GeographicalLocation.h> + +static asn_TYPE_member_t asn_MBR_HNBAP_GeographicalLocation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_GeographicalLocation, geographicalCoordinates), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_GeographicalCoordinates, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "geographicalCoordinates" + }, + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_GeographicalLocation, altitudeAndDirection), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_AltitudeAndDirection, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "altitudeAndDirection" + }, + { ATF_POINTER, 1, offsetof(struct HNBAP_GeographicalLocation, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_HNBAP_GeographicalLocation_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_HNBAP_GeographicalLocation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_GeographicalLocation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* geographicalCoordinates */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* altitudeAndDirection */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_GeographicalLocation_specs_1 = { + sizeof(struct HNBAP_GeographicalLocation), + offsetof(struct HNBAP_GeographicalLocation, _asn_ctx), + asn_MAP_HNBAP_GeographicalLocation_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_HNBAP_GeographicalLocation_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* Start extensions */ + 4 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_GeographicalLocation = { + "HNBAP_GeographicalLocation", + "HNBAP_GeographicalLocation", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_GeographicalLocation_tags_1, + sizeof(asn_DEF_HNBAP_GeographicalLocation_tags_1) + /sizeof(asn_DEF_HNBAP_GeographicalLocation_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_GeographicalLocation_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_GeographicalLocation_tags_1) + /sizeof(asn_DEF_HNBAP_GeographicalLocation_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_HNBAP_GeographicalLocation_1, + 3, /* Elements count */ + &asn_SPC_HNBAP_GeographicalLocation_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/HNB-Cell-Access-Mode.c b/src/hnbap/HNBAP_HNB-Cell-Access-Mode.c index ae2371b..4eac481 100644 --- a/src/hnbap/HNB-Cell-Access-Mode.c +++ b/src/hnbap/HNBAP_HNB-Cell-Access-Mode.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/HNB-Cell-Access-Mode.h> +#include <osmocom/hnbap/HNBAP_HNB-Cell-Access-Mode.h> int -HNB_Cell_Access_Mode_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_HNB_Cell_Access_Mode_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { /* Replace with underlying type checker */ td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -20,7 +20,7 @@ HNB_Cell_Access_Mode_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeEnumerated.free_struct; td->print_struct = asn_DEF_NativeEnumerated.print_struct; td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -40,131 +40,131 @@ HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -HNB_Cell_Access_Mode_free(asn_TYPE_descriptor_t *td, +HNBAP_HNB_Cell_Access_Mode_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(td); + HNBAP_HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -HNB_Cell_Access_Mode_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_HNB_Cell_Access_Mode_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(td); + HNBAP_HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -HNB_Cell_Access_Mode_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_HNB_Cell_Access_Mode_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(td); + HNBAP_HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -HNB_Cell_Access_Mode_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_HNB_Cell_Access_Mode_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(td); + HNBAP_HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -HNB_Cell_Access_Mode_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_HNB_Cell_Access_Mode_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(td); + HNBAP_HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -HNB_Cell_Access_Mode_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_HNB_Cell_Access_Mode_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(td); + HNBAP_HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -HNB_Cell_Access_Mode_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_HNB_Cell_Access_Mode_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(td); + HNBAP_HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -HNB_Cell_Access_Mode_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_HNB_Cell_Access_Mode_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(td); + HNBAP_HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -HNB_Cell_Access_Mode_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_HNB_Cell_Access_Mode_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(td); + HNBAP_HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -HNB_Cell_Access_Mode_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_HNB_Cell_Access_Mode_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(td); + HNBAP_HNB_Cell_Access_Mode_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_HNB_Cell_Access_Mode_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_HNB_Cell_Access_Mode_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0l, 2l } /* (0..2,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const asn_INTEGER_enum_map_t asn_MAP_HNB_Cell_Access_Mode_value2enum_1[] = { +static const asn_INTEGER_enum_map_t asn_MAP_HNBAP_HNB_Cell_Access_Mode_value2enum_1[] = { { 0, 6, "closed" }, { 1, 6, "hybrid" }, { 2, 4, "open" } /* This list is extensible */ }; -static const unsigned int asn_MAP_HNB_Cell_Access_Mode_enum2value_1[] = { +static const unsigned int asn_MAP_HNBAP_HNB_Cell_Access_Mode_enum2value_1[] = { 0, /* closed(0) */ 1, /* hybrid(1) */ 2 /* open(2) */ /* This list is extensible */ }; -static const asn_INTEGER_specifics_t asn_SPC_HNB_Cell_Access_Mode_specs_1 = { - asn_MAP_HNB_Cell_Access_Mode_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_HNB_Cell_Access_Mode_enum2value_1, /* N => "tag"; sorted by N */ +static const asn_INTEGER_specifics_t asn_SPC_HNBAP_HNB_Cell_Access_Mode_specs_1 = { + asn_MAP_HNBAP_HNB_Cell_Access_Mode_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_HNBAP_HNB_Cell_Access_Mode_enum2value_1, /* N => "tag"; sorted by N */ 3, /* Number of elements in the maps */ 4, /* Extensions before this member */ 1, /* Strict enumeration */ 0, /* Native long size */ 0 }; -static const ber_tlv_tag_t asn_DEF_HNB_Cell_Access_Mode_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_HNB_Cell_Access_Mode_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_HNB_Cell_Access_Mode = { - "HNB-Cell-Access-Mode", - "HNB-Cell-Access-Mode", - HNB_Cell_Access_Mode_free, - HNB_Cell_Access_Mode_print, - HNB_Cell_Access_Mode_constraint, - HNB_Cell_Access_Mode_decode_ber, - HNB_Cell_Access_Mode_encode_der, - HNB_Cell_Access_Mode_decode_xer, - HNB_Cell_Access_Mode_encode_xer, - HNB_Cell_Access_Mode_decode_uper, - HNB_Cell_Access_Mode_encode_uper, - HNB_Cell_Access_Mode_decode_aper, - HNB_Cell_Access_Mode_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_HNB_Cell_Access_Mode = { + "HNBAP_HNB-Cell-Access-Mode", + "HNBAP_HNB-Cell-Access-Mode", + HNBAP_HNB_Cell_Access_Mode_free, + HNBAP_HNB_Cell_Access_Mode_print, + HNBAP_HNB_Cell_Access_Mode_constraint, + HNBAP_HNB_Cell_Access_Mode_decode_ber, + HNBAP_HNB_Cell_Access_Mode_encode_der, + HNBAP_HNB_Cell_Access_Mode_decode_xer, + HNBAP_HNB_Cell_Access_Mode_encode_xer, + HNBAP_HNB_Cell_Access_Mode_decode_uper, + HNBAP_HNB_Cell_Access_Mode_encode_uper, + HNBAP_HNB_Cell_Access_Mode_decode_aper, + HNBAP_HNB_Cell_Access_Mode_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_HNB_Cell_Access_Mode_tags_1, - sizeof(asn_DEF_HNB_Cell_Access_Mode_tags_1) - /sizeof(asn_DEF_HNB_Cell_Access_Mode_tags_1[0]), /* 1 */ - asn_DEF_HNB_Cell_Access_Mode_tags_1, /* Same as above */ - sizeof(asn_DEF_HNB_Cell_Access_Mode_tags_1) - /sizeof(asn_DEF_HNB_Cell_Access_Mode_tags_1[0]), /* 1 */ - &asn_PER_type_HNB_Cell_Access_Mode_constr_1, + asn_DEF_HNBAP_HNB_Cell_Access_Mode_tags_1, + sizeof(asn_DEF_HNBAP_HNB_Cell_Access_Mode_tags_1) + /sizeof(asn_DEF_HNBAP_HNB_Cell_Access_Mode_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNB_Cell_Access_Mode_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_HNB_Cell_Access_Mode_tags_1) + /sizeof(asn_DEF_HNBAP_HNB_Cell_Access_Mode_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_HNB_Cell_Access_Mode_constr_1, 0, 0, /* Defined elsewhere */ - &asn_SPC_HNB_Cell_Access_Mode_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_HNB_Cell_Access_Mode_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/HNBAP_HNB-Cell-Identifier.c b/src/hnbap/HNBAP_HNB-Cell-Identifier.c new file mode 100644 index 0000000..43d7165 --- /dev/null +++ b/src/hnbap/HNBAP_HNB-Cell-Identifier.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_HNB-Cell-Identifier.h> + +static asn_TYPE_member_t asn_MBR_HNBAP_HNB_Cell_Identifier_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_HNB_Cell_Identifier, pLMNidentity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_PLMNidentity, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "pLMNidentity" + }, + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_HNB_Cell_Identifier, cellIdentity), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_CellIdentity, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "cellIdentity" + }, + { ATF_POINTER, 1, offsetof(struct HNBAP_HNB_Cell_Identifier, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_HNBAP_HNB_Cell_Identifier_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_HNBAP_HNB_Cell_Identifier_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_HNB_Cell_Identifier_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pLMNidentity */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cellIdentity */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_HNB_Cell_Identifier_specs_1 = { + sizeof(struct HNBAP_HNB_Cell_Identifier), + offsetof(struct HNBAP_HNB_Cell_Identifier, _asn_ctx), + asn_MAP_HNBAP_HNB_Cell_Identifier_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_HNBAP_HNB_Cell_Identifier_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* Start extensions */ + 4 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_HNB_Cell_Identifier = { + "HNBAP_HNB-Cell-Identifier", + "HNBAP_HNB-Cell-Identifier", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_HNB_Cell_Identifier_tags_1, + sizeof(asn_DEF_HNBAP_HNB_Cell_Identifier_tags_1) + /sizeof(asn_DEF_HNBAP_HNB_Cell_Identifier_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNB_Cell_Identifier_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_HNB_Cell_Identifier_tags_1) + /sizeof(asn_DEF_HNBAP_HNB_Cell_Identifier_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_HNBAP_HNB_Cell_Identifier_1, + 3, /* Elements count */ + &asn_SPC_HNBAP_HNB_Cell_Identifier_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/HNB-GWResponse.c b/src/hnbap/HNBAP_HNB-GWResponse.c index add7821..9df03b5 100644 --- a/src/hnbap/HNB-GWResponse.c +++ b/src/hnbap/HNBAP_HNB-GWResponse.c @@ -2,63 +2,63 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/HNB-GWResponse.h> +#include <osmocom/hnbap/HNBAP_HNB-GWResponse.h> -static asn_per_constraints_t asn_PER_type_HNB_GWResponse_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_HNB_GWResponse_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0l, 2l } /* (0..2,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_HNB_GWResponse_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HNB_GWResponse, choice.hNB), +static asn_TYPE_member_t asn_MBR_HNBAP_HNB_GWResponse_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_HNB_GWResponse, choice.hNB), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_HNBConfigInfo, + &asn_DEF_HNBAP_HNBConfigInfo, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "hNB" }, - { ATF_NOFLAGS, 0, offsetof(struct HNB_GWResponse, choice.macroRNC), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_HNB_GWResponse, choice.macroRNC), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_RNC_ID, + &asn_DEF_HNBAP_RNC_ID, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "macroRNC" }, - { ATF_NOFLAGS, 0, offsetof(struct HNB_GWResponse, choice.unknownU_RNTIIndication), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_HNB_GWResponse, choice.unknownU_RNTIIndication), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_UnknownU_RNTIIndication, + &asn_DEF_HNBAP_UnknownU_RNTIIndication, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "unknownU-RNTIIndication" }, }; -static const asn_TYPE_tag2member_t asn_MAP_HNB_GWResponse_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_HNB_GWResponse_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* hNB */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* macroRNC */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* unknownU-RNTIIndication */ }; -static asn_CHOICE_specifics_t asn_SPC_HNB_GWResponse_specs_1 = { - sizeof(struct HNB_GWResponse), - offsetof(struct HNB_GWResponse, _asn_ctx), - offsetof(struct HNB_GWResponse, present), - sizeof(((struct HNB_GWResponse *)0)->present), - asn_MAP_HNB_GWResponse_tag2el_1, +static asn_CHOICE_specifics_t asn_SPC_HNBAP_HNB_GWResponse_specs_1 = { + sizeof(struct HNBAP_HNB_GWResponse), + offsetof(struct HNBAP_HNB_GWResponse, _asn_ctx), + offsetof(struct HNBAP_HNB_GWResponse, present), + sizeof(((struct HNBAP_HNB_GWResponse *)0)->present), + asn_MAP_HNBAP_HNB_GWResponse_tag2el_1, 3, /* Count of tags in the map */ 0, 3 /* Extensions start */ }; -asn_TYPE_descriptor_t asn_DEF_HNB_GWResponse = { - "HNB-GWResponse", - "HNB-GWResponse", +asn_TYPE_descriptor_t asn_DEF_HNBAP_HNB_GWResponse = { + "HNBAP_HNB-GWResponse", + "HNBAP_HNB-GWResponse", CHOICE_free, CHOICE_print, CHOICE_constraint, @@ -75,9 +75,9 @@ asn_TYPE_descriptor_t asn_DEF_HNB_GWResponse = { 0, /* No effective tags (count) */ 0, /* No tags (pointer) */ 0, /* No tags (count) */ - &asn_PER_type_HNB_GWResponse_constr_1, - asn_MBR_HNB_GWResponse_1, + &asn_PER_type_HNBAP_HNB_GWResponse_constr_1, + asn_MBR_HNBAP_HNB_GWResponse_1, 3, /* Elements count */ - &asn_SPC_HNB_GWResponse_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_HNB_GWResponse_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/GTP-TEI.c b/src/hnbap/HNBAP_HNB-Identity-Info.c index e8cea0c..a28b2af 100644 --- a/src/hnbap/GTP-TEI.c +++ b/src/hnbap/HNBAP_HNB-Identity-Info.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/GTP-TEI.h> +#include <osmocom/hnbap/HNBAP_HNB-Identity-Info.h> int -GTP_TEI_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_HNB_Identity_Info_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; size_t size; @@ -22,7 +22,7 @@ GTP_TEI_constraint(asn_TYPE_descriptor_t *td, const void *sptr, size = st->size; - if((size == 4l)) { + if((size >= 1l && size <= 255l)) { /* Constraint check succeeded */ return 0; } else { @@ -38,7 +38,7 @@ GTP_TEI_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -GTP_TEI_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_HNB_Identity_Info_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_OCTET_STRING.free_struct; td->print_struct = asn_DEF_OCTET_STRING.print_struct; td->check_constraints = asn_DEF_OCTET_STRING.check_constraints; @@ -58,109 +58,109 @@ GTP_TEI_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -GTP_TEI_free(asn_TYPE_descriptor_t *td, +HNBAP_HNB_Identity_Info_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - GTP_TEI_1_inherit_TYPE_descriptor(td); + HNBAP_HNB_Identity_Info_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -GTP_TEI_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_HNB_Identity_Info_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - GTP_TEI_1_inherit_TYPE_descriptor(td); + HNBAP_HNB_Identity_Info_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -GTP_TEI_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_HNB_Identity_Info_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - GTP_TEI_1_inherit_TYPE_descriptor(td); + HNBAP_HNB_Identity_Info_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -GTP_TEI_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_HNB_Identity_Info_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - GTP_TEI_1_inherit_TYPE_descriptor(td); + HNBAP_HNB_Identity_Info_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -GTP_TEI_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_HNB_Identity_Info_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - GTP_TEI_1_inherit_TYPE_descriptor(td); + HNBAP_HNB_Identity_Info_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -GTP_TEI_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_HNB_Identity_Info_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - GTP_TEI_1_inherit_TYPE_descriptor(td); + HNBAP_HNB_Identity_Info_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -GTP_TEI_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_HNB_Identity_Info_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - GTP_TEI_1_inherit_TYPE_descriptor(td); + HNBAP_HNB_Identity_Info_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -GTP_TEI_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_HNB_Identity_Info_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - GTP_TEI_1_inherit_TYPE_descriptor(td); + HNBAP_HNB_Identity_Info_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -GTP_TEI_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_HNB_Identity_Info_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - GTP_TEI_1_inherit_TYPE_descriptor(td); + HNBAP_HNB_Identity_Info_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -GTP_TEI_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_HNB_Identity_Info_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - GTP_TEI_1_inherit_TYPE_descriptor(td); + HNBAP_HNB_Identity_Info_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_GTP_TEI_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_HNB_Identity_Info_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 4l, 4l } /* (SIZE(4..4)) */, + { APC_CONSTRAINED, 8, 8, 1l, 255l } /* (SIZE(1..255)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_GTP_TEI_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_HNB_Identity_Info_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_GTP_TEI = { - "GTP-TEI", - "GTP-TEI", - GTP_TEI_free, - GTP_TEI_print, - GTP_TEI_constraint, - GTP_TEI_decode_ber, - GTP_TEI_encode_der, - GTP_TEI_decode_xer, - GTP_TEI_encode_xer, - GTP_TEI_decode_uper, - GTP_TEI_encode_uper, - GTP_TEI_decode_aper, - GTP_TEI_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_HNB_Identity_Info = { + "HNBAP_HNB-Identity-Info", + "HNBAP_HNB-Identity-Info", + HNBAP_HNB_Identity_Info_free, + HNBAP_HNB_Identity_Info_print, + HNBAP_HNB_Identity_Info_constraint, + HNBAP_HNB_Identity_Info_decode_ber, + HNBAP_HNB_Identity_Info_encode_der, + HNBAP_HNB_Identity_Info_decode_xer, + HNBAP_HNB_Identity_Info_encode_xer, + HNBAP_HNB_Identity_Info_decode_uper, + HNBAP_HNB_Identity_Info_encode_uper, + HNBAP_HNB_Identity_Info_decode_aper, + HNBAP_HNB_Identity_Info_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_GTP_TEI_tags_1, - sizeof(asn_DEF_GTP_TEI_tags_1) - /sizeof(asn_DEF_GTP_TEI_tags_1[0]), /* 1 */ - asn_DEF_GTP_TEI_tags_1, /* Same as above */ - sizeof(asn_DEF_GTP_TEI_tags_1) - /sizeof(asn_DEF_GTP_TEI_tags_1[0]), /* 1 */ - &asn_PER_type_GTP_TEI_constr_1, + asn_DEF_HNBAP_HNB_Identity_Info_tags_1, + sizeof(asn_DEF_HNBAP_HNB_Identity_Info_tags_1) + /sizeof(asn_DEF_HNBAP_HNB_Identity_Info_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNB_Identity_Info_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_HNB_Identity_Info_tags_1) + /sizeof(asn_DEF_HNBAP_HNB_Identity_Info_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_HNB_Identity_Info_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/HNBAP_HNB-Identity.c b/src/hnbap/HNBAP_HNB-Identity.c new file mode 100644 index 0000000..f4eb992 --- /dev/null +++ b/src/hnbap/HNBAP_HNB-Identity.c @@ -0,0 +1,74 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_HNB-Identity.h> + +static asn_TYPE_member_t asn_MBR_HNBAP_HNB_Identity_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_HNB_Identity, hNB_Identity_Info), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_HNB_Identity_Info, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "hNB-Identity-Info" + }, + { ATF_POINTER, 1, offsetof(struct HNBAP_HNB_Identity, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_HNBAP_HNB_Identity_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_HNBAP_HNB_Identity_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_HNB_Identity_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* hNB-Identity-Info */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_HNB_Identity_specs_1 = { + sizeof(struct HNBAP_HNB_Identity), + offsetof(struct HNBAP_HNB_Identity, _asn_ctx), + asn_MAP_HNBAP_HNB_Identity_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_HNBAP_HNB_Identity_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* Start extensions */ + 3 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_HNB_Identity = { + "HNBAP_HNB-Identity", + "HNBAP_HNB-Identity", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_HNB_Identity_tags_1, + sizeof(asn_DEF_HNBAP_HNB_Identity_tags_1) + /sizeof(asn_DEF_HNBAP_HNB_Identity_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNB_Identity_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_HNB_Identity_tags_1) + /sizeof(asn_DEF_HNBAP_HNB_Identity_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_HNBAP_HNB_Identity_1, + 2, /* Elements count */ + &asn_SPC_HNBAP_HNB_Identity_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/HNBAP_HNB-Location-Information.c b/src/hnbap/HNBAP_HNB-Location-Information.c new file mode 100644 index 0000000..d8ffefb --- /dev/null +++ b/src/hnbap/HNBAP_HNB-Location-Information.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_HNB-Location-Information.h> + +static asn_TYPE_member_t asn_MBR_HNBAP_HNB_Location_Information_1[] = { + { ATF_POINTER, 3, offsetof(struct HNBAP_HNB_Location_Information, macroCoverageInfo), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_MacroCoverageInformation, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "macroCoverageInfo" + }, + { ATF_POINTER, 2, offsetof(struct HNBAP_HNB_Location_Information, geographicalCoordinates), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_GeographicalLocation, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "geographicalCoordinates" + }, + { ATF_POINTER, 1, offsetof(struct HNBAP_HNB_Location_Information, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_HNBAP_HNB_Location_Information_oms_1[] = { 0, 1, 2 }; +static const ber_tlv_tag_t asn_DEF_HNBAP_HNB_Location_Information_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_HNB_Location_Information_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* macroCoverageInfo */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* geographicalCoordinates */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_HNB_Location_Information_specs_1 = { + sizeof(struct HNBAP_HNB_Location_Information), + offsetof(struct HNBAP_HNB_Location_Information, _asn_ctx), + asn_MAP_HNBAP_HNB_Location_Information_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_HNBAP_HNB_Location_Information_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 2, /* Start extensions */ + 4 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_HNB_Location_Information = { + "HNBAP_HNB-Location-Information", + "HNBAP_HNB-Location-Information", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_HNB_Location_Information_tags_1, + sizeof(asn_DEF_HNBAP_HNB_Location_Information_tags_1) + /sizeof(asn_DEF_HNBAP_HNB_Location_Information_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNB_Location_Information_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_HNB_Location_Information_tags_1) + /sizeof(asn_DEF_HNBAP_HNB_Location_Information_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_HNBAP_HNB_Location_Information_1, + 3, /* Elements count */ + &asn_SPC_HNBAP_HNB_Location_Information_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/HNB-RNL-Identity.c b/src/hnbap/HNBAP_HNB-RNL-Identity.c index 3a51832..2e9e705 100644 --- a/src/hnbap/HNB-RNL-Identity.c +++ b/src/hnbap/HNBAP_HNB-RNL-Identity.c @@ -2,43 +2,43 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/HNB-RNL-Identity.h> +#include <osmocom/hnbap/HNBAP_HNB-RNL-Identity.h> -static asn_per_constraints_t asn_PER_type_HNB_RNL_Identity_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_HNB_RNL_Identity_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0l, 0l } /* (0..0,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_HNB_RNL_Identity_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HNB_RNL_Identity, choice.hNB_Identity_as_Cell_Identifier), +static asn_TYPE_member_t asn_MBR_HNBAP_HNB_RNL_Identity_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_HNB_RNL_Identity, choice.hNB_Identity_as_Cell_Identifier), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_HNB_Cell_Identifier, + &asn_DEF_HNBAP_HNB_Cell_Identifier, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "hNB-Identity-as-Cell-Identifier" }, }; -static const asn_TYPE_tag2member_t asn_MAP_HNB_RNL_Identity_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_HNB_RNL_Identity_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* hNB-Identity-as-Cell-Identifier */ }; -static asn_CHOICE_specifics_t asn_SPC_HNB_RNL_Identity_specs_1 = { - sizeof(struct HNB_RNL_Identity), - offsetof(struct HNB_RNL_Identity, _asn_ctx), - offsetof(struct HNB_RNL_Identity, present), - sizeof(((struct HNB_RNL_Identity *)0)->present), - asn_MAP_HNB_RNL_Identity_tag2el_1, +static asn_CHOICE_specifics_t asn_SPC_HNBAP_HNB_RNL_Identity_specs_1 = { + sizeof(struct HNBAP_HNB_RNL_Identity), + offsetof(struct HNBAP_HNB_RNL_Identity, _asn_ctx), + offsetof(struct HNBAP_HNB_RNL_Identity, present), + sizeof(((struct HNBAP_HNB_RNL_Identity *)0)->present), + asn_MAP_HNBAP_HNB_RNL_Identity_tag2el_1, 1, /* Count of tags in the map */ 0, 1 /* Extensions start */ }; -asn_TYPE_descriptor_t asn_DEF_HNB_RNL_Identity = { - "HNB-RNL-Identity", - "HNB-RNL-Identity", +asn_TYPE_descriptor_t asn_DEF_HNBAP_HNB_RNL_Identity = { + "HNBAP_HNB-RNL-Identity", + "HNBAP_HNB-RNL-Identity", CHOICE_free, CHOICE_print, CHOICE_constraint, @@ -55,9 +55,9 @@ asn_TYPE_descriptor_t asn_DEF_HNB_RNL_Identity = { 0, /* No effective tags (count) */ 0, /* No tags (pointer) */ 0, /* No tags (count) */ - &asn_PER_type_HNB_RNL_Identity_constr_1, - asn_MBR_HNB_RNL_Identity_1, + &asn_PER_type_HNBAP_HNB_RNL_Identity_constr_1, + asn_MBR_HNBAP_HNB_RNL_Identity_1, 1, /* Elements count */ - &asn_SPC_HNB_RNL_Identity_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_HNB_RNL_Identity_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/HNBAP-PDU.c b/src/hnbap/HNBAP_HNBAP-PDU.c index 998a1d2..d982b93 100644 --- a/src/hnbap/HNBAP-PDU.c +++ b/src/hnbap/HNBAP_HNBAP-PDU.c @@ -2,63 +2,63 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/HNBAP-PDU.h> +#include <osmocom/hnbap/HNBAP_HNBAP-PDU.h> -static asn_per_constraints_t asn_PER_type_HNBAP_PDU_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_HNBAP_PDU_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0l, 2l } /* (0..2,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_HNBAP_PDU_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HNBAP_PDU, choice.initiatingMessage), +static asn_TYPE_member_t asn_MBR_HNBAP_HNBAP_PDU_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_HNBAP_PDU, choice.initiatingMessage), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_InitiatingMessage, + &asn_DEF_HNBAP_InitiatingMessage, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "initiatingMessage" }, - { ATF_NOFLAGS, 0, offsetof(struct HNBAP_PDU, choice.successfulOutcome), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_HNBAP_PDU, choice.successfulOutcome), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_SuccessfulOutcome, + &asn_DEF_HNBAP_SuccessfulOutcome, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "successfulOutcome" }, - { ATF_NOFLAGS, 0, offsetof(struct HNBAP_PDU, choice.unsuccessfulOutcome), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_HNBAP_PDU, choice.unsuccessfulOutcome), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_UnsuccessfulOutcome, + &asn_DEF_HNBAP_UnsuccessfulOutcome, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "unsuccessfulOutcome" }, }; -static const asn_TYPE_tag2member_t asn_MAP_HNBAP_PDU_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_HNBAP_PDU_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* initiatingMessage */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* successfulOutcome */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* unsuccessfulOutcome */ }; -static asn_CHOICE_specifics_t asn_SPC_HNBAP_PDU_specs_1 = { - sizeof(struct HNBAP_PDU), - offsetof(struct HNBAP_PDU, _asn_ctx), - offsetof(struct HNBAP_PDU, present), - sizeof(((struct HNBAP_PDU *)0)->present), - asn_MAP_HNBAP_PDU_tag2el_1, +static asn_CHOICE_specifics_t asn_SPC_HNBAP_HNBAP_PDU_specs_1 = { + sizeof(struct HNBAP_HNBAP_PDU), + offsetof(struct HNBAP_HNBAP_PDU, _asn_ctx), + offsetof(struct HNBAP_HNBAP_PDU, present), + sizeof(((struct HNBAP_HNBAP_PDU *)0)->present), + asn_MAP_HNBAP_HNBAP_PDU_tag2el_1, 3, /* Count of tags in the map */ 0, 3 /* Extensions start */ }; -asn_TYPE_descriptor_t asn_DEF_HNBAP_PDU = { - "HNBAP-PDU", - "HNBAP-PDU", +asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBAP_PDU = { + "HNBAP_HNBAP-PDU", + "HNBAP_HNBAP-PDU", CHOICE_free, CHOICE_print, CHOICE_constraint, @@ -75,9 +75,9 @@ asn_TYPE_descriptor_t asn_DEF_HNBAP_PDU = { 0, /* No effective tags (count) */ 0, /* No tags (pointer) */ 0, /* No tags (count) */ - &asn_PER_type_HNBAP_PDU_constr_1, - asn_MBR_HNBAP_PDU_1, + &asn_PER_type_HNBAP_HNBAP_PDU_constr_1, + asn_MBR_HNBAP_HNBAP_PDU_1, 3, /* Elements count */ - &asn_SPC_HNBAP_PDU_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_HNBAP_PDU_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/HNBCapacity.c b/src/hnbap/HNBAP_HNBCapacity.c index 0d58c65..e34caf7 100644 --- a/src/hnbap/HNBCapacity.c +++ b/src/hnbap/HNBAP_HNBCapacity.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/HNBCapacity.h> +#include <osmocom/hnbap/HNBAP_HNBCapacity.h> int -HNBCapacity_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_HNBCapacity_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { long value; @@ -37,7 +37,7 @@ HNBCapacity_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -HNBCapacity_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_HNBCapacity_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeInteger.free_struct; td->print_struct = asn_DEF_NativeInteger.print_struct; td->check_constraints = asn_DEF_NativeInteger.check_constraints; @@ -57,109 +57,109 @@ HNBCapacity_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -HNBCapacity_free(asn_TYPE_descriptor_t *td, +HNBAP_HNBCapacity_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - HNBCapacity_1_inherit_TYPE_descriptor(td); + HNBAP_HNBCapacity_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -HNBCapacity_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_HNBCapacity_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - HNBCapacity_1_inherit_TYPE_descriptor(td); + HNBAP_HNBCapacity_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -HNBCapacity_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_HNBCapacity_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - HNBCapacity_1_inherit_TYPE_descriptor(td); + HNBAP_HNBCapacity_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -HNBCapacity_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_HNBCapacity_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - HNBCapacity_1_inherit_TYPE_descriptor(td); + HNBAP_HNBCapacity_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -HNBCapacity_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_HNBCapacity_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - HNBCapacity_1_inherit_TYPE_descriptor(td); + HNBAP_HNBCapacity_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -HNBCapacity_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_HNBCapacity_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - HNBCapacity_1_inherit_TYPE_descriptor(td); + HNBAP_HNBCapacity_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -HNBCapacity_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_HNBCapacity_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - HNBCapacity_1_inherit_TYPE_descriptor(td); + HNBAP_HNBCapacity_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -HNBCapacity_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_HNBCapacity_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - HNBCapacity_1_inherit_TYPE_descriptor(td); + HNBAP_HNBCapacity_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -HNBCapacity_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_HNBCapacity_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - HNBCapacity_1_inherit_TYPE_descriptor(td); + HNBAP_HNBCapacity_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -HNBCapacity_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_HNBCapacity_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - HNBCapacity_1_inherit_TYPE_descriptor(td); + HNBAP_HNBCapacity_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_HNBCapacity_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_HNBCapacity_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED, 10, 10, 0l, 1000l } /* (0..1000) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_HNBCapacity_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_HNBCapacity_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_HNBCapacity = { - "HNBCapacity", - "HNBCapacity", - HNBCapacity_free, - HNBCapacity_print, - HNBCapacity_constraint, - HNBCapacity_decode_ber, - HNBCapacity_encode_der, - HNBCapacity_decode_xer, - HNBCapacity_encode_xer, - HNBCapacity_decode_uper, - HNBCapacity_encode_uper, - HNBCapacity_decode_aper, - HNBCapacity_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBCapacity = { + "HNBAP_HNBCapacity", + "HNBAP_HNBCapacity", + HNBAP_HNBCapacity_free, + HNBAP_HNBCapacity_print, + HNBAP_HNBCapacity_constraint, + HNBAP_HNBCapacity_decode_ber, + HNBAP_HNBCapacity_encode_der, + HNBAP_HNBCapacity_decode_xer, + HNBAP_HNBCapacity_encode_xer, + HNBAP_HNBCapacity_decode_uper, + HNBAP_HNBCapacity_encode_uper, + HNBAP_HNBCapacity_decode_aper, + HNBAP_HNBCapacity_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_HNBCapacity_tags_1, - sizeof(asn_DEF_HNBCapacity_tags_1) - /sizeof(asn_DEF_HNBCapacity_tags_1[0]), /* 1 */ - asn_DEF_HNBCapacity_tags_1, /* Same as above */ - sizeof(asn_DEF_HNBCapacity_tags_1) - /sizeof(asn_DEF_HNBCapacity_tags_1[0]), /* 1 */ - &asn_PER_type_HNBCapacity_constr_1, + asn_DEF_HNBAP_HNBCapacity_tags_1, + sizeof(asn_DEF_HNBAP_HNBCapacity_tags_1) + /sizeof(asn_DEF_HNBAP_HNBCapacity_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNBCapacity_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_HNBCapacity_tags_1) + /sizeof(asn_DEF_HNBAP_HNBCapacity_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_HNBCapacity_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/HNBConfigInfo.c b/src/hnbap/HNBAP_HNBConfigInfo.c index 06c7798..ba41f60 100644 --- a/src/hnbap/HNBConfigInfo.c +++ b/src/hnbap/HNBAP_HNBConfigInfo.c @@ -2,62 +2,62 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/HNBConfigInfo.h> +#include <osmocom/hnbap/HNBAP_HNBConfigInfo.h> -static asn_TYPE_member_t asn_MBR_HNBConfigInfo_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HNBConfigInfo, hnb_RNL_Identity), +static asn_TYPE_member_t asn_MBR_HNBAP_HNBConfigInfo_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_HNBConfigInfo, hnb_RNL_Identity), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ - &asn_DEF_HNB_RNL_Identity, + &asn_DEF_HNBAP_HNB_RNL_Identity, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "hnb-RNL-Identity" }, - { ATF_NOFLAGS, 0, offsetof(struct HNBConfigInfo, configurationInformation), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_HNBConfigInfo, configurationInformation), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */ - &asn_DEF_ConfigurationInformation, + &asn_DEF_HNBAP_ConfigurationInformation, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "configurationInformation" }, - { ATF_POINTER, 1, offsetof(struct HNBConfigInfo, iE_Extensions), + { ATF_POINTER, 1, offsetof(struct HNBAP_HNBConfigInfo, iE_Extensions), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_IE_Extensions, + &asn_DEF_HNBAP_IE_Extensions, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "iE-Extensions" }, }; -static const int asn_MAP_HNBConfigInfo_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_HNBConfigInfo_tags_1[] = { +static const int asn_MAP_HNBAP_HNBConfigInfo_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_HNBAP_HNBConfigInfo_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_HNBConfigInfo_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_HNBConfigInfo_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* hnb-RNL-Identity */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* configurationInformation */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ }; -static asn_SEQUENCE_specifics_t asn_SPC_HNBConfigInfo_specs_1 = { - sizeof(struct HNBConfigInfo), - offsetof(struct HNBConfigInfo, _asn_ctx), - asn_MAP_HNBConfigInfo_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_HNBConfigInfo_specs_1 = { + sizeof(struct HNBAP_HNBConfigInfo), + offsetof(struct HNBAP_HNBConfigInfo, _asn_ctx), + asn_MAP_HNBAP_HNBConfigInfo_tag2el_1, 3, /* Count of tags in the map */ - asn_MAP_HNBConfigInfo_oms_1, /* Optional members */ + asn_MAP_HNBAP_HNBConfigInfo_oms_1, /* Optional members */ 1, 0, /* Root/Additions */ 2, /* Start extensions */ 4 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_HNBConfigInfo = { - "HNBConfigInfo", - "HNBConfigInfo", +asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBConfigInfo = { + "HNBAP_HNBConfigInfo", + "HNBAP_HNBConfigInfo", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -70,15 +70,15 @@ asn_TYPE_descriptor_t asn_DEF_HNBConfigInfo = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_HNBConfigInfo_tags_1, - sizeof(asn_DEF_HNBConfigInfo_tags_1) - /sizeof(asn_DEF_HNBConfigInfo_tags_1[0]), /* 1 */ - asn_DEF_HNBConfigInfo_tags_1, /* Same as above */ - sizeof(asn_DEF_HNBConfigInfo_tags_1) - /sizeof(asn_DEF_HNBConfigInfo_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNBConfigInfo_tags_1, + sizeof(asn_DEF_HNBAP_HNBConfigInfo_tags_1) + /sizeof(asn_DEF_HNBAP_HNBConfigInfo_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNBConfigInfo_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_HNBConfigInfo_tags_1) + /sizeof(asn_DEF_HNBAP_HNBConfigInfo_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_HNBConfigInfo_1, + asn_MBR_HNBAP_HNBConfigInfo_1, 3, /* Elements count */ - &asn_SPC_HNBConfigInfo_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_HNBConfigInfo_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/HNBConfigTransferRequest.c b/src/hnbap/HNBAP_HNBConfigTransferRequest.c index db119a2..e5db652 100644 --- a/src/hnbap/HNBConfigTransferRequest.c +++ b/src/hnbap/HNBAP_HNBConfigTransferRequest.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/HNBConfigTransferRequest.h> +#include <osmocom/hnbap/HNBAP_HNBConfigTransferRequest.h> static int memb_hnbConfigTransferRequest_ies_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, @@ -45,9 +45,9 @@ static asn_per_constraints_t asn_PER_memb_hnbConfigTransferRequest_ies_constr_2 }; static asn_TYPE_member_t asn_MBR_hnbConfigTransferRequest_ies_2[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_IE, + &asn_DEF_HNBAP_IE, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, @@ -59,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_hnbConfigTransferRequest_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_hnbConfigTransferRequest_ies_specs_2 = { - sizeof(struct hnbConfigTransferRequest_ies), - offsetof(struct hnbConfigTransferRequest_ies, _asn_ctx), + sizeof(struct HNBAP_HNBConfigTransferRequest__hnbConfigTransferRequest_ies), + offsetof(struct HNBAP_HNBConfigTransferRequest__hnbConfigTransferRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ @@ -91,8 +91,8 @@ asn_TYPE_descriptor_t asn_DEF_hnbConfigTransferRequest_ies_2 = { &asn_SPC_hnbConfigTransferRequest_ies_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_HNBConfigTransferRequest_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HNBConfigTransferRequest, hnbConfigTransferRequest_ies), +static asn_TYPE_member_t asn_MBR_HNBAP_HNBConfigTransferRequest_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_HNBConfigTransferRequest, hnbConfigTransferRequest_ies), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_hnbConfigTransferRequest_ies_2, @@ -102,24 +102,24 @@ static asn_TYPE_member_t asn_MBR_HNBConfigTransferRequest_1[] = { "hnbConfigTransferRequest-ies" }, }; -static const ber_tlv_tag_t asn_DEF_HNBConfigTransferRequest_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_HNBConfigTransferRequest_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_HNBConfigTransferRequest_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_HNBConfigTransferRequest_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* hnbConfigTransferRequest-ies */ }; -static asn_SEQUENCE_specifics_t asn_SPC_HNBConfigTransferRequest_specs_1 = { - sizeof(struct HNBConfigTransferRequest), - offsetof(struct HNBConfigTransferRequest, _asn_ctx), - asn_MAP_HNBConfigTransferRequest_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_HNBConfigTransferRequest_specs_1 = { + sizeof(struct HNBAP_HNBConfigTransferRequest), + offsetof(struct HNBAP_HNBConfigTransferRequest, _asn_ctx), + asn_MAP_HNBAP_HNBConfigTransferRequest_tag2el_1, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 0, /* Start extensions */ 2 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_HNBConfigTransferRequest = { - "HNBConfigTransferRequest", - "HNBConfigTransferRequest", +asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBConfigTransferRequest = { + "HNBAP_HNBConfigTransferRequest", + "HNBAP_HNBConfigTransferRequest", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -132,15 +132,15 @@ asn_TYPE_descriptor_t asn_DEF_HNBConfigTransferRequest = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_HNBConfigTransferRequest_tags_1, - sizeof(asn_DEF_HNBConfigTransferRequest_tags_1) - /sizeof(asn_DEF_HNBConfigTransferRequest_tags_1[0]), /* 1 */ - asn_DEF_HNBConfigTransferRequest_tags_1, /* Same as above */ - sizeof(asn_DEF_HNBConfigTransferRequest_tags_1) - /sizeof(asn_DEF_HNBConfigTransferRequest_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNBConfigTransferRequest_tags_1, + sizeof(asn_DEF_HNBAP_HNBConfigTransferRequest_tags_1) + /sizeof(asn_DEF_HNBAP_HNBConfigTransferRequest_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNBConfigTransferRequest_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_HNBConfigTransferRequest_tags_1) + /sizeof(asn_DEF_HNBAP_HNBConfigTransferRequest_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_HNBConfigTransferRequest_1, + asn_MBR_HNBAP_HNBConfigTransferRequest_1, 1, /* Elements count */ - &asn_SPC_HNBConfigTransferRequest_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_HNBConfigTransferRequest_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/HNBConfigTransferResponse.c b/src/hnbap/HNBAP_HNBConfigTransferResponse.c index 116758d..5b73f16 100644 --- a/src/hnbap/HNBConfigTransferResponse.c +++ b/src/hnbap/HNBAP_HNBConfigTransferResponse.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/HNBConfigTransferResponse.h> +#include <osmocom/hnbap/HNBAP_HNBConfigTransferResponse.h> static int memb_hnbConfigTransferResponse_ies_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, @@ -45,9 +45,9 @@ static asn_per_constraints_t asn_PER_memb_hnbConfigTransferResponse_ies_constr_2 }; static asn_TYPE_member_t asn_MBR_hnbConfigTransferResponse_ies_2[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_IE, + &asn_DEF_HNBAP_IE, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, @@ -59,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_hnbConfigTransferResponse_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_hnbConfigTransferResponse_ies_specs_2 = { - sizeof(struct hnbConfigTransferResponse_ies), - offsetof(struct hnbConfigTransferResponse_ies, _asn_ctx), + sizeof(struct HNBAP_HNBConfigTransferResponse__hnbConfigTransferResponse_ies), + offsetof(struct HNBAP_HNBConfigTransferResponse__hnbConfigTransferResponse_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ @@ -91,8 +91,8 @@ asn_TYPE_descriptor_t asn_DEF_hnbConfigTransferResponse_ies_2 = { &asn_SPC_hnbConfigTransferResponse_ies_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_HNBConfigTransferResponse_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HNBConfigTransferResponse, hnbConfigTransferResponse_ies), +static asn_TYPE_member_t asn_MBR_HNBAP_HNBConfigTransferResponse_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_HNBConfigTransferResponse, hnbConfigTransferResponse_ies), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_hnbConfigTransferResponse_ies_2, @@ -102,24 +102,24 @@ static asn_TYPE_member_t asn_MBR_HNBConfigTransferResponse_1[] = { "hnbConfigTransferResponse-ies" }, }; -static const ber_tlv_tag_t asn_DEF_HNBConfigTransferResponse_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_HNBConfigTransferResponse_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_HNBConfigTransferResponse_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_HNBConfigTransferResponse_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* hnbConfigTransferResponse-ies */ }; -static asn_SEQUENCE_specifics_t asn_SPC_HNBConfigTransferResponse_specs_1 = { - sizeof(struct HNBConfigTransferResponse), - offsetof(struct HNBConfigTransferResponse, _asn_ctx), - asn_MAP_HNBConfigTransferResponse_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_HNBConfigTransferResponse_specs_1 = { + sizeof(struct HNBAP_HNBConfigTransferResponse), + offsetof(struct HNBAP_HNBConfigTransferResponse, _asn_ctx), + asn_MAP_HNBAP_HNBConfigTransferResponse_tag2el_1, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 0, /* Start extensions */ 2 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_HNBConfigTransferResponse = { - "HNBConfigTransferResponse", - "HNBConfigTransferResponse", +asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBConfigTransferResponse = { + "HNBAP_HNBConfigTransferResponse", + "HNBAP_HNBConfigTransferResponse", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -132,15 +132,15 @@ asn_TYPE_descriptor_t asn_DEF_HNBConfigTransferResponse = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_HNBConfigTransferResponse_tags_1, - sizeof(asn_DEF_HNBConfigTransferResponse_tags_1) - /sizeof(asn_DEF_HNBConfigTransferResponse_tags_1[0]), /* 1 */ - asn_DEF_HNBConfigTransferResponse_tags_1, /* Same as above */ - sizeof(asn_DEF_HNBConfigTransferResponse_tags_1) - /sizeof(asn_DEF_HNBConfigTransferResponse_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNBConfigTransferResponse_tags_1, + sizeof(asn_DEF_HNBAP_HNBConfigTransferResponse_tags_1) + /sizeof(asn_DEF_HNBAP_HNBConfigTransferResponse_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNBConfigTransferResponse_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_HNBConfigTransferResponse_tags_1) + /sizeof(asn_DEF_HNBAP_HNBConfigTransferResponse_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_HNBConfigTransferResponse_1, + asn_MBR_HNBAP_HNBConfigTransferResponse_1, 1, /* Elements count */ - &asn_SPC_HNBConfigTransferResponse_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_HNBConfigTransferResponse_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/HNBAP_HNBConfigurationInformationMissing.c b/src/hnbap/HNBAP_HNBConfigurationInformationMissing.c new file mode 100644 index 0000000..4a8e3e9 --- /dev/null +++ b/src/hnbap/HNBAP_HNBConfigurationInformationMissing.c @@ -0,0 +1,74 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_HNBConfigurationInformationMissing.h> + +static asn_TYPE_member_t asn_MBR_HNBAP_HNBConfigurationInformationMissing_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_HNBConfigurationInformationMissing, cause), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_HNBAP_Cause, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "cause" + }, + { ATF_POINTER, 1, offsetof(struct HNBAP_HNBConfigurationInformationMissing, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_HNBAP_HNBConfigurationInformationMissing_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_HNBAP_HNBConfigurationInformationMissing_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_HNBConfigurationInformationMissing_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cause */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_HNBConfigurationInformationMissing_specs_1 = { + sizeof(struct HNBAP_HNBConfigurationInformationMissing), + offsetof(struct HNBAP_HNBConfigurationInformationMissing, _asn_ctx), + asn_MAP_HNBAP_HNBConfigurationInformationMissing_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_HNBAP_HNBConfigurationInformationMissing_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* Start extensions */ + 3 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBConfigurationInformationMissing = { + "HNBAP_HNBConfigurationInformationMissing", + "HNBAP_HNBConfigurationInformationMissing", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_HNBConfigurationInformationMissing_tags_1, + sizeof(asn_DEF_HNBAP_HNBConfigurationInformationMissing_tags_1) + /sizeof(asn_DEF_HNBAP_HNBConfigurationInformationMissing_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNBConfigurationInformationMissing_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_HNBConfigurationInformationMissing_tags_1) + /sizeof(asn_DEF_HNBAP_HNBConfigurationInformationMissing_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_HNBAP_HNBConfigurationInformationMissing_1, + 2, /* Elements count */ + &asn_SPC_HNBAP_HNBConfigurationInformationMissing_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/HNBAP_HNBConfigurationInformationProvided.c b/src/hnbap/HNBAP_HNBConfigurationInformationProvided.c new file mode 100644 index 0000000..f0988fe --- /dev/null +++ b/src/hnbap/HNBAP_HNBConfigurationInformationProvided.c @@ -0,0 +1,104 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_HNBConfigurationInformationProvided.h> + +static asn_TYPE_member_t asn_MBR_HNBAP_HNBConfigurationInformationProvided_1[] = { + { ATF_POINTER, 2, offsetof(struct HNBAP_HNBConfigurationInformationProvided, psc), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_PSC, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "psc" + }, + { ATF_POINTER, 1, offsetof(struct HNBAP_HNBConfigurationInformationProvided, cSG_ID), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_CSG_ID, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "cSG-ID" + }, + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_HNBConfigurationInformationProvided, hNB_Cell_Access_Mode), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_HNB_Cell_Access_Mode, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "hNB-Cell-Access-Mode" + }, + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_HNBConfigurationInformationProvided, iurh_Signalling_TNL_AddressList), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_Iurh_Signalling_TNL_AddressList, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iurh-Signalling-TNL-AddressList" + }, + { ATF_POINTER, 1, offsetof(struct HNBAP_HNBConfigurationInformationProvided, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_HNBAP_HNBConfigurationInformationProvided_oms_1[] = { 0, 1, 4 }; +static const ber_tlv_tag_t asn_DEF_HNBAP_HNBConfigurationInformationProvided_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_HNBConfigurationInformationProvided_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* psc */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cSG-ID */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* hNB-Cell-Access-Mode */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* iurh-Signalling-TNL-AddressList */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_HNBConfigurationInformationProvided_specs_1 = { + sizeof(struct HNBAP_HNBConfigurationInformationProvided), + offsetof(struct HNBAP_HNBConfigurationInformationProvided, _asn_ctx), + asn_MAP_HNBAP_HNBConfigurationInformationProvided_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_HNBAP_HNBConfigurationInformationProvided_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 4, /* Start extensions */ + 6 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBConfigurationInformationProvided = { + "HNBAP_HNBConfigurationInformationProvided", + "HNBAP_HNBConfigurationInformationProvided", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_HNBConfigurationInformationProvided_tags_1, + sizeof(asn_DEF_HNBAP_HNBConfigurationInformationProvided_tags_1) + /sizeof(asn_DEF_HNBAP_HNBConfigurationInformationProvided_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNBConfigurationInformationProvided_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_HNBConfigurationInformationProvided_tags_1) + /sizeof(asn_DEF_HNBAP_HNBConfigurationInformationProvided_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_HNBAP_HNBConfigurationInformationProvided_1, + 5, /* Elements count */ + &asn_SPC_HNBAP_HNBConfigurationInformationProvided_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/HNBDe-Register.c b/src/hnbap/HNBAP_HNBDe-Register.c index f31e842..313dcd1 100644 --- a/src/hnbap/HNBDe-Register.c +++ b/src/hnbap/HNBAP_HNBDe-Register.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/HNBDe-Register.h> +#include <osmocom/hnbap/HNBAP_HNBDe-Register.h> static int memb_hnbDe_Register_ies_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, @@ -45,9 +45,9 @@ static asn_per_constraints_t asn_PER_memb_hnbDe_Register_ies_constr_2 GCC_NOTUSE }; static asn_TYPE_member_t asn_MBR_hnbDe_Register_ies_2[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_IE, + &asn_DEF_HNBAP_IE, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, @@ -59,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_hnbDe_Register_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_hnbDe_Register_ies_specs_2 = { - sizeof(struct hnbDe_Register_ies), - offsetof(struct hnbDe_Register_ies, _asn_ctx), + sizeof(struct HNBAP_HNBDe_Register__hnbDe_Register_ies), + offsetof(struct HNBAP_HNBDe_Register__hnbDe_Register_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ @@ -91,8 +91,8 @@ asn_TYPE_descriptor_t asn_DEF_hnbDe_Register_ies_2 = { &asn_SPC_hnbDe_Register_ies_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_HNBDe_Register_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HNBDe_Register, hnbDe_Register_ies), +static asn_TYPE_member_t asn_MBR_HNBAP_HNBDe_Register_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_HNBDe_Register, hnbDe_Register_ies), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_hnbDe_Register_ies_2, @@ -102,24 +102,24 @@ static asn_TYPE_member_t asn_MBR_HNBDe_Register_1[] = { "hnbDe-Register-ies" }, }; -static const ber_tlv_tag_t asn_DEF_HNBDe_Register_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_HNBDe_Register_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_HNBDe_Register_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_HNBDe_Register_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* hnbDe-Register-ies */ }; -static asn_SEQUENCE_specifics_t asn_SPC_HNBDe_Register_specs_1 = { - sizeof(struct HNBDe_Register), - offsetof(struct HNBDe_Register, _asn_ctx), - asn_MAP_HNBDe_Register_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_HNBDe_Register_specs_1 = { + sizeof(struct HNBAP_HNBDe_Register), + offsetof(struct HNBAP_HNBDe_Register, _asn_ctx), + asn_MAP_HNBAP_HNBDe_Register_tag2el_1, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 0, /* Start extensions */ 2 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_HNBDe_Register = { - "HNBDe-Register", - "HNBDe-Register", +asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBDe_Register = { + "HNBAP_HNBDe-Register", + "HNBAP_HNBDe-Register", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -132,15 +132,15 @@ asn_TYPE_descriptor_t asn_DEF_HNBDe_Register = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_HNBDe_Register_tags_1, - sizeof(asn_DEF_HNBDe_Register_tags_1) - /sizeof(asn_DEF_HNBDe_Register_tags_1[0]), /* 1 */ - asn_DEF_HNBDe_Register_tags_1, /* Same as above */ - sizeof(asn_DEF_HNBDe_Register_tags_1) - /sizeof(asn_DEF_HNBDe_Register_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNBDe_Register_tags_1, + sizeof(asn_DEF_HNBAP_HNBDe_Register_tags_1) + /sizeof(asn_DEF_HNBAP_HNBDe_Register_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNBDe_Register_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_HNBDe_Register_tags_1) + /sizeof(asn_DEF_HNBAP_HNBDe_Register_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_HNBDe_Register_1, + asn_MBR_HNBAP_HNBDe_Register_1, 1, /* Elements count */ - &asn_SPC_HNBDe_Register_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_HNBDe_Register_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/HNBRegisterAccept.c b/src/hnbap/HNBAP_HNBRegisterAccept.c index 37f2332..dafb29a 100644 --- a/src/hnbap/HNBRegisterAccept.c +++ b/src/hnbap/HNBAP_HNBRegisterAccept.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/HNBRegisterAccept.h> +#include <osmocom/hnbap/HNBAP_HNBRegisterAccept.h> static int memb_hnbRegisterAccept_ies_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, @@ -45,9 +45,9 @@ static asn_per_constraints_t asn_PER_memb_hnbRegisterAccept_ies_constr_2 GCC_NOT }; static asn_TYPE_member_t asn_MBR_hnbRegisterAccept_ies_2[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_IE, + &asn_DEF_HNBAP_IE, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, @@ -59,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_hnbRegisterAccept_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_hnbRegisterAccept_ies_specs_2 = { - sizeof(struct hnbRegisterAccept_ies), - offsetof(struct hnbRegisterAccept_ies, _asn_ctx), + sizeof(struct HNBAP_HNBRegisterAccept__hnbRegisterAccept_ies), + offsetof(struct HNBAP_HNBRegisterAccept__hnbRegisterAccept_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ @@ -91,8 +91,8 @@ asn_TYPE_descriptor_t asn_DEF_hnbRegisterAccept_ies_2 = { &asn_SPC_hnbRegisterAccept_ies_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_HNBRegisterAccept_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HNBRegisterAccept, hnbRegisterAccept_ies), +static asn_TYPE_member_t asn_MBR_HNBAP_HNBRegisterAccept_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_HNBRegisterAccept, hnbRegisterAccept_ies), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_hnbRegisterAccept_ies_2, @@ -102,24 +102,24 @@ static asn_TYPE_member_t asn_MBR_HNBRegisterAccept_1[] = { "hnbRegisterAccept-ies" }, }; -static const ber_tlv_tag_t asn_DEF_HNBRegisterAccept_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_HNBRegisterAccept_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_HNBRegisterAccept_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_HNBRegisterAccept_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* hnbRegisterAccept-ies */ }; -static asn_SEQUENCE_specifics_t asn_SPC_HNBRegisterAccept_specs_1 = { - sizeof(struct HNBRegisterAccept), - offsetof(struct HNBRegisterAccept, _asn_ctx), - asn_MAP_HNBRegisterAccept_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_HNBRegisterAccept_specs_1 = { + sizeof(struct HNBAP_HNBRegisterAccept), + offsetof(struct HNBAP_HNBRegisterAccept, _asn_ctx), + asn_MAP_HNBAP_HNBRegisterAccept_tag2el_1, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 0, /* Start extensions */ 2 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_HNBRegisterAccept = { - "HNBRegisterAccept", - "HNBRegisterAccept", +asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBRegisterAccept = { + "HNBAP_HNBRegisterAccept", + "HNBAP_HNBRegisterAccept", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -132,15 +132,15 @@ asn_TYPE_descriptor_t asn_DEF_HNBRegisterAccept = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_HNBRegisterAccept_tags_1, - sizeof(asn_DEF_HNBRegisterAccept_tags_1) - /sizeof(asn_DEF_HNBRegisterAccept_tags_1[0]), /* 1 */ - asn_DEF_HNBRegisterAccept_tags_1, /* Same as above */ - sizeof(asn_DEF_HNBRegisterAccept_tags_1) - /sizeof(asn_DEF_HNBRegisterAccept_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNBRegisterAccept_tags_1, + sizeof(asn_DEF_HNBAP_HNBRegisterAccept_tags_1) + /sizeof(asn_DEF_HNBAP_HNBRegisterAccept_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNBRegisterAccept_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_HNBRegisterAccept_tags_1) + /sizeof(asn_DEF_HNBAP_HNBRegisterAccept_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_HNBRegisterAccept_1, + asn_MBR_HNBAP_HNBRegisterAccept_1, 1, /* Elements count */ - &asn_SPC_HNBRegisterAccept_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_HNBRegisterAccept_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/HNBRegisterReject.c b/src/hnbap/HNBAP_HNBRegisterReject.c index 077db72..e13289f 100644 --- a/src/hnbap/HNBRegisterReject.c +++ b/src/hnbap/HNBAP_HNBRegisterReject.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/HNBRegisterReject.h> +#include <osmocom/hnbap/HNBAP_HNBRegisterReject.h> static int memb_hnbRegisterReject_ies_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, @@ -45,9 +45,9 @@ static asn_per_constraints_t asn_PER_memb_hnbRegisterReject_ies_constr_2 GCC_NOT }; static asn_TYPE_member_t asn_MBR_hnbRegisterReject_ies_2[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_IE, + &asn_DEF_HNBAP_IE, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, @@ -59,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_hnbRegisterReject_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_hnbRegisterReject_ies_specs_2 = { - sizeof(struct hnbRegisterReject_ies), - offsetof(struct hnbRegisterReject_ies, _asn_ctx), + sizeof(struct HNBAP_HNBRegisterReject__hnbRegisterReject_ies), + offsetof(struct HNBAP_HNBRegisterReject__hnbRegisterReject_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ @@ -91,8 +91,8 @@ asn_TYPE_descriptor_t asn_DEF_hnbRegisterReject_ies_2 = { &asn_SPC_hnbRegisterReject_ies_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_HNBRegisterReject_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HNBRegisterReject, hnbRegisterReject_ies), +static asn_TYPE_member_t asn_MBR_HNBAP_HNBRegisterReject_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_HNBRegisterReject, hnbRegisterReject_ies), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_hnbRegisterReject_ies_2, @@ -102,24 +102,24 @@ static asn_TYPE_member_t asn_MBR_HNBRegisterReject_1[] = { "hnbRegisterReject-ies" }, }; -static const ber_tlv_tag_t asn_DEF_HNBRegisterReject_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_HNBRegisterReject_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_HNBRegisterReject_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_HNBRegisterReject_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* hnbRegisterReject-ies */ }; -static asn_SEQUENCE_specifics_t asn_SPC_HNBRegisterReject_specs_1 = { - sizeof(struct HNBRegisterReject), - offsetof(struct HNBRegisterReject, _asn_ctx), - asn_MAP_HNBRegisterReject_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_HNBRegisterReject_specs_1 = { + sizeof(struct HNBAP_HNBRegisterReject), + offsetof(struct HNBAP_HNBRegisterReject, _asn_ctx), + asn_MAP_HNBAP_HNBRegisterReject_tag2el_1, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 0, /* Start extensions */ 2 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_HNBRegisterReject = { - "HNBRegisterReject", - "HNBRegisterReject", +asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBRegisterReject = { + "HNBAP_HNBRegisterReject", + "HNBAP_HNBRegisterReject", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -132,15 +132,15 @@ asn_TYPE_descriptor_t asn_DEF_HNBRegisterReject = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_HNBRegisterReject_tags_1, - sizeof(asn_DEF_HNBRegisterReject_tags_1) - /sizeof(asn_DEF_HNBRegisterReject_tags_1[0]), /* 1 */ - asn_DEF_HNBRegisterReject_tags_1, /* Same as above */ - sizeof(asn_DEF_HNBRegisterReject_tags_1) - /sizeof(asn_DEF_HNBRegisterReject_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNBRegisterReject_tags_1, + sizeof(asn_DEF_HNBAP_HNBRegisterReject_tags_1) + /sizeof(asn_DEF_HNBAP_HNBRegisterReject_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNBRegisterReject_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_HNBRegisterReject_tags_1) + /sizeof(asn_DEF_HNBAP_HNBRegisterReject_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_HNBRegisterReject_1, + asn_MBR_HNBAP_HNBRegisterReject_1, 1, /* Elements count */ - &asn_SPC_HNBRegisterReject_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_HNBRegisterReject_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/HNBRegisterRequest.c b/src/hnbap/HNBAP_HNBRegisterRequest.c index 9b58f9c..443024f 100644 --- a/src/hnbap/HNBRegisterRequest.c +++ b/src/hnbap/HNBAP_HNBRegisterRequest.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/HNBRegisterRequest.h> +#include <osmocom/hnbap/HNBAP_HNBRegisterRequest.h> static int memb_hnbRegisterRequest_ies_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, @@ -45,9 +45,9 @@ static asn_per_constraints_t asn_PER_memb_hnbRegisterRequest_ies_constr_2 GCC_NO }; static asn_TYPE_member_t asn_MBR_hnbRegisterRequest_ies_2[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_IE, + &asn_DEF_HNBAP_IE, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, @@ -59,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_hnbRegisterRequest_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_hnbRegisterRequest_ies_specs_2 = { - sizeof(struct hnbRegisterRequest_ies), - offsetof(struct hnbRegisterRequest_ies, _asn_ctx), + sizeof(struct HNBAP_HNBRegisterRequest__hnbRegisterRequest_ies), + offsetof(struct HNBAP_HNBRegisterRequest__hnbRegisterRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ @@ -91,8 +91,8 @@ asn_TYPE_descriptor_t asn_DEF_hnbRegisterRequest_ies_2 = { &asn_SPC_hnbRegisterRequest_ies_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_HNBRegisterRequest_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HNBRegisterRequest, hnbRegisterRequest_ies), +static asn_TYPE_member_t asn_MBR_HNBAP_HNBRegisterRequest_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_HNBRegisterRequest, hnbRegisterRequest_ies), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_hnbRegisterRequest_ies_2, @@ -102,24 +102,24 @@ static asn_TYPE_member_t asn_MBR_HNBRegisterRequest_1[] = { "hnbRegisterRequest-ies" }, }; -static const ber_tlv_tag_t asn_DEF_HNBRegisterRequest_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_HNBRegisterRequest_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_HNBRegisterRequest_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_HNBRegisterRequest_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* hnbRegisterRequest-ies */ }; -static asn_SEQUENCE_specifics_t asn_SPC_HNBRegisterRequest_specs_1 = { - sizeof(struct HNBRegisterRequest), - offsetof(struct HNBRegisterRequest, _asn_ctx), - asn_MAP_HNBRegisterRequest_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_HNBRegisterRequest_specs_1 = { + sizeof(struct HNBAP_HNBRegisterRequest), + offsetof(struct HNBAP_HNBRegisterRequest, _asn_ctx), + asn_MAP_HNBAP_HNBRegisterRequest_tag2el_1, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 0, /* Start extensions */ 2 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_HNBRegisterRequest = { - "HNBRegisterRequest", - "HNBRegisterRequest", +asn_TYPE_descriptor_t asn_DEF_HNBAP_HNBRegisterRequest = { + "HNBAP_HNBRegisterRequest", + "HNBAP_HNBRegisterRequest", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -132,15 +132,15 @@ asn_TYPE_descriptor_t asn_DEF_HNBRegisterRequest = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_HNBRegisterRequest_tags_1, - sizeof(asn_DEF_HNBRegisterRequest_tags_1) - /sizeof(asn_DEF_HNBRegisterRequest_tags_1[0]), /* 1 */ - asn_DEF_HNBRegisterRequest_tags_1, /* Same as above */ - sizeof(asn_DEF_HNBRegisterRequest_tags_1) - /sizeof(asn_DEF_HNBRegisterRequest_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNBRegisterRequest_tags_1, + sizeof(asn_DEF_HNBAP_HNBRegisterRequest_tags_1) + /sizeof(asn_DEF_HNBAP_HNBRegisterRequest_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_HNBRegisterRequest_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_HNBRegisterRequest_tags_1) + /sizeof(asn_DEF_HNBAP_HNBRegisterRequest_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_HNBRegisterRequest_1, + asn_MBR_HNBAP_HNBRegisterRequest_1, 1, /* Elements count */ - &asn_SPC_HNBRegisterRequest_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_HNBRegisterRequest_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/HNBAP_IE-Extensions.c b/src/hnbap/HNBAP_IE-Extensions.c new file mode 100644 index 0000000..2cc141b --- /dev/null +++ b/src/hnbap/HNBAP_IE-Extensions.c @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_IE-Extensions.h> + +static asn_per_constraints_t asn_PER_type_HNBAP_IE_Extensions_constr_1 GCC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 16, 16, 1l, 65535l } /* (SIZE(1..65535)) */, + 0, 0 /* No PER value map */ +}; +static asn_TYPE_member_t asn_MBR_HNBAP_IE_Extensions_1[] = { + { ATF_POINTER, 0, 0, + -1 /* Ambiguous tag (CHOICE?) */, + 0, + &asn_DEF_HNBAP_IE, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_HNBAP_IE_Extensions_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_HNBAP_IE_Extensions_specs_1 = { + sizeof(struct HNBAP_IE_Extensions), + offsetof(struct HNBAP_IE_Extensions, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_IE_Extensions = { + "HNBAP_IE-Extensions", + "HNBAP_IE-Extensions", + SEQUENCE_OF_free, + SEQUENCE_OF_print, + SEQUENCE_OF_constraint, + SEQUENCE_OF_decode_ber, + SEQUENCE_OF_encode_der, + SEQUENCE_OF_decode_xer, + SEQUENCE_OF_encode_xer, + SEQUENCE_OF_decode_uper, + SEQUENCE_OF_encode_uper, + SEQUENCE_OF_decode_aper, + SEQUENCE_OF_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_IE_Extensions_tags_1, + sizeof(asn_DEF_HNBAP_IE_Extensions_tags_1) + /sizeof(asn_DEF_HNBAP_IE_Extensions_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_IE_Extensions_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_IE_Extensions_tags_1) + /sizeof(asn_DEF_HNBAP_IE_Extensions_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_IE_Extensions_constr_1, + asn_MBR_HNBAP_IE_Extensions_1, + 1, /* Single element */ + &asn_SPC_HNBAP_IE_Extensions_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/IE.c b/src/hnbap/HNBAP_IE.c index 5e6763a..2c9c779 100644 --- a/src/hnbap/IE.c +++ b/src/hnbap/HNBAP_IE.c @@ -2,31 +2,31 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/IE.h> +#include <osmocom/hnbap/HNBAP_IE.h> -static asn_TYPE_member_t asn_MBR_IE_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct IE, id), +static asn_TYPE_member_t asn_MBR_HNBAP_IE_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_IE, id), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_ProtocolIE_ID, + &asn_DEF_HNBAP_ProtocolIE_ID, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "id" }, - { ATF_NOFLAGS, 0, offsetof(struct IE, criticality), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_IE, criticality), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_Criticality, + &asn_DEF_HNBAP_Criticality, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "criticality" }, - { ATF_NOFLAGS, 0, offsetof(struct IE, value), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_IE, value), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ANY, @@ -36,26 +36,26 @@ static asn_TYPE_member_t asn_MBR_IE_1[] = { "value" }, }; -static const ber_tlv_tag_t asn_DEF_IE_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_IE_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_IE_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_IE_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */ }; -static asn_SEQUENCE_specifics_t asn_SPC_IE_specs_1 = { - sizeof(struct IE), - offsetof(struct IE, _asn_ctx), - asn_MAP_IE_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_IE_specs_1 = { + sizeof(struct HNBAP_IE), + offsetof(struct HNBAP_IE, _asn_ctx), + asn_MAP_HNBAP_IE_tag2el_1, 3, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ -1, /* Start extensions */ -1 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_IE = { - "IE", - "IE", +asn_TYPE_descriptor_t asn_DEF_HNBAP_IE = { + "HNBAP_IE", + "HNBAP_IE", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -68,15 +68,15 @@ asn_TYPE_descriptor_t asn_DEF_IE = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_IE_tags_1, - sizeof(asn_DEF_IE_tags_1) - /sizeof(asn_DEF_IE_tags_1[0]), /* 1 */ - asn_DEF_IE_tags_1, /* Same as above */ - sizeof(asn_DEF_IE_tags_1) - /sizeof(asn_DEF_IE_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_IE_tags_1, + sizeof(asn_DEF_HNBAP_IE_tags_1) + /sizeof(asn_DEF_HNBAP_IE_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_IE_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_IE_tags_1) + /sizeof(asn_DEF_HNBAP_IE_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_IE_1, + asn_MBR_HNBAP_IE_1, 3, /* Elements count */ - &asn_SPC_IE_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_IE_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/Context-ID.c b/src/hnbap/HNBAP_IMEI.c index 9204c4c..cf13c7b 100644 --- a/src/hnbap/Context-ID.c +++ b/src/hnbap/HNBAP_IMEI.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/Context-ID.h> +#include <osmocom/hnbap/HNBAP_IMEI.h> int -Context_ID_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_IMEI_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; size_t size; @@ -27,7 +27,7 @@ Context_ID_constraint(asn_TYPE_descriptor_t *td, const void *sptr, size = 0; } - if((size == 24l)) { + if((size == 60l)) { /* Constraint check succeeded */ return 0; } else { @@ -43,7 +43,7 @@ Context_ID_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -Context_ID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_IMEI_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_BIT_STRING.free_struct; td->print_struct = asn_DEF_BIT_STRING.print_struct; td->check_constraints = asn_DEF_BIT_STRING.check_constraints; @@ -63,109 +63,109 @@ Context_ID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -Context_ID_free(asn_TYPE_descriptor_t *td, +HNBAP_IMEI_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - Context_ID_1_inherit_TYPE_descriptor(td); + HNBAP_IMEI_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -Context_ID_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_IMEI_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - Context_ID_1_inherit_TYPE_descriptor(td); + HNBAP_IMEI_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -Context_ID_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_IMEI_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - Context_ID_1_inherit_TYPE_descriptor(td); + HNBAP_IMEI_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -Context_ID_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_IMEI_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - Context_ID_1_inherit_TYPE_descriptor(td); + HNBAP_IMEI_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -Context_ID_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_IMEI_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - Context_ID_1_inherit_TYPE_descriptor(td); + HNBAP_IMEI_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -Context_ID_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_IMEI_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - Context_ID_1_inherit_TYPE_descriptor(td); + HNBAP_IMEI_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -Context_ID_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_IMEI_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - Context_ID_1_inherit_TYPE_descriptor(td); + HNBAP_IMEI_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -Context_ID_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_IMEI_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - Context_ID_1_inherit_TYPE_descriptor(td); + HNBAP_IMEI_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -Context_ID_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_IMEI_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - Context_ID_1_inherit_TYPE_descriptor(td); + HNBAP_IMEI_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -Context_ID_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_IMEI_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - Context_ID_1_inherit_TYPE_descriptor(td); + HNBAP_IMEI_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_Context_ID_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_IMEI_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 24l, 24l } /* (SIZE(24..24)) */, + { APC_CONSTRAINED, 0, 0, 60l, 60l } /* (SIZE(60..60)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_Context_ID_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_IMEI_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_Context_ID = { - "Context-ID", - "Context-ID", - Context_ID_free, - Context_ID_print, - Context_ID_constraint, - Context_ID_decode_ber, - Context_ID_encode_der, - Context_ID_decode_xer, - Context_ID_encode_xer, - Context_ID_decode_uper, - Context_ID_encode_uper, - Context_ID_decode_aper, - Context_ID_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_IMEI = { + "HNBAP_IMEI", + "HNBAP_IMEI", + HNBAP_IMEI_free, + HNBAP_IMEI_print, + HNBAP_IMEI_constraint, + HNBAP_IMEI_decode_ber, + HNBAP_IMEI_encode_der, + HNBAP_IMEI_decode_xer, + HNBAP_IMEI_encode_xer, + HNBAP_IMEI_decode_uper, + HNBAP_IMEI_encode_uper, + HNBAP_IMEI_decode_aper, + HNBAP_IMEI_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_Context_ID_tags_1, - sizeof(asn_DEF_Context_ID_tags_1) - /sizeof(asn_DEF_Context_ID_tags_1[0]), /* 1 */ - asn_DEF_Context_ID_tags_1, /* Same as above */ - sizeof(asn_DEF_Context_ID_tags_1) - /sizeof(asn_DEF_Context_ID_tags_1[0]), /* 1 */ - &asn_PER_type_Context_ID_constr_1, + asn_DEF_HNBAP_IMEI_tags_1, + sizeof(asn_DEF_HNBAP_IMEI_tags_1) + /sizeof(asn_DEF_HNBAP_IMEI_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_IMEI_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_IMEI_tags_1) + /sizeof(asn_DEF_HNBAP_IMEI_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_IMEI_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/IMSI.c b/src/hnbap/HNBAP_IMSI.c index 9b5f2da..bb0c58e 100644 --- a/src/hnbap/IMSI.c +++ b/src/hnbap/HNBAP_IMSI.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/IMSI.h> +#include <osmocom/hnbap/HNBAP_IMSI.h> int -IMSI_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_IMSI_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; size_t size; @@ -38,7 +38,7 @@ IMSI_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -IMSI_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_IMSI_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_OCTET_STRING.free_struct; td->print_struct = asn_DEF_OCTET_STRING.print_struct; td->check_constraints = asn_DEF_OCTET_STRING.check_constraints; @@ -58,109 +58,109 @@ IMSI_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -IMSI_free(asn_TYPE_descriptor_t *td, +HNBAP_IMSI_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - IMSI_1_inherit_TYPE_descriptor(td); + HNBAP_IMSI_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -IMSI_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_IMSI_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - IMSI_1_inherit_TYPE_descriptor(td); + HNBAP_IMSI_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -IMSI_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_IMSI_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - IMSI_1_inherit_TYPE_descriptor(td); + HNBAP_IMSI_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -IMSI_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_IMSI_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - IMSI_1_inherit_TYPE_descriptor(td); + HNBAP_IMSI_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -IMSI_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_IMSI_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - IMSI_1_inherit_TYPE_descriptor(td); + HNBAP_IMSI_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -IMSI_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_IMSI_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - IMSI_1_inherit_TYPE_descriptor(td); + HNBAP_IMSI_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -IMSI_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_IMSI_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - IMSI_1_inherit_TYPE_descriptor(td); + HNBAP_IMSI_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -IMSI_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_IMSI_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - IMSI_1_inherit_TYPE_descriptor(td); + HNBAP_IMSI_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -IMSI_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_IMSI_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - IMSI_1_inherit_TYPE_descriptor(td); + HNBAP_IMSI_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -IMSI_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_IMSI_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - IMSI_1_inherit_TYPE_descriptor(td); + HNBAP_IMSI_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_IMSI_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_IMSI_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 3, 3, 3l, 8l } /* (SIZE(3..8)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_IMSI_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_IMSI_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_IMSI = { - "IMSI", - "IMSI", - IMSI_free, - IMSI_print, - IMSI_constraint, - IMSI_decode_ber, - IMSI_encode_der, - IMSI_decode_xer, - IMSI_encode_xer, - IMSI_decode_uper, - IMSI_encode_uper, - IMSI_decode_aper, - IMSI_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_IMSI = { + "HNBAP_IMSI", + "HNBAP_IMSI", + HNBAP_IMSI_free, + HNBAP_IMSI_print, + HNBAP_IMSI_constraint, + HNBAP_IMSI_decode_ber, + HNBAP_IMSI_encode_der, + HNBAP_IMSI_decode_xer, + HNBAP_IMSI_encode_xer, + HNBAP_IMSI_decode_uper, + HNBAP_IMSI_encode_uper, + HNBAP_IMSI_decode_aper, + HNBAP_IMSI_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_IMSI_tags_1, - sizeof(asn_DEF_IMSI_tags_1) - /sizeof(asn_DEF_IMSI_tags_1[0]), /* 1 */ - asn_DEF_IMSI_tags_1, /* Same as above */ - sizeof(asn_DEF_IMSI_tags_1) - /sizeof(asn_DEF_IMSI_tags_1[0]), /* 1 */ - &asn_PER_type_IMSI_constr_1, + asn_DEF_HNBAP_IMSI_tags_1, + sizeof(asn_DEF_HNBAP_IMSI_tags_1) + /sizeof(asn_DEF_HNBAP_IMSI_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_IMSI_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_IMSI_tags_1) + /sizeof(asn_DEF_HNBAP_IMSI_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_IMSI_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/IMSIDS41.c b/src/hnbap/HNBAP_IMSIDS41.c index b2ebdbd..0d82417 100644 --- a/src/hnbap/IMSIDS41.c +++ b/src/hnbap/HNBAP_IMSIDS41.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/IMSIDS41.h> +#include <osmocom/hnbap/HNBAP_IMSIDS41.h> int -IMSIDS41_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_IMSIDS41_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; size_t size; @@ -38,7 +38,7 @@ IMSIDS41_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -IMSIDS41_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_IMSIDS41_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_OCTET_STRING.free_struct; td->print_struct = asn_DEF_OCTET_STRING.print_struct; td->check_constraints = asn_DEF_OCTET_STRING.check_constraints; @@ -58,109 +58,109 @@ IMSIDS41_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -IMSIDS41_free(asn_TYPE_descriptor_t *td, +HNBAP_IMSIDS41_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - IMSIDS41_1_inherit_TYPE_descriptor(td); + HNBAP_IMSIDS41_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -IMSIDS41_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_IMSIDS41_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - IMSIDS41_1_inherit_TYPE_descriptor(td); + HNBAP_IMSIDS41_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -IMSIDS41_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_IMSIDS41_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - IMSIDS41_1_inherit_TYPE_descriptor(td); + HNBAP_IMSIDS41_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -IMSIDS41_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_IMSIDS41_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - IMSIDS41_1_inherit_TYPE_descriptor(td); + HNBAP_IMSIDS41_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -IMSIDS41_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_IMSIDS41_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - IMSIDS41_1_inherit_TYPE_descriptor(td); + HNBAP_IMSIDS41_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -IMSIDS41_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_IMSIDS41_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - IMSIDS41_1_inherit_TYPE_descriptor(td); + HNBAP_IMSIDS41_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -IMSIDS41_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_IMSIDS41_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - IMSIDS41_1_inherit_TYPE_descriptor(td); + HNBAP_IMSIDS41_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -IMSIDS41_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_IMSIDS41_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - IMSIDS41_1_inherit_TYPE_descriptor(td); + HNBAP_IMSIDS41_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -IMSIDS41_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_IMSIDS41_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - IMSIDS41_1_inherit_TYPE_descriptor(td); + HNBAP_IMSIDS41_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -IMSIDS41_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_IMSIDS41_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - IMSIDS41_1_inherit_TYPE_descriptor(td); + HNBAP_IMSIDS41_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_IMSIDS41_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_IMSIDS41_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 2, 2, 5l, 7l } /* (SIZE(5..7)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_IMSIDS41_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_IMSIDS41_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_IMSIDS41 = { - "IMSIDS41", - "IMSIDS41", - IMSIDS41_free, - IMSIDS41_print, - IMSIDS41_constraint, - IMSIDS41_decode_ber, - IMSIDS41_encode_der, - IMSIDS41_decode_xer, - IMSIDS41_encode_xer, - IMSIDS41_decode_uper, - IMSIDS41_encode_uper, - IMSIDS41_decode_aper, - IMSIDS41_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_IMSIDS41 = { + "HNBAP_IMSIDS41", + "HNBAP_IMSIDS41", + HNBAP_IMSIDS41_free, + HNBAP_IMSIDS41_print, + HNBAP_IMSIDS41_constraint, + HNBAP_IMSIDS41_decode_ber, + HNBAP_IMSIDS41_encode_der, + HNBAP_IMSIDS41_decode_xer, + HNBAP_IMSIDS41_encode_xer, + HNBAP_IMSIDS41_decode_uper, + HNBAP_IMSIDS41_encode_uper, + HNBAP_IMSIDS41_decode_aper, + HNBAP_IMSIDS41_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_IMSIDS41_tags_1, - sizeof(asn_DEF_IMSIDS41_tags_1) - /sizeof(asn_DEF_IMSIDS41_tags_1[0]), /* 1 */ - asn_DEF_IMSIDS41_tags_1, /* Same as above */ - sizeof(asn_DEF_IMSIDS41_tags_1) - /sizeof(asn_DEF_IMSIDS41_tags_1[0]), /* 1 */ - &asn_PER_type_IMSIDS41_constr_1, + asn_DEF_HNBAP_IMSIDS41_tags_1, + sizeof(asn_DEF_HNBAP_IMSIDS41_tags_1) + /sizeof(asn_DEF_HNBAP_IMSIDS41_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_IMSIDS41_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_IMSIDS41_tags_1) + /sizeof(asn_DEF_HNBAP_IMSIDS41_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_IMSIDS41_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/IMSIESN.c b/src/hnbap/HNBAP_IMSIESN.c index 31425ea..d0c3e9a 100644 --- a/src/hnbap/IMSIESN.c +++ b/src/hnbap/HNBAP_IMSIESN.c @@ -2,50 +2,50 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/IMSIESN.h> +#include <osmocom/hnbap/HNBAP_IMSIESN.h> -static asn_TYPE_member_t asn_MBR_IMSIESN_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct IMSIESN, iMSIDS41), +static asn_TYPE_member_t asn_MBR_HNBAP_IMSIESN_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_IMSIESN, iMSIDS41), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_IMSIDS41, + &asn_DEF_HNBAP_IMSIDS41, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "iMSIDS41" }, - { ATF_NOFLAGS, 0, offsetof(struct IMSIESN, eSN), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_IMSIESN, eSN), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_ESN, + &asn_DEF_HNBAP_ESN, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "eSN" }, }; -static const ber_tlv_tag_t asn_DEF_IMSIESN_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_IMSIESN_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_IMSIESN_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_IMSIESN_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* iMSIDS41 */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* eSN */ }; -static asn_SEQUENCE_specifics_t asn_SPC_IMSIESN_specs_1 = { - sizeof(struct IMSIESN), - offsetof(struct IMSIESN, _asn_ctx), - asn_MAP_IMSIESN_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_IMSIESN_specs_1 = { + sizeof(struct HNBAP_IMSIESN), + offsetof(struct HNBAP_IMSIESN, _asn_ctx), + asn_MAP_HNBAP_IMSIESN_tag2el_1, 2, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ -1, /* Start extensions */ -1 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_IMSIESN = { - "IMSIESN", - "IMSIESN", +asn_TYPE_descriptor_t asn_DEF_HNBAP_IMSIESN = { + "HNBAP_IMSIESN", + "HNBAP_IMSIESN", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -58,15 +58,15 @@ asn_TYPE_descriptor_t asn_DEF_IMSIESN = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_IMSIESN_tags_1, - sizeof(asn_DEF_IMSIESN_tags_1) - /sizeof(asn_DEF_IMSIESN_tags_1[0]), /* 1 */ - asn_DEF_IMSIESN_tags_1, /* Same as above */ - sizeof(asn_DEF_IMSIESN_tags_1) - /sizeof(asn_DEF_IMSIESN_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_IMSIESN_tags_1, + sizeof(asn_DEF_HNBAP_IMSIESN_tags_1) + /sizeof(asn_DEF_HNBAP_IMSIESN_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_IMSIESN_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_IMSIESN_tags_1) + /sizeof(asn_DEF_HNBAP_IMSIESN_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_IMSIESN_1, + asn_MBR_HNBAP_IMSIESN_1, 2, /* Elements count */ - &asn_SPC_IMSIESN_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_IMSIESN_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/IP-Address.c b/src/hnbap/HNBAP_IP-Address.c index ee977b4..06bc182 100644 --- a/src/hnbap/IP-Address.c +++ b/src/hnbap/HNBAP_IP-Address.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/IP-Address.h> +#include <osmocom/hnbap/HNBAP_IP-Address.h> static asn_per_constraints_t asn_PER_type_ipaddress_constr_2 GCC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0l, 1l } /* (0..1,...) */, @@ -13,19 +13,19 @@ static asn_per_constraints_t asn_PER_type_ipaddress_constr_2 GCC_NOTUSED = { 0, 0 /* No PER value map */ }; static asn_TYPE_member_t asn_MBR_ipaddress_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct ipaddress, choice.ipv4info), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_IP_Address__ipaddress, choice.ipv4info), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ipv4Address, + &asn_DEF_HNBAP_Ipv4Address, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "ipv4info" }, - { ATF_NOFLAGS, 0, offsetof(struct ipaddress, choice.ipv6info), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_IP_Address__ipaddress, choice.ipv6info), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_Ipv6Address, + &asn_DEF_HNBAP_Ipv6Address, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, @@ -37,10 +37,10 @@ static const asn_TYPE_tag2member_t asn_MAP_ipaddress_tag2el_2[] = { { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ipv6info */ }; static asn_CHOICE_specifics_t asn_SPC_ipaddress_specs_2 = { - sizeof(struct ipaddress), - offsetof(struct ipaddress, _asn_ctx), - offsetof(struct ipaddress, present), - sizeof(((struct ipaddress *)0)->present), + sizeof(struct HNBAP_IP_Address__ipaddress), + offsetof(struct HNBAP_IP_Address__ipaddress, _asn_ctx), + offsetof(struct HNBAP_IP_Address__ipaddress, present), + sizeof(((struct HNBAP_IP_Address__ipaddress *)0)->present), asn_MAP_ipaddress_tag2el_2, 2, /* Count of tags in the map */ 0, @@ -72,8 +72,8 @@ asn_TYPE_descriptor_t asn_DEF_ipaddress_2 = { &asn_SPC_ipaddress_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_IP_Address_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct IP_Address, ipaddress), +static asn_TYPE_member_t asn_MBR_HNBAP_IP_Address_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_IP_Address, ipaddress), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ipaddress_2, @@ -82,37 +82,37 @@ static asn_TYPE_member_t asn_MBR_IP_Address_1[] = { 0, "ipaddress" }, - { ATF_POINTER, 1, offsetof(struct IP_Address, iE_Extensions), + { ATF_POINTER, 1, offsetof(struct HNBAP_IP_Address, iE_Extensions), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_IE_Extensions, + &asn_DEF_HNBAP_IE_Extensions, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "iE-Extensions" }, }; -static const int asn_MAP_IP_Address_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_IP_Address_tags_1[] = { +static const int asn_MAP_HNBAP_IP_Address_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_HNBAP_IP_Address_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_IP_Address_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_IP_Address_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ipaddress */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iE-Extensions */ }; -static asn_SEQUENCE_specifics_t asn_SPC_IP_Address_specs_1 = { - sizeof(struct IP_Address), - offsetof(struct IP_Address, _asn_ctx), - asn_MAP_IP_Address_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_IP_Address_specs_1 = { + sizeof(struct HNBAP_IP_Address), + offsetof(struct HNBAP_IP_Address, _asn_ctx), + asn_MAP_HNBAP_IP_Address_tag2el_1, 2, /* Count of tags in the map */ - asn_MAP_IP_Address_oms_1, /* Optional members */ + asn_MAP_HNBAP_IP_Address_oms_1, /* Optional members */ 1, 0, /* Root/Additions */ 1, /* Start extensions */ 3 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_IP_Address = { - "IP-Address", - "IP-Address", +asn_TYPE_descriptor_t asn_DEF_HNBAP_IP_Address = { + "HNBAP_IP-Address", + "HNBAP_IP-Address", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -125,15 +125,15 @@ asn_TYPE_descriptor_t asn_DEF_IP_Address = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_IP_Address_tags_1, - sizeof(asn_DEF_IP_Address_tags_1) - /sizeof(asn_DEF_IP_Address_tags_1[0]), /* 1 */ - asn_DEF_IP_Address_tags_1, /* Same as above */ - sizeof(asn_DEF_IP_Address_tags_1) - /sizeof(asn_DEF_IP_Address_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_IP_Address_tags_1, + sizeof(asn_DEF_HNBAP_IP_Address_tags_1) + /sizeof(asn_DEF_HNBAP_IP_Address_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_IP_Address_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_IP_Address_tags_1) + /sizeof(asn_DEF_HNBAP_IP_Address_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_IP_Address_1, + asn_MBR_HNBAP_IP_Address_1, 2, /* Elements count */ - &asn_SPC_IP_Address_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_IP_Address_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/UnsuccessfulOutcome.c b/src/hnbap/HNBAP_InitiatingMessage.c index 4ea7963..155eff9 100644 --- a/src/hnbap/UnsuccessfulOutcome.c +++ b/src/hnbap/HNBAP_InitiatingMessage.c @@ -2,31 +2,31 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/UnsuccessfulOutcome.h> +#include <osmocom/hnbap/HNBAP_InitiatingMessage.h> -static asn_TYPE_member_t asn_MBR_UnsuccessfulOutcome_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UnsuccessfulOutcome, procedureCode), +static asn_TYPE_member_t asn_MBR_HNBAP_InitiatingMessage_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_InitiatingMessage, procedureCode), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_ProcedureCode, + &asn_DEF_HNBAP_ProcedureCode, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "procedureCode" }, - { ATF_NOFLAGS, 0, offsetof(struct UnsuccessfulOutcome, criticality), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_InitiatingMessage, criticality), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_Criticality, + &asn_DEF_HNBAP_Criticality, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "criticality" }, - { ATF_NOFLAGS, 0, offsetof(struct UnsuccessfulOutcome, value), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_InitiatingMessage, value), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ANY, @@ -36,26 +36,26 @@ static asn_TYPE_member_t asn_MBR_UnsuccessfulOutcome_1[] = { "value" }, }; -static const ber_tlv_tag_t asn_DEF_UnsuccessfulOutcome_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_InitiatingMessage_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_UnsuccessfulOutcome_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_InitiatingMessage_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* procedureCode */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */ }; -static asn_SEQUENCE_specifics_t asn_SPC_UnsuccessfulOutcome_specs_1 = { - sizeof(struct UnsuccessfulOutcome), - offsetof(struct UnsuccessfulOutcome, _asn_ctx), - asn_MAP_UnsuccessfulOutcome_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_InitiatingMessage_specs_1 = { + sizeof(struct HNBAP_InitiatingMessage), + offsetof(struct HNBAP_InitiatingMessage, _asn_ctx), + asn_MAP_HNBAP_InitiatingMessage_tag2el_1, 3, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ -1, /* Start extensions */ -1 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_UnsuccessfulOutcome = { - "UnsuccessfulOutcome", - "UnsuccessfulOutcome", +asn_TYPE_descriptor_t asn_DEF_HNBAP_InitiatingMessage = { + "HNBAP_InitiatingMessage", + "HNBAP_InitiatingMessage", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -68,15 +68,15 @@ asn_TYPE_descriptor_t asn_DEF_UnsuccessfulOutcome = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_UnsuccessfulOutcome_tags_1, - sizeof(asn_DEF_UnsuccessfulOutcome_tags_1) - /sizeof(asn_DEF_UnsuccessfulOutcome_tags_1[0]), /* 1 */ - asn_DEF_UnsuccessfulOutcome_tags_1, /* Same as above */ - sizeof(asn_DEF_UnsuccessfulOutcome_tags_1) - /sizeof(asn_DEF_UnsuccessfulOutcome_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_InitiatingMessage_tags_1, + sizeof(asn_DEF_HNBAP_InitiatingMessage_tags_1) + /sizeof(asn_DEF_HNBAP_InitiatingMessage_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_InitiatingMessage_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_InitiatingMessage_tags_1) + /sizeof(asn_DEF_HNBAP_InitiatingMessage_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_UnsuccessfulOutcome_1, + asn_MBR_HNBAP_InitiatingMessage_1, 3, /* Elements count */ - &asn_SPC_UnsuccessfulOutcome_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_InitiatingMessage_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/HNB-Identity-Info.c b/src/hnbap/HNBAP_Ipv4Address.c index 51e9f0f..4481e57 100644 --- a/src/hnbap/HNB-Identity-Info.c +++ b/src/hnbap/HNBAP_Ipv4Address.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/HNB-Identity-Info.h> +#include <osmocom/hnbap/HNBAP_Ipv4Address.h> int -HNB_Identity_Info_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_Ipv4Address_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; size_t size; @@ -22,7 +22,7 @@ HNB_Identity_Info_constraint(asn_TYPE_descriptor_t *td, const void *sptr, size = st->size; - if((size >= 1l && size <= 255l)) { + if((size == 4l)) { /* Constraint check succeeded */ return 0; } else { @@ -38,7 +38,7 @@ HNB_Identity_Info_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -HNB_Identity_Info_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_Ipv4Address_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_OCTET_STRING.free_struct; td->print_struct = asn_DEF_OCTET_STRING.print_struct; td->check_constraints = asn_DEF_OCTET_STRING.check_constraints; @@ -58,109 +58,109 @@ HNB_Identity_Info_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -HNB_Identity_Info_free(asn_TYPE_descriptor_t *td, +HNBAP_Ipv4Address_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - HNB_Identity_Info_1_inherit_TYPE_descriptor(td); + HNBAP_Ipv4Address_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -HNB_Identity_Info_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_Ipv4Address_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - HNB_Identity_Info_1_inherit_TYPE_descriptor(td); + HNBAP_Ipv4Address_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -HNB_Identity_Info_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Ipv4Address_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - HNB_Identity_Info_1_inherit_TYPE_descriptor(td); + HNBAP_Ipv4Address_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -HNB_Identity_Info_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_Ipv4Address_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - HNB_Identity_Info_1_inherit_TYPE_descriptor(td); + HNBAP_Ipv4Address_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -HNB_Identity_Info_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Ipv4Address_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - HNB_Identity_Info_1_inherit_TYPE_descriptor(td); + HNBAP_Ipv4Address_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -HNB_Identity_Info_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_Ipv4Address_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - HNB_Identity_Info_1_inherit_TYPE_descriptor(td); + HNBAP_Ipv4Address_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -HNB_Identity_Info_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Ipv4Address_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - HNB_Identity_Info_1_inherit_TYPE_descriptor(td); + HNBAP_Ipv4Address_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -HNB_Identity_Info_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_Ipv4Address_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - HNB_Identity_Info_1_inherit_TYPE_descriptor(td); + HNBAP_Ipv4Address_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -HNB_Identity_Info_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_Ipv4Address_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - HNB_Identity_Info_1_inherit_TYPE_descriptor(td); + HNBAP_Ipv4Address_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -HNB_Identity_Info_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Ipv4Address_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - HNB_Identity_Info_1_inherit_TYPE_descriptor(td); + HNBAP_Ipv4Address_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_HNB_Identity_Info_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_Ipv4Address_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 8, 8, 1l, 255l } /* (SIZE(1..255)) */, + { APC_CONSTRAINED, 0, 0, 4l, 4l } /* (SIZE(4..4)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_HNB_Identity_Info_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_Ipv4Address_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_HNB_Identity_Info = { - "HNB-Identity-Info", - "HNB-Identity-Info", - HNB_Identity_Info_free, - HNB_Identity_Info_print, - HNB_Identity_Info_constraint, - HNB_Identity_Info_decode_ber, - HNB_Identity_Info_encode_der, - HNB_Identity_Info_decode_xer, - HNB_Identity_Info_encode_xer, - HNB_Identity_Info_decode_uper, - HNB_Identity_Info_encode_uper, - HNB_Identity_Info_decode_aper, - HNB_Identity_Info_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_Ipv4Address = { + "HNBAP_Ipv4Address", + "HNBAP_Ipv4Address", + HNBAP_Ipv4Address_free, + HNBAP_Ipv4Address_print, + HNBAP_Ipv4Address_constraint, + HNBAP_Ipv4Address_decode_ber, + HNBAP_Ipv4Address_encode_der, + HNBAP_Ipv4Address_decode_xer, + HNBAP_Ipv4Address_encode_xer, + HNBAP_Ipv4Address_decode_uper, + HNBAP_Ipv4Address_encode_uper, + HNBAP_Ipv4Address_decode_aper, + HNBAP_Ipv4Address_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_HNB_Identity_Info_tags_1, - sizeof(asn_DEF_HNB_Identity_Info_tags_1) - /sizeof(asn_DEF_HNB_Identity_Info_tags_1[0]), /* 1 */ - asn_DEF_HNB_Identity_Info_tags_1, /* Same as above */ - sizeof(asn_DEF_HNB_Identity_Info_tags_1) - /sizeof(asn_DEF_HNB_Identity_Info_tags_1[0]), /* 1 */ - &asn_PER_type_HNB_Identity_Info_constr_1, + asn_DEF_HNBAP_Ipv4Address_tags_1, + sizeof(asn_DEF_HNBAP_Ipv4Address_tags_1) + /sizeof(asn_DEF_HNBAP_Ipv4Address_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_Ipv4Address_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_Ipv4Address_tags_1) + /sizeof(asn_DEF_HNBAP_Ipv4Address_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_Ipv4Address_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/Ipv6Address.c b/src/hnbap/HNBAP_Ipv6Address.c index 5be471f..2fad0a5 100644 --- a/src/hnbap/Ipv6Address.c +++ b/src/hnbap/HNBAP_Ipv6Address.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/Ipv6Address.h> +#include <osmocom/hnbap/HNBAP_Ipv6Address.h> int -Ipv6Address_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_Ipv6Address_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; size_t size; @@ -38,7 +38,7 @@ Ipv6Address_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -Ipv6Address_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_Ipv6Address_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_OCTET_STRING.free_struct; td->print_struct = asn_DEF_OCTET_STRING.print_struct; td->check_constraints = asn_DEF_OCTET_STRING.check_constraints; @@ -58,109 +58,109 @@ Ipv6Address_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -Ipv6Address_free(asn_TYPE_descriptor_t *td, +HNBAP_Ipv6Address_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - Ipv6Address_1_inherit_TYPE_descriptor(td); + HNBAP_Ipv6Address_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -Ipv6Address_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_Ipv6Address_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - Ipv6Address_1_inherit_TYPE_descriptor(td); + HNBAP_Ipv6Address_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -Ipv6Address_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Ipv6Address_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - Ipv6Address_1_inherit_TYPE_descriptor(td); + HNBAP_Ipv6Address_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -Ipv6Address_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_Ipv6Address_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - Ipv6Address_1_inherit_TYPE_descriptor(td); + HNBAP_Ipv6Address_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -Ipv6Address_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Ipv6Address_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - Ipv6Address_1_inherit_TYPE_descriptor(td); + HNBAP_Ipv6Address_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -Ipv6Address_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_Ipv6Address_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - Ipv6Address_1_inherit_TYPE_descriptor(td); + HNBAP_Ipv6Address_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -Ipv6Address_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Ipv6Address_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - Ipv6Address_1_inherit_TYPE_descriptor(td); + HNBAP_Ipv6Address_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -Ipv6Address_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_Ipv6Address_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - Ipv6Address_1_inherit_TYPE_descriptor(td); + HNBAP_Ipv6Address_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -Ipv6Address_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_Ipv6Address_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - Ipv6Address_1_inherit_TYPE_descriptor(td); + HNBAP_Ipv6Address_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -Ipv6Address_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Ipv6Address_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - Ipv6Address_1_inherit_TYPE_descriptor(td); + HNBAP_Ipv6Address_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_Ipv6Address_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_Ipv6Address_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 0, 0, 16l, 16l } /* (SIZE(16..16)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_Ipv6Address_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_Ipv6Address_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_Ipv6Address = { - "Ipv6Address", - "Ipv6Address", - Ipv6Address_free, - Ipv6Address_print, - Ipv6Address_constraint, - Ipv6Address_decode_ber, - Ipv6Address_encode_der, - Ipv6Address_decode_xer, - Ipv6Address_encode_xer, - Ipv6Address_decode_uper, - Ipv6Address_encode_uper, - Ipv6Address_decode_aper, - Ipv6Address_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_Ipv6Address = { + "HNBAP_Ipv6Address", + "HNBAP_Ipv6Address", + HNBAP_Ipv6Address_free, + HNBAP_Ipv6Address_print, + HNBAP_Ipv6Address_constraint, + HNBAP_Ipv6Address_decode_ber, + HNBAP_Ipv6Address_encode_der, + HNBAP_Ipv6Address_decode_xer, + HNBAP_Ipv6Address_encode_xer, + HNBAP_Ipv6Address_decode_uper, + HNBAP_Ipv6Address_encode_uper, + HNBAP_Ipv6Address_decode_aper, + HNBAP_Ipv6Address_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_Ipv6Address_tags_1, - sizeof(asn_DEF_Ipv6Address_tags_1) - /sizeof(asn_DEF_Ipv6Address_tags_1[0]), /* 1 */ - asn_DEF_Ipv6Address_tags_1, /* Same as above */ - sizeof(asn_DEF_Ipv6Address_tags_1) - /sizeof(asn_DEF_Ipv6Address_tags_1[0]), /* 1 */ - &asn_PER_type_Ipv6Address_constr_1, + asn_DEF_HNBAP_Ipv6Address_tags_1, + sizeof(asn_DEF_HNBAP_Ipv6Address_tags_1) + /sizeof(asn_DEF_HNBAP_Ipv6Address_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_Ipv6Address_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_Ipv6Address_tags_1) + /sizeof(asn_DEF_HNBAP_Ipv6Address_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_Ipv6Address_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/HNBAP_Iurh-Signalling-TNL-AddressList.c b/src/hnbap/HNBAP_Iurh-Signalling-TNL-AddressList.c new file mode 100644 index 0000000..3b70b99 --- /dev/null +++ b/src/hnbap/HNBAP_Iurh-Signalling-TNL-AddressList.c @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_Iurh-Signalling-TNL-AddressList.h> + +static asn_per_constraints_t asn_PER_type_HNBAP_Iurh_Signalling_TNL_AddressList_constr_1 GCC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 2, 2, 1l, 3l } /* (SIZE(1..3)) */, + 0, 0 /* No PER value map */ +}; +static asn_TYPE_member_t asn_MBR_HNBAP_Iurh_Signalling_TNL_AddressList_1[] = { + { ATF_POINTER, 0, 0, + -1 /* Ambiguous tag (CHOICE?) */, + 0, + &asn_DEF_HNBAP_IP_Address, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_HNBAP_Iurh_Signalling_TNL_AddressList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_HNBAP_Iurh_Signalling_TNL_AddressList_specs_1 = { + sizeof(struct HNBAP_Iurh_Signalling_TNL_AddressList), + offsetof(struct HNBAP_Iurh_Signalling_TNL_AddressList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_Iurh_Signalling_TNL_AddressList = { + "HNBAP_Iurh-Signalling-TNL-AddressList", + "HNBAP_Iurh-Signalling-TNL-AddressList", + SEQUENCE_OF_free, + SEQUENCE_OF_print, + SEQUENCE_OF_constraint, + SEQUENCE_OF_decode_ber, + SEQUENCE_OF_encode_der, + SEQUENCE_OF_decode_xer, + SEQUENCE_OF_encode_xer, + SEQUENCE_OF_decode_uper, + SEQUENCE_OF_encode_uper, + SEQUENCE_OF_decode_aper, + SEQUENCE_OF_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_Iurh_Signalling_TNL_AddressList_tags_1, + sizeof(asn_DEF_HNBAP_Iurh_Signalling_TNL_AddressList_tags_1) + /sizeof(asn_DEF_HNBAP_Iurh_Signalling_TNL_AddressList_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_Iurh_Signalling_TNL_AddressList_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_Iurh_Signalling_TNL_AddressList_tags_1) + /sizeof(asn_DEF_HNBAP_Iurh_Signalling_TNL_AddressList_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_Iurh_Signalling_TNL_AddressList_constr_1, + asn_MBR_HNBAP_Iurh_Signalling_TNL_AddressList_1, + 1, /* Single element */ + &asn_SPC_HNBAP_Iurh_Signalling_TNL_AddressList_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/LAC.c b/src/hnbap/HNBAP_LAC.c index a46147f..81bc84a 100644 --- a/src/hnbap/LAC.c +++ b/src/hnbap/HNBAP_LAC.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/LAC.h> +#include <osmocom/hnbap/HNBAP_LAC.h> int -LAC_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_LAC_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; size_t size; @@ -38,7 +38,7 @@ LAC_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -LAC_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_LAC_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_OCTET_STRING.free_struct; td->print_struct = asn_DEF_OCTET_STRING.print_struct; td->check_constraints = asn_DEF_OCTET_STRING.check_constraints; @@ -58,109 +58,109 @@ LAC_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -LAC_free(asn_TYPE_descriptor_t *td, +HNBAP_LAC_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - LAC_1_inherit_TYPE_descriptor(td); + HNBAP_LAC_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -LAC_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_LAC_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - LAC_1_inherit_TYPE_descriptor(td); + HNBAP_LAC_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -LAC_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_LAC_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - LAC_1_inherit_TYPE_descriptor(td); + HNBAP_LAC_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -LAC_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_LAC_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - LAC_1_inherit_TYPE_descriptor(td); + HNBAP_LAC_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -LAC_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_LAC_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - LAC_1_inherit_TYPE_descriptor(td); + HNBAP_LAC_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -LAC_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_LAC_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - LAC_1_inherit_TYPE_descriptor(td); + HNBAP_LAC_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -LAC_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_LAC_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - LAC_1_inherit_TYPE_descriptor(td); + HNBAP_LAC_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -LAC_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_LAC_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - LAC_1_inherit_TYPE_descriptor(td); + HNBAP_LAC_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -LAC_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_LAC_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - LAC_1_inherit_TYPE_descriptor(td); + HNBAP_LAC_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -LAC_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_LAC_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - LAC_1_inherit_TYPE_descriptor(td); + HNBAP_LAC_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_LAC_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_LAC_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 0, 0, 2l, 2l } /* (SIZE(2..2)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_LAC_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_LAC_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_LAC = { - "LAC", - "LAC", - LAC_free, - LAC_print, - LAC_constraint, - LAC_decode_ber, - LAC_encode_der, - LAC_decode_xer, - LAC_encode_xer, - LAC_decode_uper, - LAC_encode_uper, - LAC_decode_aper, - LAC_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_LAC = { + "HNBAP_LAC", + "HNBAP_LAC", + HNBAP_LAC_free, + HNBAP_LAC_print, + HNBAP_LAC_constraint, + HNBAP_LAC_decode_ber, + HNBAP_LAC_encode_der, + HNBAP_LAC_decode_xer, + HNBAP_LAC_encode_xer, + HNBAP_LAC_decode_uper, + HNBAP_LAC_encode_uper, + HNBAP_LAC_decode_aper, + HNBAP_LAC_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_LAC_tags_1, - sizeof(asn_DEF_LAC_tags_1) - /sizeof(asn_DEF_LAC_tags_1[0]), /* 1 */ - asn_DEF_LAC_tags_1, /* Same as above */ - sizeof(asn_DEF_LAC_tags_1) - /sizeof(asn_DEF_LAC_tags_1[0]), /* 1 */ - &asn_PER_type_LAC_constr_1, + asn_DEF_HNBAP_LAC_tags_1, + sizeof(asn_DEF_HNBAP_LAC_tags_1) + /sizeof(asn_DEF_HNBAP_LAC_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_LAC_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_LAC_tags_1) + /sizeof(asn_DEF_HNBAP_LAC_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_LAC_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/LAI.c b/src/hnbap/HNBAP_LAI.c index 1bb23c1..4b0a560 100644 --- a/src/hnbap/LAI.c +++ b/src/hnbap/HNBAP_LAI.c @@ -2,50 +2,50 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/LAI.h> +#include <osmocom/hnbap/HNBAP_LAI.h> -static asn_TYPE_member_t asn_MBR_LAI_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct LAI, pLMNID), +static asn_TYPE_member_t asn_MBR_HNBAP_LAI_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_LAI, pLMNID), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_PLMNidentity, + &asn_DEF_HNBAP_PLMNidentity, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "pLMNID" }, - { ATF_NOFLAGS, 0, offsetof(struct LAI, lAC), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_LAI, lAC), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_LAC, + &asn_DEF_HNBAP_LAC, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "lAC" }, }; -static const ber_tlv_tag_t asn_DEF_LAI_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_LAI_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_LAI_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_LAI_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pLMNID */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* lAC */ }; -static asn_SEQUENCE_specifics_t asn_SPC_LAI_specs_1 = { - sizeof(struct LAI), - offsetof(struct LAI, _asn_ctx), - asn_MAP_LAI_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_LAI_specs_1 = { + sizeof(struct HNBAP_LAI), + offsetof(struct HNBAP_LAI, _asn_ctx), + asn_MAP_HNBAP_LAI_tag2el_1, 2, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 1, /* Start extensions */ 3 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_LAI = { - "LAI", - "LAI", +asn_TYPE_descriptor_t asn_DEF_HNBAP_LAI = { + "HNBAP_LAI", + "HNBAP_LAI", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -58,15 +58,15 @@ asn_TYPE_descriptor_t asn_DEF_LAI = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_LAI_tags_1, - sizeof(asn_DEF_LAI_tags_1) - /sizeof(asn_DEF_LAI_tags_1[0]), /* 1 */ - asn_DEF_LAI_tags_1, /* Same as above */ - sizeof(asn_DEF_LAI_tags_1) - /sizeof(asn_DEF_LAI_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_LAI_tags_1, + sizeof(asn_DEF_HNBAP_LAI_tags_1) + /sizeof(asn_DEF_HNBAP_LAI_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_LAI_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_LAI_tags_1) + /sizeof(asn_DEF_HNBAP_LAI_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_LAI_1, + asn_MBR_HNBAP_LAI_1, 2, /* Elements count */ - &asn_SPC_LAI_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_LAI_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/MacroCellID.c b/src/hnbap/HNBAP_MacroCellID.c index 215a54e..04cc2ea 100644 --- a/src/hnbap/MacroCellID.c +++ b/src/hnbap/HNBAP_MacroCellID.c @@ -2,53 +2,53 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/MacroCellID.h> +#include <osmocom/hnbap/HNBAP_MacroCellID.h> -static asn_per_constraints_t asn_PER_type_MacroCellID_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_MacroCellID_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0l, 1l } /* (0..1,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_MacroCellID_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct MacroCellID, choice.uTRANCellID), +static asn_TYPE_member_t asn_MBR_HNBAP_MacroCellID_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_MacroCellID, choice.uTRANCellID), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_UTRANCellID, + &asn_DEF_HNBAP_UTRANCellID, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "uTRANCellID" }, - { ATF_NOFLAGS, 0, offsetof(struct MacroCellID, choice.gERANCellID), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_MacroCellID, choice.gERANCellID), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_CGI, + &asn_DEF_HNBAP_CGI, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "gERANCellID" }, }; -static const asn_TYPE_tag2member_t asn_MAP_MacroCellID_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_MacroCellID_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* uTRANCellID */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* gERANCellID */ }; -static asn_CHOICE_specifics_t asn_SPC_MacroCellID_specs_1 = { - sizeof(struct MacroCellID), - offsetof(struct MacroCellID, _asn_ctx), - offsetof(struct MacroCellID, present), - sizeof(((struct MacroCellID *)0)->present), - asn_MAP_MacroCellID_tag2el_1, +static asn_CHOICE_specifics_t asn_SPC_HNBAP_MacroCellID_specs_1 = { + sizeof(struct HNBAP_MacroCellID), + offsetof(struct HNBAP_MacroCellID, _asn_ctx), + offsetof(struct HNBAP_MacroCellID, present), + sizeof(((struct HNBAP_MacroCellID *)0)->present), + asn_MAP_HNBAP_MacroCellID_tag2el_1, 2, /* Count of tags in the map */ 0, 2 /* Extensions start */ }; -asn_TYPE_descriptor_t asn_DEF_MacroCellID = { - "MacroCellID", - "MacroCellID", +asn_TYPE_descriptor_t asn_DEF_HNBAP_MacroCellID = { + "HNBAP_MacroCellID", + "HNBAP_MacroCellID", CHOICE_free, CHOICE_print, CHOICE_constraint, @@ -65,9 +65,9 @@ asn_TYPE_descriptor_t asn_DEF_MacroCellID = { 0, /* No effective tags (count) */ 0, /* No tags (pointer) */ 0, /* No tags (count) */ - &asn_PER_type_MacroCellID_constr_1, - asn_MBR_MacroCellID_1, + &asn_PER_type_HNBAP_MacroCellID_constr_1, + asn_MBR_HNBAP_MacroCellID_1, 2, /* Elements count */ - &asn_SPC_MacroCellID_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_MacroCellID_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/HNBAP_MacroCoverageInformation.c b/src/hnbap/HNBAP_MacroCoverageInformation.c new file mode 100644 index 0000000..6284030 --- /dev/null +++ b/src/hnbap/HNBAP_MacroCoverageInformation.c @@ -0,0 +1,74 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_MacroCoverageInformation.h> + +static asn_TYPE_member_t asn_MBR_HNBAP_MacroCoverageInformation_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_MacroCoverageInformation, cellIdentity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_HNBAP_MacroCellID, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "cellIdentity" + }, + { ATF_POINTER, 1, offsetof(struct HNBAP_MacroCoverageInformation, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_HNBAP_MacroCoverageInformation_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_HNBAP_MacroCoverageInformation_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_MacroCoverageInformation_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cellIdentity */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_MacroCoverageInformation_specs_1 = { + sizeof(struct HNBAP_MacroCoverageInformation), + offsetof(struct HNBAP_MacroCoverageInformation, _asn_ctx), + asn_MAP_HNBAP_MacroCoverageInformation_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_HNBAP_MacroCoverageInformation_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* Start extensions */ + 3 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_MacroCoverageInformation = { + "HNBAP_MacroCoverageInformation", + "HNBAP_MacroCoverageInformation", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_MacroCoverageInformation_tags_1, + sizeof(asn_DEF_HNBAP_MacroCoverageInformation_tags_1) + /sizeof(asn_DEF_HNBAP_MacroCoverageInformation_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_MacroCoverageInformation_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_MacroCoverageInformation_tags_1) + /sizeof(asn_DEF_HNBAP_MacroCoverageInformation_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_HNBAP_MacroCoverageInformation_1, + 2, /* Elements count */ + &asn_SPC_HNBAP_MacroCoverageInformation_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/MuxPortNumber.c b/src/hnbap/HNBAP_MuxPortNumber.c index 32e88f8..4619dff 100644 --- a/src/hnbap/MuxPortNumber.c +++ b/src/hnbap/HNBAP_MuxPortNumber.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/MuxPortNumber.h> +#include <osmocom/hnbap/HNBAP_MuxPortNumber.h> int -MuxPortNumber_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_MuxPortNumber_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { long value; @@ -37,7 +37,7 @@ MuxPortNumber_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -MuxPortNumber_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_MuxPortNumber_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeInteger.free_struct; td->print_struct = asn_DEF_NativeInteger.print_struct; td->check_constraints = asn_DEF_NativeInteger.check_constraints; @@ -57,109 +57,109 @@ MuxPortNumber_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -MuxPortNumber_free(asn_TYPE_descriptor_t *td, +HNBAP_MuxPortNumber_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - MuxPortNumber_1_inherit_TYPE_descriptor(td); + HNBAP_MuxPortNumber_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -MuxPortNumber_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_MuxPortNumber_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - MuxPortNumber_1_inherit_TYPE_descriptor(td); + HNBAP_MuxPortNumber_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -MuxPortNumber_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_MuxPortNumber_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - MuxPortNumber_1_inherit_TYPE_descriptor(td); + HNBAP_MuxPortNumber_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -MuxPortNumber_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_MuxPortNumber_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - MuxPortNumber_1_inherit_TYPE_descriptor(td); + HNBAP_MuxPortNumber_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -MuxPortNumber_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_MuxPortNumber_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - MuxPortNumber_1_inherit_TYPE_descriptor(td); + HNBAP_MuxPortNumber_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -MuxPortNumber_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_MuxPortNumber_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - MuxPortNumber_1_inherit_TYPE_descriptor(td); + HNBAP_MuxPortNumber_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -MuxPortNumber_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_MuxPortNumber_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - MuxPortNumber_1_inherit_TYPE_descriptor(td); + HNBAP_MuxPortNumber_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -MuxPortNumber_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_MuxPortNumber_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - MuxPortNumber_1_inherit_TYPE_descriptor(td); + HNBAP_MuxPortNumber_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -MuxPortNumber_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_MuxPortNumber_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - MuxPortNumber_1_inherit_TYPE_descriptor(td); + HNBAP_MuxPortNumber_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -MuxPortNumber_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_MuxPortNumber_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - MuxPortNumber_1_inherit_TYPE_descriptor(td); + HNBAP_MuxPortNumber_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_MuxPortNumber_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_MuxPortNumber_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED, 16, 16, 1024l, 65535l } /* (1024..65535) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_MuxPortNumber_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_MuxPortNumber_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_MuxPortNumber = { - "MuxPortNumber", - "MuxPortNumber", - MuxPortNumber_free, - MuxPortNumber_print, - MuxPortNumber_constraint, - MuxPortNumber_decode_ber, - MuxPortNumber_encode_der, - MuxPortNumber_decode_xer, - MuxPortNumber_encode_xer, - MuxPortNumber_decode_uper, - MuxPortNumber_encode_uper, - MuxPortNumber_decode_aper, - MuxPortNumber_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_MuxPortNumber = { + "HNBAP_MuxPortNumber", + "HNBAP_MuxPortNumber", + HNBAP_MuxPortNumber_free, + HNBAP_MuxPortNumber_print, + HNBAP_MuxPortNumber_constraint, + HNBAP_MuxPortNumber_decode_ber, + HNBAP_MuxPortNumber_encode_der, + HNBAP_MuxPortNumber_decode_xer, + HNBAP_MuxPortNumber_encode_xer, + HNBAP_MuxPortNumber_decode_uper, + HNBAP_MuxPortNumber_encode_uper, + HNBAP_MuxPortNumber_decode_aper, + HNBAP_MuxPortNumber_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_MuxPortNumber_tags_1, - sizeof(asn_DEF_MuxPortNumber_tags_1) - /sizeof(asn_DEF_MuxPortNumber_tags_1[0]), /* 1 */ - asn_DEF_MuxPortNumber_tags_1, /* Same as above */ - sizeof(asn_DEF_MuxPortNumber_tags_1) - /sizeof(asn_DEF_MuxPortNumber_tags_1[0]), /* 1 */ - &asn_PER_type_MuxPortNumber_constr_1, + asn_DEF_HNBAP_MuxPortNumber_tags_1, + sizeof(asn_DEF_HNBAP_MuxPortNumber_tags_1) + /sizeof(asn_DEF_HNBAP_MuxPortNumber_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_MuxPortNumber_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_MuxPortNumber_tags_1) + /sizeof(asn_DEF_HNBAP_MuxPortNumber_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_MuxPortNumber_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/HNBAP_NeighbourCellIdentityList.c b/src/hnbap/HNBAP_NeighbourCellIdentityList.c new file mode 100644 index 0000000..47165dc --- /dev/null +++ b/src/hnbap/HNBAP_NeighbourCellIdentityList.c @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_NeighbourCellIdentityList.h> + +static asn_per_constraints_t asn_PER_type_HNBAP_NeighbourCellIdentityList_constr_1 GCC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 8, 8, 0l, 128l } /* (SIZE(0..128)) */, + 0, 0 /* No PER value map */ +}; +static asn_TYPE_member_t asn_MBR_HNBAP_NeighbourCellIdentityList_1[] = { + { ATF_POINTER, 0, 0, + -1 /* Ambiguous tag (CHOICE?) */, + 0, + &asn_DEF_HNBAP_NeighbourIdentity, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_HNBAP_NeighbourCellIdentityList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_HNBAP_NeighbourCellIdentityList_specs_1 = { + sizeof(struct HNBAP_NeighbourCellIdentityList), + offsetof(struct HNBAP_NeighbourCellIdentityList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_NeighbourCellIdentityList = { + "HNBAP_NeighbourCellIdentityList", + "HNBAP_NeighbourCellIdentityList", + SEQUENCE_OF_free, + SEQUENCE_OF_print, + SEQUENCE_OF_constraint, + SEQUENCE_OF_decode_ber, + SEQUENCE_OF_encode_der, + SEQUENCE_OF_decode_xer, + SEQUENCE_OF_encode_xer, + SEQUENCE_OF_decode_uper, + SEQUENCE_OF_encode_uper, + SEQUENCE_OF_decode_aper, + SEQUENCE_OF_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_NeighbourCellIdentityList_tags_1, + sizeof(asn_DEF_HNBAP_NeighbourCellIdentityList_tags_1) + /sizeof(asn_DEF_HNBAP_NeighbourCellIdentityList_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_NeighbourCellIdentityList_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_NeighbourCellIdentityList_tags_1) + /sizeof(asn_DEF_HNBAP_NeighbourCellIdentityList_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_NeighbourCellIdentityList_constr_1, + asn_MBR_HNBAP_NeighbourCellIdentityList_1, + 1, /* Single element */ + &asn_SPC_HNBAP_NeighbourCellIdentityList_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/NeighbourIdentity.c b/src/hnbap/HNBAP_NeighbourIdentity.c index 0b23df9..8386ee1 100644 --- a/src/hnbap/NeighbourIdentity.c +++ b/src/hnbap/HNBAP_NeighbourIdentity.c @@ -2,53 +2,53 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/NeighbourIdentity.h> +#include <osmocom/hnbap/HNBAP_NeighbourIdentity.h> -static asn_per_constraints_t asn_PER_type_NeighbourIdentity_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_NeighbourIdentity_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0l, 1l } /* (0..1,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_NeighbourIdentity_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NeighbourIdentity, choice.hNB_RNL_Identity), +static asn_TYPE_member_t asn_MBR_HNBAP_NeighbourIdentity_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_NeighbourIdentity, choice.hNB_RNL_Identity), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ - &asn_DEF_HNB_RNL_Identity, + &asn_DEF_HNBAP_HNB_RNL_Identity, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "hNB-RNL-Identity" }, - { ATF_NOFLAGS, 0, offsetof(struct NeighbourIdentity, choice.cell_ID), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_NeighbourIdentity, choice.cell_ID), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_CellIdentity, + &asn_DEF_HNBAP_CellIdentity, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "cell-ID" }, }; -static const asn_TYPE_tag2member_t asn_MAP_NeighbourIdentity_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_NeighbourIdentity_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* hNB-RNL-Identity */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* cell-ID */ }; -static asn_CHOICE_specifics_t asn_SPC_NeighbourIdentity_specs_1 = { - sizeof(struct NeighbourIdentity), - offsetof(struct NeighbourIdentity, _asn_ctx), - offsetof(struct NeighbourIdentity, present), - sizeof(((struct NeighbourIdentity *)0)->present), - asn_MAP_NeighbourIdentity_tag2el_1, +static asn_CHOICE_specifics_t asn_SPC_HNBAP_NeighbourIdentity_specs_1 = { + sizeof(struct HNBAP_NeighbourIdentity), + offsetof(struct HNBAP_NeighbourIdentity, _asn_ctx), + offsetof(struct HNBAP_NeighbourIdentity, present), + sizeof(((struct HNBAP_NeighbourIdentity *)0)->present), + asn_MAP_HNBAP_NeighbourIdentity_tag2el_1, 2, /* Count of tags in the map */ 0, 2 /* Extensions start */ }; -asn_TYPE_descriptor_t asn_DEF_NeighbourIdentity = { - "NeighbourIdentity", - "NeighbourIdentity", +asn_TYPE_descriptor_t asn_DEF_HNBAP_NeighbourIdentity = { + "HNBAP_NeighbourIdentity", + "HNBAP_NeighbourIdentity", CHOICE_free, CHOICE_print, CHOICE_constraint, @@ -65,9 +65,9 @@ asn_TYPE_descriptor_t asn_DEF_NeighbourIdentity = { 0, /* No effective tags (count) */ 0, /* No tags (pointer) */ 0, /* No tags (count) */ - &asn_PER_type_NeighbourIdentity_constr_1, - asn_MBR_NeighbourIdentity_1, + &asn_PER_type_HNBAP_NeighbourIdentity_constr_1, + asn_MBR_HNBAP_NeighbourIdentity_1, 2, /* Elements count */ - &asn_SPC_NeighbourIdentity_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_NeighbourIdentity_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/HNBAP_NeighbourInfoList.c b/src/hnbap/HNBAP_NeighbourInfoList.c new file mode 100644 index 0000000..61a4efb --- /dev/null +++ b/src/hnbap/HNBAP_NeighbourInfoList.c @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_NeighbourInfoList.h> + +static asn_per_constraints_t asn_PER_type_HNBAP_NeighbourInfoList_constr_1 GCC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1l, 32l } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +static asn_TYPE_member_t asn_MBR_HNBAP_NeighbourInfoList_1[] = { + { ATF_POINTER, 0, 0, + -1 /* Ambiguous tag (CHOICE?) */, + 0, + &asn_DEF_HNBAP_HNBConfigInfo, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_HNBAP_NeighbourInfoList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_HNBAP_NeighbourInfoList_specs_1 = { + sizeof(struct HNBAP_NeighbourInfoList), + offsetof(struct HNBAP_NeighbourInfoList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_NeighbourInfoList = { + "HNBAP_NeighbourInfoList", + "HNBAP_NeighbourInfoList", + SEQUENCE_OF_free, + SEQUENCE_OF_print, + SEQUENCE_OF_constraint, + SEQUENCE_OF_decode_ber, + SEQUENCE_OF_encode_der, + SEQUENCE_OF_decode_xer, + SEQUENCE_OF_encode_xer, + SEQUENCE_OF_decode_uper, + SEQUENCE_OF_encode_uper, + SEQUENCE_OF_decode_aper, + SEQUENCE_OF_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_NeighbourInfoList_tags_1, + sizeof(asn_DEF_HNBAP_NeighbourInfoList_tags_1) + /sizeof(asn_DEF_HNBAP_NeighbourInfoList_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_NeighbourInfoList_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_NeighbourInfoList_tags_1) + /sizeof(asn_DEF_HNBAP_NeighbourInfoList_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_NeighbourInfoList_constr_1, + asn_MBR_HNBAP_NeighbourInfoList_1, + 1, /* Single element */ + &asn_SPC_HNBAP_NeighbourInfoList_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/HNBAP_NeighbourInfoRequestItem.c b/src/hnbap/HNBAP_NeighbourInfoRequestItem.c new file mode 100644 index 0000000..e556fca --- /dev/null +++ b/src/hnbap/HNBAP_NeighbourInfoRequestItem.c @@ -0,0 +1,74 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_NeighbourInfoRequestItem.h> + +static asn_TYPE_member_t asn_MBR_HNBAP_NeighbourInfoRequestItem_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_NeighbourInfoRequestItem, hnb_RNL_Identity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_HNBAP_HNB_RNL_Identity, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "hnb-RNL-Identity" + }, + { ATF_POINTER, 1, offsetof(struct HNBAP_NeighbourInfoRequestItem, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_HNBAP_NeighbourInfoRequestItem_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_HNBAP_NeighbourInfoRequestItem_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_NeighbourInfoRequestItem_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* hnb-RNL-Identity */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_NeighbourInfoRequestItem_specs_1 = { + sizeof(struct HNBAP_NeighbourInfoRequestItem), + offsetof(struct HNBAP_NeighbourInfoRequestItem, _asn_ctx), + asn_MAP_HNBAP_NeighbourInfoRequestItem_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_HNBAP_NeighbourInfoRequestItem_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* Start extensions */ + 3 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_NeighbourInfoRequestItem = { + "HNBAP_NeighbourInfoRequestItem", + "HNBAP_NeighbourInfoRequestItem", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_NeighbourInfoRequestItem_tags_1, + sizeof(asn_DEF_HNBAP_NeighbourInfoRequestItem_tags_1) + /sizeof(asn_DEF_HNBAP_NeighbourInfoRequestItem_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_NeighbourInfoRequestItem_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_NeighbourInfoRequestItem_tags_1) + /sizeof(asn_DEF_HNBAP_NeighbourInfoRequestItem_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_HNBAP_NeighbourInfoRequestItem_1, + 2, /* Elements count */ + &asn_SPC_HNBAP_NeighbourInfoRequestItem_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/HNBAP_NeighbourInfoRequestList.c b/src/hnbap/HNBAP_NeighbourInfoRequestList.c new file mode 100644 index 0000000..cc700cc --- /dev/null +++ b/src/hnbap/HNBAP_NeighbourInfoRequestList.c @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_NeighbourInfoRequestList.h> + +static asn_per_constraints_t asn_PER_type_HNBAP_NeighbourInfoRequestList_constr_1 GCC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 5, 5, 1l, 32l } /* (SIZE(1..32)) */, + 0, 0 /* No PER value map */ +}; +static asn_TYPE_member_t asn_MBR_HNBAP_NeighbourInfoRequestList_1[] = { + { ATF_POINTER, 0, 0, + -1 /* Ambiguous tag (CHOICE?) */, + 0, + &asn_DEF_HNBAP_NeighbourInfoRequestItem, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_HNBAP_NeighbourInfoRequestList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_HNBAP_NeighbourInfoRequestList_specs_1 = { + sizeof(struct HNBAP_NeighbourInfoRequestList), + offsetof(struct HNBAP_NeighbourInfoRequestList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_NeighbourInfoRequestList = { + "HNBAP_NeighbourInfoRequestList", + "HNBAP_NeighbourInfoRequestList", + SEQUENCE_OF_free, + SEQUENCE_OF_print, + SEQUENCE_OF_constraint, + SEQUENCE_OF_decode_ber, + SEQUENCE_OF_encode_der, + SEQUENCE_OF_decode_xer, + SEQUENCE_OF_encode_xer, + SEQUENCE_OF_decode_uper, + SEQUENCE_OF_encode_uper, + SEQUENCE_OF_decode_aper, + SEQUENCE_OF_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_NeighbourInfoRequestList_tags_1, + sizeof(asn_DEF_HNBAP_NeighbourInfoRequestList_tags_1) + /sizeof(asn_DEF_HNBAP_NeighbourInfoRequestList_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_NeighbourInfoRequestList_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_NeighbourInfoRequestList_tags_1) + /sizeof(asn_DEF_HNBAP_NeighbourInfoRequestList_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_NeighbourInfoRequestList_constr_1, + asn_MBR_HNBAP_NeighbourInfoRequestList_1, + 1, /* Single element */ + &asn_SPC_HNBAP_NeighbourInfoRequestList_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/PLMNidentity.c b/src/hnbap/HNBAP_PLMNidentity.c index 8356b6c..9ea2254 100644 --- a/src/hnbap/PLMNidentity.c +++ b/src/hnbap/HNBAP_PLMNidentity.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/PLMNidentity.h> +#include <osmocom/hnbap/HNBAP_PLMNidentity.h> int -PLMNidentity_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_PLMNidentity_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; size_t size; @@ -38,7 +38,7 @@ PLMNidentity_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -PLMNidentity_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_PLMNidentity_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_OCTET_STRING.free_struct; td->print_struct = asn_DEF_OCTET_STRING.print_struct; td->check_constraints = asn_DEF_OCTET_STRING.check_constraints; @@ -58,109 +58,109 @@ PLMNidentity_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -PLMNidentity_free(asn_TYPE_descriptor_t *td, +HNBAP_PLMNidentity_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - PLMNidentity_1_inherit_TYPE_descriptor(td); + HNBAP_PLMNidentity_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -PLMNidentity_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_PLMNidentity_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - PLMNidentity_1_inherit_TYPE_descriptor(td); + HNBAP_PLMNidentity_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -PLMNidentity_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_PLMNidentity_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - PLMNidentity_1_inherit_TYPE_descriptor(td); + HNBAP_PLMNidentity_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -PLMNidentity_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_PLMNidentity_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - PLMNidentity_1_inherit_TYPE_descriptor(td); + HNBAP_PLMNidentity_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -PLMNidentity_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_PLMNidentity_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - PLMNidentity_1_inherit_TYPE_descriptor(td); + HNBAP_PLMNidentity_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -PLMNidentity_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_PLMNidentity_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - PLMNidentity_1_inherit_TYPE_descriptor(td); + HNBAP_PLMNidentity_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -PLMNidentity_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_PLMNidentity_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - PLMNidentity_1_inherit_TYPE_descriptor(td); + HNBAP_PLMNidentity_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -PLMNidentity_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_PLMNidentity_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - PLMNidentity_1_inherit_TYPE_descriptor(td); + HNBAP_PLMNidentity_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -PLMNidentity_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_PLMNidentity_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - PLMNidentity_1_inherit_TYPE_descriptor(td); + HNBAP_PLMNidentity_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -PLMNidentity_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_PLMNidentity_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - PLMNidentity_1_inherit_TYPE_descriptor(td); + HNBAP_PLMNidentity_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_PLMNidentity_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_PLMNidentity_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 0, 0, 3l, 3l } /* (SIZE(3..3)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_PLMNidentity_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_PLMNidentity_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_PLMNidentity = { - "PLMNidentity", - "PLMNidentity", - PLMNidentity_free, - PLMNidentity_print, - PLMNidentity_constraint, - PLMNidentity_decode_ber, - PLMNidentity_encode_der, - PLMNidentity_decode_xer, - PLMNidentity_encode_xer, - PLMNidentity_decode_uper, - PLMNidentity_encode_uper, - PLMNidentity_decode_aper, - PLMNidentity_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_PLMNidentity = { + "HNBAP_PLMNidentity", + "HNBAP_PLMNidentity", + HNBAP_PLMNidentity_free, + HNBAP_PLMNidentity_print, + HNBAP_PLMNidentity_constraint, + HNBAP_PLMNidentity_decode_ber, + HNBAP_PLMNidentity_encode_der, + HNBAP_PLMNidentity_decode_xer, + HNBAP_PLMNidentity_encode_xer, + HNBAP_PLMNidentity_decode_uper, + HNBAP_PLMNidentity_encode_uper, + HNBAP_PLMNidentity_decode_aper, + HNBAP_PLMNidentity_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_PLMNidentity_tags_1, - sizeof(asn_DEF_PLMNidentity_tags_1) - /sizeof(asn_DEF_PLMNidentity_tags_1[0]), /* 1 */ - asn_DEF_PLMNidentity_tags_1, /* Same as above */ - sizeof(asn_DEF_PLMNidentity_tags_1) - /sizeof(asn_DEF_PLMNidentity_tags_1[0]), /* 1 */ - &asn_PER_type_PLMNidentity_constr_1, + asn_DEF_HNBAP_PLMNidentity_tags_1, + sizeof(asn_DEF_HNBAP_PLMNidentity_tags_1) + /sizeof(asn_DEF_HNBAP_PLMNidentity_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_PLMNidentity_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_PLMNidentity_tags_1) + /sizeof(asn_DEF_HNBAP_PLMNidentity_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_PLMNidentity_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/PSC.c b/src/hnbap/HNBAP_PSC.c index 378f09f..d8049db 100644 --- a/src/hnbap/PSC.c +++ b/src/hnbap/HNBAP_PSC.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/PSC.h> +#include <osmocom/hnbap/HNBAP_PSC.h> int -PSC_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_PSC_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; size_t size; @@ -43,7 +43,7 @@ PSC_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -PSC_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_PSC_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_BIT_STRING.free_struct; td->print_struct = asn_DEF_BIT_STRING.print_struct; td->check_constraints = asn_DEF_BIT_STRING.check_constraints; @@ -63,109 +63,109 @@ PSC_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -PSC_free(asn_TYPE_descriptor_t *td, +HNBAP_PSC_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - PSC_1_inherit_TYPE_descriptor(td); + HNBAP_PSC_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -PSC_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_PSC_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - PSC_1_inherit_TYPE_descriptor(td); + HNBAP_PSC_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -PSC_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_PSC_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - PSC_1_inherit_TYPE_descriptor(td); + HNBAP_PSC_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -PSC_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_PSC_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - PSC_1_inherit_TYPE_descriptor(td); + HNBAP_PSC_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -PSC_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_PSC_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - PSC_1_inherit_TYPE_descriptor(td); + HNBAP_PSC_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -PSC_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_PSC_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - PSC_1_inherit_TYPE_descriptor(td); + HNBAP_PSC_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -PSC_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_PSC_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - PSC_1_inherit_TYPE_descriptor(td); + HNBAP_PSC_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -PSC_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_PSC_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - PSC_1_inherit_TYPE_descriptor(td); + HNBAP_PSC_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -PSC_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_PSC_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - PSC_1_inherit_TYPE_descriptor(td); + HNBAP_PSC_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -PSC_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_PSC_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - PSC_1_inherit_TYPE_descriptor(td); + HNBAP_PSC_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_PSC_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_PSC_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 0, 0, 9l, 9l } /* (SIZE(9..9)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_PSC_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_PSC_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_PSC = { - "PSC", - "PSC", - PSC_free, - PSC_print, - PSC_constraint, - PSC_decode_ber, - PSC_encode_der, - PSC_decode_xer, - PSC_encode_xer, - PSC_decode_uper, - PSC_encode_uper, - PSC_decode_aper, - PSC_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_PSC = { + "HNBAP_PSC", + "HNBAP_PSC", + HNBAP_PSC_free, + HNBAP_PSC_print, + HNBAP_PSC_constraint, + HNBAP_PSC_decode_ber, + HNBAP_PSC_encode_der, + HNBAP_PSC_decode_xer, + HNBAP_PSC_encode_xer, + HNBAP_PSC_decode_uper, + HNBAP_PSC_encode_uper, + HNBAP_PSC_decode_aper, + HNBAP_PSC_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_PSC_tags_1, - sizeof(asn_DEF_PSC_tags_1) - /sizeof(asn_DEF_PSC_tags_1[0]), /* 1 */ - asn_DEF_PSC_tags_1, /* Same as above */ - sizeof(asn_DEF_PSC_tags_1) - /sizeof(asn_DEF_PSC_tags_1[0]), /* 1 */ - &asn_PER_type_PSC_constr_1, + asn_DEF_HNBAP_PSC_tags_1, + sizeof(asn_DEF_HNBAP_PSC_tags_1) + /sizeof(asn_DEF_HNBAP_PSC_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_PSC_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_PSC_tags_1) + /sizeof(asn_DEF_HNBAP_PSC_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_PSC_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/U-RNTI.c b/src/hnbap/HNBAP_PTMSI.c index 708bd87..52c380b 100644 --- a/src/hnbap/U-RNTI.c +++ b/src/hnbap/HNBAP_PTMSI.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/U-RNTI.h> +#include <osmocom/hnbap/HNBAP_PTMSI.h> int -U_RNTI_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_PTMSI_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; size_t size; @@ -43,7 +43,7 @@ U_RNTI_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -U_RNTI_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_PTMSI_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_BIT_STRING.free_struct; td->print_struct = asn_DEF_BIT_STRING.print_struct; td->check_constraints = asn_DEF_BIT_STRING.check_constraints; @@ -63,109 +63,109 @@ U_RNTI_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -U_RNTI_free(asn_TYPE_descriptor_t *td, +HNBAP_PTMSI_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - U_RNTI_1_inherit_TYPE_descriptor(td); + HNBAP_PTMSI_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -U_RNTI_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_PTMSI_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - U_RNTI_1_inherit_TYPE_descriptor(td); + HNBAP_PTMSI_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -U_RNTI_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_PTMSI_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - U_RNTI_1_inherit_TYPE_descriptor(td); + HNBAP_PTMSI_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -U_RNTI_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_PTMSI_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - U_RNTI_1_inherit_TYPE_descriptor(td); + HNBAP_PTMSI_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -U_RNTI_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_PTMSI_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - U_RNTI_1_inherit_TYPE_descriptor(td); + HNBAP_PTMSI_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -U_RNTI_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_PTMSI_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - U_RNTI_1_inherit_TYPE_descriptor(td); + HNBAP_PTMSI_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -U_RNTI_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_PTMSI_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - U_RNTI_1_inherit_TYPE_descriptor(td); + HNBAP_PTMSI_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -U_RNTI_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_PTMSI_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - U_RNTI_1_inherit_TYPE_descriptor(td); + HNBAP_PTMSI_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -U_RNTI_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_PTMSI_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - U_RNTI_1_inherit_TYPE_descriptor(td); + HNBAP_PTMSI_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -U_RNTI_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_PTMSI_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - U_RNTI_1_inherit_TYPE_descriptor(td); + HNBAP_PTMSI_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_U_RNTI_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_PTMSI_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 0, 0, 32l, 32l } /* (SIZE(32..32)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_U_RNTI_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_PTMSI_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_U_RNTI = { - "U-RNTI", - "U-RNTI", - U_RNTI_free, - U_RNTI_print, - U_RNTI_constraint, - U_RNTI_decode_ber, - U_RNTI_encode_der, - U_RNTI_decode_xer, - U_RNTI_encode_xer, - U_RNTI_decode_uper, - U_RNTI_encode_uper, - U_RNTI_decode_aper, - U_RNTI_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_PTMSI = { + "HNBAP_PTMSI", + "HNBAP_PTMSI", + HNBAP_PTMSI_free, + HNBAP_PTMSI_print, + HNBAP_PTMSI_constraint, + HNBAP_PTMSI_decode_ber, + HNBAP_PTMSI_encode_der, + HNBAP_PTMSI_decode_xer, + HNBAP_PTMSI_encode_xer, + HNBAP_PTMSI_decode_uper, + HNBAP_PTMSI_encode_uper, + HNBAP_PTMSI_decode_aper, + HNBAP_PTMSI_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_U_RNTI_tags_1, - sizeof(asn_DEF_U_RNTI_tags_1) - /sizeof(asn_DEF_U_RNTI_tags_1[0]), /* 1 */ - asn_DEF_U_RNTI_tags_1, /* Same as above */ - sizeof(asn_DEF_U_RNTI_tags_1) - /sizeof(asn_DEF_U_RNTI_tags_1[0]), /* 1 */ - &asn_PER_type_U_RNTI_constr_1, + asn_DEF_HNBAP_PTMSI_tags_1, + sizeof(asn_DEF_HNBAP_PTMSI_tags_1) + /sizeof(asn_DEF_HNBAP_PTMSI_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_PTMSI_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_PTMSI_tags_1) + /sizeof(asn_DEF_HNBAP_PTMSI_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_PTMSI_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/PTMSIRAI.c b/src/hnbap/HNBAP_PTMSIRAI.c index d592ee1..b18bd34 100644 --- a/src/hnbap/PTMSIRAI.c +++ b/src/hnbap/HNBAP_PTMSIRAI.c @@ -2,50 +2,50 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/PTMSIRAI.h> +#include <osmocom/hnbap/HNBAP_PTMSIRAI.h> -static asn_TYPE_member_t asn_MBR_PTMSIRAI_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PTMSIRAI, pTMSI), +static asn_TYPE_member_t asn_MBR_HNBAP_PTMSIRAI_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_PTMSIRAI, pTMSI), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_PTMSI, + &asn_DEF_HNBAP_PTMSI, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "pTMSI" }, - { ATF_NOFLAGS, 0, offsetof(struct PTMSIRAI, rAI), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_PTMSIRAI, rAI), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_RAI, + &asn_DEF_HNBAP_RAI, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "rAI" }, }; -static const ber_tlv_tag_t asn_DEF_PTMSIRAI_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_PTMSIRAI_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_PTMSIRAI_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_PTMSIRAI_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pTMSI */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* rAI */ }; -static asn_SEQUENCE_specifics_t asn_SPC_PTMSIRAI_specs_1 = { - sizeof(struct PTMSIRAI), - offsetof(struct PTMSIRAI, _asn_ctx), - asn_MAP_PTMSIRAI_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_PTMSIRAI_specs_1 = { + sizeof(struct HNBAP_PTMSIRAI), + offsetof(struct HNBAP_PTMSIRAI, _asn_ctx), + asn_MAP_HNBAP_PTMSIRAI_tag2el_1, 2, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 1, /* Start extensions */ 3 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_PTMSIRAI = { - "PTMSIRAI", - "PTMSIRAI", +asn_TYPE_descriptor_t asn_DEF_HNBAP_PTMSIRAI = { + "HNBAP_PTMSIRAI", + "HNBAP_PTMSIRAI", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -58,15 +58,15 @@ asn_TYPE_descriptor_t asn_DEF_PTMSIRAI = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_PTMSIRAI_tags_1, - sizeof(asn_DEF_PTMSIRAI_tags_1) - /sizeof(asn_DEF_PTMSIRAI_tags_1[0]), /* 1 */ - asn_DEF_PTMSIRAI_tags_1, /* Same as above */ - sizeof(asn_DEF_PTMSIRAI_tags_1) - /sizeof(asn_DEF_PTMSIRAI_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_PTMSIRAI_tags_1, + sizeof(asn_DEF_HNBAP_PTMSIRAI_tags_1) + /sizeof(asn_DEF_HNBAP_PTMSIRAI_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_PTMSIRAI_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_PTMSIRAI_tags_1) + /sizeof(asn_DEF_HNBAP_PTMSIRAI_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_PTMSIRAI_1, + asn_MBR_HNBAP_PTMSIRAI_1, 2, /* Elements count */ - &asn_SPC_PTMSIRAI_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_PTMSIRAI_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/Presence.c b/src/hnbap/HNBAP_Presence.c index f27cca7..3988022 100644 --- a/src/hnbap/Presence.c +++ b/src/hnbap/HNBAP_Presence.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-CommonDataTypes" * found in "../../asn1/hnbap/HNBAP-CommonDataTypes.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/Presence.h> +#include <osmocom/hnbap/HNBAP_Presence.h> int -Presence_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_Presence_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { /* Replace with underlying type checker */ td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -20,7 +20,7 @@ Presence_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -Presence_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_Presence_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeEnumerated.free_struct; td->print_struct = asn_DEF_NativeEnumerated.print_struct; td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -40,129 +40,129 @@ Presence_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -Presence_free(asn_TYPE_descriptor_t *td, +HNBAP_Presence_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - Presence_1_inherit_TYPE_descriptor(td); + HNBAP_Presence_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -Presence_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_Presence_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - Presence_1_inherit_TYPE_descriptor(td); + HNBAP_Presence_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -Presence_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Presence_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - Presence_1_inherit_TYPE_descriptor(td); + HNBAP_Presence_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -Presence_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_Presence_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - Presence_1_inherit_TYPE_descriptor(td); + HNBAP_Presence_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -Presence_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Presence_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - Presence_1_inherit_TYPE_descriptor(td); + HNBAP_Presence_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -Presence_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_Presence_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - Presence_1_inherit_TYPE_descriptor(td); + HNBAP_Presence_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -Presence_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Presence_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - Presence_1_inherit_TYPE_descriptor(td); + HNBAP_Presence_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -Presence_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_Presence_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - Presence_1_inherit_TYPE_descriptor(td); + HNBAP_Presence_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -Presence_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_Presence_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - Presence_1_inherit_TYPE_descriptor(td); + HNBAP_Presence_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -Presence_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Presence_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - Presence_1_inherit_TYPE_descriptor(td); + HNBAP_Presence_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_Presence_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_Presence_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED, 2, 2, 0l, 2l } /* (0..2) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const asn_INTEGER_enum_map_t asn_MAP_Presence_value2enum_1[] = { +static const asn_INTEGER_enum_map_t asn_MAP_HNBAP_Presence_value2enum_1[] = { { 0, 8, "optional" }, { 1, 11, "conditional" }, { 2, 9, "mandatory" } }; -static const unsigned int asn_MAP_Presence_enum2value_1[] = { +static const unsigned int asn_MAP_HNBAP_Presence_enum2value_1[] = { 1, /* conditional(1) */ 2, /* mandatory(2) */ 0 /* optional(0) */ }; -static const asn_INTEGER_specifics_t asn_SPC_Presence_specs_1 = { - asn_MAP_Presence_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_Presence_enum2value_1, /* N => "tag"; sorted by N */ +static const asn_INTEGER_specifics_t asn_SPC_HNBAP_Presence_specs_1 = { + asn_MAP_HNBAP_Presence_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_HNBAP_Presence_enum2value_1, /* N => "tag"; sorted by N */ 3, /* Number of elements in the maps */ 0, /* Enumeration is not extensible */ 1, /* Strict enumeration */ 0, /* Native long size */ 0 }; -static const ber_tlv_tag_t asn_DEF_Presence_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_Presence_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_Presence = { - "Presence", - "Presence", - Presence_free, - Presence_print, - Presence_constraint, - Presence_decode_ber, - Presence_encode_der, - Presence_decode_xer, - Presence_encode_xer, - Presence_decode_uper, - Presence_encode_uper, - Presence_decode_aper, - Presence_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_Presence = { + "HNBAP_Presence", + "HNBAP_Presence", + HNBAP_Presence_free, + HNBAP_Presence_print, + HNBAP_Presence_constraint, + HNBAP_Presence_decode_ber, + HNBAP_Presence_encode_der, + HNBAP_Presence_decode_xer, + HNBAP_Presence_encode_xer, + HNBAP_Presence_decode_uper, + HNBAP_Presence_encode_uper, + HNBAP_Presence_decode_aper, + HNBAP_Presence_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_Presence_tags_1, - sizeof(asn_DEF_Presence_tags_1) - /sizeof(asn_DEF_Presence_tags_1[0]), /* 1 */ - asn_DEF_Presence_tags_1, /* Same as above */ - sizeof(asn_DEF_Presence_tags_1) - /sizeof(asn_DEF_Presence_tags_1[0]), /* 1 */ - &asn_PER_type_Presence_constr_1, + asn_DEF_HNBAP_Presence_tags_1, + sizeof(asn_DEF_HNBAP_Presence_tags_1) + /sizeof(asn_DEF_HNBAP_Presence_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_Presence_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_Presence_tags_1) + /sizeof(asn_DEF_HNBAP_Presence_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_Presence_constr_1, 0, 0, /* Defined elsewhere */ - &asn_SPC_Presence_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_Presence_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/PrivateIE-ID.c b/src/hnbap/HNBAP_PrivateIE-ID.c index 183852e..a514507 100644 --- a/src/hnbap/PrivateIE-ID.c +++ b/src/hnbap/HNBAP_PrivateIE-ID.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-CommonDataTypes" * found in "../../asn1/hnbap/HNBAP-CommonDataTypes.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/PrivateIE-ID.h> +#include <osmocom/hnbap/HNBAP_PrivateIE-ID.h> static int memb_local_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, @@ -37,13 +37,13 @@ static asn_per_constraints_t asn_PER_memb_local_constr_2 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static asn_per_constraints_t asn_PER_type_PrivateIE_ID_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_PrivateIE_ID_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED, 1, 1, 0l, 1l } /* (0..1) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_PrivateIE_ID_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PrivateIE_ID, choice.local), +static asn_TYPE_member_t asn_MBR_HNBAP_PrivateIE_ID_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_PrivateIE_ID, choice.local), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_NativeInteger, @@ -52,7 +52,7 @@ static asn_TYPE_member_t asn_MBR_PrivateIE_ID_1[] = { 0, "local" }, - { ATF_NOFLAGS, 0, offsetof(struct PrivateIE_ID, choice.global), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_PrivateIE_ID, choice.global), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_OBJECT_IDENTIFIER, @@ -62,23 +62,23 @@ static asn_TYPE_member_t asn_MBR_PrivateIE_ID_1[] = { "global" }, }; -static const asn_TYPE_tag2member_t asn_MAP_PrivateIE_ID_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_PrivateIE_ID_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* local */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* global */ }; -static asn_CHOICE_specifics_t asn_SPC_PrivateIE_ID_specs_1 = { - sizeof(struct PrivateIE_ID), - offsetof(struct PrivateIE_ID, _asn_ctx), - offsetof(struct PrivateIE_ID, present), - sizeof(((struct PrivateIE_ID *)0)->present), - asn_MAP_PrivateIE_ID_tag2el_1, +static asn_CHOICE_specifics_t asn_SPC_HNBAP_PrivateIE_ID_specs_1 = { + sizeof(struct HNBAP_PrivateIE_ID), + offsetof(struct HNBAP_PrivateIE_ID, _asn_ctx), + offsetof(struct HNBAP_PrivateIE_ID, present), + sizeof(((struct HNBAP_PrivateIE_ID *)0)->present), + asn_MAP_HNBAP_PrivateIE_ID_tag2el_1, 2, /* Count of tags in the map */ 0, -1 /* Extensions start */ }; -asn_TYPE_descriptor_t asn_DEF_PrivateIE_ID = { - "PrivateIE-ID", - "PrivateIE-ID", +asn_TYPE_descriptor_t asn_DEF_HNBAP_PrivateIE_ID = { + "HNBAP_PrivateIE-ID", + "HNBAP_PrivateIE-ID", CHOICE_free, CHOICE_print, CHOICE_constraint, @@ -95,9 +95,9 @@ asn_TYPE_descriptor_t asn_DEF_PrivateIE_ID = { 0, /* No effective tags (count) */ 0, /* No tags (pointer) */ 0, /* No tags (count) */ - &asn_PER_type_PrivateIE_ID_constr_1, - asn_MBR_PrivateIE_ID_1, + &asn_PER_type_HNBAP_PrivateIE_ID_constr_1, + asn_MBR_HNBAP_PrivateIE_ID_1, 2, /* Elements count */ - &asn_SPC_PrivateIE_ID_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_PrivateIE_ID_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/PrivateMessage.c b/src/hnbap/HNBAP_PrivateMessage.c index 52eb933..2e703e3 100644 --- a/src/hnbap/PrivateMessage.c +++ b/src/hnbap/HNBAP_PrivateMessage.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/PrivateMessage.h> +#include <osmocom/hnbap/HNBAP_PrivateMessage.h> static int memb_privateMessage_ies_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, @@ -45,9 +45,9 @@ static asn_per_constraints_t asn_PER_memb_privateMessage_ies_constr_2 GCC_NOTUSE }; static asn_TYPE_member_t asn_MBR_privateMessage_ies_2[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_IE, + &asn_DEF_HNBAP_IE, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, @@ -59,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_privateMessage_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_privateMessage_ies_specs_2 = { - sizeof(struct privateMessage_ies), - offsetof(struct privateMessage_ies, _asn_ctx), + sizeof(struct HNBAP_PrivateMessage__privateMessage_ies), + offsetof(struct HNBAP_PrivateMessage__privateMessage_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ @@ -91,8 +91,8 @@ asn_TYPE_descriptor_t asn_DEF_privateMessage_ies_2 = { &asn_SPC_privateMessage_ies_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_PrivateMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct PrivateMessage, privateMessage_ies), +static asn_TYPE_member_t asn_MBR_HNBAP_PrivateMessage_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_PrivateMessage, privateMessage_ies), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_privateMessage_ies_2, @@ -102,24 +102,24 @@ static asn_TYPE_member_t asn_MBR_PrivateMessage_1[] = { "privateMessage-ies" }, }; -static const ber_tlv_tag_t asn_DEF_PrivateMessage_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_PrivateMessage_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_PrivateMessage_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_PrivateMessage_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* privateMessage-ies */ }; -static asn_SEQUENCE_specifics_t asn_SPC_PrivateMessage_specs_1 = { - sizeof(struct PrivateMessage), - offsetof(struct PrivateMessage, _asn_ctx), - asn_MAP_PrivateMessage_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_PrivateMessage_specs_1 = { + sizeof(struct HNBAP_PrivateMessage), + offsetof(struct HNBAP_PrivateMessage, _asn_ctx), + asn_MAP_HNBAP_PrivateMessage_tag2el_1, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 0, /* Start extensions */ 2 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_PrivateMessage = { - "PrivateMessage", - "PrivateMessage", +asn_TYPE_descriptor_t asn_DEF_HNBAP_PrivateMessage = { + "HNBAP_PrivateMessage", + "HNBAP_PrivateMessage", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -132,15 +132,15 @@ asn_TYPE_descriptor_t asn_DEF_PrivateMessage = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_PrivateMessage_tags_1, - sizeof(asn_DEF_PrivateMessage_tags_1) - /sizeof(asn_DEF_PrivateMessage_tags_1[0]), /* 1 */ - asn_DEF_PrivateMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_PrivateMessage_tags_1) - /sizeof(asn_DEF_PrivateMessage_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_PrivateMessage_tags_1, + sizeof(asn_DEF_HNBAP_PrivateMessage_tags_1) + /sizeof(asn_DEF_HNBAP_PrivateMessage_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_PrivateMessage_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_PrivateMessage_tags_1) + /sizeof(asn_DEF_HNBAP_PrivateMessage_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_PrivateMessage_1, + asn_MBR_HNBAP_PrivateMessage_1, 1, /* Elements count */ - &asn_SPC_PrivateMessage_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_PrivateMessage_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/ProcedureCode.c b/src/hnbap/HNBAP_ProcedureCode.c index 2f95db7..e2b909d 100644 --- a/src/hnbap/ProcedureCode.c +++ b/src/hnbap/HNBAP_ProcedureCode.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-CommonDataTypes" * found in "../../asn1/hnbap/HNBAP-CommonDataTypes.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/ProcedureCode.h> +#include <osmocom/hnbap/HNBAP_ProcedureCode.h> int -ProcedureCode_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_ProcedureCode_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { long value; @@ -37,7 +37,7 @@ ProcedureCode_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -ProcedureCode_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_ProcedureCode_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeInteger.free_struct; td->print_struct = asn_DEF_NativeInteger.print_struct; td->check_constraints = asn_DEF_NativeInteger.check_constraints; @@ -57,109 +57,109 @@ ProcedureCode_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -ProcedureCode_free(asn_TYPE_descriptor_t *td, +HNBAP_ProcedureCode_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - ProcedureCode_1_inherit_TYPE_descriptor(td); + HNBAP_ProcedureCode_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -ProcedureCode_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_ProcedureCode_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - ProcedureCode_1_inherit_TYPE_descriptor(td); + HNBAP_ProcedureCode_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -ProcedureCode_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_ProcedureCode_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - ProcedureCode_1_inherit_TYPE_descriptor(td); + HNBAP_ProcedureCode_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -ProcedureCode_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_ProcedureCode_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - ProcedureCode_1_inherit_TYPE_descriptor(td); + HNBAP_ProcedureCode_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -ProcedureCode_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_ProcedureCode_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - ProcedureCode_1_inherit_TYPE_descriptor(td); + HNBAP_ProcedureCode_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -ProcedureCode_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_ProcedureCode_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - ProcedureCode_1_inherit_TYPE_descriptor(td); + HNBAP_ProcedureCode_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -ProcedureCode_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_ProcedureCode_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - ProcedureCode_1_inherit_TYPE_descriptor(td); + HNBAP_ProcedureCode_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -ProcedureCode_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_ProcedureCode_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - ProcedureCode_1_inherit_TYPE_descriptor(td); + HNBAP_ProcedureCode_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -ProcedureCode_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_ProcedureCode_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - ProcedureCode_1_inherit_TYPE_descriptor(td); + HNBAP_ProcedureCode_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -ProcedureCode_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_ProcedureCode_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - ProcedureCode_1_inherit_TYPE_descriptor(td); + HNBAP_ProcedureCode_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_ProcedureCode_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_ProcedureCode_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED, 8, 8, 0l, 255l } /* (0..255) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_ProcedureCode_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_ProcedureCode_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_ProcedureCode = { - "ProcedureCode", - "ProcedureCode", - ProcedureCode_free, - ProcedureCode_print, - ProcedureCode_constraint, - ProcedureCode_decode_ber, - ProcedureCode_encode_der, - ProcedureCode_decode_xer, - ProcedureCode_encode_xer, - ProcedureCode_decode_uper, - ProcedureCode_encode_uper, - ProcedureCode_decode_aper, - ProcedureCode_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_ProcedureCode = { + "HNBAP_ProcedureCode", + "HNBAP_ProcedureCode", + HNBAP_ProcedureCode_free, + HNBAP_ProcedureCode_print, + HNBAP_ProcedureCode_constraint, + HNBAP_ProcedureCode_decode_ber, + HNBAP_ProcedureCode_encode_der, + HNBAP_ProcedureCode_decode_xer, + HNBAP_ProcedureCode_encode_xer, + HNBAP_ProcedureCode_decode_uper, + HNBAP_ProcedureCode_encode_uper, + HNBAP_ProcedureCode_decode_aper, + HNBAP_ProcedureCode_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_ProcedureCode_tags_1, - sizeof(asn_DEF_ProcedureCode_tags_1) - /sizeof(asn_DEF_ProcedureCode_tags_1[0]), /* 1 */ - asn_DEF_ProcedureCode_tags_1, /* Same as above */ - sizeof(asn_DEF_ProcedureCode_tags_1) - /sizeof(asn_DEF_ProcedureCode_tags_1[0]), /* 1 */ - &asn_PER_type_ProcedureCode_constr_1, + asn_DEF_HNBAP_ProcedureCode_tags_1, + sizeof(asn_DEF_HNBAP_ProcedureCode_tags_1) + /sizeof(asn_DEF_HNBAP_ProcedureCode_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_ProcedureCode_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_ProcedureCode_tags_1) + /sizeof(asn_DEF_HNBAP_ProcedureCode_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_ProcedureCode_constr_1, 0, 0, /* Defined elsewhere */ 0 /* No specifics */ }; diff --git a/src/hnbap/ProtocolIE-ID.c b/src/hnbap/HNBAP_ProtocolIE-ID.c index c0a3681..e685cb1 100644 --- a/src/hnbap/ProtocolIE-ID.c +++ b/src/hnbap/HNBAP_ProtocolIE-ID.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-CommonDataTypes" * found in "../../asn1/hnbap/HNBAP-CommonDataTypes.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/ProtocolIE-ID.h> +#include <osmocom/hnbap/HNBAP_ProtocolIE-ID.h> int -ProtocolIE_ID_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_ProtocolIE_ID_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { long value; @@ -37,7 +37,7 @@ ProtocolIE_ID_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -ProtocolIE_ID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_ProtocolIE_ID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeInteger.free_struct; td->print_struct = asn_DEF_NativeInteger.print_struct; td->check_constraints = asn_DEF_NativeInteger.check_constraints; @@ -57,109 +57,109 @@ ProtocolIE_ID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -ProtocolIE_ID_free(asn_TYPE_descriptor_t *td, +HNBAP_ProtocolIE_ID_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - ProtocolIE_ID_1_inherit_TYPE_descriptor(td); + HNBAP_ProtocolIE_ID_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -ProtocolIE_ID_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_ProtocolIE_ID_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - ProtocolIE_ID_1_inherit_TYPE_descriptor(td); + HNBAP_ProtocolIE_ID_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -ProtocolIE_ID_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_ProtocolIE_ID_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - ProtocolIE_ID_1_inherit_TYPE_descriptor(td); + HNBAP_ProtocolIE_ID_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -ProtocolIE_ID_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_ProtocolIE_ID_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - ProtocolIE_ID_1_inherit_TYPE_descriptor(td); + HNBAP_ProtocolIE_ID_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -ProtocolIE_ID_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_ProtocolIE_ID_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - ProtocolIE_ID_1_inherit_TYPE_descriptor(td); + HNBAP_ProtocolIE_ID_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -ProtocolIE_ID_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_ProtocolIE_ID_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - ProtocolIE_ID_1_inherit_TYPE_descriptor(td); + HNBAP_ProtocolIE_ID_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -ProtocolIE_ID_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_ProtocolIE_ID_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - ProtocolIE_ID_1_inherit_TYPE_descriptor(td); + HNBAP_ProtocolIE_ID_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -ProtocolIE_ID_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_ProtocolIE_ID_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - ProtocolIE_ID_1_inherit_TYPE_descriptor(td); + HNBAP_ProtocolIE_ID_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -ProtocolIE_ID_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_ProtocolIE_ID_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - ProtocolIE_ID_1_inherit_TYPE_descriptor(td); + HNBAP_ProtocolIE_ID_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -ProtocolIE_ID_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_ProtocolIE_ID_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - ProtocolIE_ID_1_inherit_TYPE_descriptor(td); + HNBAP_ProtocolIE_ID_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_ProtocolIE_ID_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_ProtocolIE_ID_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED, 16, 16, 0l, 65535l } /* (0..65535) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_ProtocolIE_ID_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_ProtocolIE_ID_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_ProtocolIE_ID = { - "ProtocolIE-ID", - "ProtocolIE-ID", - ProtocolIE_ID_free, - ProtocolIE_ID_print, - ProtocolIE_ID_constraint, - ProtocolIE_ID_decode_ber, - ProtocolIE_ID_encode_der, - ProtocolIE_ID_decode_xer, - ProtocolIE_ID_encode_xer, - ProtocolIE_ID_decode_uper, - ProtocolIE_ID_encode_uper, - ProtocolIE_ID_decode_aper, - ProtocolIE_ID_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_ProtocolIE_ID = { + "HNBAP_ProtocolIE-ID", + "HNBAP_ProtocolIE-ID", + HNBAP_ProtocolIE_ID_free, + HNBAP_ProtocolIE_ID_print, + HNBAP_ProtocolIE_ID_constraint, + HNBAP_ProtocolIE_ID_decode_ber, + HNBAP_ProtocolIE_ID_encode_der, + HNBAP_ProtocolIE_ID_decode_xer, + HNBAP_ProtocolIE_ID_encode_xer, + HNBAP_ProtocolIE_ID_decode_uper, + HNBAP_ProtocolIE_ID_encode_uper, + HNBAP_ProtocolIE_ID_decode_aper, + HNBAP_ProtocolIE_ID_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_ProtocolIE_ID_tags_1, - sizeof(asn_DEF_ProtocolIE_ID_tags_1) - /sizeof(asn_DEF_ProtocolIE_ID_tags_1[0]), /* 1 */ - asn_DEF_ProtocolIE_ID_tags_1, /* Same as above */ - sizeof(asn_DEF_ProtocolIE_ID_tags_1) - /sizeof(asn_DEF_ProtocolIE_ID_tags_1[0]), /* 1 */ - &asn_PER_type_ProtocolIE_ID_constr_1, + asn_DEF_HNBAP_ProtocolIE_ID_tags_1, + sizeof(asn_DEF_HNBAP_ProtocolIE_ID_tags_1) + /sizeof(asn_DEF_HNBAP_ProtocolIE_ID_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_ProtocolIE_ID_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_ProtocolIE_ID_tags_1) + /sizeof(asn_DEF_HNBAP_ProtocolIE_ID_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_ProtocolIE_ID_constr_1, 0, 0, /* Defined elsewhere */ 0 /* No specifics */ }; diff --git a/src/hnbap/CellIdentity.c b/src/hnbap/HNBAP_RAB-ID.c index e03dabf..b66cd9c 100644 --- a/src/hnbap/CellIdentity.c +++ b/src/hnbap/HNBAP_RAB-ID.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/CellIdentity.h> +#include <osmocom/hnbap/HNBAP_RAB-ID.h> int -CellIdentity_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_RAB_ID_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; size_t size; @@ -27,7 +27,7 @@ CellIdentity_constraint(asn_TYPE_descriptor_t *td, const void *sptr, size = 0; } - if((size == 28l)) { + if((size == 8l)) { /* Constraint check succeeded */ return 0; } else { @@ -43,7 +43,7 @@ CellIdentity_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -CellIdentity_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_RAB_ID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_BIT_STRING.free_struct; td->print_struct = asn_DEF_BIT_STRING.print_struct; td->check_constraints = asn_DEF_BIT_STRING.check_constraints; @@ -63,109 +63,109 @@ CellIdentity_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -CellIdentity_free(asn_TYPE_descriptor_t *td, +HNBAP_RAB_ID_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - CellIdentity_1_inherit_TYPE_descriptor(td); + HNBAP_RAB_ID_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -CellIdentity_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_RAB_ID_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - CellIdentity_1_inherit_TYPE_descriptor(td); + HNBAP_RAB_ID_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -CellIdentity_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_RAB_ID_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - CellIdentity_1_inherit_TYPE_descriptor(td); + HNBAP_RAB_ID_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -CellIdentity_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_RAB_ID_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - CellIdentity_1_inherit_TYPE_descriptor(td); + HNBAP_RAB_ID_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -CellIdentity_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_RAB_ID_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - CellIdentity_1_inherit_TYPE_descriptor(td); + HNBAP_RAB_ID_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -CellIdentity_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_RAB_ID_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - CellIdentity_1_inherit_TYPE_descriptor(td); + HNBAP_RAB_ID_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -CellIdentity_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_RAB_ID_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CellIdentity_1_inherit_TYPE_descriptor(td); + HNBAP_RAB_ID_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -CellIdentity_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_RAB_ID_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CellIdentity_1_inherit_TYPE_descriptor(td); + HNBAP_RAB_ID_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -CellIdentity_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_RAB_ID_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CellIdentity_1_inherit_TYPE_descriptor(td); + HNBAP_RAB_ID_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -CellIdentity_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_RAB_ID_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CellIdentity_1_inherit_TYPE_descriptor(td); + HNBAP_RAB_ID_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_CellIdentity_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_RAB_ID_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 28l, 28l } /* (SIZE(28..28)) */, + { APC_CONSTRAINED, 0, 0, 8l, 8l } /* (SIZE(8..8)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_CellIdentity_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_RAB_ID_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_CellIdentity = { - "CellIdentity", - "CellIdentity", - CellIdentity_free, - CellIdentity_print, - CellIdentity_constraint, - CellIdentity_decode_ber, - CellIdentity_encode_der, - CellIdentity_decode_xer, - CellIdentity_encode_xer, - CellIdentity_decode_uper, - CellIdentity_encode_uper, - CellIdentity_decode_aper, - CellIdentity_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_RAB_ID = { + "HNBAP_RAB-ID", + "HNBAP_RAB-ID", + HNBAP_RAB_ID_free, + HNBAP_RAB_ID_print, + HNBAP_RAB_ID_constraint, + HNBAP_RAB_ID_decode_ber, + HNBAP_RAB_ID_encode_der, + HNBAP_RAB_ID_decode_xer, + HNBAP_RAB_ID_encode_xer, + HNBAP_RAB_ID_decode_uper, + HNBAP_RAB_ID_encode_uper, + HNBAP_RAB_ID_decode_aper, + HNBAP_RAB_ID_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_CellIdentity_tags_1, - sizeof(asn_DEF_CellIdentity_tags_1) - /sizeof(asn_DEF_CellIdentity_tags_1[0]), /* 1 */ - asn_DEF_CellIdentity_tags_1, /* Same as above */ - sizeof(asn_DEF_CellIdentity_tags_1) - /sizeof(asn_DEF_CellIdentity_tags_1[0]), /* 1 */ - &asn_PER_type_CellIdentity_constr_1, + asn_DEF_HNBAP_RAB_ID_tags_1, + sizeof(asn_DEF_HNBAP_RAB_ID_tags_1) + /sizeof(asn_DEF_HNBAP_RAB_ID_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_RAB_ID_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_RAB_ID_tags_1) + /sizeof(asn_DEF_HNBAP_RAB_ID_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_RAB_ID_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/HNBAP_RABList.c b/src/hnbap/HNBAP_RABList.c new file mode 100644 index 0000000..e56bdc2 --- /dev/null +++ b/src/hnbap/HNBAP_RABList.c @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_RABList.h> + +static asn_per_constraints_t asn_PER_type_HNBAP_RABList_constr_1 GCC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 8, 8, 1l, 256l } /* (SIZE(1..256)) */, + 0, 0 /* No PER value map */ +}; +static asn_TYPE_member_t asn_MBR_HNBAP_RABList_1[] = { + { ATF_POINTER, 0, 0, + -1 /* Ambiguous tag (CHOICE?) */, + 0, + &asn_DEF_HNBAP_RABListItem, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_HNBAP_RABList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_HNBAP_RABList_specs_1 = { + sizeof(struct HNBAP_RABList), + offsetof(struct HNBAP_RABList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_RABList = { + "HNBAP_RABList", + "HNBAP_RABList", + SEQUENCE_OF_free, + SEQUENCE_OF_print, + SEQUENCE_OF_constraint, + SEQUENCE_OF_decode_ber, + SEQUENCE_OF_encode_der, + SEQUENCE_OF_decode_xer, + SEQUENCE_OF_encode_xer, + SEQUENCE_OF_decode_uper, + SEQUENCE_OF_encode_uper, + SEQUENCE_OF_decode_aper, + SEQUENCE_OF_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_RABList_tags_1, + sizeof(asn_DEF_HNBAP_RABList_tags_1) + /sizeof(asn_DEF_HNBAP_RABList_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_RABList_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_RABList_tags_1) + /sizeof(asn_DEF_HNBAP_RABList_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_RABList_constr_1, + asn_MBR_HNBAP_RABList_1, + 1, /* Single element */ + &asn_SPC_HNBAP_RABList_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/RABListItem.c b/src/hnbap/HNBAP_RABListItem.c index b4e3da7..c147214 100644 --- a/src/hnbap/RABListItem.c +++ b/src/hnbap/HNBAP_RABListItem.c @@ -2,82 +2,82 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/RABListItem.h> +#include <osmocom/hnbap/HNBAP_RABListItem.h> -static asn_TYPE_member_t asn_MBR_RABListItem_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RABListItem, rAB_ID), +static asn_TYPE_member_t asn_MBR_HNBAP_RABListItem_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_RABListItem, rAB_ID), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_RAB_ID, + &asn_DEF_HNBAP_RAB_ID, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "rAB-ID" }, - { ATF_NOFLAGS, 0, offsetof(struct RABListItem, old_transport_Info), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_RABListItem, old_transport_Info), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_TransportInfo, + &asn_DEF_HNBAP_TransportInfo, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "old-transport-Info" }, - { ATF_NOFLAGS, 0, offsetof(struct RABListItem, new_transport_Info), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_RABListItem, new_transport_Info), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_TransportInfo, + &asn_DEF_HNBAP_TransportInfo, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "new-transport-Info" }, - { ATF_NOFLAGS, 0, offsetof(struct RABListItem, cn_domain_indicator), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_RABListItem, cn_domain_indicator), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_CN_DomainIndicator, + &asn_DEF_HNBAP_CN_DomainIndicator, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "cn-domain-indicator" }, - { ATF_POINTER, 1, offsetof(struct RABListItem, iE_Extensions), + { ATF_POINTER, 1, offsetof(struct HNBAP_RABListItem, iE_Extensions), (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_IE_Extensions, + &asn_DEF_HNBAP_IE_Extensions, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "iE-Extensions" }, }; -static const int asn_MAP_RABListItem_oms_1[] = { 4 }; -static const ber_tlv_tag_t asn_DEF_RABListItem_tags_1[] = { +static const int asn_MAP_HNBAP_RABListItem_oms_1[] = { 4 }; +static const ber_tlv_tag_t asn_DEF_HNBAP_RABListItem_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_RABListItem_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_RABListItem_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rAB-ID */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* old-transport-Info */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* new-transport-Info */ { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* cn-domain-indicator */ { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* iE-Extensions */ }; -static asn_SEQUENCE_specifics_t asn_SPC_RABListItem_specs_1 = { - sizeof(struct RABListItem), - offsetof(struct RABListItem, _asn_ctx), - asn_MAP_RABListItem_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_RABListItem_specs_1 = { + sizeof(struct HNBAP_RABListItem), + offsetof(struct HNBAP_RABListItem, _asn_ctx), + asn_MAP_HNBAP_RABListItem_tag2el_1, 5, /* Count of tags in the map */ - asn_MAP_RABListItem_oms_1, /* Optional members */ + asn_MAP_HNBAP_RABListItem_oms_1, /* Optional members */ 1, 0, /* Root/Additions */ 4, /* Start extensions */ 6 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_RABListItem = { - "RABListItem", - "RABListItem", +asn_TYPE_descriptor_t asn_DEF_HNBAP_RABListItem = { + "HNBAP_RABListItem", + "HNBAP_RABListItem", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -90,15 +90,15 @@ asn_TYPE_descriptor_t asn_DEF_RABListItem = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_RABListItem_tags_1, - sizeof(asn_DEF_RABListItem_tags_1) - /sizeof(asn_DEF_RABListItem_tags_1[0]), /* 1 */ - asn_DEF_RABListItem_tags_1, /* Same as above */ - sizeof(asn_DEF_RABListItem_tags_1) - /sizeof(asn_DEF_RABListItem_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_RABListItem_tags_1, + sizeof(asn_DEF_HNBAP_RABListItem_tags_1) + /sizeof(asn_DEF_HNBAP_RABListItem_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_RABListItem_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_RABListItem_tags_1) + /sizeof(asn_DEF_HNBAP_RABListItem_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_RABListItem_1, + asn_MBR_HNBAP_RABListItem_1, 5, /* Elements count */ - &asn_SPC_RABListItem_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_RABListItem_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/RAC.c b/src/hnbap/HNBAP_RAC.c index 04f0601..9b210ad 100644 --- a/src/hnbap/RAC.c +++ b/src/hnbap/HNBAP_RAC.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/RAC.h> +#include <osmocom/hnbap/HNBAP_RAC.h> int -RAC_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_RAC_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; size_t size; @@ -38,7 +38,7 @@ RAC_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -RAC_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_RAC_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_OCTET_STRING.free_struct; td->print_struct = asn_DEF_OCTET_STRING.print_struct; td->check_constraints = asn_DEF_OCTET_STRING.check_constraints; @@ -58,109 +58,109 @@ RAC_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -RAC_free(asn_TYPE_descriptor_t *td, +HNBAP_RAC_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - RAC_1_inherit_TYPE_descriptor(td); + HNBAP_RAC_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -RAC_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_RAC_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - RAC_1_inherit_TYPE_descriptor(td); + HNBAP_RAC_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -RAC_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_RAC_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - RAC_1_inherit_TYPE_descriptor(td); + HNBAP_RAC_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -RAC_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_RAC_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - RAC_1_inherit_TYPE_descriptor(td); + HNBAP_RAC_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -RAC_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_RAC_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - RAC_1_inherit_TYPE_descriptor(td); + HNBAP_RAC_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -RAC_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_RAC_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - RAC_1_inherit_TYPE_descriptor(td); + HNBAP_RAC_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -RAC_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_RAC_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - RAC_1_inherit_TYPE_descriptor(td); + HNBAP_RAC_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -RAC_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_RAC_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - RAC_1_inherit_TYPE_descriptor(td); + HNBAP_RAC_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -RAC_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_RAC_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - RAC_1_inherit_TYPE_descriptor(td); + HNBAP_RAC_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -RAC_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_RAC_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - RAC_1_inherit_TYPE_descriptor(td); + HNBAP_RAC_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_RAC_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_RAC_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 0, 0, 1l, 1l } /* (SIZE(1..1)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_RAC_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_RAC_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_RAC = { - "RAC", - "RAC", - RAC_free, - RAC_print, - RAC_constraint, - RAC_decode_ber, - RAC_encode_der, - RAC_decode_xer, - RAC_encode_xer, - RAC_decode_uper, - RAC_encode_uper, - RAC_decode_aper, - RAC_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_RAC = { + "HNBAP_RAC", + "HNBAP_RAC", + HNBAP_RAC_free, + HNBAP_RAC_print, + HNBAP_RAC_constraint, + HNBAP_RAC_decode_ber, + HNBAP_RAC_encode_der, + HNBAP_RAC_decode_xer, + HNBAP_RAC_encode_xer, + HNBAP_RAC_decode_uper, + HNBAP_RAC_encode_uper, + HNBAP_RAC_decode_aper, + HNBAP_RAC_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_RAC_tags_1, - sizeof(asn_DEF_RAC_tags_1) - /sizeof(asn_DEF_RAC_tags_1[0]), /* 1 */ - asn_DEF_RAC_tags_1, /* Same as above */ - sizeof(asn_DEF_RAC_tags_1) - /sizeof(asn_DEF_RAC_tags_1[0]), /* 1 */ - &asn_PER_type_RAC_constr_1, + asn_DEF_HNBAP_RAC_tags_1, + sizeof(asn_DEF_HNBAP_RAC_tags_1) + /sizeof(asn_DEF_HNBAP_RAC_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_RAC_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_RAC_tags_1) + /sizeof(asn_DEF_HNBAP_RAC_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_RAC_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/RAI.c b/src/hnbap/HNBAP_RAI.c index 3591129..c958051 100644 --- a/src/hnbap/RAI.c +++ b/src/hnbap/HNBAP_RAI.c @@ -2,50 +2,50 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/RAI.h> +#include <osmocom/hnbap/HNBAP_RAI.h> -static asn_TYPE_member_t asn_MBR_RAI_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RAI, lAI), +static asn_TYPE_member_t asn_MBR_HNBAP_RAI_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_RAI, lAI), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_LAI, + &asn_DEF_HNBAP_LAI, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "lAI" }, - { ATF_NOFLAGS, 0, offsetof(struct RAI, rAC), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_RAI, rAC), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_RAC, + &asn_DEF_HNBAP_RAC, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "rAC" }, }; -static const ber_tlv_tag_t asn_DEF_RAI_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_RAI_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_RAI_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_RAI_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lAI */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* rAC */ }; -static asn_SEQUENCE_specifics_t asn_SPC_RAI_specs_1 = { - sizeof(struct RAI), - offsetof(struct RAI, _asn_ctx), - asn_MAP_RAI_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_RAI_specs_1 = { + sizeof(struct HNBAP_RAI), + offsetof(struct HNBAP_RAI, _asn_ctx), + asn_MAP_HNBAP_RAI_tag2el_1, 2, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 1, /* Start extensions */ 3 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_RAI = { - "RAI", - "RAI", +asn_TYPE_descriptor_t asn_DEF_HNBAP_RAI = { + "HNBAP_RAI", + "HNBAP_RAI", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -58,15 +58,15 @@ asn_TYPE_descriptor_t asn_DEF_RAI = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_RAI_tags_1, - sizeof(asn_DEF_RAI_tags_1) - /sizeof(asn_DEF_RAI_tags_1[0]), /* 1 */ - asn_DEF_RAI_tags_1, /* Same as above */ - sizeof(asn_DEF_RAI_tags_1) - /sizeof(asn_DEF_RAI_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_RAI_tags_1, + sizeof(asn_DEF_HNBAP_RAI_tags_1) + /sizeof(asn_DEF_HNBAP_RAI_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_RAI_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_RAI_tags_1) + /sizeof(asn_DEF_HNBAP_RAI_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_RAI_1, + asn_MBR_HNBAP_RAI_1, 2, /* Elements count */ - &asn_SPC_RAI_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_RAI_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/URAIdentity.c b/src/hnbap/HNBAP_RNC-ID.c index dd20ed6..73a3921 100644 --- a/src/hnbap/URAIdentity.c +++ b/src/hnbap/HNBAP_RNC-ID.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/URAIdentity.h> +#include <osmocom/hnbap/HNBAP_RNC-ID.h> int -URAIdentity_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_RNC_ID_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { long value; @@ -37,7 +37,7 @@ URAIdentity_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -URAIdentity_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_RNC_ID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeInteger.free_struct; td->print_struct = asn_DEF_NativeInteger.print_struct; td->check_constraints = asn_DEF_NativeInteger.check_constraints; @@ -57,109 +57,109 @@ URAIdentity_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -URAIdentity_free(asn_TYPE_descriptor_t *td, +HNBAP_RNC_ID_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - URAIdentity_1_inherit_TYPE_descriptor(td); + HNBAP_RNC_ID_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -URAIdentity_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_RNC_ID_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - URAIdentity_1_inherit_TYPE_descriptor(td); + HNBAP_RNC_ID_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -URAIdentity_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_RNC_ID_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - URAIdentity_1_inherit_TYPE_descriptor(td); + HNBAP_RNC_ID_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -URAIdentity_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_RNC_ID_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - URAIdentity_1_inherit_TYPE_descriptor(td); + HNBAP_RNC_ID_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -URAIdentity_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_RNC_ID_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - URAIdentity_1_inherit_TYPE_descriptor(td); + HNBAP_RNC_ID_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -URAIdentity_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_RNC_ID_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - URAIdentity_1_inherit_TYPE_descriptor(td); + HNBAP_RNC_ID_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -URAIdentity_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_RNC_ID_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - URAIdentity_1_inherit_TYPE_descriptor(td); + HNBAP_RNC_ID_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -URAIdentity_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_RNC_ID_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - URAIdentity_1_inherit_TYPE_descriptor(td); + HNBAP_RNC_ID_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -URAIdentity_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_RNC_ID_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - URAIdentity_1_inherit_TYPE_descriptor(td); + HNBAP_RNC_ID_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -URAIdentity_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_RNC_ID_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - URAIdentity_1_inherit_TYPE_descriptor(td); + HNBAP_RNC_ID_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_URAIdentity_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_RNC_ID_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED, 16, 16, 0l, 65535l } /* (0..65535) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_URAIdentity_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_RNC_ID_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_URAIdentity = { - "URAIdentity", - "URAIdentity", - URAIdentity_free, - URAIdentity_print, - URAIdentity_constraint, - URAIdentity_decode_ber, - URAIdentity_encode_der, - URAIdentity_decode_xer, - URAIdentity_encode_xer, - URAIdentity_decode_uper, - URAIdentity_encode_uper, - URAIdentity_decode_aper, - URAIdentity_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_RNC_ID = { + "HNBAP_RNC-ID", + "HNBAP_RNC-ID", + HNBAP_RNC_ID_free, + HNBAP_RNC_ID_print, + HNBAP_RNC_ID_constraint, + HNBAP_RNC_ID_decode_ber, + HNBAP_RNC_ID_encode_der, + HNBAP_RNC_ID_decode_xer, + HNBAP_RNC_ID_encode_xer, + HNBAP_RNC_ID_decode_uper, + HNBAP_RNC_ID_encode_uper, + HNBAP_RNC_ID_decode_aper, + HNBAP_RNC_ID_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_URAIdentity_tags_1, - sizeof(asn_DEF_URAIdentity_tags_1) - /sizeof(asn_DEF_URAIdentity_tags_1[0]), /* 1 */ - asn_DEF_URAIdentity_tags_1, /* Same as above */ - sizeof(asn_DEF_URAIdentity_tags_1) - /sizeof(asn_DEF_URAIdentity_tags_1[0]), /* 1 */ - &asn_PER_type_URAIdentity_constr_1, + asn_DEF_HNBAP_RNC_ID_tags_1, + sizeof(asn_DEF_HNBAP_RNC_ID_tags_1) + /sizeof(asn_DEF_HNBAP_RNC_ID_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_RNC_ID_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_RNC_ID_tags_1) + /sizeof(asn_DEF_HNBAP_RNC_ID_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_RNC_ID_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/CELL-FACHMobilitySupport.c b/src/hnbap/HNBAP_Registration-Cause.c index 0ef8524..703d5af 100644 --- a/src/hnbap/CELL-FACHMobilitySupport.c +++ b/src/hnbap/HNBAP_Registration-Cause.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/CELL-FACHMobilitySupport.h> +#include <osmocom/hnbap/HNBAP_Registration-Cause.h> int -CELL_FACHMobilitySupport_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_Registration_Cause_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { /* Replace with underlying type checker */ td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -20,7 +20,7 @@ CELL_FACHMobilitySupport_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_Registration_Cause_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeEnumerated.free_struct; td->print_struct = asn_DEF_NativeEnumerated.print_struct; td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -40,127 +40,131 @@ CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -CELL_FACHMobilitySupport_free(asn_TYPE_descriptor_t *td, +HNBAP_Registration_Cause_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(td); + HNBAP_Registration_Cause_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -CELL_FACHMobilitySupport_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_Registration_Cause_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(td); + HNBAP_Registration_Cause_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -CELL_FACHMobilitySupport_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Registration_Cause_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(td); + HNBAP_Registration_Cause_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -CELL_FACHMobilitySupport_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_Registration_Cause_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(td); + HNBAP_Registration_Cause_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -CELL_FACHMobilitySupport_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Registration_Cause_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(td); + HNBAP_Registration_Cause_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -CELL_FACHMobilitySupport_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_Registration_Cause_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(td); + HNBAP_Registration_Cause_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -CELL_FACHMobilitySupport_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Registration_Cause_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(td); + HNBAP_Registration_Cause_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -CELL_FACHMobilitySupport_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_Registration_Cause_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(td); + HNBAP_Registration_Cause_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -CELL_FACHMobilitySupport_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_Registration_Cause_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(td); + HNBAP_Registration_Cause_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -CELL_FACHMobilitySupport_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Registration_Cause_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - CELL_FACHMobilitySupport_1_inherit_TYPE_descriptor(td); + HNBAP_Registration_Cause_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_CELL_FACHMobilitySupport_constr_1 GCC_NOTUSED = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0l, 0l } /* (0..0,...) */, +static asn_per_constraints_t asn_PER_type_HNBAP_Registration_Cause_constr_1 GCC_NOTUSED = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0l, 1l } /* (0..1,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const asn_INTEGER_enum_map_t asn_MAP_CELL_FACHMobilitySupport_value2enum_1[] = { - { 0, 9, "supported" } +static const asn_INTEGER_enum_map_t asn_MAP_HNBAP_Registration_Cause_value2enum_1[] = { + { 0, 14, "emergency-call" }, + { 1, 6, "normal" }, + { 2, 13, "ue-relocation" } /* This list is extensible */ }; -static const unsigned int asn_MAP_CELL_FACHMobilitySupport_enum2value_1[] = { - 0 /* supported(0) */ +static const unsigned int asn_MAP_HNBAP_Registration_Cause_enum2value_1[] = { + 0, /* emergency-call(0) */ + 1, /* normal(1) */ + 2 /* ue-relocation(2) */ /* This list is extensible */ }; -static const asn_INTEGER_specifics_t asn_SPC_CELL_FACHMobilitySupport_specs_1 = { - asn_MAP_CELL_FACHMobilitySupport_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_CELL_FACHMobilitySupport_enum2value_1, /* N => "tag"; sorted by N */ - 1, /* Number of elements in the maps */ - 2, /* Extensions before this member */ +static const asn_INTEGER_specifics_t asn_SPC_HNBAP_Registration_Cause_specs_1 = { + asn_MAP_HNBAP_Registration_Cause_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_HNBAP_Registration_Cause_enum2value_1, /* N => "tag"; sorted by N */ + 3, /* Number of elements in the maps */ + 3, /* Extensions before this member */ 1, /* Strict enumeration */ 0, /* Native long size */ 0 }; -static const ber_tlv_tag_t asn_DEF_CELL_FACHMobilitySupport_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_Registration_Cause_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_CELL_FACHMobilitySupport = { - "CELL-FACHMobilitySupport", - "CELL-FACHMobilitySupport", - CELL_FACHMobilitySupport_free, - CELL_FACHMobilitySupport_print, - CELL_FACHMobilitySupport_constraint, - CELL_FACHMobilitySupport_decode_ber, - CELL_FACHMobilitySupport_encode_der, - CELL_FACHMobilitySupport_decode_xer, - CELL_FACHMobilitySupport_encode_xer, - CELL_FACHMobilitySupport_decode_uper, - CELL_FACHMobilitySupport_encode_uper, - CELL_FACHMobilitySupport_decode_aper, - CELL_FACHMobilitySupport_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_Registration_Cause = { + "HNBAP_Registration-Cause", + "HNBAP_Registration-Cause", + HNBAP_Registration_Cause_free, + HNBAP_Registration_Cause_print, + HNBAP_Registration_Cause_constraint, + HNBAP_Registration_Cause_decode_ber, + HNBAP_Registration_Cause_encode_der, + HNBAP_Registration_Cause_decode_xer, + HNBAP_Registration_Cause_encode_xer, + HNBAP_Registration_Cause_decode_uper, + HNBAP_Registration_Cause_encode_uper, + HNBAP_Registration_Cause_decode_aper, + HNBAP_Registration_Cause_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_CELL_FACHMobilitySupport_tags_1, - sizeof(asn_DEF_CELL_FACHMobilitySupport_tags_1) - /sizeof(asn_DEF_CELL_FACHMobilitySupport_tags_1[0]), /* 1 */ - asn_DEF_CELL_FACHMobilitySupport_tags_1, /* Same as above */ - sizeof(asn_DEF_CELL_FACHMobilitySupport_tags_1) - /sizeof(asn_DEF_CELL_FACHMobilitySupport_tags_1[0]), /* 1 */ - &asn_PER_type_CELL_FACHMobilitySupport_constr_1, + asn_DEF_HNBAP_Registration_Cause_tags_1, + sizeof(asn_DEF_HNBAP_Registration_Cause_tags_1) + /sizeof(asn_DEF_HNBAP_Registration_Cause_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_Registration_Cause_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_Registration_Cause_tags_1) + /sizeof(asn_DEF_HNBAP_Registration_Cause_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_Registration_Cause_constr_1, 0, 0, /* Defined elsewhere */ - &asn_SPC_CELL_FACHMobilitySupport_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_Registration_Cause_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/RelocationComplete.c b/src/hnbap/HNBAP_RelocationComplete.c index 5438cd0..d0655f0 100644 --- a/src/hnbap/RelocationComplete.c +++ b/src/hnbap/HNBAP_RelocationComplete.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/RelocationComplete.h> +#include <osmocom/hnbap/HNBAP_RelocationComplete.h> static int memb_relocationComplete_ies_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, @@ -45,9 +45,9 @@ static asn_per_constraints_t asn_PER_memb_relocationComplete_ies_constr_2 GCC_NO }; static asn_TYPE_member_t asn_MBR_relocationComplete_ies_2[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_IE, + &asn_DEF_HNBAP_IE, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, @@ -59,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_relocationComplete_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_relocationComplete_ies_specs_2 = { - sizeof(struct relocationComplete_ies), - offsetof(struct relocationComplete_ies, _asn_ctx), + sizeof(struct HNBAP_RelocationComplete__relocationComplete_ies), + offsetof(struct HNBAP_RelocationComplete__relocationComplete_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ @@ -91,8 +91,8 @@ asn_TYPE_descriptor_t asn_DEF_relocationComplete_ies_2 = { &asn_SPC_relocationComplete_ies_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_RelocationComplete_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct RelocationComplete, relocationComplete_ies), +static asn_TYPE_member_t asn_MBR_HNBAP_RelocationComplete_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_RelocationComplete, relocationComplete_ies), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_relocationComplete_ies_2, @@ -102,24 +102,24 @@ static asn_TYPE_member_t asn_MBR_RelocationComplete_1[] = { "relocationComplete-ies" }, }; -static const ber_tlv_tag_t asn_DEF_RelocationComplete_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_RelocationComplete_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_RelocationComplete_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_RelocationComplete_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* relocationComplete-ies */ }; -static asn_SEQUENCE_specifics_t asn_SPC_RelocationComplete_specs_1 = { - sizeof(struct RelocationComplete), - offsetof(struct RelocationComplete, _asn_ctx), - asn_MAP_RelocationComplete_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_RelocationComplete_specs_1 = { + sizeof(struct HNBAP_RelocationComplete), + offsetof(struct HNBAP_RelocationComplete, _asn_ctx), + asn_MAP_HNBAP_RelocationComplete_tag2el_1, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 0, /* Start extensions */ 2 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_RelocationComplete = { - "RelocationComplete", - "RelocationComplete", +asn_TYPE_descriptor_t asn_DEF_HNBAP_RelocationComplete = { + "HNBAP_RelocationComplete", + "HNBAP_RelocationComplete", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -132,15 +132,15 @@ asn_TYPE_descriptor_t asn_DEF_RelocationComplete = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_RelocationComplete_tags_1, - sizeof(asn_DEF_RelocationComplete_tags_1) - /sizeof(asn_DEF_RelocationComplete_tags_1[0]), /* 1 */ - asn_DEF_RelocationComplete_tags_1, /* Same as above */ - sizeof(asn_DEF_RelocationComplete_tags_1) - /sizeof(asn_DEF_RelocationComplete_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_RelocationComplete_tags_1, + sizeof(asn_DEF_HNBAP_RelocationComplete_tags_1) + /sizeof(asn_DEF_HNBAP_RelocationComplete_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_RelocationComplete_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_RelocationComplete_tags_1) + /sizeof(asn_DEF_HNBAP_RelocationComplete_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_RelocationComplete_1, + asn_MBR_HNBAP_RelocationComplete_1, 1, /* Elements count */ - &asn_SPC_RelocationComplete_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_RelocationComplete_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/HNBAP_S-RNTIPrefix.c b/src/hnbap/HNBAP_S-RNTIPrefix.c new file mode 100644 index 0000000..c236fc7 --- /dev/null +++ b/src/hnbap/HNBAP_S-RNTIPrefix.c @@ -0,0 +1,172 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_S-RNTIPrefix.h> + +int +HNBAP_S_RNTIPrefix_constraint(asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; + size_t size; + + if(!sptr) { + _ASN_CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + if(st->size > 0) { + /* Size in bits */ + size = 8 * st->size - (st->bits_unused & 0x07); + } else { + size = 0; + } + + if((size >= 1l && size <= 16l)) { + /* Constraint check succeeded */ + return 0; + } else { + _ASN_CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using BIT_STRING, + * so here we adjust the DEF accordingly. + */ +static void +HNBAP_S_RNTIPrefix_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { + td->free_struct = asn_DEF_BIT_STRING.free_struct; + td->print_struct = asn_DEF_BIT_STRING.print_struct; + td->check_constraints = asn_DEF_BIT_STRING.check_constraints; + td->ber_decoder = asn_DEF_BIT_STRING.ber_decoder; + td->der_encoder = asn_DEF_BIT_STRING.der_encoder; + td->xer_decoder = asn_DEF_BIT_STRING.xer_decoder; + td->xer_encoder = asn_DEF_BIT_STRING.xer_encoder; + td->uper_decoder = asn_DEF_BIT_STRING.uper_decoder; + td->uper_encoder = asn_DEF_BIT_STRING.uper_encoder; + td->aper_decoder = asn_DEF_BIT_STRING.aper_decoder; + td->aper_encoder = asn_DEF_BIT_STRING.aper_encoder; + if(!td->per_constraints) + td->per_constraints = asn_DEF_BIT_STRING.per_constraints; + td->elements = asn_DEF_BIT_STRING.elements; + td->elements_count = asn_DEF_BIT_STRING.elements_count; + td->specifics = asn_DEF_BIT_STRING.specifics; +} + +void +HNBAP_S_RNTIPrefix_free(asn_TYPE_descriptor_t *td, + void *struct_ptr, int contents_only) { + HNBAP_S_RNTIPrefix_1_inherit_TYPE_descriptor(td); + td->free_struct(td, struct_ptr, contents_only); +} + +int +HNBAP_S_RNTIPrefix_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, + int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { + HNBAP_S_RNTIPrefix_1_inherit_TYPE_descriptor(td); + return td->print_struct(td, struct_ptr, ilevel, cb, app_key); +} + +asn_dec_rval_t +HNBAP_S_RNTIPrefix_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, + void **structure, const void *bufptr, size_t size, int tag_mode) { + HNBAP_S_RNTIPrefix_1_inherit_TYPE_descriptor(td); + return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); +} + +asn_enc_rval_t +HNBAP_S_RNTIPrefix_encode_der(asn_TYPE_descriptor_t *td, + void *structure, int tag_mode, ber_tlv_tag_t tag, + asn_app_consume_bytes_f *cb, void *app_key) { + HNBAP_S_RNTIPrefix_1_inherit_TYPE_descriptor(td); + return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); +} + +asn_dec_rval_t +HNBAP_S_RNTIPrefix_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, + void **structure, const char *opt_mname, const void *bufptr, size_t size) { + HNBAP_S_RNTIPrefix_1_inherit_TYPE_descriptor(td); + return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); +} + +asn_enc_rval_t +HNBAP_S_RNTIPrefix_encode_xer(asn_TYPE_descriptor_t *td, void *structure, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + HNBAP_S_RNTIPrefix_1_inherit_TYPE_descriptor(td); + return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); +} + +asn_dec_rval_t +HNBAP_S_RNTIPrefix_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, + asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { + HNBAP_S_RNTIPrefix_1_inherit_TYPE_descriptor(td); + return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); +} + +asn_enc_rval_t +HNBAP_S_RNTIPrefix_encode_uper(asn_TYPE_descriptor_t *td, + asn_per_constraints_t *constraints, + void *structure, asn_per_outp_t *per_out) { + HNBAP_S_RNTIPrefix_1_inherit_TYPE_descriptor(td); + return td->uper_encoder(td, constraints, structure, per_out); +} + +asn_enc_rval_t +HNBAP_S_RNTIPrefix_encode_aper(asn_TYPE_descriptor_t *td, + asn_per_constraints_t *constraints, + void *structure, asn_per_outp_t *per_out) { + HNBAP_S_RNTIPrefix_1_inherit_TYPE_descriptor(td); + return td->aper_encoder(td, constraints, structure, per_out); +} + +asn_dec_rval_t +HNBAP_S_RNTIPrefix_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, + asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { + HNBAP_S_RNTIPrefix_1_inherit_TYPE_descriptor(td); + return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); +} + +static asn_per_constraints_t asn_PER_type_HNBAP_S_RNTIPrefix_constr_1 GCC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED | APC_EXTENSIBLE, 4, 4, 1l, 16l } /* (SIZE(1..16,...)) */, + 0, 0 /* No PER value map */ +}; +static const ber_tlv_tag_t asn_DEF_HNBAP_S_RNTIPrefix_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_S_RNTIPrefix = { + "HNBAP_S-RNTIPrefix", + "HNBAP_S-RNTIPrefix", + HNBAP_S_RNTIPrefix_free, + HNBAP_S_RNTIPrefix_print, + HNBAP_S_RNTIPrefix_constraint, + HNBAP_S_RNTIPrefix_decode_ber, + HNBAP_S_RNTIPrefix_encode_der, + HNBAP_S_RNTIPrefix_decode_xer, + HNBAP_S_RNTIPrefix_encode_xer, + HNBAP_S_RNTIPrefix_decode_uper, + HNBAP_S_RNTIPrefix_encode_uper, + HNBAP_S_RNTIPrefix_decode_aper, + HNBAP_S_RNTIPrefix_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_S_RNTIPrefix_tags_1, + sizeof(asn_DEF_HNBAP_S_RNTIPrefix_tags_1) + /sizeof(asn_DEF_HNBAP_S_RNTIPrefix_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_S_RNTIPrefix_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_S_RNTIPrefix_tags_1) + /sizeof(asn_DEF_HNBAP_S_RNTIPrefix_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_S_RNTIPrefix_constr_1, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/src/hnbap/SAC.c b/src/hnbap/HNBAP_SAC.c index f52edb9..0c6fc35 100644 --- a/src/hnbap/SAC.c +++ b/src/hnbap/HNBAP_SAC.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/SAC.h> +#include <osmocom/hnbap/HNBAP_SAC.h> int -SAC_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_SAC_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; size_t size; @@ -38,7 +38,7 @@ SAC_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -SAC_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_SAC_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_OCTET_STRING.free_struct; td->print_struct = asn_DEF_OCTET_STRING.print_struct; td->check_constraints = asn_DEF_OCTET_STRING.check_constraints; @@ -58,109 +58,109 @@ SAC_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -SAC_free(asn_TYPE_descriptor_t *td, +HNBAP_SAC_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - SAC_1_inherit_TYPE_descriptor(td); + HNBAP_SAC_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -SAC_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_SAC_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - SAC_1_inherit_TYPE_descriptor(td); + HNBAP_SAC_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -SAC_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_SAC_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - SAC_1_inherit_TYPE_descriptor(td); + HNBAP_SAC_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -SAC_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_SAC_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - SAC_1_inherit_TYPE_descriptor(td); + HNBAP_SAC_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -SAC_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_SAC_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - SAC_1_inherit_TYPE_descriptor(td); + HNBAP_SAC_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -SAC_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_SAC_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - SAC_1_inherit_TYPE_descriptor(td); + HNBAP_SAC_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -SAC_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_SAC_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - SAC_1_inherit_TYPE_descriptor(td); + HNBAP_SAC_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -SAC_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_SAC_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - SAC_1_inherit_TYPE_descriptor(td); + HNBAP_SAC_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -SAC_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_SAC_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - SAC_1_inherit_TYPE_descriptor(td); + HNBAP_SAC_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -SAC_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_SAC_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - SAC_1_inherit_TYPE_descriptor(td); + HNBAP_SAC_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_SAC_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_SAC_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 0, 0, 2l, 2l } /* (SIZE(2..2)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_SAC_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_SAC_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_SAC = { - "SAC", - "SAC", - SAC_free, - SAC_print, - SAC_constraint, - SAC_decode_ber, - SAC_encode_der, - SAC_decode_xer, - SAC_encode_xer, - SAC_decode_uper, - SAC_encode_uper, - SAC_decode_aper, - SAC_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_SAC = { + "HNBAP_SAC", + "HNBAP_SAC", + HNBAP_SAC_free, + HNBAP_SAC_print, + HNBAP_SAC_constraint, + HNBAP_SAC_decode_ber, + HNBAP_SAC_encode_der, + HNBAP_SAC_decode_xer, + HNBAP_SAC_encode_xer, + HNBAP_SAC_decode_uper, + HNBAP_SAC_encode_uper, + HNBAP_SAC_decode_aper, + HNBAP_SAC_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_SAC_tags_1, - sizeof(asn_DEF_SAC_tags_1) - /sizeof(asn_DEF_SAC_tags_1[0]), /* 1 */ - asn_DEF_SAC_tags_1, /* Same as above */ - sizeof(asn_DEF_SAC_tags_1) - /sizeof(asn_DEF_SAC_tags_1[0]), /* 1 */ - &asn_PER_type_SAC_constr_1, + asn_DEF_HNBAP_SAC_tags_1, + sizeof(asn_DEF_HNBAP_SAC_tags_1) + /sizeof(asn_DEF_HNBAP_SAC_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_SAC_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_SAC_tags_1) + /sizeof(asn_DEF_HNBAP_SAC_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_SAC_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/SuccessfulOutcome.c b/src/hnbap/HNBAP_SuccessfulOutcome.c index 910f5a9..bd3152a 100644 --- a/src/hnbap/SuccessfulOutcome.c +++ b/src/hnbap/HNBAP_SuccessfulOutcome.c @@ -2,31 +2,31 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/SuccessfulOutcome.h> +#include <osmocom/hnbap/HNBAP_SuccessfulOutcome.h> -static asn_TYPE_member_t asn_MBR_SuccessfulOutcome_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct SuccessfulOutcome, procedureCode), +static asn_TYPE_member_t asn_MBR_HNBAP_SuccessfulOutcome_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_SuccessfulOutcome, procedureCode), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_ProcedureCode, + &asn_DEF_HNBAP_ProcedureCode, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "procedureCode" }, - { ATF_NOFLAGS, 0, offsetof(struct SuccessfulOutcome, criticality), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_SuccessfulOutcome, criticality), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_Criticality, + &asn_DEF_HNBAP_Criticality, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "criticality" }, - { ATF_NOFLAGS, 0, offsetof(struct SuccessfulOutcome, value), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_SuccessfulOutcome, value), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ANY, @@ -36,26 +36,26 @@ static asn_TYPE_member_t asn_MBR_SuccessfulOutcome_1[] = { "value" }, }; -static const ber_tlv_tag_t asn_DEF_SuccessfulOutcome_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_SuccessfulOutcome_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_SuccessfulOutcome_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_SuccessfulOutcome_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* procedureCode */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */ }; -static asn_SEQUENCE_specifics_t asn_SPC_SuccessfulOutcome_specs_1 = { - sizeof(struct SuccessfulOutcome), - offsetof(struct SuccessfulOutcome, _asn_ctx), - asn_MAP_SuccessfulOutcome_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_SuccessfulOutcome_specs_1 = { + sizeof(struct HNBAP_SuccessfulOutcome), + offsetof(struct HNBAP_SuccessfulOutcome, _asn_ctx), + asn_MAP_HNBAP_SuccessfulOutcome_tag2el_1, 3, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ -1, /* Start extensions */ -1 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_SuccessfulOutcome = { - "SuccessfulOutcome", - "SuccessfulOutcome", +asn_TYPE_descriptor_t asn_DEF_HNBAP_SuccessfulOutcome = { + "HNBAP_SuccessfulOutcome", + "HNBAP_SuccessfulOutcome", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -68,15 +68,15 @@ asn_TYPE_descriptor_t asn_DEF_SuccessfulOutcome = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_SuccessfulOutcome_tags_1, - sizeof(asn_DEF_SuccessfulOutcome_tags_1) - /sizeof(asn_DEF_SuccessfulOutcome_tags_1[0]), /* 1 */ - asn_DEF_SuccessfulOutcome_tags_1, /* Same as above */ - sizeof(asn_DEF_SuccessfulOutcome_tags_1) - /sizeof(asn_DEF_SuccessfulOutcome_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_SuccessfulOutcome_tags_1, + sizeof(asn_DEF_HNBAP_SuccessfulOutcome_tags_1) + /sizeof(asn_DEF_HNBAP_SuccessfulOutcome_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_SuccessfulOutcome_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_SuccessfulOutcome_tags_1) + /sizeof(asn_DEF_HNBAP_SuccessfulOutcome_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_SuccessfulOutcome_1, + asn_MBR_HNBAP_SuccessfulOutcome_1, 3, /* Elements count */ - &asn_SPC_SuccessfulOutcome_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_SuccessfulOutcome_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/TMSIDS41.c b/src/hnbap/HNBAP_TMSIDS41.c index 3e3c4b3..7f62cb6 100644 --- a/src/hnbap/TMSIDS41.c +++ b/src/hnbap/HNBAP_TMSIDS41.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/TMSIDS41.h> +#include <osmocom/hnbap/HNBAP_TMSIDS41.h> int -TMSIDS41_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_TMSIDS41_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; size_t size; @@ -38,7 +38,7 @@ TMSIDS41_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -TMSIDS41_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_TMSIDS41_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_OCTET_STRING.free_struct; td->print_struct = asn_DEF_OCTET_STRING.print_struct; td->check_constraints = asn_DEF_OCTET_STRING.check_constraints; @@ -58,109 +58,109 @@ TMSIDS41_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -TMSIDS41_free(asn_TYPE_descriptor_t *td, +HNBAP_TMSIDS41_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - TMSIDS41_1_inherit_TYPE_descriptor(td); + HNBAP_TMSIDS41_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -TMSIDS41_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_TMSIDS41_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - TMSIDS41_1_inherit_TYPE_descriptor(td); + HNBAP_TMSIDS41_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -TMSIDS41_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_TMSIDS41_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - TMSIDS41_1_inherit_TYPE_descriptor(td); + HNBAP_TMSIDS41_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -TMSIDS41_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_TMSIDS41_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - TMSIDS41_1_inherit_TYPE_descriptor(td); + HNBAP_TMSIDS41_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -TMSIDS41_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_TMSIDS41_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - TMSIDS41_1_inherit_TYPE_descriptor(td); + HNBAP_TMSIDS41_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -TMSIDS41_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_TMSIDS41_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - TMSIDS41_1_inherit_TYPE_descriptor(td); + HNBAP_TMSIDS41_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -TMSIDS41_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_TMSIDS41_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - TMSIDS41_1_inherit_TYPE_descriptor(td); + HNBAP_TMSIDS41_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -TMSIDS41_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_TMSIDS41_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - TMSIDS41_1_inherit_TYPE_descriptor(td); + HNBAP_TMSIDS41_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -TMSIDS41_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_TMSIDS41_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - TMSIDS41_1_inherit_TYPE_descriptor(td); + HNBAP_TMSIDS41_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -TMSIDS41_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_TMSIDS41_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - TMSIDS41_1_inherit_TYPE_descriptor(td); + HNBAP_TMSIDS41_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_TMSIDS41_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_TMSIDS41_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 4, 4, 2l, 17l } /* (SIZE(2..17)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_TMSIDS41_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_TMSIDS41_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_TMSIDS41 = { - "TMSIDS41", - "TMSIDS41", - TMSIDS41_free, - TMSIDS41_print, - TMSIDS41_constraint, - TMSIDS41_decode_ber, - TMSIDS41_encode_der, - TMSIDS41_decode_xer, - TMSIDS41_encode_xer, - TMSIDS41_decode_uper, - TMSIDS41_encode_uper, - TMSIDS41_decode_aper, - TMSIDS41_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_TMSIDS41 = { + "HNBAP_TMSIDS41", + "HNBAP_TMSIDS41", + HNBAP_TMSIDS41_free, + HNBAP_TMSIDS41_print, + HNBAP_TMSIDS41_constraint, + HNBAP_TMSIDS41_decode_ber, + HNBAP_TMSIDS41_encode_der, + HNBAP_TMSIDS41_decode_xer, + HNBAP_TMSIDS41_encode_xer, + HNBAP_TMSIDS41_decode_uper, + HNBAP_TMSIDS41_encode_uper, + HNBAP_TMSIDS41_decode_aper, + HNBAP_TMSIDS41_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_TMSIDS41_tags_1, - sizeof(asn_DEF_TMSIDS41_tags_1) - /sizeof(asn_DEF_TMSIDS41_tags_1[0]), /* 1 */ - asn_DEF_TMSIDS41_tags_1, /* Same as above */ - sizeof(asn_DEF_TMSIDS41_tags_1) - /sizeof(asn_DEF_TMSIDS41_tags_1[0]), /* 1 */ - &asn_PER_type_TMSIDS41_constr_1, + asn_DEF_HNBAP_TMSIDS41_tags_1, + sizeof(asn_DEF_HNBAP_TMSIDS41_tags_1) + /sizeof(asn_DEF_HNBAP_TMSIDS41_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_TMSIDS41_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_TMSIDS41_tags_1) + /sizeof(asn_DEF_HNBAP_TMSIDS41_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_TMSIDS41_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/TMSILAI.c b/src/hnbap/HNBAP_TMSILAI.c index 83bbe0f..05ea97b 100644 --- a/src/hnbap/TMSILAI.c +++ b/src/hnbap/HNBAP_TMSILAI.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/TMSILAI.h> +#include <osmocom/hnbap/HNBAP_TMSILAI.h> static int memb_tMSI_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, @@ -43,8 +43,8 @@ static asn_per_constraints_t asn_PER_memb_tMSI_constr_2 GCC_NOTUSED = { { APC_CONSTRAINED, 0, 0, 32l, 32l } /* (SIZE(32..32)) */, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_TMSILAI_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TMSILAI, tMSI), +static asn_TYPE_member_t asn_MBR_HNBAP_TMSILAI_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_TMSILAI, tMSI), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_BIT_STRING, @@ -53,35 +53,35 @@ static asn_TYPE_member_t asn_MBR_TMSILAI_1[] = { 0, "tMSI" }, - { ATF_NOFLAGS, 0, offsetof(struct TMSILAI, lAI), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_TMSILAI, lAI), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_LAI, + &asn_DEF_HNBAP_LAI, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "lAI" }, }; -static const ber_tlv_tag_t asn_DEF_TMSILAI_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_TMSILAI_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_TMSILAI_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_TMSILAI_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tMSI */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* lAI */ }; -static asn_SEQUENCE_specifics_t asn_SPC_TMSILAI_specs_1 = { - sizeof(struct TMSILAI), - offsetof(struct TMSILAI, _asn_ctx), - asn_MAP_TMSILAI_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_TMSILAI_specs_1 = { + sizeof(struct HNBAP_TMSILAI), + offsetof(struct HNBAP_TMSILAI, _asn_ctx), + asn_MAP_HNBAP_TMSILAI_tag2el_1, 2, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ -1, /* Start extensions */ -1 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_TMSILAI = { - "TMSILAI", - "TMSILAI", +asn_TYPE_descriptor_t asn_DEF_HNBAP_TMSILAI = { + "HNBAP_TMSILAI", + "HNBAP_TMSILAI", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -94,15 +94,15 @@ asn_TYPE_descriptor_t asn_DEF_TMSILAI = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_TMSILAI_tags_1, - sizeof(asn_DEF_TMSILAI_tags_1) - /sizeof(asn_DEF_TMSILAI_tags_1[0]), /* 1 */ - asn_DEF_TMSILAI_tags_1, /* Same as above */ - sizeof(asn_DEF_TMSILAI_tags_1) - /sizeof(asn_DEF_TMSILAI_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_TMSILAI_tags_1, + sizeof(asn_DEF_HNBAP_TMSILAI_tags_1) + /sizeof(asn_DEF_HNBAP_TMSILAI_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_TMSILAI_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_TMSILAI_tags_1) + /sizeof(asn_DEF_HNBAP_TMSILAI_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_TMSILAI_1, + asn_MBR_HNBAP_TMSILAI_1, 2, /* Elements count */ - &asn_SPC_TMSILAI_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_TMSILAI_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/TNLUpdateFailure.c b/src/hnbap/HNBAP_TNLUpdateFailure.c index 182de3d..86b371f 100644 --- a/src/hnbap/TNLUpdateFailure.c +++ b/src/hnbap/HNBAP_TNLUpdateFailure.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/TNLUpdateFailure.h> +#include <osmocom/hnbap/HNBAP_TNLUpdateFailure.h> static int memb_tnlUpdateFailure_ies_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, @@ -45,9 +45,9 @@ static asn_per_constraints_t asn_PER_memb_tnlUpdateFailure_ies_constr_2 GCC_NOTU }; static asn_TYPE_member_t asn_MBR_tnlUpdateFailure_ies_2[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_IE, + &asn_DEF_HNBAP_IE, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, @@ -59,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_tnlUpdateFailure_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_tnlUpdateFailure_ies_specs_2 = { - sizeof(struct tnlUpdateFailure_ies), - offsetof(struct tnlUpdateFailure_ies, _asn_ctx), + sizeof(struct HNBAP_TNLUpdateFailure__tnlUpdateFailure_ies), + offsetof(struct HNBAP_TNLUpdateFailure__tnlUpdateFailure_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ @@ -91,8 +91,8 @@ asn_TYPE_descriptor_t asn_DEF_tnlUpdateFailure_ies_2 = { &asn_SPC_tnlUpdateFailure_ies_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_TNLUpdateFailure_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TNLUpdateFailure, tnlUpdateFailure_ies), +static asn_TYPE_member_t asn_MBR_HNBAP_TNLUpdateFailure_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_TNLUpdateFailure, tnlUpdateFailure_ies), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_tnlUpdateFailure_ies_2, @@ -102,24 +102,24 @@ static asn_TYPE_member_t asn_MBR_TNLUpdateFailure_1[] = { "tnlUpdateFailure-ies" }, }; -static const ber_tlv_tag_t asn_DEF_TNLUpdateFailure_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_TNLUpdateFailure_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_TNLUpdateFailure_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_TNLUpdateFailure_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* tnlUpdateFailure-ies */ }; -static asn_SEQUENCE_specifics_t asn_SPC_TNLUpdateFailure_specs_1 = { - sizeof(struct TNLUpdateFailure), - offsetof(struct TNLUpdateFailure, _asn_ctx), - asn_MAP_TNLUpdateFailure_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_TNLUpdateFailure_specs_1 = { + sizeof(struct HNBAP_TNLUpdateFailure), + offsetof(struct HNBAP_TNLUpdateFailure, _asn_ctx), + asn_MAP_HNBAP_TNLUpdateFailure_tag2el_1, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 0, /* Start extensions */ 2 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_TNLUpdateFailure = { - "TNLUpdateFailure", - "TNLUpdateFailure", +asn_TYPE_descriptor_t asn_DEF_HNBAP_TNLUpdateFailure = { + "HNBAP_TNLUpdateFailure", + "HNBAP_TNLUpdateFailure", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -132,15 +132,15 @@ asn_TYPE_descriptor_t asn_DEF_TNLUpdateFailure = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_TNLUpdateFailure_tags_1, - sizeof(asn_DEF_TNLUpdateFailure_tags_1) - /sizeof(asn_DEF_TNLUpdateFailure_tags_1[0]), /* 1 */ - asn_DEF_TNLUpdateFailure_tags_1, /* Same as above */ - sizeof(asn_DEF_TNLUpdateFailure_tags_1) - /sizeof(asn_DEF_TNLUpdateFailure_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_TNLUpdateFailure_tags_1, + sizeof(asn_DEF_HNBAP_TNLUpdateFailure_tags_1) + /sizeof(asn_DEF_HNBAP_TNLUpdateFailure_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_TNLUpdateFailure_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_TNLUpdateFailure_tags_1) + /sizeof(asn_DEF_HNBAP_TNLUpdateFailure_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_TNLUpdateFailure_1, + asn_MBR_HNBAP_TNLUpdateFailure_1, 1, /* Elements count */ - &asn_SPC_TNLUpdateFailure_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_TNLUpdateFailure_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/TNLUpdateRequest.c b/src/hnbap/HNBAP_TNLUpdateRequest.c index b5583a6..b0650dd 100644 --- a/src/hnbap/TNLUpdateRequest.c +++ b/src/hnbap/HNBAP_TNLUpdateRequest.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/TNLUpdateRequest.h> +#include <osmocom/hnbap/HNBAP_TNLUpdateRequest.h> static int memb_tnlUpdateRequest_ies_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, @@ -45,9 +45,9 @@ static asn_per_constraints_t asn_PER_memb_tnlUpdateRequest_ies_constr_2 GCC_NOTU }; static asn_TYPE_member_t asn_MBR_tnlUpdateRequest_ies_2[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_IE, + &asn_DEF_HNBAP_IE, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, @@ -59,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_tnlUpdateRequest_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_tnlUpdateRequest_ies_specs_2 = { - sizeof(struct tnlUpdateRequest_ies), - offsetof(struct tnlUpdateRequest_ies, _asn_ctx), + sizeof(struct HNBAP_TNLUpdateRequest__tnlUpdateRequest_ies), + offsetof(struct HNBAP_TNLUpdateRequest__tnlUpdateRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ @@ -91,8 +91,8 @@ asn_TYPE_descriptor_t asn_DEF_tnlUpdateRequest_ies_2 = { &asn_SPC_tnlUpdateRequest_ies_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_TNLUpdateRequest_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TNLUpdateRequest, tnlUpdateRequest_ies), +static asn_TYPE_member_t asn_MBR_HNBAP_TNLUpdateRequest_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_TNLUpdateRequest, tnlUpdateRequest_ies), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_tnlUpdateRequest_ies_2, @@ -102,24 +102,24 @@ static asn_TYPE_member_t asn_MBR_TNLUpdateRequest_1[] = { "tnlUpdateRequest-ies" }, }; -static const ber_tlv_tag_t asn_DEF_TNLUpdateRequest_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_TNLUpdateRequest_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_TNLUpdateRequest_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_TNLUpdateRequest_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* tnlUpdateRequest-ies */ }; -static asn_SEQUENCE_specifics_t asn_SPC_TNLUpdateRequest_specs_1 = { - sizeof(struct TNLUpdateRequest), - offsetof(struct TNLUpdateRequest, _asn_ctx), - asn_MAP_TNLUpdateRequest_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_TNLUpdateRequest_specs_1 = { + sizeof(struct HNBAP_TNLUpdateRequest), + offsetof(struct HNBAP_TNLUpdateRequest, _asn_ctx), + asn_MAP_HNBAP_TNLUpdateRequest_tag2el_1, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 0, /* Start extensions */ 2 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_TNLUpdateRequest = { - "TNLUpdateRequest", - "TNLUpdateRequest", +asn_TYPE_descriptor_t asn_DEF_HNBAP_TNLUpdateRequest = { + "HNBAP_TNLUpdateRequest", + "HNBAP_TNLUpdateRequest", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -132,15 +132,15 @@ asn_TYPE_descriptor_t asn_DEF_TNLUpdateRequest = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_TNLUpdateRequest_tags_1, - sizeof(asn_DEF_TNLUpdateRequest_tags_1) - /sizeof(asn_DEF_TNLUpdateRequest_tags_1[0]), /* 1 */ - asn_DEF_TNLUpdateRequest_tags_1, /* Same as above */ - sizeof(asn_DEF_TNLUpdateRequest_tags_1) - /sizeof(asn_DEF_TNLUpdateRequest_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_TNLUpdateRequest_tags_1, + sizeof(asn_DEF_HNBAP_TNLUpdateRequest_tags_1) + /sizeof(asn_DEF_HNBAP_TNLUpdateRequest_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_TNLUpdateRequest_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_TNLUpdateRequest_tags_1) + /sizeof(asn_DEF_HNBAP_TNLUpdateRequest_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_TNLUpdateRequest_1, + asn_MBR_HNBAP_TNLUpdateRequest_1, 1, /* Elements count */ - &asn_SPC_TNLUpdateRequest_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_TNLUpdateRequest_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/TNLUpdateResponse.c b/src/hnbap/HNBAP_TNLUpdateResponse.c index ade010b..db9affb 100644 --- a/src/hnbap/TNLUpdateResponse.c +++ b/src/hnbap/HNBAP_TNLUpdateResponse.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/TNLUpdateResponse.h> +#include <osmocom/hnbap/HNBAP_TNLUpdateResponse.h> static int memb_tnlUpdateResponse_ies_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, @@ -45,9 +45,9 @@ static asn_per_constraints_t asn_PER_memb_tnlUpdateResponse_ies_constr_2 GCC_NOT }; static asn_TYPE_member_t asn_MBR_tnlUpdateResponse_ies_2[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_IE, + &asn_DEF_HNBAP_IE, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, @@ -59,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_tnlUpdateResponse_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_tnlUpdateResponse_ies_specs_2 = { - sizeof(struct tnlUpdateResponse_ies), - offsetof(struct tnlUpdateResponse_ies, _asn_ctx), + sizeof(struct HNBAP_TNLUpdateResponse__tnlUpdateResponse_ies), + offsetof(struct HNBAP_TNLUpdateResponse__tnlUpdateResponse_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ @@ -91,8 +91,8 @@ asn_TYPE_descriptor_t asn_DEF_tnlUpdateResponse_ies_2 = { &asn_SPC_tnlUpdateResponse_ies_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_TNLUpdateResponse_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TNLUpdateResponse, tnlUpdateResponse_ies), +static asn_TYPE_member_t asn_MBR_HNBAP_TNLUpdateResponse_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_TNLUpdateResponse, tnlUpdateResponse_ies), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_tnlUpdateResponse_ies_2, @@ -102,24 +102,24 @@ static asn_TYPE_member_t asn_MBR_TNLUpdateResponse_1[] = { "tnlUpdateResponse-ies" }, }; -static const ber_tlv_tag_t asn_DEF_TNLUpdateResponse_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_TNLUpdateResponse_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_TNLUpdateResponse_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_TNLUpdateResponse_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* tnlUpdateResponse-ies */ }; -static asn_SEQUENCE_specifics_t asn_SPC_TNLUpdateResponse_specs_1 = { - sizeof(struct TNLUpdateResponse), - offsetof(struct TNLUpdateResponse, _asn_ctx), - asn_MAP_TNLUpdateResponse_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_TNLUpdateResponse_specs_1 = { + sizeof(struct HNBAP_TNLUpdateResponse), + offsetof(struct HNBAP_TNLUpdateResponse, _asn_ctx), + asn_MAP_HNBAP_TNLUpdateResponse_tag2el_1, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 0, /* Start extensions */ 2 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_TNLUpdateResponse = { - "TNLUpdateResponse", - "TNLUpdateResponse", +asn_TYPE_descriptor_t asn_DEF_HNBAP_TNLUpdateResponse = { + "HNBAP_TNLUpdateResponse", + "HNBAP_TNLUpdateResponse", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -132,15 +132,15 @@ asn_TYPE_descriptor_t asn_DEF_TNLUpdateResponse = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_TNLUpdateResponse_tags_1, - sizeof(asn_DEF_TNLUpdateResponse_tags_1) - /sizeof(asn_DEF_TNLUpdateResponse_tags_1[0]), /* 1 */ - asn_DEF_TNLUpdateResponse_tags_1, /* Same as above */ - sizeof(asn_DEF_TNLUpdateResponse_tags_1) - /sizeof(asn_DEF_TNLUpdateResponse_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_TNLUpdateResponse_tags_1, + sizeof(asn_DEF_HNBAP_TNLUpdateResponse_tags_1) + /sizeof(asn_DEF_HNBAP_TNLUpdateResponse_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_TNLUpdateResponse_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_TNLUpdateResponse_tags_1) + /sizeof(asn_DEF_HNBAP_TNLUpdateResponse_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_TNLUpdateResponse_1, + asn_MBR_HNBAP_TNLUpdateResponse_1, 1, /* Elements count */ - &asn_SPC_TNLUpdateResponse_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_TNLUpdateResponse_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/TransportInfo.c b/src/hnbap/HNBAP_TransportInfo.c index ee6ed1c..2162f9b 100644 --- a/src/hnbap/TransportInfo.c +++ b/src/hnbap/HNBAP_TransportInfo.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/TransportInfo.h> +#include <osmocom/hnbap/HNBAP_TransportInfo.h> static asn_per_constraints_t asn_PER_type_transportAssociation_constr_3 GCC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0l, 1l } /* (0..1,...) */, @@ -13,19 +13,19 @@ static asn_per_constraints_t asn_PER_type_transportAssociation_constr_3 GCC_NOTU 0, 0 /* No PER value map */ }; static asn_TYPE_member_t asn_MBR_transportAssociation_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct transportAssociation, choice.gtp_TEI), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_TransportInfo__transportAssociation, choice.gtp_TEI), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_GTP_TEI, + &asn_DEF_HNBAP_GTP_TEI, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "gtp-TEI" }, - { ATF_NOFLAGS, 0, offsetof(struct transportAssociation, choice.bindingID), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_TransportInfo__transportAssociation, choice.bindingID), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_BindingID, + &asn_DEF_HNBAP_BindingID, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, @@ -37,10 +37,10 @@ static const asn_TYPE_tag2member_t asn_MAP_transportAssociation_tag2el_3[] = { { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bindingID */ }; static asn_CHOICE_specifics_t asn_SPC_transportAssociation_specs_3 = { - sizeof(struct transportAssociation), - offsetof(struct transportAssociation, _asn_ctx), - offsetof(struct transportAssociation, present), - sizeof(((struct transportAssociation *)0)->present), + sizeof(struct HNBAP_TransportInfo__transportAssociation), + offsetof(struct HNBAP_TransportInfo__transportAssociation, _asn_ctx), + offsetof(struct HNBAP_TransportInfo__transportAssociation, present), + sizeof(((struct HNBAP_TransportInfo__transportAssociation *)0)->present), asn_MAP_transportAssociation_tag2el_3, 2, /* Count of tags in the map */ 0, @@ -72,17 +72,17 @@ asn_TYPE_descriptor_t asn_DEF_transportAssociation_3 = { &asn_SPC_transportAssociation_specs_3 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_TransportInfo_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct TransportInfo, transportLayerAddress), +static asn_TYPE_member_t asn_MBR_HNBAP_TransportInfo_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_TransportInfo, transportLayerAddress), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_TransportLayerAddress, + &asn_DEF_HNBAP_TransportLayerAddress, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "transportLayerAddress" }, - { ATF_NOFLAGS, 0, offsetof(struct TransportInfo, transportAssociation), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_TransportInfo, transportAssociation), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_transportAssociation_3, @@ -91,38 +91,38 @@ static asn_TYPE_member_t asn_MBR_TransportInfo_1[] = { 0, "transportAssociation" }, - { ATF_POINTER, 1, offsetof(struct TransportInfo, iE_Extensions), + { ATF_POINTER, 1, offsetof(struct HNBAP_TransportInfo, iE_Extensions), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_IE_Extensions, + &asn_DEF_HNBAP_IE_Extensions, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "iE-Extensions" }, }; -static const int asn_MAP_TransportInfo_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_TransportInfo_tags_1[] = { +static const int asn_MAP_HNBAP_TransportInfo_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_HNBAP_TransportInfo_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_TransportInfo_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_TransportInfo_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* transportLayerAddress */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* transportAssociation */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ }; -static asn_SEQUENCE_specifics_t asn_SPC_TransportInfo_specs_1 = { - sizeof(struct TransportInfo), - offsetof(struct TransportInfo, _asn_ctx), - asn_MAP_TransportInfo_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_TransportInfo_specs_1 = { + sizeof(struct HNBAP_TransportInfo), + offsetof(struct HNBAP_TransportInfo, _asn_ctx), + asn_MAP_HNBAP_TransportInfo_tag2el_1, 3, /* Count of tags in the map */ - asn_MAP_TransportInfo_oms_1, /* Optional members */ + asn_MAP_HNBAP_TransportInfo_oms_1, /* Optional members */ 1, 0, /* Root/Additions */ 2, /* Start extensions */ 4 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_TransportInfo = { - "TransportInfo", - "TransportInfo", +asn_TYPE_descriptor_t asn_DEF_HNBAP_TransportInfo = { + "HNBAP_TransportInfo", + "HNBAP_TransportInfo", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -135,15 +135,15 @@ asn_TYPE_descriptor_t asn_DEF_TransportInfo = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_TransportInfo_tags_1, - sizeof(asn_DEF_TransportInfo_tags_1) - /sizeof(asn_DEF_TransportInfo_tags_1[0]), /* 1 */ - asn_DEF_TransportInfo_tags_1, /* Same as above */ - sizeof(asn_DEF_TransportInfo_tags_1) - /sizeof(asn_DEF_TransportInfo_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_TransportInfo_tags_1, + sizeof(asn_DEF_HNBAP_TransportInfo_tags_1) + /sizeof(asn_DEF_HNBAP_TransportInfo_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_TransportInfo_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_TransportInfo_tags_1) + /sizeof(asn_DEF_HNBAP_TransportInfo_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_TransportInfo_1, + asn_MBR_HNBAP_TransportInfo_1, 3, /* Elements count */ - &asn_SPC_TransportInfo_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_TransportInfo_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/TransportLayerAddress.c b/src/hnbap/HNBAP_TransportLayerAddress.c index 49de644..f324e55 100644 --- a/src/hnbap/TransportLayerAddress.c +++ b/src/hnbap/HNBAP_TransportLayerAddress.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/TransportLayerAddress.h> +#include <osmocom/hnbap/HNBAP_TransportLayerAddress.h> int -TransportLayerAddress_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_TransportLayerAddress_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; size_t size; @@ -43,7 +43,7 @@ TransportLayerAddress_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -TransportLayerAddress_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_TransportLayerAddress_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_BIT_STRING.free_struct; td->print_struct = asn_DEF_BIT_STRING.print_struct; td->check_constraints = asn_DEF_BIT_STRING.check_constraints; @@ -63,109 +63,109 @@ TransportLayerAddress_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -TransportLayerAddress_free(asn_TYPE_descriptor_t *td, +HNBAP_TransportLayerAddress_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - TransportLayerAddress_1_inherit_TYPE_descriptor(td); + HNBAP_TransportLayerAddress_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -TransportLayerAddress_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_TransportLayerAddress_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - TransportLayerAddress_1_inherit_TYPE_descriptor(td); + HNBAP_TransportLayerAddress_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -TransportLayerAddress_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_TransportLayerAddress_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - TransportLayerAddress_1_inherit_TYPE_descriptor(td); + HNBAP_TransportLayerAddress_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -TransportLayerAddress_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_TransportLayerAddress_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - TransportLayerAddress_1_inherit_TYPE_descriptor(td); + HNBAP_TransportLayerAddress_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -TransportLayerAddress_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_TransportLayerAddress_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - TransportLayerAddress_1_inherit_TYPE_descriptor(td); + HNBAP_TransportLayerAddress_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -TransportLayerAddress_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_TransportLayerAddress_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - TransportLayerAddress_1_inherit_TYPE_descriptor(td); + HNBAP_TransportLayerAddress_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -TransportLayerAddress_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_TransportLayerAddress_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - TransportLayerAddress_1_inherit_TYPE_descriptor(td); + HNBAP_TransportLayerAddress_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -TransportLayerAddress_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_TransportLayerAddress_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - TransportLayerAddress_1_inherit_TYPE_descriptor(td); + HNBAP_TransportLayerAddress_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -TransportLayerAddress_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_TransportLayerAddress_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - TransportLayerAddress_1_inherit_TYPE_descriptor(td); + HNBAP_TransportLayerAddress_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -TransportLayerAddress_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_TransportLayerAddress_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - TransportLayerAddress_1_inherit_TYPE_descriptor(td); + HNBAP_TransportLayerAddress_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_TransportLayerAddress_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_TransportLayerAddress_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED | APC_EXTENSIBLE, 8, 8, 1l, 160l } /* (SIZE(1..160,...)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_TransportLayerAddress_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_TransportLayerAddress_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_TransportLayerAddress = { - "TransportLayerAddress", - "TransportLayerAddress", - TransportLayerAddress_free, - TransportLayerAddress_print, - TransportLayerAddress_constraint, - TransportLayerAddress_decode_ber, - TransportLayerAddress_encode_der, - TransportLayerAddress_decode_xer, - TransportLayerAddress_encode_xer, - TransportLayerAddress_decode_uper, - TransportLayerAddress_encode_uper, - TransportLayerAddress_decode_aper, - TransportLayerAddress_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_TransportLayerAddress = { + "HNBAP_TransportLayerAddress", + "HNBAP_TransportLayerAddress", + HNBAP_TransportLayerAddress_free, + HNBAP_TransportLayerAddress_print, + HNBAP_TransportLayerAddress_constraint, + HNBAP_TransportLayerAddress_decode_ber, + HNBAP_TransportLayerAddress_encode_der, + HNBAP_TransportLayerAddress_decode_xer, + HNBAP_TransportLayerAddress_encode_xer, + HNBAP_TransportLayerAddress_decode_uper, + HNBAP_TransportLayerAddress_encode_uper, + HNBAP_TransportLayerAddress_decode_aper, + HNBAP_TransportLayerAddress_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_TransportLayerAddress_tags_1, - sizeof(asn_DEF_TransportLayerAddress_tags_1) - /sizeof(asn_DEF_TransportLayerAddress_tags_1[0]), /* 1 */ - asn_DEF_TransportLayerAddress_tags_1, /* Same as above */ - sizeof(asn_DEF_TransportLayerAddress_tags_1) - /sizeof(asn_DEF_TransportLayerAddress_tags_1[0]), /* 1 */ - &asn_PER_type_TransportLayerAddress_constr_1, + asn_DEF_HNBAP_TransportLayerAddress_tags_1, + sizeof(asn_DEF_HNBAP_TransportLayerAddress_tags_1) + /sizeof(asn_DEF_HNBAP_TransportLayerAddress_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_TransportLayerAddress_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_TransportLayerAddress_tags_1) + /sizeof(asn_DEF_HNBAP_TransportLayerAddress_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_TransportLayerAddress_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/Criticality.c b/src/hnbap/HNBAP_TriggeringMessage.c index 5aacb69..d851a6c 100644 --- a/src/hnbap/Criticality.c +++ b/src/hnbap/HNBAP_TriggeringMessage.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-CommonDataTypes" * found in "../../asn1/hnbap/HNBAP-CommonDataTypes.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/Criticality.h> +#include <osmocom/hnbap/HNBAP_TriggeringMessage.h> int -Criticality_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_TriggeringMessage_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { /* Replace with underlying type checker */ td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -20,7 +20,7 @@ Criticality_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -Criticality_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_TriggeringMessage_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeEnumerated.free_struct; td->print_struct = asn_DEF_NativeEnumerated.print_struct; td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -40,129 +40,129 @@ Criticality_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -Criticality_free(asn_TYPE_descriptor_t *td, +HNBAP_TriggeringMessage_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - Criticality_1_inherit_TYPE_descriptor(td); + HNBAP_TriggeringMessage_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -Criticality_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_TriggeringMessage_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - Criticality_1_inherit_TYPE_descriptor(td); + HNBAP_TriggeringMessage_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -Criticality_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_TriggeringMessage_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - Criticality_1_inherit_TYPE_descriptor(td); + HNBAP_TriggeringMessage_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -Criticality_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_TriggeringMessage_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - Criticality_1_inherit_TYPE_descriptor(td); + HNBAP_TriggeringMessage_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -Criticality_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_TriggeringMessage_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - Criticality_1_inherit_TYPE_descriptor(td); + HNBAP_TriggeringMessage_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -Criticality_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_TriggeringMessage_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - Criticality_1_inherit_TYPE_descriptor(td); + HNBAP_TriggeringMessage_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -Criticality_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_TriggeringMessage_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - Criticality_1_inherit_TYPE_descriptor(td); + HNBAP_TriggeringMessage_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -Criticality_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_TriggeringMessage_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - Criticality_1_inherit_TYPE_descriptor(td); + HNBAP_TriggeringMessage_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -Criticality_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_TriggeringMessage_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - Criticality_1_inherit_TYPE_descriptor(td); + HNBAP_TriggeringMessage_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -Criticality_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_TriggeringMessage_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - Criticality_1_inherit_TYPE_descriptor(td); + HNBAP_TriggeringMessage_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_Criticality_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_TriggeringMessage_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED, 2, 2, 0l, 2l } /* (0..2) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const asn_INTEGER_enum_map_t asn_MAP_Criticality_value2enum_1[] = { - { 0, 6, "reject" }, - { 1, 6, "ignore" }, - { 2, 6, "notify" } +static const asn_INTEGER_enum_map_t asn_MAP_HNBAP_TriggeringMessage_value2enum_1[] = { + { 0, 18, "initiating-message" }, + { 1, 18, "successful-outcome" }, + { 2, 20, "unsuccessful-outcome" } }; -static const unsigned int asn_MAP_Criticality_enum2value_1[] = { - 1, /* ignore(1) */ - 2, /* notify(2) */ - 0 /* reject(0) */ +static const unsigned int asn_MAP_HNBAP_TriggeringMessage_enum2value_1[] = { + 0, /* initiating-message(0) */ + 1, /* successful-outcome(1) */ + 2 /* unsuccessful-outcome(2) */ }; -static const asn_INTEGER_specifics_t asn_SPC_Criticality_specs_1 = { - asn_MAP_Criticality_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_Criticality_enum2value_1, /* N => "tag"; sorted by N */ +static const asn_INTEGER_specifics_t asn_SPC_HNBAP_TriggeringMessage_specs_1 = { + asn_MAP_HNBAP_TriggeringMessage_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_HNBAP_TriggeringMessage_enum2value_1, /* N => "tag"; sorted by N */ 3, /* Number of elements in the maps */ 0, /* Enumeration is not extensible */ 1, /* Strict enumeration */ 0, /* Native long size */ 0 }; -static const ber_tlv_tag_t asn_DEF_Criticality_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_TriggeringMessage_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_Criticality = { - "Criticality", - "Criticality", - Criticality_free, - Criticality_print, - Criticality_constraint, - Criticality_decode_ber, - Criticality_encode_der, - Criticality_decode_xer, - Criticality_encode_xer, - Criticality_decode_uper, - Criticality_encode_uper, - Criticality_decode_aper, - Criticality_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_TriggeringMessage = { + "HNBAP_TriggeringMessage", + "HNBAP_TriggeringMessage", + HNBAP_TriggeringMessage_free, + HNBAP_TriggeringMessage_print, + HNBAP_TriggeringMessage_constraint, + HNBAP_TriggeringMessage_decode_ber, + HNBAP_TriggeringMessage_encode_der, + HNBAP_TriggeringMessage_decode_xer, + HNBAP_TriggeringMessage_encode_xer, + HNBAP_TriggeringMessage_decode_uper, + HNBAP_TriggeringMessage_encode_uper, + HNBAP_TriggeringMessage_decode_aper, + HNBAP_TriggeringMessage_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_Criticality_tags_1, - sizeof(asn_DEF_Criticality_tags_1) - /sizeof(asn_DEF_Criticality_tags_1[0]), /* 1 */ - asn_DEF_Criticality_tags_1, /* Same as above */ - sizeof(asn_DEF_Criticality_tags_1) - /sizeof(asn_DEF_Criticality_tags_1[0]), /* 1 */ - &asn_PER_type_Criticality_constr_1, + asn_DEF_HNBAP_TriggeringMessage_tags_1, + sizeof(asn_DEF_HNBAP_TriggeringMessage_tags_1) + /sizeof(asn_DEF_HNBAP_TriggeringMessage_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_TriggeringMessage_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_TriggeringMessage_tags_1) + /sizeof(asn_DEF_HNBAP_TriggeringMessage_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_TriggeringMessage_constr_1, 0, 0, /* Defined elsewhere */ - &asn_SPC_Criticality_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_TriggeringMessage_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/HNBAP_Tunnel-Information.c b/src/hnbap/HNBAP_Tunnel-Information.c new file mode 100644 index 0000000..5429d9e --- /dev/null +++ b/src/hnbap/HNBAP_Tunnel-Information.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_Tunnel-Information.h> + +static asn_TYPE_member_t asn_MBR_HNBAP_Tunnel_Information_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_Tunnel_Information, iP_Address), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_IP_Address, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iP-Address" + }, + { ATF_POINTER, 2, offsetof(struct HNBAP_Tunnel_Information, uDP_Port_Number), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_UDP_Port_Number, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "uDP-Port-Number" + }, + { ATF_POINTER, 1, offsetof(struct HNBAP_Tunnel_Information, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_HNBAP_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_HNBAP_Tunnel_Information_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_HNBAP_Tunnel_Information_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_Tunnel_Information_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* iP-Address */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* uDP-Port-Number */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_Tunnel_Information_specs_1 = { + sizeof(struct HNBAP_Tunnel_Information), + offsetof(struct HNBAP_Tunnel_Information, _asn_ctx), + asn_MAP_HNBAP_Tunnel_Information_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_HNBAP_Tunnel_Information_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* Start extensions */ + 4 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_Tunnel_Information = { + "HNBAP_Tunnel-Information", + "HNBAP_Tunnel-Information", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_Tunnel_Information_tags_1, + sizeof(asn_DEF_HNBAP_Tunnel_Information_tags_1) + /sizeof(asn_DEF_HNBAP_Tunnel_Information_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_Tunnel_Information_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_Tunnel_Information_tags_1) + /sizeof(asn_DEF_HNBAP_Tunnel_Information_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_HNBAP_Tunnel_Information_1, + 3, /* Elements count */ + &asn_SPC_HNBAP_Tunnel_Information_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/TypeOfError.c b/src/hnbap/HNBAP_TypeOfError.c index 8c234f3..53dccc3 100644 --- a/src/hnbap/TypeOfError.c +++ b/src/hnbap/HNBAP_TypeOfError.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/TypeOfError.h> +#include <osmocom/hnbap/HNBAP_TypeOfError.h> int -TypeOfError_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_TypeOfError_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { /* Replace with underlying type checker */ td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -20,7 +20,7 @@ TypeOfError_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -TypeOfError_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_TypeOfError_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeEnumerated.free_struct; td->print_struct = asn_DEF_NativeEnumerated.print_struct; td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -40,129 +40,129 @@ TypeOfError_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -TypeOfError_free(asn_TYPE_descriptor_t *td, +HNBAP_TypeOfError_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - TypeOfError_1_inherit_TYPE_descriptor(td); + HNBAP_TypeOfError_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -TypeOfError_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_TypeOfError_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - TypeOfError_1_inherit_TYPE_descriptor(td); + HNBAP_TypeOfError_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -TypeOfError_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_TypeOfError_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - TypeOfError_1_inherit_TYPE_descriptor(td); + HNBAP_TypeOfError_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -TypeOfError_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_TypeOfError_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - TypeOfError_1_inherit_TYPE_descriptor(td); + HNBAP_TypeOfError_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -TypeOfError_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_TypeOfError_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - TypeOfError_1_inherit_TYPE_descriptor(td); + HNBAP_TypeOfError_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -TypeOfError_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_TypeOfError_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - TypeOfError_1_inherit_TYPE_descriptor(td); + HNBAP_TypeOfError_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -TypeOfError_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_TypeOfError_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - TypeOfError_1_inherit_TYPE_descriptor(td); + HNBAP_TypeOfError_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -TypeOfError_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_TypeOfError_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - TypeOfError_1_inherit_TYPE_descriptor(td); + HNBAP_TypeOfError_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -TypeOfError_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_TypeOfError_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - TypeOfError_1_inherit_TYPE_descriptor(td); + HNBAP_TypeOfError_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -TypeOfError_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_TypeOfError_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - TypeOfError_1_inherit_TYPE_descriptor(td); + HNBAP_TypeOfError_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_TypeOfError_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_TypeOfError_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0l, 1l } /* (0..1,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const asn_INTEGER_enum_map_t asn_MAP_TypeOfError_value2enum_1[] = { +static const asn_INTEGER_enum_map_t asn_MAP_HNBAP_TypeOfError_value2enum_1[] = { { 0, 14, "not-understood" }, { 1, 7, "missing" } /* This list is extensible */ }; -static const unsigned int asn_MAP_TypeOfError_enum2value_1[] = { +static const unsigned int asn_MAP_HNBAP_TypeOfError_enum2value_1[] = { 1, /* missing(1) */ 0 /* not-understood(0) */ /* This list is extensible */ }; -static const asn_INTEGER_specifics_t asn_SPC_TypeOfError_specs_1 = { - asn_MAP_TypeOfError_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_TypeOfError_enum2value_1, /* N => "tag"; sorted by N */ +static const asn_INTEGER_specifics_t asn_SPC_HNBAP_TypeOfError_specs_1 = { + asn_MAP_HNBAP_TypeOfError_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_HNBAP_TypeOfError_enum2value_1, /* N => "tag"; sorted by N */ 2, /* Number of elements in the maps */ 3, /* Extensions before this member */ 1, /* Strict enumeration */ 0, /* Native long size */ 0 }; -static const ber_tlv_tag_t asn_DEF_TypeOfError_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_TypeOfError_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_TypeOfError = { - "TypeOfError", - "TypeOfError", - TypeOfError_free, - TypeOfError_print, - TypeOfError_constraint, - TypeOfError_decode_ber, - TypeOfError_encode_der, - TypeOfError_decode_xer, - TypeOfError_encode_xer, - TypeOfError_decode_uper, - TypeOfError_encode_uper, - TypeOfError_decode_aper, - TypeOfError_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_TypeOfError = { + "HNBAP_TypeOfError", + "HNBAP_TypeOfError", + HNBAP_TypeOfError_free, + HNBAP_TypeOfError_print, + HNBAP_TypeOfError_constraint, + HNBAP_TypeOfError_decode_ber, + HNBAP_TypeOfError_encode_der, + HNBAP_TypeOfError_decode_xer, + HNBAP_TypeOfError_encode_xer, + HNBAP_TypeOfError_decode_uper, + HNBAP_TypeOfError_encode_uper, + HNBAP_TypeOfError_decode_aper, + HNBAP_TypeOfError_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_TypeOfError_tags_1, - sizeof(asn_DEF_TypeOfError_tags_1) - /sizeof(asn_DEF_TypeOfError_tags_1[0]), /* 1 */ - asn_DEF_TypeOfError_tags_1, /* Same as above */ - sizeof(asn_DEF_TypeOfError_tags_1) - /sizeof(asn_DEF_TypeOfError_tags_1[0]), /* 1 */ - &asn_PER_type_TypeOfError_constr_1, + asn_DEF_HNBAP_TypeOfError_tags_1, + sizeof(asn_DEF_HNBAP_TypeOfError_tags_1) + /sizeof(asn_DEF_HNBAP_TypeOfError_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_TypeOfError_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_TypeOfError_tags_1) + /sizeof(asn_DEF_HNBAP_TypeOfError_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_TypeOfError_constr_1, 0, 0, /* Defined elsewhere */ - &asn_SPC_TypeOfError_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_TypeOfError_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/ESN.c b/src/hnbap/HNBAP_U-RNTI.c index 1f04d0c..bb10ac7 100644 --- a/src/hnbap/ESN.c +++ b/src/hnbap/HNBAP_U-RNTI.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/ESN.h> +#include <osmocom/hnbap/HNBAP_U-RNTI.h> int -ESN_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_U_RNTI_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; size_t size; @@ -43,7 +43,7 @@ ESN_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -ESN_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_U_RNTI_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_BIT_STRING.free_struct; td->print_struct = asn_DEF_BIT_STRING.print_struct; td->check_constraints = asn_DEF_BIT_STRING.check_constraints; @@ -63,109 +63,109 @@ ESN_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -ESN_free(asn_TYPE_descriptor_t *td, +HNBAP_U_RNTI_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - ESN_1_inherit_TYPE_descriptor(td); + HNBAP_U_RNTI_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -ESN_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_U_RNTI_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - ESN_1_inherit_TYPE_descriptor(td); + HNBAP_U_RNTI_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -ESN_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_U_RNTI_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - ESN_1_inherit_TYPE_descriptor(td); + HNBAP_U_RNTI_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -ESN_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_U_RNTI_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - ESN_1_inherit_TYPE_descriptor(td); + HNBAP_U_RNTI_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -ESN_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_U_RNTI_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - ESN_1_inherit_TYPE_descriptor(td); + HNBAP_U_RNTI_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -ESN_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_U_RNTI_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - ESN_1_inherit_TYPE_descriptor(td); + HNBAP_U_RNTI_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -ESN_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_U_RNTI_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - ESN_1_inherit_TYPE_descriptor(td); + HNBAP_U_RNTI_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -ESN_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_U_RNTI_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - ESN_1_inherit_TYPE_descriptor(td); + HNBAP_U_RNTI_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -ESN_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_U_RNTI_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - ESN_1_inherit_TYPE_descriptor(td); + HNBAP_U_RNTI_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -ESN_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_U_RNTI_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - ESN_1_inherit_TYPE_descriptor(td); + HNBAP_U_RNTI_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_ESN_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_U_RNTI_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 0, 0, 32l, 32l } /* (SIZE(32..32)) */, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_ESN_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_U_RNTI_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_ESN = { - "ESN", - "ESN", - ESN_free, - ESN_print, - ESN_constraint, - ESN_decode_ber, - ESN_encode_der, - ESN_decode_xer, - ESN_encode_xer, - ESN_decode_uper, - ESN_encode_uper, - ESN_decode_aper, - ESN_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_U_RNTI = { + "HNBAP_U-RNTI", + "HNBAP_U-RNTI", + HNBAP_U_RNTI_free, + HNBAP_U_RNTI_print, + HNBAP_U_RNTI_constraint, + HNBAP_U_RNTI_decode_ber, + HNBAP_U_RNTI_encode_der, + HNBAP_U_RNTI_decode_xer, + HNBAP_U_RNTI_encode_xer, + HNBAP_U_RNTI_decode_uper, + HNBAP_U_RNTI_encode_uper, + HNBAP_U_RNTI_decode_aper, + HNBAP_U_RNTI_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_ESN_tags_1, - sizeof(asn_DEF_ESN_tags_1) - /sizeof(asn_DEF_ESN_tags_1[0]), /* 1 */ - asn_DEF_ESN_tags_1, /* Same as above */ - sizeof(asn_DEF_ESN_tags_1) - /sizeof(asn_DEF_ESN_tags_1[0]), /* 1 */ - &asn_PER_type_ESN_constr_1, + asn_DEF_HNBAP_U_RNTI_tags_1, + sizeof(asn_DEF_HNBAP_U_RNTI_tags_1) + /sizeof(asn_DEF_HNBAP_U_RNTI_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_U_RNTI_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_U_RNTI_tags_1) + /sizeof(asn_DEF_HNBAP_U_RNTI_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_U_RNTI_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/U-RNTIQueryRequest.c b/src/hnbap/HNBAP_U-RNTIQueryRequest.c index f103d24..cea48cb 100644 --- a/src/hnbap/U-RNTIQueryRequest.c +++ b/src/hnbap/HNBAP_U-RNTIQueryRequest.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/U-RNTIQueryRequest.h> +#include <osmocom/hnbap/HNBAP_U-RNTIQueryRequest.h> static int memb_u_RNTIQueryRequest_ies_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, @@ -45,9 +45,9 @@ static asn_per_constraints_t asn_PER_memb_u_RNTIQueryRequest_ies_constr_2 GCC_NO }; static asn_TYPE_member_t asn_MBR_u_RNTIQueryRequest_ies_2[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_IE, + &asn_DEF_HNBAP_IE, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, @@ -59,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_u_RNTIQueryRequest_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_u_RNTIQueryRequest_ies_specs_2 = { - sizeof(struct u_RNTIQueryRequest_ies), - offsetof(struct u_RNTIQueryRequest_ies, _asn_ctx), + sizeof(struct HNBAP_U_RNTIQueryRequest__u_RNTIQueryRequest_ies), + offsetof(struct HNBAP_U_RNTIQueryRequest__u_RNTIQueryRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ @@ -91,8 +91,8 @@ asn_TYPE_descriptor_t asn_DEF_u_RNTIQueryRequest_ies_2 = { &asn_SPC_u_RNTIQueryRequest_ies_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_U_RNTIQueryRequest_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct U_RNTIQueryRequest, u_RNTIQueryRequest_ies), +static asn_TYPE_member_t asn_MBR_HNBAP_U_RNTIQueryRequest_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_U_RNTIQueryRequest, u_RNTIQueryRequest_ies), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_u_RNTIQueryRequest_ies_2, @@ -102,24 +102,24 @@ static asn_TYPE_member_t asn_MBR_U_RNTIQueryRequest_1[] = { "u-RNTIQueryRequest-ies" }, }; -static const ber_tlv_tag_t asn_DEF_U_RNTIQueryRequest_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_U_RNTIQueryRequest_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_U_RNTIQueryRequest_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_U_RNTIQueryRequest_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* u-RNTIQueryRequest-ies */ }; -static asn_SEQUENCE_specifics_t asn_SPC_U_RNTIQueryRequest_specs_1 = { - sizeof(struct U_RNTIQueryRequest), - offsetof(struct U_RNTIQueryRequest, _asn_ctx), - asn_MAP_U_RNTIQueryRequest_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_U_RNTIQueryRequest_specs_1 = { + sizeof(struct HNBAP_U_RNTIQueryRequest), + offsetof(struct HNBAP_U_RNTIQueryRequest, _asn_ctx), + asn_MAP_HNBAP_U_RNTIQueryRequest_tag2el_1, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 0, /* Start extensions */ 2 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_U_RNTIQueryRequest = { - "U-RNTIQueryRequest", - "U-RNTIQueryRequest", +asn_TYPE_descriptor_t asn_DEF_HNBAP_U_RNTIQueryRequest = { + "HNBAP_U-RNTIQueryRequest", + "HNBAP_U-RNTIQueryRequest", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -132,15 +132,15 @@ asn_TYPE_descriptor_t asn_DEF_U_RNTIQueryRequest = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_U_RNTIQueryRequest_tags_1, - sizeof(asn_DEF_U_RNTIQueryRequest_tags_1) - /sizeof(asn_DEF_U_RNTIQueryRequest_tags_1[0]), /* 1 */ - asn_DEF_U_RNTIQueryRequest_tags_1, /* Same as above */ - sizeof(asn_DEF_U_RNTIQueryRequest_tags_1) - /sizeof(asn_DEF_U_RNTIQueryRequest_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_U_RNTIQueryRequest_tags_1, + sizeof(asn_DEF_HNBAP_U_RNTIQueryRequest_tags_1) + /sizeof(asn_DEF_HNBAP_U_RNTIQueryRequest_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_U_RNTIQueryRequest_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_U_RNTIQueryRequest_tags_1) + /sizeof(asn_DEF_HNBAP_U_RNTIQueryRequest_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_U_RNTIQueryRequest_1, + asn_MBR_HNBAP_U_RNTIQueryRequest_1, 1, /* Elements count */ - &asn_SPC_U_RNTIQueryRequest_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_U_RNTIQueryRequest_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/U-RNTIQueryResponse.c b/src/hnbap/HNBAP_U-RNTIQueryResponse.c index 121551d..98b9bef 100644 --- a/src/hnbap/U-RNTIQueryResponse.c +++ b/src/hnbap/HNBAP_U-RNTIQueryResponse.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/U-RNTIQueryResponse.h> +#include <osmocom/hnbap/HNBAP_U-RNTIQueryResponse.h> static int memb_u_RNTIQueryResponse_ies_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, @@ -45,9 +45,9 @@ static asn_per_constraints_t asn_PER_memb_u_RNTIQueryResponse_ies_constr_2 GCC_N }; static asn_TYPE_member_t asn_MBR_u_RNTIQueryResponse_ies_2[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_IE, + &asn_DEF_HNBAP_IE, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, @@ -59,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_u_RNTIQueryResponse_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_u_RNTIQueryResponse_ies_specs_2 = { - sizeof(struct u_RNTIQueryResponse_ies), - offsetof(struct u_RNTIQueryResponse_ies, _asn_ctx), + sizeof(struct HNBAP_U_RNTIQueryResponse__u_RNTIQueryResponse_ies), + offsetof(struct HNBAP_U_RNTIQueryResponse__u_RNTIQueryResponse_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ @@ -91,8 +91,8 @@ asn_TYPE_descriptor_t asn_DEF_u_RNTIQueryResponse_ies_2 = { &asn_SPC_u_RNTIQueryResponse_ies_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_U_RNTIQueryResponse_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct U_RNTIQueryResponse, u_RNTIQueryResponse_ies), +static asn_TYPE_member_t asn_MBR_HNBAP_U_RNTIQueryResponse_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_U_RNTIQueryResponse, u_RNTIQueryResponse_ies), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_u_RNTIQueryResponse_ies_2, @@ -102,24 +102,24 @@ static asn_TYPE_member_t asn_MBR_U_RNTIQueryResponse_1[] = { "u-RNTIQueryResponse-ies" }, }; -static const ber_tlv_tag_t asn_DEF_U_RNTIQueryResponse_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_U_RNTIQueryResponse_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_U_RNTIQueryResponse_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_U_RNTIQueryResponse_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* u-RNTIQueryResponse-ies */ }; -static asn_SEQUENCE_specifics_t asn_SPC_U_RNTIQueryResponse_specs_1 = { - sizeof(struct U_RNTIQueryResponse), - offsetof(struct U_RNTIQueryResponse, _asn_ctx), - asn_MAP_U_RNTIQueryResponse_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_U_RNTIQueryResponse_specs_1 = { + sizeof(struct HNBAP_U_RNTIQueryResponse), + offsetof(struct HNBAP_U_RNTIQueryResponse, _asn_ctx), + asn_MAP_HNBAP_U_RNTIQueryResponse_tag2el_1, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 0, /* Start extensions */ 2 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_U_RNTIQueryResponse = { - "U-RNTIQueryResponse", - "U-RNTIQueryResponse", +asn_TYPE_descriptor_t asn_DEF_HNBAP_U_RNTIQueryResponse = { + "HNBAP_U-RNTIQueryResponse", + "HNBAP_U-RNTIQueryResponse", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -132,15 +132,15 @@ asn_TYPE_descriptor_t asn_DEF_U_RNTIQueryResponse = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_U_RNTIQueryResponse_tags_1, - sizeof(asn_DEF_U_RNTIQueryResponse_tags_1) - /sizeof(asn_DEF_U_RNTIQueryResponse_tags_1[0]), /* 1 */ - asn_DEF_U_RNTIQueryResponse_tags_1, /* Same as above */ - sizeof(asn_DEF_U_RNTIQueryResponse_tags_1) - /sizeof(asn_DEF_U_RNTIQueryResponse_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_U_RNTIQueryResponse_tags_1, + sizeof(asn_DEF_HNBAP_U_RNTIQueryResponse_tags_1) + /sizeof(asn_DEF_HNBAP_U_RNTIQueryResponse_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_U_RNTIQueryResponse_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_U_RNTIQueryResponse_tags_1) + /sizeof(asn_DEF_HNBAP_U_RNTIQueryResponse_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_U_RNTIQueryResponse_1, + asn_MBR_HNBAP_U_RNTIQueryResponse_1, 1, /* Elements count */ - &asn_SPC_U_RNTIQueryResponse_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_U_RNTIQueryResponse_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/HNBAP_UDP-Port-Number.c b/src/hnbap/HNBAP_UDP-Port-Number.c new file mode 100644 index 0000000..ccfea53 --- /dev/null +++ b/src/hnbap/HNBAP_UDP-Port-Number.c @@ -0,0 +1,167 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_UDP-Port-Number.h> + +int +HNBAP_UDP_Port_Number_constraint(asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; + size_t size; + + if(!sptr) { + _ASN_CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + size = st->size; + + if((size == 2l)) { + /* Constraint check succeeded */ + return 0; + } else { + _ASN_CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +/* + * This type is implemented using OCTET_STRING, + * so here we adjust the DEF accordingly. + */ +static void +HNBAP_UDP_Port_Number_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { + td->free_struct = asn_DEF_OCTET_STRING.free_struct; + td->print_struct = asn_DEF_OCTET_STRING.print_struct; + td->check_constraints = asn_DEF_OCTET_STRING.check_constraints; + td->ber_decoder = asn_DEF_OCTET_STRING.ber_decoder; + td->der_encoder = asn_DEF_OCTET_STRING.der_encoder; + td->xer_decoder = asn_DEF_OCTET_STRING.xer_decoder; + td->xer_encoder = asn_DEF_OCTET_STRING.xer_encoder; + td->uper_decoder = asn_DEF_OCTET_STRING.uper_decoder; + td->uper_encoder = asn_DEF_OCTET_STRING.uper_encoder; + td->aper_decoder = asn_DEF_OCTET_STRING.aper_decoder; + td->aper_encoder = asn_DEF_OCTET_STRING.aper_encoder; + if(!td->per_constraints) + td->per_constraints = asn_DEF_OCTET_STRING.per_constraints; + td->elements = asn_DEF_OCTET_STRING.elements; + td->elements_count = asn_DEF_OCTET_STRING.elements_count; + td->specifics = asn_DEF_OCTET_STRING.specifics; +} + +void +HNBAP_UDP_Port_Number_free(asn_TYPE_descriptor_t *td, + void *struct_ptr, int contents_only) { + HNBAP_UDP_Port_Number_1_inherit_TYPE_descriptor(td); + td->free_struct(td, struct_ptr, contents_only); +} + +int +HNBAP_UDP_Port_Number_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, + int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { + HNBAP_UDP_Port_Number_1_inherit_TYPE_descriptor(td); + return td->print_struct(td, struct_ptr, ilevel, cb, app_key); +} + +asn_dec_rval_t +HNBAP_UDP_Port_Number_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, + void **structure, const void *bufptr, size_t size, int tag_mode) { + HNBAP_UDP_Port_Number_1_inherit_TYPE_descriptor(td); + return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); +} + +asn_enc_rval_t +HNBAP_UDP_Port_Number_encode_der(asn_TYPE_descriptor_t *td, + void *structure, int tag_mode, ber_tlv_tag_t tag, + asn_app_consume_bytes_f *cb, void *app_key) { + HNBAP_UDP_Port_Number_1_inherit_TYPE_descriptor(td); + return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); +} + +asn_dec_rval_t +HNBAP_UDP_Port_Number_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, + void **structure, const char *opt_mname, const void *bufptr, size_t size) { + HNBAP_UDP_Port_Number_1_inherit_TYPE_descriptor(td); + return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); +} + +asn_enc_rval_t +HNBAP_UDP_Port_Number_encode_xer(asn_TYPE_descriptor_t *td, void *structure, + int ilevel, enum xer_encoder_flags_e flags, + asn_app_consume_bytes_f *cb, void *app_key) { + HNBAP_UDP_Port_Number_1_inherit_TYPE_descriptor(td); + return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); +} + +asn_dec_rval_t +HNBAP_UDP_Port_Number_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, + asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { + HNBAP_UDP_Port_Number_1_inherit_TYPE_descriptor(td); + return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); +} + +asn_enc_rval_t +HNBAP_UDP_Port_Number_encode_uper(asn_TYPE_descriptor_t *td, + asn_per_constraints_t *constraints, + void *structure, asn_per_outp_t *per_out) { + HNBAP_UDP_Port_Number_1_inherit_TYPE_descriptor(td); + return td->uper_encoder(td, constraints, structure, per_out); +} + +asn_enc_rval_t +HNBAP_UDP_Port_Number_encode_aper(asn_TYPE_descriptor_t *td, + asn_per_constraints_t *constraints, + void *structure, asn_per_outp_t *per_out) { + HNBAP_UDP_Port_Number_1_inherit_TYPE_descriptor(td); + return td->aper_encoder(td, constraints, structure, per_out); +} + +asn_dec_rval_t +HNBAP_UDP_Port_Number_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, + asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { + HNBAP_UDP_Port_Number_1_inherit_TYPE_descriptor(td); + return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); +} + +static asn_per_constraints_t asn_PER_type_HNBAP_UDP_Port_Number_constr_1 GCC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 0, 0, 2l, 2l } /* (SIZE(2..2)) */, + 0, 0 /* No PER value map */ +}; +static const ber_tlv_tag_t asn_DEF_HNBAP_UDP_Port_Number_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_UDP_Port_Number = { + "HNBAP_UDP-Port-Number", + "HNBAP_UDP-Port-Number", + HNBAP_UDP_Port_Number_free, + HNBAP_UDP_Port_Number_print, + HNBAP_UDP_Port_Number_constraint, + HNBAP_UDP_Port_Number_decode_ber, + HNBAP_UDP_Port_Number_encode_der, + HNBAP_UDP_Port_Number_decode_xer, + HNBAP_UDP_Port_Number_encode_xer, + HNBAP_UDP_Port_Number_decode_uper, + HNBAP_UDP_Port_Number_encode_uper, + HNBAP_UDP_Port_Number_decode_aper, + HNBAP_UDP_Port_Number_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_UDP_Port_Number_tags_1, + sizeof(asn_DEF_HNBAP_UDP_Port_Number_tags_1) + /sizeof(asn_DEF_HNBAP_UDP_Port_Number_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_UDP_Port_Number_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_UDP_Port_Number_tags_1) + /sizeof(asn_DEF_HNBAP_UDP_Port_Number_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_UDP_Port_Number_constr_1, + 0, 0, /* No members */ + 0 /* No specifics */ +}; + diff --git a/src/hnbap/UE-Capabilities.c b/src/hnbap/HNBAP_UE-Capabilities.c index 041e99d..1343a9c 100644 --- a/src/hnbap/UE-Capabilities.c +++ b/src/hnbap/HNBAP_UE-Capabilities.c @@ -2,62 +2,62 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/UE-Capabilities.h> +#include <osmocom/hnbap/HNBAP_UE-Capabilities.h> -static asn_TYPE_member_t asn_MBR_UE_Capabilities_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UE_Capabilities, access_stratum_release_indicator), +static asn_TYPE_member_t asn_MBR_HNBAP_UE_Capabilities_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_UE_Capabilities, access_stratum_release_indicator), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_Access_stratum_release_indicator, + &asn_DEF_HNBAP_Access_stratum_release_indicator, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "access-stratum-release-indicator" }, - { ATF_NOFLAGS, 0, offsetof(struct UE_Capabilities, csg_capability), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_UE_Capabilities, csg_capability), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_CSG_Capability, + &asn_DEF_HNBAP_CSG_Capability, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "csg-capability" }, - { ATF_POINTER, 1, offsetof(struct UE_Capabilities, iE_Extensions), + { ATF_POINTER, 1, offsetof(struct HNBAP_UE_Capabilities, iE_Extensions), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_IE_Extensions, + &asn_DEF_HNBAP_IE_Extensions, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "iE-Extensions" }, }; -static const int asn_MAP_UE_Capabilities_oms_1[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_UE_Capabilities_tags_1[] = { +static const int asn_MAP_HNBAP_UE_Capabilities_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_HNBAP_UE_Capabilities_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_UE_Capabilities_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_UE_Capabilities_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* access-stratum-release-indicator */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* csg-capability */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ }; -static asn_SEQUENCE_specifics_t asn_SPC_UE_Capabilities_specs_1 = { - sizeof(struct UE_Capabilities), - offsetof(struct UE_Capabilities, _asn_ctx), - asn_MAP_UE_Capabilities_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_UE_Capabilities_specs_1 = { + sizeof(struct HNBAP_UE_Capabilities), + offsetof(struct HNBAP_UE_Capabilities, _asn_ctx), + asn_MAP_HNBAP_UE_Capabilities_tag2el_1, 3, /* Count of tags in the map */ - asn_MAP_UE_Capabilities_oms_1, /* Optional members */ + asn_MAP_HNBAP_UE_Capabilities_oms_1, /* Optional members */ 1, 0, /* Root/Additions */ 2, /* Start extensions */ 4 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_UE_Capabilities = { - "UE-Capabilities", - "UE-Capabilities", +asn_TYPE_descriptor_t asn_DEF_HNBAP_UE_Capabilities = { + "HNBAP_UE-Capabilities", + "HNBAP_UE-Capabilities", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -70,15 +70,15 @@ asn_TYPE_descriptor_t asn_DEF_UE_Capabilities = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_UE_Capabilities_tags_1, - sizeof(asn_DEF_UE_Capabilities_tags_1) - /sizeof(asn_DEF_UE_Capabilities_tags_1[0]), /* 1 */ - asn_DEF_UE_Capabilities_tags_1, /* Same as above */ - sizeof(asn_DEF_UE_Capabilities_tags_1) - /sizeof(asn_DEF_UE_Capabilities_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_UE_Capabilities_tags_1, + sizeof(asn_DEF_HNBAP_UE_Capabilities_tags_1) + /sizeof(asn_DEF_HNBAP_UE_Capabilities_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_UE_Capabilities_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_UE_Capabilities_tags_1) + /sizeof(asn_DEF_HNBAP_UE_Capabilities_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_UE_Capabilities_1, + asn_MBR_HNBAP_UE_Capabilities_1, 3, /* Elements count */ - &asn_SPC_UE_Capabilities_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_UE_Capabilities_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/UE-Identity.c b/src/hnbap/HNBAP_UE-Identity.c index 604aba9..8160d4e 100644 --- a/src/hnbap/UE-Identity.c +++ b/src/hnbap/HNBAP_UE-Identity.c @@ -2,91 +2,91 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/UE-Identity.h> +#include <osmocom/hnbap/HNBAP_UE-Identity.h> -static asn_per_constraints_t asn_PER_type_UE_Identity_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_UE_Identity_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 3, 3, 0l, 7l } /* (0..7,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_UE_Identity_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UE_Identity, choice.iMSI), +static asn_TYPE_member_t asn_MBR_HNBAP_UE_Identity_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_UE_Identity, choice.iMSI), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_IMSI, + &asn_DEF_HNBAP_IMSI, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "iMSI" }, - { ATF_NOFLAGS, 0, offsetof(struct UE_Identity, choice.tMSILAI), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_UE_Identity, choice.tMSILAI), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_TMSILAI, + &asn_DEF_HNBAP_TMSILAI, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "tMSILAI" }, - { ATF_NOFLAGS, 0, offsetof(struct UE_Identity, choice.pTMSIRAI), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_UE_Identity, choice.pTMSIRAI), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_PTMSIRAI, + &asn_DEF_HNBAP_PTMSIRAI, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "pTMSIRAI" }, - { ATF_NOFLAGS, 0, offsetof(struct UE_Identity, choice.iMEI), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_UE_Identity, choice.iMEI), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_IMEI, + &asn_DEF_HNBAP_IMEI, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "iMEI" }, - { ATF_NOFLAGS, 0, offsetof(struct UE_Identity, choice.eSN), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_UE_Identity, choice.eSN), (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_ESN, + &asn_DEF_HNBAP_ESN, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "eSN" }, - { ATF_NOFLAGS, 0, offsetof(struct UE_Identity, choice.iMSIDS41), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_UE_Identity, choice.iMSIDS41), (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_IMSIDS41, + &asn_DEF_HNBAP_IMSIDS41, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "iMSIDS41" }, - { ATF_NOFLAGS, 0, offsetof(struct UE_Identity, choice.iMSIESN), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_UE_Identity, choice.iMSIESN), (ASN_TAG_CLASS_CONTEXT | (6 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_IMSIESN, + &asn_DEF_HNBAP_IMSIESN, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "iMSIESN" }, - { ATF_NOFLAGS, 0, offsetof(struct UE_Identity, choice.tMSIDS41), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_UE_Identity, choice.tMSIDS41), (ASN_TAG_CLASS_CONTEXT | (7 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_TMSIDS41, + &asn_DEF_HNBAP_TMSIDS41, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "tMSIDS41" }, }; -static const asn_TYPE_tag2member_t asn_MAP_UE_Identity_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_UE_Identity_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* iMSI */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* tMSILAI */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* pTMSIRAI */ @@ -96,19 +96,19 @@ static const asn_TYPE_tag2member_t asn_MAP_UE_Identity_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* iMSIESN */ { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* tMSIDS41 */ }; -static asn_CHOICE_specifics_t asn_SPC_UE_Identity_specs_1 = { - sizeof(struct UE_Identity), - offsetof(struct UE_Identity, _asn_ctx), - offsetof(struct UE_Identity, present), - sizeof(((struct UE_Identity *)0)->present), - asn_MAP_UE_Identity_tag2el_1, +static asn_CHOICE_specifics_t asn_SPC_HNBAP_UE_Identity_specs_1 = { + sizeof(struct HNBAP_UE_Identity), + offsetof(struct HNBAP_UE_Identity, _asn_ctx), + offsetof(struct HNBAP_UE_Identity, present), + sizeof(((struct HNBAP_UE_Identity *)0)->present), + asn_MAP_HNBAP_UE_Identity_tag2el_1, 8, /* Count of tags in the map */ 0, 8 /* Extensions start */ }; -asn_TYPE_descriptor_t asn_DEF_UE_Identity = { - "UE-Identity", - "UE-Identity", +asn_TYPE_descriptor_t asn_DEF_HNBAP_UE_Identity = { + "HNBAP_UE-Identity", + "HNBAP_UE-Identity", CHOICE_free, CHOICE_print, CHOICE_constraint, @@ -125,9 +125,9 @@ asn_TYPE_descriptor_t asn_DEF_UE_Identity = { 0, /* No effective tags (count) */ 0, /* No tags (pointer) */ 0, /* No tags (count) */ - &asn_PER_type_UE_Identity_constr_1, - asn_MBR_UE_Identity_1, + &asn_PER_type_HNBAP_UE_Identity_constr_1, + asn_MBR_HNBAP_UE_Identity_1, 8, /* Elements count */ - &asn_SPC_UE_Identity_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_UE_Identity_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/UEDe-Register.c b/src/hnbap/HNBAP_UEDe-Register.c index 3b06b8c..5d466f4 100644 --- a/src/hnbap/UEDe-Register.c +++ b/src/hnbap/HNBAP_UEDe-Register.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/UEDe-Register.h> +#include <osmocom/hnbap/HNBAP_UEDe-Register.h> static int memb_ueDe_Register_ies_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, @@ -45,9 +45,9 @@ static asn_per_constraints_t asn_PER_memb_ueDe_Register_ies_constr_2 GCC_NOTUSED }; static asn_TYPE_member_t asn_MBR_ueDe_Register_ies_2[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_IE, + &asn_DEF_HNBAP_IE, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, @@ -59,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_ueDe_Register_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_ueDe_Register_ies_specs_2 = { - sizeof(struct ueDe_Register_ies), - offsetof(struct ueDe_Register_ies, _asn_ctx), + sizeof(struct HNBAP_UEDe_Register__ueDe_Register_ies), + offsetof(struct HNBAP_UEDe_Register__ueDe_Register_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ @@ -91,8 +91,8 @@ asn_TYPE_descriptor_t asn_DEF_ueDe_Register_ies_2 = { &asn_SPC_ueDe_Register_ies_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_UEDe_Register_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UEDe_Register, ueDe_Register_ies), +static asn_TYPE_member_t asn_MBR_HNBAP_UEDe_Register_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_UEDe_Register, ueDe_Register_ies), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_ueDe_Register_ies_2, @@ -102,24 +102,24 @@ static asn_TYPE_member_t asn_MBR_UEDe_Register_1[] = { "ueDe-Register-ies" }, }; -static const ber_tlv_tag_t asn_DEF_UEDe_Register_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_UEDe_Register_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_UEDe_Register_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_UEDe_Register_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ueDe-Register-ies */ }; -static asn_SEQUENCE_specifics_t asn_SPC_UEDe_Register_specs_1 = { - sizeof(struct UEDe_Register), - offsetof(struct UEDe_Register, _asn_ctx), - asn_MAP_UEDe_Register_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_UEDe_Register_specs_1 = { + sizeof(struct HNBAP_UEDe_Register), + offsetof(struct HNBAP_UEDe_Register, _asn_ctx), + asn_MAP_HNBAP_UEDe_Register_tag2el_1, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 0, /* Start extensions */ 2 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_UEDe_Register = { - "UEDe-Register", - "UEDe-Register", +asn_TYPE_descriptor_t asn_DEF_HNBAP_UEDe_Register = { + "HNBAP_UEDe-Register", + "HNBAP_UEDe-Register", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -132,15 +132,15 @@ asn_TYPE_descriptor_t asn_DEF_UEDe_Register = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_UEDe_Register_tags_1, - sizeof(asn_DEF_UEDe_Register_tags_1) - /sizeof(asn_DEF_UEDe_Register_tags_1[0]), /* 1 */ - asn_DEF_UEDe_Register_tags_1, /* Same as above */ - sizeof(asn_DEF_UEDe_Register_tags_1) - /sizeof(asn_DEF_UEDe_Register_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_UEDe_Register_tags_1, + sizeof(asn_DEF_HNBAP_UEDe_Register_tags_1) + /sizeof(asn_DEF_HNBAP_UEDe_Register_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_UEDe_Register_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_UEDe_Register_tags_1) + /sizeof(asn_DEF_HNBAP_UEDe_Register_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_UEDe_Register_1, + asn_MBR_HNBAP_UEDe_Register_1, 1, /* Elements count */ - &asn_SPC_UEDe_Register_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_UEDe_Register_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/UERegisterAccept.c b/src/hnbap/HNBAP_UERegisterAccept.c index 1da47fe..d7f2fd8 100644 --- a/src/hnbap/UERegisterAccept.c +++ b/src/hnbap/HNBAP_UERegisterAccept.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/UERegisterAccept.h> +#include <osmocom/hnbap/HNBAP_UERegisterAccept.h> static int memb_ueRegisterAccept_ies_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, @@ -45,9 +45,9 @@ static asn_per_constraints_t asn_PER_memb_ueRegisterAccept_ies_constr_2 GCC_NOTU }; static asn_TYPE_member_t asn_MBR_ueRegisterAccept_ies_2[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_IE, + &asn_DEF_HNBAP_IE, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, @@ -59,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_ueRegisterAccept_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_ueRegisterAccept_ies_specs_2 = { - sizeof(struct ueRegisterAccept_ies), - offsetof(struct ueRegisterAccept_ies, _asn_ctx), + sizeof(struct HNBAP_UERegisterAccept__ueRegisterAccept_ies), + offsetof(struct HNBAP_UERegisterAccept__ueRegisterAccept_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ @@ -91,8 +91,8 @@ asn_TYPE_descriptor_t asn_DEF_ueRegisterAccept_ies_2 = { &asn_SPC_ueRegisterAccept_ies_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_UERegisterAccept_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UERegisterAccept, ueRegisterAccept_ies), +static asn_TYPE_member_t asn_MBR_HNBAP_UERegisterAccept_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_UERegisterAccept, ueRegisterAccept_ies), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_ueRegisterAccept_ies_2, @@ -102,24 +102,24 @@ static asn_TYPE_member_t asn_MBR_UERegisterAccept_1[] = { "ueRegisterAccept-ies" }, }; -static const ber_tlv_tag_t asn_DEF_UERegisterAccept_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_UERegisterAccept_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_UERegisterAccept_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_UERegisterAccept_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ueRegisterAccept-ies */ }; -static asn_SEQUENCE_specifics_t asn_SPC_UERegisterAccept_specs_1 = { - sizeof(struct UERegisterAccept), - offsetof(struct UERegisterAccept, _asn_ctx), - asn_MAP_UERegisterAccept_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_UERegisterAccept_specs_1 = { + sizeof(struct HNBAP_UERegisterAccept), + offsetof(struct HNBAP_UERegisterAccept, _asn_ctx), + asn_MAP_HNBAP_UERegisterAccept_tag2el_1, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 0, /* Start extensions */ 2 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_UERegisterAccept = { - "UERegisterAccept", - "UERegisterAccept", +asn_TYPE_descriptor_t asn_DEF_HNBAP_UERegisterAccept = { + "HNBAP_UERegisterAccept", + "HNBAP_UERegisterAccept", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -132,15 +132,15 @@ asn_TYPE_descriptor_t asn_DEF_UERegisterAccept = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_UERegisterAccept_tags_1, - sizeof(asn_DEF_UERegisterAccept_tags_1) - /sizeof(asn_DEF_UERegisterAccept_tags_1[0]), /* 1 */ - asn_DEF_UERegisterAccept_tags_1, /* Same as above */ - sizeof(asn_DEF_UERegisterAccept_tags_1) - /sizeof(asn_DEF_UERegisterAccept_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_UERegisterAccept_tags_1, + sizeof(asn_DEF_HNBAP_UERegisterAccept_tags_1) + /sizeof(asn_DEF_HNBAP_UERegisterAccept_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_UERegisterAccept_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_UERegisterAccept_tags_1) + /sizeof(asn_DEF_HNBAP_UERegisterAccept_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_UERegisterAccept_1, + asn_MBR_HNBAP_UERegisterAccept_1, 1, /* Elements count */ - &asn_SPC_UERegisterAccept_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_UERegisterAccept_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/UERegisterReject.c b/src/hnbap/HNBAP_UERegisterReject.c index 01b35d9..4969dc9 100644 --- a/src/hnbap/UERegisterReject.c +++ b/src/hnbap/HNBAP_UERegisterReject.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/UERegisterReject.h> +#include <osmocom/hnbap/HNBAP_UERegisterReject.h> static int memb_ueRegisterReject_ies_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, @@ -45,9 +45,9 @@ static asn_per_constraints_t asn_PER_memb_ueRegisterReject_ies_constr_2 GCC_NOTU }; static asn_TYPE_member_t asn_MBR_ueRegisterReject_ies_2[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_IE, + &asn_DEF_HNBAP_IE, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, @@ -59,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_ueRegisterReject_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_ueRegisterReject_ies_specs_2 = { - sizeof(struct ueRegisterReject_ies), - offsetof(struct ueRegisterReject_ies, _asn_ctx), + sizeof(struct HNBAP_UERegisterReject__ueRegisterReject_ies), + offsetof(struct HNBAP_UERegisterReject__ueRegisterReject_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ @@ -91,8 +91,8 @@ asn_TYPE_descriptor_t asn_DEF_ueRegisterReject_ies_2 = { &asn_SPC_ueRegisterReject_ies_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_UERegisterReject_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UERegisterReject, ueRegisterReject_ies), +static asn_TYPE_member_t asn_MBR_HNBAP_UERegisterReject_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_UERegisterReject, ueRegisterReject_ies), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_ueRegisterReject_ies_2, @@ -102,24 +102,24 @@ static asn_TYPE_member_t asn_MBR_UERegisterReject_1[] = { "ueRegisterReject-ies" }, }; -static const ber_tlv_tag_t asn_DEF_UERegisterReject_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_UERegisterReject_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_UERegisterReject_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_UERegisterReject_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ueRegisterReject-ies */ }; -static asn_SEQUENCE_specifics_t asn_SPC_UERegisterReject_specs_1 = { - sizeof(struct UERegisterReject), - offsetof(struct UERegisterReject, _asn_ctx), - asn_MAP_UERegisterReject_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_UERegisterReject_specs_1 = { + sizeof(struct HNBAP_UERegisterReject), + offsetof(struct HNBAP_UERegisterReject, _asn_ctx), + asn_MAP_HNBAP_UERegisterReject_tag2el_1, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 0, /* Start extensions */ 2 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_UERegisterReject = { - "UERegisterReject", - "UERegisterReject", +asn_TYPE_descriptor_t asn_DEF_HNBAP_UERegisterReject = { + "HNBAP_UERegisterReject", + "HNBAP_UERegisterReject", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -132,15 +132,15 @@ asn_TYPE_descriptor_t asn_DEF_UERegisterReject = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_UERegisterReject_tags_1, - sizeof(asn_DEF_UERegisterReject_tags_1) - /sizeof(asn_DEF_UERegisterReject_tags_1[0]), /* 1 */ - asn_DEF_UERegisterReject_tags_1, /* Same as above */ - sizeof(asn_DEF_UERegisterReject_tags_1) - /sizeof(asn_DEF_UERegisterReject_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_UERegisterReject_tags_1, + sizeof(asn_DEF_HNBAP_UERegisterReject_tags_1) + /sizeof(asn_DEF_HNBAP_UERegisterReject_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_UERegisterReject_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_UERegisterReject_tags_1) + /sizeof(asn_DEF_HNBAP_UERegisterReject_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_UERegisterReject_1, + asn_MBR_HNBAP_UERegisterReject_1, 1, /* Elements count */ - &asn_SPC_UERegisterReject_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_UERegisterReject_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/UERegisterRequest.c b/src/hnbap/HNBAP_UERegisterRequest.c index a076152..95a97f7 100644 --- a/src/hnbap/UERegisterRequest.c +++ b/src/hnbap/HNBAP_UERegisterRequest.c @@ -2,10 +2,10 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/UERegisterRequest.h> +#include <osmocom/hnbap/HNBAP_UERegisterRequest.h> static int memb_ueRegisterRequest_ies_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, @@ -45,9 +45,9 @@ static asn_per_constraints_t asn_PER_memb_ueRegisterRequest_ies_constr_2 GCC_NOT }; static asn_TYPE_member_t asn_MBR_ueRegisterRequest_ies_2[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_IE, + &asn_DEF_HNBAP_IE, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, @@ -59,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_ueRegisterRequest_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_ueRegisterRequest_ies_specs_2 = { - sizeof(struct ueRegisterRequest_ies), - offsetof(struct ueRegisterRequest_ies, _asn_ctx), + sizeof(struct HNBAP_UERegisterRequest__ueRegisterRequest_ies), + offsetof(struct HNBAP_UERegisterRequest__ueRegisterRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ @@ -91,8 +91,8 @@ asn_TYPE_descriptor_t asn_DEF_ueRegisterRequest_ies_2 = { &asn_SPC_ueRegisterRequest_ies_specs_2 /* Additional specs */ }; -static asn_TYPE_member_t asn_MBR_UERegisterRequest_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UERegisterRequest, ueRegisterRequest_ies), +static asn_TYPE_member_t asn_MBR_HNBAP_UERegisterRequest_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_UERegisterRequest, ueRegisterRequest_ies), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_ueRegisterRequest_ies_2, @@ -102,24 +102,24 @@ static asn_TYPE_member_t asn_MBR_UERegisterRequest_1[] = { "ueRegisterRequest-ies" }, }; -static const ber_tlv_tag_t asn_DEF_UERegisterRequest_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_UERegisterRequest_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_UERegisterRequest_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_UERegisterRequest_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* ueRegisterRequest-ies */ }; -static asn_SEQUENCE_specifics_t asn_SPC_UERegisterRequest_specs_1 = { - sizeof(struct UERegisterRequest), - offsetof(struct UERegisterRequest, _asn_ctx), - asn_MAP_UERegisterRequest_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_UERegisterRequest_specs_1 = { + sizeof(struct HNBAP_UERegisterRequest), + offsetof(struct HNBAP_UERegisterRequest, _asn_ctx), + asn_MAP_HNBAP_UERegisterRequest_tag2el_1, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ 0, /* Start extensions */ 2 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_UERegisterRequest = { - "UERegisterRequest", - "UERegisterRequest", +asn_TYPE_descriptor_t asn_DEF_HNBAP_UERegisterRequest = { + "HNBAP_UERegisterRequest", + "HNBAP_UERegisterRequest", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -132,15 +132,15 @@ asn_TYPE_descriptor_t asn_DEF_UERegisterRequest = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_UERegisterRequest_tags_1, - sizeof(asn_DEF_UERegisterRequest_tags_1) - /sizeof(asn_DEF_UERegisterRequest_tags_1[0]), /* 1 */ - asn_DEF_UERegisterRequest_tags_1, /* Same as above */ - sizeof(asn_DEF_UERegisterRequest_tags_1) - /sizeof(asn_DEF_UERegisterRequest_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_UERegisterRequest_tags_1, + sizeof(asn_DEF_HNBAP_UERegisterRequest_tags_1) + /sizeof(asn_DEF_HNBAP_UERegisterRequest_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_UERegisterRequest_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_UERegisterRequest_tags_1) + /sizeof(asn_DEF_HNBAP_UERegisterRequest_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_UERegisterRequest_1, + asn_MBR_HNBAP_UERegisterRequest_1, 1, /* Elements count */ - &asn_SPC_UERegisterRequest_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_UERegisterRequest_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/RNC-ID.c b/src/hnbap/HNBAP_URAIdentity.c index 782a7e4..3bd347e 100644 --- a/src/hnbap/RNC-ID.c +++ b/src/hnbap/HNBAP_URAIdentity.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/RNC-ID.h> +#include <osmocom/hnbap/HNBAP_URAIdentity.h> int -RNC_ID_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_URAIdentity_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { long value; @@ -37,7 +37,7 @@ RNC_ID_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -RNC_ID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_URAIdentity_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeInteger.free_struct; td->print_struct = asn_DEF_NativeInteger.print_struct; td->check_constraints = asn_DEF_NativeInteger.check_constraints; @@ -57,109 +57,109 @@ RNC_ID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -RNC_ID_free(asn_TYPE_descriptor_t *td, +HNBAP_URAIdentity_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - RNC_ID_1_inherit_TYPE_descriptor(td); + HNBAP_URAIdentity_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -RNC_ID_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_URAIdentity_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - RNC_ID_1_inherit_TYPE_descriptor(td); + HNBAP_URAIdentity_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -RNC_ID_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_URAIdentity_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - RNC_ID_1_inherit_TYPE_descriptor(td); + HNBAP_URAIdentity_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -RNC_ID_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_URAIdentity_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - RNC_ID_1_inherit_TYPE_descriptor(td); + HNBAP_URAIdentity_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -RNC_ID_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_URAIdentity_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - RNC_ID_1_inherit_TYPE_descriptor(td); + HNBAP_URAIdentity_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -RNC_ID_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_URAIdentity_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - RNC_ID_1_inherit_TYPE_descriptor(td); + HNBAP_URAIdentity_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -RNC_ID_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_URAIdentity_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - RNC_ID_1_inherit_TYPE_descriptor(td); + HNBAP_URAIdentity_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -RNC_ID_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_URAIdentity_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - RNC_ID_1_inherit_TYPE_descriptor(td); + HNBAP_URAIdentity_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -RNC_ID_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_URAIdentity_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - RNC_ID_1_inherit_TYPE_descriptor(td); + HNBAP_URAIdentity_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -RNC_ID_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_URAIdentity_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - RNC_ID_1_inherit_TYPE_descriptor(td); + HNBAP_URAIdentity_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_RNC_ID_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_URAIdentity_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED, 16, 16, 0l, 65535l } /* (0..65535) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const ber_tlv_tag_t asn_DEF_RNC_ID_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_URAIdentity_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_RNC_ID = { - "RNC-ID", - "RNC-ID", - RNC_ID_free, - RNC_ID_print, - RNC_ID_constraint, - RNC_ID_decode_ber, - RNC_ID_encode_der, - RNC_ID_decode_xer, - RNC_ID_encode_xer, - RNC_ID_decode_uper, - RNC_ID_encode_uper, - RNC_ID_decode_aper, - RNC_ID_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_URAIdentity = { + "HNBAP_URAIdentity", + "HNBAP_URAIdentity", + HNBAP_URAIdentity_free, + HNBAP_URAIdentity_print, + HNBAP_URAIdentity_constraint, + HNBAP_URAIdentity_decode_ber, + HNBAP_URAIdentity_encode_der, + HNBAP_URAIdentity_decode_xer, + HNBAP_URAIdentity_encode_xer, + HNBAP_URAIdentity_decode_uper, + HNBAP_URAIdentity_encode_uper, + HNBAP_URAIdentity_decode_aper, + HNBAP_URAIdentity_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_RNC_ID_tags_1, - sizeof(asn_DEF_RNC_ID_tags_1) - /sizeof(asn_DEF_RNC_ID_tags_1[0]), /* 1 */ - asn_DEF_RNC_ID_tags_1, /* Same as above */ - sizeof(asn_DEF_RNC_ID_tags_1) - /sizeof(asn_DEF_RNC_ID_tags_1[0]), /* 1 */ - &asn_PER_type_RNC_ID_constr_1, + asn_DEF_HNBAP_URAIdentity_tags_1, + sizeof(asn_DEF_HNBAP_URAIdentity_tags_1) + /sizeof(asn_DEF_HNBAP_URAIdentity_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_URAIdentity_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_URAIdentity_tags_1) + /sizeof(asn_DEF_HNBAP_URAIdentity_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_URAIdentity_constr_1, 0, 0, /* No members */ 0 /* No specifics */ }; diff --git a/src/hnbap/HNBAP_URAIdentityList.c b/src/hnbap/HNBAP_URAIdentityList.c new file mode 100644 index 0000000..eaff2e9 --- /dev/null +++ b/src/hnbap/HNBAP_URAIdentityList.c @@ -0,0 +1,60 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "HNBAP-IEs" + * found in "../../asn1/hnbap/HNBAP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/hnbap/HNBAP_URAIdentityList.h> + +static asn_per_constraints_t asn_PER_type_HNBAP_URAIdentityList_constr_1 GCC_NOTUSED = { + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + { APC_CONSTRAINED, 4, 4, 0l, 8l } /* (SIZE(0..8)) */, + 0, 0 /* No PER value map */ +}; +static asn_TYPE_member_t asn_MBR_HNBAP_URAIdentityList_1[] = { + { ATF_POINTER, 0, 0, + -1 /* Ambiguous tag (CHOICE?) */, + 0, + &asn_DEF_HNBAP_URAIdentity, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "" + }, +}; +static const ber_tlv_tag_t asn_DEF_HNBAP_URAIdentityList_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static asn_SET_OF_specifics_t asn_SPC_HNBAP_URAIdentityList_specs_1 = { + sizeof(struct HNBAP_URAIdentityList), + offsetof(struct HNBAP_URAIdentityList, _asn_ctx), + 0, /* XER encoding is XMLDelimitedItemList */ +}; +asn_TYPE_descriptor_t asn_DEF_HNBAP_URAIdentityList = { + "HNBAP_URAIdentityList", + "HNBAP_URAIdentityList", + SEQUENCE_OF_free, + SEQUENCE_OF_print, + SEQUENCE_OF_constraint, + SEQUENCE_OF_decode_ber, + SEQUENCE_OF_encode_der, + SEQUENCE_OF_decode_xer, + SEQUENCE_OF_encode_xer, + SEQUENCE_OF_decode_uper, + SEQUENCE_OF_encode_uper, + SEQUENCE_OF_decode_aper, + SEQUENCE_OF_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_HNBAP_URAIdentityList_tags_1, + sizeof(asn_DEF_HNBAP_URAIdentityList_tags_1) + /sizeof(asn_DEF_HNBAP_URAIdentityList_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_URAIdentityList_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_URAIdentityList_tags_1) + /sizeof(asn_DEF_HNBAP_URAIdentityList_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_URAIdentityList_constr_1, + asn_MBR_HNBAP_URAIdentityList_1, + 1, /* Single element */ + &asn_SPC_HNBAP_URAIdentityList_specs_1 /* Additional specs */ +}; + diff --git a/src/hnbap/UTRANCellID.c b/src/hnbap/HNBAP_UTRANCellID.c index c6b964c..f0a7f6a 100644 --- a/src/hnbap/UTRANCellID.c +++ b/src/hnbap/HNBAP_UTRANCellID.c @@ -2,82 +2,82 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/UTRANCellID.h> +#include <osmocom/hnbap/HNBAP_UTRANCellID.h> -static asn_TYPE_member_t asn_MBR_UTRANCellID_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct UTRANCellID, lAC), +static asn_TYPE_member_t asn_MBR_HNBAP_UTRANCellID_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_UTRANCellID, lAC), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_LAC, + &asn_DEF_HNBAP_LAC, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "lAC" }, - { ATF_NOFLAGS, 0, offsetof(struct UTRANCellID, rAC), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_UTRANCellID, rAC), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_RAC, + &asn_DEF_HNBAP_RAC, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "rAC" }, - { ATF_NOFLAGS, 0, offsetof(struct UTRANCellID, pLMNidentity), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_UTRANCellID, pLMNidentity), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_PLMNidentity, + &asn_DEF_HNBAP_PLMNidentity, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "pLMNidentity" }, - { ATF_NOFLAGS, 0, offsetof(struct UTRANCellID, uTRANcellID), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_UTRANCellID, uTRANcellID), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_CellIdentity, + &asn_DEF_HNBAP_CellIdentity, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "uTRANcellID" }, - { ATF_POINTER, 1, offsetof(struct UTRANCellID, iE_Extensions), + { ATF_POINTER, 1, offsetof(struct HNBAP_UTRANCellID, iE_Extensions), (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_IE_Extensions, + &asn_DEF_HNBAP_IE_Extensions, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "iE-Extensions" }, }; -static const int asn_MAP_UTRANCellID_oms_1[] = { 4 }; -static const ber_tlv_tag_t asn_DEF_UTRANCellID_tags_1[] = { +static const int asn_MAP_HNBAP_UTRANCellID_oms_1[] = { 4 }; +static const ber_tlv_tag_t asn_DEF_HNBAP_UTRANCellID_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_UTRANCellID_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_UTRANCellID_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lAC */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* rAC */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* pLMNidentity */ { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* uTRANcellID */ { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* iE-Extensions */ }; -static asn_SEQUENCE_specifics_t asn_SPC_UTRANCellID_specs_1 = { - sizeof(struct UTRANCellID), - offsetof(struct UTRANCellID, _asn_ctx), - asn_MAP_UTRANCellID_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_UTRANCellID_specs_1 = { + sizeof(struct HNBAP_UTRANCellID), + offsetof(struct HNBAP_UTRANCellID, _asn_ctx), + asn_MAP_HNBAP_UTRANCellID_tag2el_1, 5, /* Count of tags in the map */ - asn_MAP_UTRANCellID_oms_1, /* Optional members */ + asn_MAP_HNBAP_UTRANCellID_oms_1, /* Optional members */ 1, 0, /* Root/Additions */ -1, /* Start extensions */ -1 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_UTRANCellID = { - "UTRANCellID", - "UTRANCellID", +asn_TYPE_descriptor_t asn_DEF_HNBAP_UTRANCellID = { + "HNBAP_UTRANCellID", + "HNBAP_UTRANCellID", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -90,15 +90,15 @@ asn_TYPE_descriptor_t asn_DEF_UTRANCellID = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_UTRANCellID_tags_1, - sizeof(asn_DEF_UTRANCellID_tags_1) - /sizeof(asn_DEF_UTRANCellID_tags_1[0]), /* 1 */ - asn_DEF_UTRANCellID_tags_1, /* Same as above */ - sizeof(asn_DEF_UTRANCellID_tags_1) - /sizeof(asn_DEF_UTRANCellID_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_UTRANCellID_tags_1, + sizeof(asn_DEF_HNBAP_UTRANCellID_tags_1) + /sizeof(asn_DEF_HNBAP_UTRANCellID_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_UTRANCellID_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_UTRANCellID_tags_1) + /sizeof(asn_DEF_HNBAP_UTRANCellID_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_UTRANCellID_1, + asn_MBR_HNBAP_UTRANCellID_1, 5, /* Elements count */ - &asn_SPC_UTRANCellID_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_UTRANCellID_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/UnknownU-RNTIIndication.c b/src/hnbap/HNBAP_UnknownU-RNTIIndication.c index c5d3613..f6c3011 100644 --- a/src/hnbap/UnknownU-RNTIIndication.c +++ b/src/hnbap/HNBAP_UnknownU-RNTIIndication.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/UnknownU-RNTIIndication.h> +#include <osmocom/hnbap/HNBAP_UnknownU-RNTIIndication.h> int -UnknownU_RNTIIndication_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_UnknownU_RNTIIndication_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { /* Replace with underlying type checker */ td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -20,7 +20,7 @@ UnknownU_RNTIIndication_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeEnumerated.free_struct; td->print_struct = asn_DEF_NativeEnumerated.print_struct; td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -40,127 +40,127 @@ UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -UnknownU_RNTIIndication_free(asn_TYPE_descriptor_t *td, +HNBAP_UnknownU_RNTIIndication_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(td); + HNBAP_UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -UnknownU_RNTIIndication_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_UnknownU_RNTIIndication_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(td); + HNBAP_UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -UnknownU_RNTIIndication_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_UnknownU_RNTIIndication_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(td); + HNBAP_UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -UnknownU_RNTIIndication_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_UnknownU_RNTIIndication_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(td); + HNBAP_UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -UnknownU_RNTIIndication_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_UnknownU_RNTIIndication_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(td); + HNBAP_UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -UnknownU_RNTIIndication_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_UnknownU_RNTIIndication_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(td); + HNBAP_UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -UnknownU_RNTIIndication_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_UnknownU_RNTIIndication_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(td); + HNBAP_UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -UnknownU_RNTIIndication_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_UnknownU_RNTIIndication_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(td); + HNBAP_UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -UnknownU_RNTIIndication_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_UnknownU_RNTIIndication_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(td); + HNBAP_UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -UnknownU_RNTIIndication_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_UnknownU_RNTIIndication_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(td); + HNBAP_UnknownU_RNTIIndication_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_UnknownU_RNTIIndication_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_UnknownU_RNTIIndication_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0l, 0l } /* (0..0,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const asn_INTEGER_enum_map_t asn_MAP_UnknownU_RNTIIndication_value2enum_1[] = { +static const asn_INTEGER_enum_map_t asn_MAP_HNBAP_UnknownU_RNTIIndication_value2enum_1[] = { { 0, 7, "unknown" } /* This list is extensible */ }; -static const unsigned int asn_MAP_UnknownU_RNTIIndication_enum2value_1[] = { +static const unsigned int asn_MAP_HNBAP_UnknownU_RNTIIndication_enum2value_1[] = { 0 /* unknown(0) */ /* This list is extensible */ }; -static const asn_INTEGER_specifics_t asn_SPC_UnknownU_RNTIIndication_specs_1 = { - asn_MAP_UnknownU_RNTIIndication_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_UnknownU_RNTIIndication_enum2value_1, /* N => "tag"; sorted by N */ +static const asn_INTEGER_specifics_t asn_SPC_HNBAP_UnknownU_RNTIIndication_specs_1 = { + asn_MAP_HNBAP_UnknownU_RNTIIndication_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_HNBAP_UnknownU_RNTIIndication_enum2value_1, /* N => "tag"; sorted by N */ 1, /* Number of elements in the maps */ 2, /* Extensions before this member */ 1, /* Strict enumeration */ 0, /* Native long size */ 0 }; -static const ber_tlv_tag_t asn_DEF_UnknownU_RNTIIndication_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_UnknownU_RNTIIndication_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_UnknownU_RNTIIndication = { - "UnknownU-RNTIIndication", - "UnknownU-RNTIIndication", - UnknownU_RNTIIndication_free, - UnknownU_RNTIIndication_print, - UnknownU_RNTIIndication_constraint, - UnknownU_RNTIIndication_decode_ber, - UnknownU_RNTIIndication_encode_der, - UnknownU_RNTIIndication_decode_xer, - UnknownU_RNTIIndication_encode_xer, - UnknownU_RNTIIndication_decode_uper, - UnknownU_RNTIIndication_encode_uper, - UnknownU_RNTIIndication_decode_aper, - UnknownU_RNTIIndication_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_UnknownU_RNTIIndication = { + "HNBAP_UnknownU-RNTIIndication", + "HNBAP_UnknownU-RNTIIndication", + HNBAP_UnknownU_RNTIIndication_free, + HNBAP_UnknownU_RNTIIndication_print, + HNBAP_UnknownU_RNTIIndication_constraint, + HNBAP_UnknownU_RNTIIndication_decode_ber, + HNBAP_UnknownU_RNTIIndication_encode_der, + HNBAP_UnknownU_RNTIIndication_decode_xer, + HNBAP_UnknownU_RNTIIndication_encode_xer, + HNBAP_UnknownU_RNTIIndication_decode_uper, + HNBAP_UnknownU_RNTIIndication_encode_uper, + HNBAP_UnknownU_RNTIIndication_decode_aper, + HNBAP_UnknownU_RNTIIndication_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_UnknownU_RNTIIndication_tags_1, - sizeof(asn_DEF_UnknownU_RNTIIndication_tags_1) - /sizeof(asn_DEF_UnknownU_RNTIIndication_tags_1[0]), /* 1 */ - asn_DEF_UnknownU_RNTIIndication_tags_1, /* Same as above */ - sizeof(asn_DEF_UnknownU_RNTIIndication_tags_1) - /sizeof(asn_DEF_UnknownU_RNTIIndication_tags_1[0]), /* 1 */ - &asn_PER_type_UnknownU_RNTIIndication_constr_1, + asn_DEF_HNBAP_UnknownU_RNTIIndication_tags_1, + sizeof(asn_DEF_HNBAP_UnknownU_RNTIIndication_tags_1) + /sizeof(asn_DEF_HNBAP_UnknownU_RNTIIndication_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_UnknownU_RNTIIndication_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_UnknownU_RNTIIndication_tags_1) + /sizeof(asn_DEF_HNBAP_UnknownU_RNTIIndication_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_UnknownU_RNTIIndication_constr_1, 0, 0, /* Defined elsewhere */ - &asn_SPC_UnknownU_RNTIIndication_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_UnknownU_RNTIIndication_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/InitiatingMessage.c b/src/hnbap/HNBAP_UnsuccessfulOutcome.c index c165290..30734ca 100644 --- a/src/hnbap/InitiatingMessage.c +++ b/src/hnbap/HNBAP_UnsuccessfulOutcome.c @@ -2,31 +2,31 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-PDU" * found in "../../asn1/hnbap/HNBAP-PDU.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/InitiatingMessage.h> +#include <osmocom/hnbap/HNBAP_UnsuccessfulOutcome.h> -static asn_TYPE_member_t asn_MBR_InitiatingMessage_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage, procedureCode), +static asn_TYPE_member_t asn_MBR_HNBAP_UnsuccessfulOutcome_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_UnsuccessfulOutcome, procedureCode), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_ProcedureCode, + &asn_DEF_HNBAP_ProcedureCode, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "procedureCode" }, - { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage, criticality), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_UnsuccessfulOutcome, criticality), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ - &asn_DEF_Criticality, + &asn_DEF_HNBAP_Criticality, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, "criticality" }, - { ATF_NOFLAGS, 0, offsetof(struct InitiatingMessage, value), + { ATF_NOFLAGS, 0, offsetof(struct HNBAP_UnsuccessfulOutcome, value), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_ANY, @@ -36,26 +36,26 @@ static asn_TYPE_member_t asn_MBR_InitiatingMessage_1[] = { "value" }, }; -static const ber_tlv_tag_t asn_DEF_InitiatingMessage_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_UnsuccessfulOutcome_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_InitiatingMessage_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_HNBAP_UnsuccessfulOutcome_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* procedureCode */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* criticality */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* value */ }; -static asn_SEQUENCE_specifics_t asn_SPC_InitiatingMessage_specs_1 = { - sizeof(struct InitiatingMessage), - offsetof(struct InitiatingMessage, _asn_ctx), - asn_MAP_InitiatingMessage_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_HNBAP_UnsuccessfulOutcome_specs_1 = { + sizeof(struct HNBAP_UnsuccessfulOutcome), + offsetof(struct HNBAP_UnsuccessfulOutcome, _asn_ctx), + asn_MAP_HNBAP_UnsuccessfulOutcome_tag2el_1, 3, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ -1, /* Start extensions */ -1 /* Stop extensions */ }; -asn_TYPE_descriptor_t asn_DEF_InitiatingMessage = { - "InitiatingMessage", - "InitiatingMessage", +asn_TYPE_descriptor_t asn_DEF_HNBAP_UnsuccessfulOutcome = { + "HNBAP_UnsuccessfulOutcome", + "HNBAP_UnsuccessfulOutcome", SEQUENCE_free, SEQUENCE_print, SEQUENCE_constraint, @@ -68,15 +68,15 @@ asn_TYPE_descriptor_t asn_DEF_InitiatingMessage = { SEQUENCE_decode_aper, SEQUENCE_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_InitiatingMessage_tags_1, - sizeof(asn_DEF_InitiatingMessage_tags_1) - /sizeof(asn_DEF_InitiatingMessage_tags_1[0]), /* 1 */ - asn_DEF_InitiatingMessage_tags_1, /* Same as above */ - sizeof(asn_DEF_InitiatingMessage_tags_1) - /sizeof(asn_DEF_InitiatingMessage_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_UnsuccessfulOutcome_tags_1, + sizeof(asn_DEF_HNBAP_UnsuccessfulOutcome_tags_1) + /sizeof(asn_DEF_HNBAP_UnsuccessfulOutcome_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_UnsuccessfulOutcome_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_UnsuccessfulOutcome_tags_1) + /sizeof(asn_DEF_HNBAP_UnsuccessfulOutcome_tags_1[0]), /* 1 */ 0, /* No PER visible constraints */ - asn_MBR_InitiatingMessage_1, + asn_MBR_HNBAP_UnsuccessfulOutcome_1, 3, /* Elements count */ - &asn_SPC_InitiatingMessage_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_UnsuccessfulOutcome_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/Update-cause.c b/src/hnbap/HNBAP_Update-cause.c index f49eae7..d7acd6c 100644 --- a/src/hnbap/Update-cause.c +++ b/src/hnbap/HNBAP_Update-cause.c @@ -2,13 +2,13 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "HNBAP-IEs" * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` + * `asn1c -R -fcompound-names` */ -#include <osmocom/hnbap/Update-cause.h> +#include <osmocom/hnbap/HNBAP_Update-cause.h> int -Update_cause_constraint(asn_TYPE_descriptor_t *td, const void *sptr, +HNBAP_Update_cause_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { /* Replace with underlying type checker */ td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -20,7 +20,7 @@ Update_cause_constraint(asn_TYPE_descriptor_t *td, const void *sptr, * so here we adjust the DEF accordingly. */ static void -Update_cause_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { +HNBAP_Update_cause_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { td->free_struct = asn_DEF_NativeEnumerated.free_struct; td->print_struct = asn_DEF_NativeEnumerated.print_struct; td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; @@ -40,127 +40,127 @@ Update_cause_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { } void -Update_cause_free(asn_TYPE_descriptor_t *td, +HNBAP_Update_cause_free(asn_TYPE_descriptor_t *td, void *struct_ptr, int contents_only) { - Update_cause_1_inherit_TYPE_descriptor(td); + HNBAP_Update_cause_1_inherit_TYPE_descriptor(td); td->free_struct(td, struct_ptr, contents_only); } int -Update_cause_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, +HNBAP_Update_cause_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - Update_cause_1_inherit_TYPE_descriptor(td); + HNBAP_Update_cause_1_inherit_TYPE_descriptor(td); return td->print_struct(td, struct_ptr, ilevel, cb, app_key); } asn_dec_rval_t -Update_cause_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Update_cause_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const void *bufptr, size_t size, int tag_mode) { - Update_cause_1_inherit_TYPE_descriptor(td); + HNBAP_Update_cause_1_inherit_TYPE_descriptor(td); return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); } asn_enc_rval_t -Update_cause_encode_der(asn_TYPE_descriptor_t *td, +HNBAP_Update_cause_encode_der(asn_TYPE_descriptor_t *td, void *structure, int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) { - Update_cause_1_inherit_TYPE_descriptor(td); + HNBAP_Update_cause_1_inherit_TYPE_descriptor(td); return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); } asn_dec_rval_t -Update_cause_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Update_cause_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **structure, const char *opt_mname, const void *bufptr, size_t size) { - Update_cause_1_inherit_TYPE_descriptor(td); + HNBAP_Update_cause_1_inherit_TYPE_descriptor(td); return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); } asn_enc_rval_t -Update_cause_encode_xer(asn_TYPE_descriptor_t *td, void *structure, +HNBAP_Update_cause_encode_xer(asn_TYPE_descriptor_t *td, void *structure, int ilevel, enum xer_encoder_flags_e flags, asn_app_consume_bytes_f *cb, void *app_key) { - Update_cause_1_inherit_TYPE_descriptor(td); + HNBAP_Update_cause_1_inherit_TYPE_descriptor(td); return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); } asn_dec_rval_t -Update_cause_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Update_cause_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - Update_cause_1_inherit_TYPE_descriptor(td); + HNBAP_Update_cause_1_inherit_TYPE_descriptor(td); return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } asn_enc_rval_t -Update_cause_encode_uper(asn_TYPE_descriptor_t *td, +HNBAP_Update_cause_encode_uper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - Update_cause_1_inherit_TYPE_descriptor(td); + HNBAP_Update_cause_1_inherit_TYPE_descriptor(td); return td->uper_encoder(td, constraints, structure, per_out); } asn_enc_rval_t -Update_cause_encode_aper(asn_TYPE_descriptor_t *td, +HNBAP_Update_cause_encode_aper(asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void *structure, asn_per_outp_t *per_out) { - Update_cause_1_inherit_TYPE_descriptor(td); + HNBAP_Update_cause_1_inherit_TYPE_descriptor(td); return td->aper_encoder(td, constraints, structure, per_out); } asn_dec_rval_t -Update_cause_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, +HNBAP_Update_cause_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - Update_cause_1_inherit_TYPE_descriptor(td); + HNBAP_Update_cause_1_inherit_TYPE_descriptor(td); return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); } -static asn_per_constraints_t asn_PER_type_Update_cause_constr_1 GCC_NOTUSED = { +static asn_per_constraints_t asn_PER_type_HNBAP_Update_cause_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0l, 0l } /* (0..0,...) */, { APC_UNCONSTRAINED, -1, -1, 0, 0 }, 0, 0 /* No PER value map */ }; -static const asn_INTEGER_enum_map_t asn_MAP_Update_cause_value2enum_1[] = { +static const asn_INTEGER_enum_map_t asn_MAP_HNBAP_Update_cause_value2enum_1[] = { { 0, 22, "relocation-preparation" } /* This list is extensible */ }; -static const unsigned int asn_MAP_Update_cause_enum2value_1[] = { +static const unsigned int asn_MAP_HNBAP_Update_cause_enum2value_1[] = { 0 /* relocation-preparation(0) */ /* This list is extensible */ }; -static const asn_INTEGER_specifics_t asn_SPC_Update_cause_specs_1 = { - asn_MAP_Update_cause_value2enum_1, /* "tag" => N; sorted by tag */ - asn_MAP_Update_cause_enum2value_1, /* N => "tag"; sorted by N */ +static const asn_INTEGER_specifics_t asn_SPC_HNBAP_Update_cause_specs_1 = { + asn_MAP_HNBAP_Update_cause_value2enum_1, /* "tag" => N; sorted by tag */ + asn_MAP_HNBAP_Update_cause_enum2value_1, /* N => "tag"; sorted by N */ 1, /* Number of elements in the maps */ 2, /* Extensions before this member */ 1, /* Strict enumeration */ 0, /* Native long size */ 0 }; -static const ber_tlv_tag_t asn_DEF_Update_cause_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_HNBAP_Update_cause_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) }; -asn_TYPE_descriptor_t asn_DEF_Update_cause = { - "Update-cause", - "Update-cause", - Update_cause_free, - Update_cause_print, - Update_cause_constraint, - Update_cause_decode_ber, - Update_cause_encode_der, - Update_cause_decode_xer, - Update_cause_encode_xer, - Update_cause_decode_uper, - Update_cause_encode_uper, - Update_cause_decode_aper, - Update_cause_encode_aper, +asn_TYPE_descriptor_t asn_DEF_HNBAP_Update_cause = { + "HNBAP_Update-cause", + "HNBAP_Update-cause", + HNBAP_Update_cause_free, + HNBAP_Update_cause_print, + HNBAP_Update_cause_constraint, + HNBAP_Update_cause_decode_ber, + HNBAP_Update_cause_encode_der, + HNBAP_Update_cause_decode_xer, + HNBAP_Update_cause_encode_xer, + HNBAP_Update_cause_decode_uper, + HNBAP_Update_cause_encode_uper, + HNBAP_Update_cause_decode_aper, + HNBAP_Update_cause_encode_aper, 0, /* Use generic outmost tag fetcher */ - asn_DEF_Update_cause_tags_1, - sizeof(asn_DEF_Update_cause_tags_1) - /sizeof(asn_DEF_Update_cause_tags_1[0]), /* 1 */ - asn_DEF_Update_cause_tags_1, /* Same as above */ - sizeof(asn_DEF_Update_cause_tags_1) - /sizeof(asn_DEF_Update_cause_tags_1[0]), /* 1 */ - &asn_PER_type_Update_cause_constr_1, + asn_DEF_HNBAP_Update_cause_tags_1, + sizeof(asn_DEF_HNBAP_Update_cause_tags_1) + /sizeof(asn_DEF_HNBAP_Update_cause_tags_1[0]), /* 1 */ + asn_DEF_HNBAP_Update_cause_tags_1, /* Same as above */ + sizeof(asn_DEF_HNBAP_Update_cause_tags_1) + /sizeof(asn_DEF_HNBAP_Update_cause_tags_1[0]), /* 1 */ + &asn_PER_type_HNBAP_Update_cause_constr_1, 0, 0, /* Defined elsewhere */ - &asn_SPC_Update_cause_specs_1 /* Additional specs */ + &asn_SPC_HNBAP_Update_cause_specs_1 /* Additional specs */ }; diff --git a/src/hnbap/HNBConfigurationInformationMissing.c b/src/hnbap/HNBConfigurationInformationMissing.c deleted file mode 100644 index 0b41f92..0000000 --- a/src/hnbap/HNBConfigurationInformationMissing.c +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/HNBConfigurationInformationMissing.h> - -static asn_TYPE_member_t asn_MBR_HNBConfigurationInformationMissing_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct HNBConfigurationInformationMissing, cause), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_Cause, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "cause" - }, - { ATF_POINTER, 1, offsetof(struct HNBConfigurationInformationMissing, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_HNBConfigurationInformationMissing_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_HNBConfigurationInformationMissing_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_HNBConfigurationInformationMissing_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cause */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_HNBConfigurationInformationMissing_specs_1 = { - sizeof(struct HNBConfigurationInformationMissing), - offsetof(struct HNBConfigurationInformationMissing, _asn_ctx), - asn_MAP_HNBConfigurationInformationMissing_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_HNBConfigurationInformationMissing_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* Start extensions */ - 3 /* Stop extensions */ -}; -asn_TYPE_descriptor_t asn_DEF_HNBConfigurationInformationMissing = { - "HNBConfigurationInformationMissing", - "HNBConfigurationInformationMissing", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_HNBConfigurationInformationMissing_tags_1, - sizeof(asn_DEF_HNBConfigurationInformationMissing_tags_1) - /sizeof(asn_DEF_HNBConfigurationInformationMissing_tags_1[0]), /* 1 */ - asn_DEF_HNBConfigurationInformationMissing_tags_1, /* Same as above */ - sizeof(asn_DEF_HNBConfigurationInformationMissing_tags_1) - /sizeof(asn_DEF_HNBConfigurationInformationMissing_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_HNBConfigurationInformationMissing_1, - 2, /* Elements count */ - &asn_SPC_HNBConfigurationInformationMissing_specs_1 /* Additional specs */ -}; - diff --git a/src/hnbap/HNBConfigurationInformationProvided.c b/src/hnbap/HNBConfigurationInformationProvided.c deleted file mode 100644 index 4957fba..0000000 --- a/src/hnbap/HNBConfigurationInformationProvided.c +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/HNBConfigurationInformationProvided.h> - -static asn_TYPE_member_t asn_MBR_HNBConfigurationInformationProvided_1[] = { - { ATF_POINTER, 2, offsetof(struct HNBConfigurationInformationProvided, psc), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_PSC, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "psc" - }, - { ATF_POINTER, 1, offsetof(struct HNBConfigurationInformationProvided, cSG_ID), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_CSG_ID, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "cSG-ID" - }, - { ATF_NOFLAGS, 0, offsetof(struct HNBConfigurationInformationProvided, hNB_Cell_Access_Mode), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_HNB_Cell_Access_Mode, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "hNB-Cell-Access-Mode" - }, - { ATF_NOFLAGS, 0, offsetof(struct HNBConfigurationInformationProvided, iurh_Signalling_TNL_AddressList), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_Iurh_Signalling_TNL_AddressList, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iurh-Signalling-TNL-AddressList" - }, - { ATF_POINTER, 1, offsetof(struct HNBConfigurationInformationProvided, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_HNBConfigurationInformationProvided_oms_1[] = { 0, 1, 4 }; -static const ber_tlv_tag_t asn_DEF_HNBConfigurationInformationProvided_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_HNBConfigurationInformationProvided_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* psc */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cSG-ID */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* hNB-Cell-Access-Mode */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* iurh-Signalling-TNL-AddressList */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_HNBConfigurationInformationProvided_specs_1 = { - sizeof(struct HNBConfigurationInformationProvided), - offsetof(struct HNBConfigurationInformationProvided, _asn_ctx), - asn_MAP_HNBConfigurationInformationProvided_tag2el_1, - 5, /* Count of tags in the map */ - asn_MAP_HNBConfigurationInformationProvided_oms_1, /* Optional members */ - 3, 0, /* Root/Additions */ - 4, /* Start extensions */ - 6 /* Stop extensions */ -}; -asn_TYPE_descriptor_t asn_DEF_HNBConfigurationInformationProvided = { - "HNBConfigurationInformationProvided", - "HNBConfigurationInformationProvided", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_HNBConfigurationInformationProvided_tags_1, - sizeof(asn_DEF_HNBConfigurationInformationProvided_tags_1) - /sizeof(asn_DEF_HNBConfigurationInformationProvided_tags_1[0]), /* 1 */ - asn_DEF_HNBConfigurationInformationProvided_tags_1, /* Same as above */ - sizeof(asn_DEF_HNBConfigurationInformationProvided_tags_1) - /sizeof(asn_DEF_HNBConfigurationInformationProvided_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_HNBConfigurationInformationProvided_1, - 5, /* Elements count */ - &asn_SPC_HNBConfigurationInformationProvided_specs_1 /* Additional specs */ -}; - diff --git a/src/hnbap/IE-Extensions.c b/src/hnbap/IE-Extensions.c deleted file mode 100644 index 67db752..0000000 --- a/src/hnbap/IE-Extensions.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/IE-Extensions.h> - -static asn_per_constraints_t asn_PER_type_IE_Extensions_constr_1 GCC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 16, 16, 1l, 65535l } /* (SIZE(1..65535)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_IE_Extensions_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_IE, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_IE_Extensions_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_IE_Extensions_specs_1 = { - sizeof(struct IE_Extensions), - offsetof(struct IE_Extensions, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_IE_Extensions = { - "IE-Extensions", - "IE-Extensions", - SEQUENCE_OF_free, - SEQUENCE_OF_print, - SEQUENCE_OF_constraint, - SEQUENCE_OF_decode_ber, - SEQUENCE_OF_encode_der, - SEQUENCE_OF_decode_xer, - SEQUENCE_OF_encode_xer, - SEQUENCE_OF_decode_uper, - SEQUENCE_OF_encode_uper, - SEQUENCE_OF_decode_aper, - SEQUENCE_OF_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_IE_Extensions_tags_1, - sizeof(asn_DEF_IE_Extensions_tags_1) - /sizeof(asn_DEF_IE_Extensions_tags_1[0]), /* 1 */ - asn_DEF_IE_Extensions_tags_1, /* Same as above */ - sizeof(asn_DEF_IE_Extensions_tags_1) - /sizeof(asn_DEF_IE_Extensions_tags_1[0]), /* 1 */ - &asn_PER_type_IE_Extensions_constr_1, - asn_MBR_IE_Extensions_1, - 1, /* Single element */ - &asn_SPC_IE_Extensions_specs_1 /* Additional specs */ -}; - diff --git a/src/hnbap/IMEI.c b/src/hnbap/IMEI.c deleted file mode 100644 index a920c59..0000000 --- a/src/hnbap/IMEI.c +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/IMEI.h> - -int -IMEI_constraint(asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - _ASN_CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 60l)) { - /* Constraint check succeeded */ - return 0; - } else { - _ASN_CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using BIT_STRING, - * so here we adjust the DEF accordingly. - */ -static void -IMEI_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { - td->free_struct = asn_DEF_BIT_STRING.free_struct; - td->print_struct = asn_DEF_BIT_STRING.print_struct; - td->check_constraints = asn_DEF_BIT_STRING.check_constraints; - td->ber_decoder = asn_DEF_BIT_STRING.ber_decoder; - td->der_encoder = asn_DEF_BIT_STRING.der_encoder; - td->xer_decoder = asn_DEF_BIT_STRING.xer_decoder; - td->xer_encoder = asn_DEF_BIT_STRING.xer_encoder; - td->uper_decoder = asn_DEF_BIT_STRING.uper_decoder; - td->uper_encoder = asn_DEF_BIT_STRING.uper_encoder; - td->aper_decoder = asn_DEF_BIT_STRING.aper_decoder; - td->aper_encoder = asn_DEF_BIT_STRING.aper_encoder; - if(!td->per_constraints) - td->per_constraints = asn_DEF_BIT_STRING.per_constraints; - td->elements = asn_DEF_BIT_STRING.elements; - td->elements_count = asn_DEF_BIT_STRING.elements_count; - td->specifics = asn_DEF_BIT_STRING.specifics; -} - -void -IMEI_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - IMEI_1_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -int -IMEI_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - IMEI_1_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -asn_dec_rval_t -IMEI_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, - void **structure, const void *bufptr, size_t size, int tag_mode) { - IMEI_1_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -asn_enc_rval_t -IMEI_encode_der(asn_TYPE_descriptor_t *td, - void *structure, int tag_mode, ber_tlv_tag_t tag, - asn_app_consume_bytes_f *cb, void *app_key) { - IMEI_1_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -asn_dec_rval_t -IMEI_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, - void **structure, const char *opt_mname, const void *bufptr, size_t size) { - IMEI_1_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -asn_enc_rval_t -IMEI_encode_xer(asn_TYPE_descriptor_t *td, void *structure, - int ilevel, enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { - IMEI_1_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -asn_dec_rval_t -IMEI_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, - asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - IMEI_1_inherit_TYPE_descriptor(td); - return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); -} - -asn_enc_rval_t -IMEI_encode_uper(asn_TYPE_descriptor_t *td, - asn_per_constraints_t *constraints, - void *structure, asn_per_outp_t *per_out) { - IMEI_1_inherit_TYPE_descriptor(td); - return td->uper_encoder(td, constraints, structure, per_out); -} - -asn_enc_rval_t -IMEI_encode_aper(asn_TYPE_descriptor_t *td, - asn_per_constraints_t *constraints, - void *structure, asn_per_outp_t *per_out) { - IMEI_1_inherit_TYPE_descriptor(td); - return td->aper_encoder(td, constraints, structure, per_out); -} - -asn_dec_rval_t -IMEI_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, - asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - IMEI_1_inherit_TYPE_descriptor(td); - return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); -} - -static asn_per_constraints_t asn_PER_type_IMEI_constr_1 GCC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 60l, 60l } /* (SIZE(60..60)) */, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_IMEI_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_IMEI = { - "IMEI", - "IMEI", - IMEI_free, - IMEI_print, - IMEI_constraint, - IMEI_decode_ber, - IMEI_encode_der, - IMEI_decode_xer, - IMEI_encode_xer, - IMEI_decode_uper, - IMEI_encode_uper, - IMEI_decode_aper, - IMEI_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_IMEI_tags_1, - sizeof(asn_DEF_IMEI_tags_1) - /sizeof(asn_DEF_IMEI_tags_1[0]), /* 1 */ - asn_DEF_IMEI_tags_1, /* Same as above */ - sizeof(asn_DEF_IMEI_tags_1) - /sizeof(asn_DEF_IMEI_tags_1[0]), /* 1 */ - &asn_PER_type_IMEI_constr_1, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/src/hnbap/Iurh-Signalling-TNL-AddressList.c b/src/hnbap/Iurh-Signalling-TNL-AddressList.c deleted file mode 100644 index f418eb1..0000000 --- a/src/hnbap/Iurh-Signalling-TNL-AddressList.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/Iurh-Signalling-TNL-AddressList.h> - -static asn_per_constraints_t asn_PER_type_Iurh_Signalling_TNL_AddressList_constr_1 GCC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 2, 2, 1l, 3l } /* (SIZE(1..3)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_Iurh_Signalling_TNL_AddressList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_IP_Address, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_Iurh_Signalling_TNL_AddressList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_Iurh_Signalling_TNL_AddressList_specs_1 = { - sizeof(struct Iurh_Signalling_TNL_AddressList), - offsetof(struct Iurh_Signalling_TNL_AddressList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_Iurh_Signalling_TNL_AddressList = { - "Iurh-Signalling-TNL-AddressList", - "Iurh-Signalling-TNL-AddressList", - SEQUENCE_OF_free, - SEQUENCE_OF_print, - SEQUENCE_OF_constraint, - SEQUENCE_OF_decode_ber, - SEQUENCE_OF_encode_der, - SEQUENCE_OF_decode_xer, - SEQUENCE_OF_encode_xer, - SEQUENCE_OF_decode_uper, - SEQUENCE_OF_encode_uper, - SEQUENCE_OF_decode_aper, - SEQUENCE_OF_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_Iurh_Signalling_TNL_AddressList_tags_1, - sizeof(asn_DEF_Iurh_Signalling_TNL_AddressList_tags_1) - /sizeof(asn_DEF_Iurh_Signalling_TNL_AddressList_tags_1[0]), /* 1 */ - asn_DEF_Iurh_Signalling_TNL_AddressList_tags_1, /* Same as above */ - sizeof(asn_DEF_Iurh_Signalling_TNL_AddressList_tags_1) - /sizeof(asn_DEF_Iurh_Signalling_TNL_AddressList_tags_1[0]), /* 1 */ - &asn_PER_type_Iurh_Signalling_TNL_AddressList_constr_1, - asn_MBR_Iurh_Signalling_TNL_AddressList_1, - 1, /* Single element */ - &asn_SPC_Iurh_Signalling_TNL_AddressList_specs_1 /* Additional specs */ -}; - diff --git a/src/hnbap/MacroCoverageInformation.c b/src/hnbap/MacroCoverageInformation.c deleted file mode 100644 index a60f41c..0000000 --- a/src/hnbap/MacroCoverageInformation.c +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/MacroCoverageInformation.h> - -static asn_TYPE_member_t asn_MBR_MacroCoverageInformation_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct MacroCoverageInformation, cellIdentity), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_MacroCellID, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "cellIdentity" - }, - { ATF_POINTER, 1, offsetof(struct MacroCoverageInformation, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_MacroCoverageInformation_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_MacroCoverageInformation_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MacroCoverageInformation_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cellIdentity */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_MacroCoverageInformation_specs_1 = { - sizeof(struct MacroCoverageInformation), - offsetof(struct MacroCoverageInformation, _asn_ctx), - asn_MAP_MacroCoverageInformation_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_MacroCoverageInformation_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* Start extensions */ - 3 /* Stop extensions */ -}; -asn_TYPE_descriptor_t asn_DEF_MacroCoverageInformation = { - "MacroCoverageInformation", - "MacroCoverageInformation", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_MacroCoverageInformation_tags_1, - sizeof(asn_DEF_MacroCoverageInformation_tags_1) - /sizeof(asn_DEF_MacroCoverageInformation_tags_1[0]), /* 1 */ - asn_DEF_MacroCoverageInformation_tags_1, /* Same as above */ - sizeof(asn_DEF_MacroCoverageInformation_tags_1) - /sizeof(asn_DEF_MacroCoverageInformation_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_MacroCoverageInformation_1, - 2, /* Elements count */ - &asn_SPC_MacroCoverageInformation_specs_1 /* Additional specs */ -}; - diff --git a/src/hnbap/Makefile.am b/src/hnbap/Makefile.am index 8a2c56a..261b4c3 100644 --- a/src/hnbap/Makefile.am +++ b/src/hnbap/Makefile.am @@ -1,250 +1,261 @@ ASN_MODULE_SOURCES= \ - Criticality.c \ - Presence.c \ - PrivateIE-ID.c \ - ProcedureCode.c \ - ProtocolIE-ID.c \ - TriggeringMessage.c \ - IE-Extensions.c \ - Access-stratum-release-indicator.c \ - AccessResult.c \ - AltitudeAndDirection.c \ - BackoffTimer.c \ - BindingID.c \ - Cause.c \ - CauseRadioNetwork.c \ - CauseTransport.c \ - CauseProtocol.c \ - CauseMisc.c \ - CellIdentity.c \ - CELL-FACHMobilitySupport.c \ - Context-ID.c \ - CriticalityDiagnostics.c \ - CriticalityDiagnostics-IE-List.c \ - CSG-ID.c \ - CSG-Capability.c \ - CSGMembershipStatus.c \ - CGI.c \ - CI.c \ - CN-DomainIndicator.c \ - ESN.c \ - GeographicalLocation.c \ - GeographicalCoordinates.c \ - GTP-TEI.c \ - HNBCapacity.c \ - HNB-Cell-Access-Mode.c \ - HNB-Cell-Identifier.c \ - HNB-GWResponse.c \ - HNB-RNL-Identity.c \ - HNBConfigInfo.c \ - ConfigurationInformation.c \ - HNBConfigurationInformationProvided.c \ - HNBConfigurationInformationMissing.c \ - HNB-Location-Information.c \ - HNB-Identity.c \ - HNB-Identity-Info.c \ - IMEI.c \ - IMSI.c \ - IMSIDS41.c \ - IMSIESN.c \ - IP-Address.c \ - Ipv4Address.c \ - Ipv6Address.c \ - Iurh-Signalling-TNL-AddressList.c \ - LAC.c \ - LAI.c \ - MacroCoverageInformation.c \ - MacroCellID.c \ - MuxPortNumber.c \ - NeighbourCellIdentityList.c \ - NeighbourIdentity.c \ - NeighbourInfoList.c \ - AdditionalNeighbourInfoList.c \ - NeighbourInfoRequestList.c \ - NeighbourInfoRequestItem.c \ - PLMNidentity.c \ - PSC.c \ - PTMSI.c \ - PTMSIRAI.c \ - RAB-ID.c \ - RABList.c \ - RABListItem.c \ - RAC.c \ - RAI.c \ - Registration-Cause.c \ - RNC-ID.c \ - SAC.c \ - S-RNTIPrefix.c \ - TMSILAI.c \ - TMSIDS41.c \ - TransportInfo.c \ - TransportLayerAddress.c \ - Tunnel-Information.c \ - TypeOfError.c \ - UDP-Port-Number.c \ - UE-Capabilities.c \ - UTRANCellID.c \ - UE-Identity.c \ - Update-cause.c \ - URAIdentityList.c \ - URAIdentity.c \ - U-RNTI.c \ - UnknownU-RNTIIndication.c \ - HNBAP-PDU.c \ - InitiatingMessage.c \ - SuccessfulOutcome.c \ - UnsuccessfulOutcome.c \ - HNBRegisterRequest.c \ - HNBRegisterAccept.c \ - HNBRegisterReject.c \ - UERegisterRequest.c \ - UERegisterAccept.c \ - UERegisterReject.c \ - UEDe-Register.c \ - HNBDe-Register.c \ - ErrorIndication.c \ - CSGMembershipUpdate.c \ - TNLUpdateRequest.c \ - TNLUpdateResponse.c \ - TNLUpdateFailure.c \ - HNBConfigTransferRequest.c \ - HNBConfigTransferResponse.c \ - RelocationComplete.c \ - U-RNTIQueryRequest.c \ - U-RNTIQueryResponse.c \ - PrivateMessage.c \ - IE.c + HNBAP_Criticality.c \ + HNBAP_Presence.c \ + HNBAP_PrivateIE-ID.c \ + HNBAP_ProcedureCode.c \ + HNBAP_ProtocolIE-ID.c \ + HNBAP_TriggeringMessage.c \ + HNBAP_IE-Extensions.c \ + HNBAP_Access-stratum-release-indicator.c \ + HNBAP_AccessResult.c \ + HNBAP_AltitudeAndDirection.c \ + HNBAP_BackoffTimer.c \ + HNBAP_BindingID.c \ + HNBAP_Cause.c \ + HNBAP_CauseRadioNetwork.c \ + HNBAP_CauseTransport.c \ + HNBAP_CauseProtocol.c \ + HNBAP_CauseMisc.c \ + HNBAP_CellIdentity.c \ + HNBAP_CELL-FACHMobilitySupport.c \ + HNBAP_Context-ID.c \ + HNBAP_CriticalityDiagnostics.c \ + HNBAP_CriticalityDiagnostics-IE-List.c \ + HNBAP_CriticalityDiagnostics-IE-List-Value.c \ + HNBAP_CSG-ID.c \ + HNBAP_CSG-Capability.c \ + HNBAP_CSGMembershipStatus.c \ + HNBAP_CGI.c \ + HNBAP_CI.c \ + HNBAP_CN-DomainIndicator.c \ + HNBAP_ESN.c \ + HNBAP_GeographicalLocation.c \ + HNBAP_GeographicalCoordinates.c \ + HNBAP_GTP-TEI.c \ + HNBAP_HNBCapacity.c \ + HNBAP_HNB-Cell-Access-Mode.c \ + HNBAP_HNB-Cell-Identifier.c \ + HNBAP_HNB-GWResponse.c \ + HNBAP_HNB-RNL-Identity.c \ + HNBAP_HNBConfigInfo.c \ + HNBAP_ConfigurationInformation.c \ + HNBAP_HNBConfigurationInformationProvided.c \ + HNBAP_HNBConfigurationInformationMissing.c \ + HNBAP_HNB-Location-Information.c \ + HNBAP_HNB-Identity.c \ + HNBAP_HNB-Identity-Info.c \ + HNBAP_IMEI.c \ + HNBAP_IMSI.c \ + HNBAP_IMSIDS41.c \ + HNBAP_IMSIESN.c \ + HNBAP_IP-Address.c \ + HNBAP_Ipv4Address.c \ + HNBAP_Ipv6Address.c \ + HNBAP_Iurh-Signalling-TNL-AddressList.c \ + HNBAP_LAC.c \ + HNBAP_LAI.c \ + HNBAP_MacroCoverageInformation.c \ + HNBAP_MacroCellID.c \ + HNBAP_MuxPortNumber.c \ + HNBAP_NeighbourCellIdentityList.c \ + HNBAP_NeighbourIdentity.c \ + HNBAP_NeighbourInfoList.c \ + HNBAP_AdditionalNeighbourInfoList.c \ + HNBAP_NeighbourInfoRequestList.c \ + HNBAP_NeighbourInfoRequestItem.c \ + HNBAP_PLMNidentity.c \ + HNBAP_PSC.c \ + HNBAP_PTMSI.c \ + HNBAP_PTMSIRAI.c \ + HNBAP_RAB-ID.c \ + HNBAP_RABList.c \ + HNBAP_RABListItem.c \ + HNBAP_RAC.c \ + HNBAP_RAI.c \ + HNBAP_Registration-Cause.c \ + HNBAP_RNC-ID.c \ + HNBAP_SAC.c \ + HNBAP_S-RNTIPrefix.c \ + HNBAP_TMSILAI.c \ + HNBAP_TMSIDS41.c \ + HNBAP_TransportInfo.c \ + HNBAP_TransportLayerAddress.c \ + HNBAP_Tunnel-Information.c \ + HNBAP_TypeOfError.c \ + HNBAP_UDP-Port-Number.c \ + HNBAP_UE-Capabilities.c \ + HNBAP_UTRANCellID.c \ + HNBAP_UE-Identity.c \ + HNBAP_Update-cause.c \ + HNBAP_URAIdentityList.c \ + HNBAP_URAIdentity.c \ + HNBAP_U-RNTI.c \ + HNBAP_UnknownU-RNTIIndication.c \ + HNBAP_HNBAP-PDU.c \ + HNBAP_InitiatingMessage.c \ + HNBAP_SuccessfulOutcome.c \ + HNBAP_UnsuccessfulOutcome.c \ + HNBAP_HNBRegisterRequest.c \ + HNBAP_HNBRegisterAccept.c \ + HNBAP_HNBRegisterReject.c \ + HNBAP_UERegisterRequest.c \ + HNBAP_UERegisterAccept.c \ + HNBAP_UERegisterReject.c \ + HNBAP_UEDe-Register.c \ + HNBAP_HNBDe-Register.c \ + HNBAP_ErrorIndication.c \ + HNBAP_CSGMembershipUpdate.c \ + HNBAP_TNLUpdateRequest.c \ + HNBAP_TNLUpdateResponse.c \ + HNBAP_TNLUpdateFailure.c \ + HNBAP_HNBConfigTransferRequest.c \ + HNBAP_HNBConfigTransferResponse.c \ + HNBAP_RelocationComplete.c \ + HNBAP_U-RNTIQueryRequest.c \ + HNBAP_U-RNTIQueryResponse.c \ + HNBAP_PrivateMessage.c \ + HNBAP_IE.c ASN_MODULE_INC= \ - Criticality.h \ - Presence.h \ - PrivateIE-ID.h \ - ProcedureCode.h \ - ProtocolIE-ID.h \ - TriggeringMessage.h \ - IE-Extensions.h \ - Access-stratum-release-indicator.h \ - AccessResult.h \ - AltitudeAndDirection.h \ - BackoffTimer.h \ - BindingID.h \ - Cause.h \ - CauseRadioNetwork.h \ - CauseTransport.h \ - CauseProtocol.h \ - CauseMisc.h \ - CellIdentity.h \ - CELL-FACHMobilitySupport.h \ - Context-ID.h \ - CriticalityDiagnostics.h \ - CriticalityDiagnostics-IE-List.h \ - CSG-ID.h \ - CSG-Capability.h \ - CSGMembershipStatus.h \ - CGI.h \ - CI.h \ - CN-DomainIndicator.h \ - ESN.h \ - GeographicalLocation.h \ - GeographicalCoordinates.h \ - GTP-TEI.h \ - HNBCapacity.h \ - HNB-Cell-Access-Mode.h \ - HNB-Cell-Identifier.h \ - HNB-GWResponse.h \ - HNB-RNL-Identity.h \ - HNBConfigInfo.h \ - ConfigurationInformation.h \ - HNBConfigurationInformationProvided.h \ - HNBConfigurationInformationMissing.h \ - HNB-Location-Information.h \ - HNB-Identity.h \ - HNB-Identity-Info.h \ - IMEI.h \ - IMSI.h \ - IMSIDS41.h \ - IMSIESN.h \ - IP-Address.h \ - Ipv4Address.h \ - Ipv6Address.h \ - Iurh-Signalling-TNL-AddressList.h \ - LAC.h \ - LAI.h \ - MacroCoverageInformation.h \ - MacroCellID.h \ - MuxPortNumber.h \ - NeighbourCellIdentityList.h \ - NeighbourIdentity.h \ - NeighbourInfoList.h \ - AdditionalNeighbourInfoList.h \ - NeighbourInfoRequestList.h \ - NeighbourInfoRequestItem.h \ - PLMNidentity.h \ - PSC.h \ - PTMSI.h \ - PTMSIRAI.h \ - RAB-ID.h \ - RABList.h \ - RABListItem.h \ - RAC.h \ - RAI.h \ - Registration-Cause.h \ - RNC-ID.h \ - SAC.h \ - S-RNTIPrefix.h \ - TMSILAI.h \ - TMSIDS41.h \ - TransportInfo.h \ - TransportLayerAddress.h \ - Tunnel-Information.h \ - TypeOfError.h \ - UDP-Port-Number.h \ - UE-Capabilities.h \ - UTRANCellID.h \ - UE-Identity.h \ - Update-cause.h \ - URAIdentityList.h \ - URAIdentity.h \ - U-RNTI.h \ - UnknownU-RNTIIndication.h \ - HNBAP-PDU.h \ - InitiatingMessage.h \ - SuccessfulOutcome.h \ - UnsuccessfulOutcome.h \ - HNBRegisterRequest.h \ - HNBRegisterAccept.h \ - HNBRegisterReject.h \ - UERegisterRequest.h \ - UERegisterAccept.h \ - UERegisterReject.h \ - UEDe-Register.h \ - HNBDe-Register.h \ - ErrorIndication.h \ - CSGMembershipUpdate.h \ - TNLUpdateRequest.h \ - TNLUpdateResponse.h \ - TNLUpdateFailure.h \ - HNBConfigTransferRequest.h \ - HNBConfigTransferResponse.h \ - RelocationComplete.h \ - U-RNTIQueryRequest.h \ - U-RNTIQueryResponse.h \ - PrivateMessage.h \ - IE.h + HNBAP_Criticality.h \ + HNBAP_Presence.h \ + HNBAP_PrivateIE-ID.h \ + HNBAP_ProcedureCode.h \ + HNBAP_ProtocolIE-ID.h \ + HNBAP_TriggeringMessage.h \ + HNBAP_IE-Extensions.h \ + HNBAP_Access-stratum-release-indicator.h \ + HNBAP_AccessResult.h \ + HNBAP_AltitudeAndDirection.h \ + HNBAP_BackoffTimer.h \ + HNBAP_BindingID.h \ + HNBAP_Cause.h \ + HNBAP_CauseRadioNetwork.h \ + HNBAP_CauseTransport.h \ + HNBAP_CauseProtocol.h \ + HNBAP_CauseMisc.h \ + HNBAP_CellIdentity.h \ + HNBAP_CELL-FACHMobilitySupport.h \ + HNBAP_Context-ID.h \ + HNBAP_CriticalityDiagnostics.h \ + HNBAP_CriticalityDiagnostics-IE-List.h \ + HNBAP_CriticalityDiagnostics-IE-List-Value.h \ + HNBAP_CSG-ID.h \ + HNBAP_CSG-Capability.h \ + HNBAP_CSGMembershipStatus.h \ + HNBAP_CGI.h \ + HNBAP_CI.h \ + HNBAP_CN-DomainIndicator.h \ + HNBAP_ESN.h \ + HNBAP_GeographicalLocation.h \ + HNBAP_GeographicalCoordinates.h \ + HNBAP_GTP-TEI.h \ + HNBAP_HNBCapacity.h \ + HNBAP_HNB-Cell-Access-Mode.h \ + HNBAP_HNB-Cell-Identifier.h \ + HNBAP_HNB-GWResponse.h \ + HNBAP_HNB-RNL-Identity.h \ + HNBAP_HNBConfigInfo.h \ + HNBAP_ConfigurationInformation.h \ + HNBAP_HNBConfigurationInformationProvided.h \ + HNBAP_HNBConfigurationInformationMissing.h \ + HNBAP_HNB-Location-Information.h \ + HNBAP_HNB-Identity.h \ + HNBAP_HNB-Identity-Info.h \ + HNBAP_IMEI.h \ + HNBAP_IMSI.h \ + HNBAP_IMSIDS41.h \ + HNBAP_IMSIESN.h \ + HNBAP_IP-Address.h \ + HNBAP_Ipv4Address.h \ + HNBAP_Ipv6Address.h \ + HNBAP_Iurh-Signalling-TNL-AddressList.h \ + HNBAP_LAC.h \ + HNBAP_LAI.h \ + HNBAP_MacroCoverageInformation.h \ + HNBAP_MacroCellID.h \ + HNBAP_MuxPortNumber.h \ + HNBAP_NeighbourCellIdentityList.h \ + HNBAP_NeighbourIdentity.h \ + HNBAP_NeighbourInfoList.h \ + HNBAP_AdditionalNeighbourInfoList.h \ + HNBAP_NeighbourInfoRequestList.h \ + HNBAP_NeighbourInfoRequestItem.h \ + HNBAP_PLMNidentity.h \ + HNBAP_PSC.h \ + HNBAP_PTMSI.h \ + HNBAP_PTMSIRAI.h \ + HNBAP_RAB-ID.h \ + HNBAP_RABList.h \ + HNBAP_RABListItem.h \ + HNBAP_RAC.h \ + HNBAP_RAI.h \ + HNBAP_Registration-Cause.h \ + HNBAP_RNC-ID.h \ + HNBAP_SAC.h \ + HNBAP_S-RNTIPrefix.h \ + HNBAP_TMSILAI.h \ + HNBAP_TMSIDS41.h \ + HNBAP_TransportInfo.h \ + HNBAP_TransportLayerAddress.h \ + HNBAP_Tunnel-Information.h \ + HNBAP_TypeOfError.h \ + HNBAP_UDP-Port-Number.h \ + HNBAP_UE-Capabilities.h \ + HNBAP_UTRANCellID.h \ + HNBAP_UE-Identity.h \ + HNBAP_Update-cause.h \ + HNBAP_URAIdentityList.h \ + HNBAP_URAIdentity.h \ + HNBAP_U-RNTI.h \ + HNBAP_UnknownU-RNTIIndication.h \ + HNBAP_HNBAP-PDU.h \ + HNBAP_InitiatingMessage.h \ + HNBAP_SuccessfulOutcome.h \ + HNBAP_UnsuccessfulOutcome.h \ + HNBAP_HNBRegisterRequest.h \ + HNBAP_HNBRegisterAccept.h \ + HNBAP_HNBRegisterReject.h \ + HNBAP_UERegisterRequest.h \ + HNBAP_UERegisterAccept.h \ + HNBAP_UERegisterReject.h \ + HNBAP_UEDe-Register.h \ + HNBAP_HNBDe-Register.h \ + HNBAP_ErrorIndication.h \ + HNBAP_CSGMembershipUpdate.h \ + HNBAP_TNLUpdateRequest.h \ + HNBAP_TNLUpdateResponse.h \ + HNBAP_TNLUpdateFailure.h \ + HNBAP_HNBConfigTransferRequest.h \ + HNBAP_HNBConfigTransferResponse.h \ + HNBAP_RelocationComplete.h \ + HNBAP_U-RNTIQueryRequest.h \ + HNBAP_U-RNTIQueryResponse.h \ + HNBAP_PrivateMessage.h \ + HNBAP_IE.h AM_CFLAGS = -I$(top_srcdir)/include $(ASN1C_CFLAGS) $(OSMOCORE_CFLAGS) HNBAP_ASN1 = $(top_srcdir)/asn1/hnbap -noinst_LIBRARIES=libosmo-asn1-hnbap.a -libosmo_asn1_hnbap_a_SOURCES=$(ASN_MODULE_SOURCES) -libosmo_asn1_hnbap_a_LIBADD=$(ASN1C_LDADD) +noinst_LTLIBRARIES=libosmo-asn1-hnbap.la +libosmo_asn1_hnbap_la_SOURCES=$(ASN_MODULE_SOURCES) +libosmo_asn1_hnbap_la_LIBADD=$(ASN1C_LDADD) regen: regenerate-from-asn1-source regenerate-from-asn1-source: - asn1c -gen-PER -fnative-types $(HNBAP_ASN1)/HNBAP-CommonDataTypes.asn $(HNBAP_ASN1)/HNBAP-Constants.asn $(HNBAP_ASN1)/HNBAP-IEs.asn $(HNBAP_ASN1)/HNBAP-PDU.asn -# remove the local copy of the runtime code - -rm ANY.* BOOLEAN.* INTEGER.* NativeEnumerated.* NativeInteger.* OBJECT_IDENTIFIER.* asn_* OCTET_STRING.* converter-sample.c per_* xer_* constr* der_* ber_* BIT_STRING.* + ASN1C_PREFIX="HNBAP_" asn1c \ + -R \ + -fcompound-names \ + -gen-PER \ + $(HNBAP_ASN1)/HNBAP-CommonDataTypes.asn \ + $(HNBAP_ASN1)/HNBAP-Constants.asn \ + $(HNBAP_ASN1)/HNBAP-IEs.asn \ + $(HNBAP_ASN1)/HNBAP-PDU.asn # change include style to `#include <dir/foo.h>' $(top_srcdir)/move-asn1-header-files.sh osmocom/hnbap $(ASN_MODULE_INC) +# Finally copy *.c from buildir to srcdir: + if test "$(realpath $(CURDIR))" != "$(realpath $(top_srcdir)/src/hnbap)"; then \ + cp *.c $(top_srcdir)/src/hnbap/; \ + fi diff --git a/src/hnbap/NeighbourCellIdentityList.c b/src/hnbap/NeighbourCellIdentityList.c deleted file mode 100644 index 147780a..0000000 --- a/src/hnbap/NeighbourCellIdentityList.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/NeighbourCellIdentityList.h> - -static asn_per_constraints_t asn_PER_type_NeighbourCellIdentityList_constr_1 GCC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 8, 8, 0l, 128l } /* (SIZE(0..128)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_NeighbourCellIdentityList_1[] = { - { ATF_POINTER, 0, 0, - -1 /* Ambiguous tag (CHOICE?) */, - 0, - &asn_DEF_NeighbourIdentity, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_NeighbourCellIdentityList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_NeighbourCellIdentityList_specs_1 = { - sizeof(struct NeighbourCellIdentityList), - offsetof(struct NeighbourCellIdentityList, _asn_ctx), - 2, /* XER encoding is XMLValueList */ -}; -asn_TYPE_descriptor_t asn_DEF_NeighbourCellIdentityList = { - "NeighbourCellIdentityList", - "NeighbourCellIdentityList", - SEQUENCE_OF_free, - SEQUENCE_OF_print, - SEQUENCE_OF_constraint, - SEQUENCE_OF_decode_ber, - SEQUENCE_OF_encode_der, - SEQUENCE_OF_decode_xer, - SEQUENCE_OF_encode_xer, - SEQUENCE_OF_decode_uper, - SEQUENCE_OF_encode_uper, - SEQUENCE_OF_decode_aper, - SEQUENCE_OF_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_NeighbourCellIdentityList_tags_1, - sizeof(asn_DEF_NeighbourCellIdentityList_tags_1) - /sizeof(asn_DEF_NeighbourCellIdentityList_tags_1[0]), /* 1 */ - asn_DEF_NeighbourCellIdentityList_tags_1, /* Same as above */ - sizeof(asn_DEF_NeighbourCellIdentityList_tags_1) - /sizeof(asn_DEF_NeighbourCellIdentityList_tags_1[0]), /* 1 */ - &asn_PER_type_NeighbourCellIdentityList_constr_1, - asn_MBR_NeighbourCellIdentityList_1, - 1, /* Single element */ - &asn_SPC_NeighbourCellIdentityList_specs_1 /* Additional specs */ -}; - diff --git a/src/hnbap/NeighbourInfoList.c b/src/hnbap/NeighbourInfoList.c deleted file mode 100644 index 457a208..0000000 --- a/src/hnbap/NeighbourInfoList.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/NeighbourInfoList.h> - -static asn_per_constraints_t asn_PER_type_NeighbourInfoList_constr_1 GCC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1l, 32l } /* (SIZE(1..32)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_NeighbourInfoList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_HNBConfigInfo, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_NeighbourInfoList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_NeighbourInfoList_specs_1 = { - sizeof(struct NeighbourInfoList), - offsetof(struct NeighbourInfoList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_NeighbourInfoList = { - "NeighbourInfoList", - "NeighbourInfoList", - SEQUENCE_OF_free, - SEQUENCE_OF_print, - SEQUENCE_OF_constraint, - SEQUENCE_OF_decode_ber, - SEQUENCE_OF_encode_der, - SEQUENCE_OF_decode_xer, - SEQUENCE_OF_encode_xer, - SEQUENCE_OF_decode_uper, - SEQUENCE_OF_encode_uper, - SEQUENCE_OF_decode_aper, - SEQUENCE_OF_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_NeighbourInfoList_tags_1, - sizeof(asn_DEF_NeighbourInfoList_tags_1) - /sizeof(asn_DEF_NeighbourInfoList_tags_1[0]), /* 1 */ - asn_DEF_NeighbourInfoList_tags_1, /* Same as above */ - sizeof(asn_DEF_NeighbourInfoList_tags_1) - /sizeof(asn_DEF_NeighbourInfoList_tags_1[0]), /* 1 */ - &asn_PER_type_NeighbourInfoList_constr_1, - asn_MBR_NeighbourInfoList_1, - 1, /* Single element */ - &asn_SPC_NeighbourInfoList_specs_1 /* Additional specs */ -}; - diff --git a/src/hnbap/NeighbourInfoRequestItem.c b/src/hnbap/NeighbourInfoRequestItem.c deleted file mode 100644 index 0db194c..0000000 --- a/src/hnbap/NeighbourInfoRequestItem.c +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/NeighbourInfoRequestItem.h> - -static asn_TYPE_member_t asn_MBR_NeighbourInfoRequestItem_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct NeighbourInfoRequestItem, hnb_RNL_Identity), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_HNB_RNL_Identity, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "hnb-RNL-Identity" - }, - { ATF_POINTER, 1, offsetof(struct NeighbourInfoRequestItem, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_NeighbourInfoRequestItem_oms_1[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_NeighbourInfoRequestItem_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_NeighbourInfoRequestItem_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* hnb-RNL-Identity */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_NeighbourInfoRequestItem_specs_1 = { - sizeof(struct NeighbourInfoRequestItem), - offsetof(struct NeighbourInfoRequestItem, _asn_ctx), - asn_MAP_NeighbourInfoRequestItem_tag2el_1, - 2, /* Count of tags in the map */ - asn_MAP_NeighbourInfoRequestItem_oms_1, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* Start extensions */ - 3 /* Stop extensions */ -}; -asn_TYPE_descriptor_t asn_DEF_NeighbourInfoRequestItem = { - "NeighbourInfoRequestItem", - "NeighbourInfoRequestItem", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_NeighbourInfoRequestItem_tags_1, - sizeof(asn_DEF_NeighbourInfoRequestItem_tags_1) - /sizeof(asn_DEF_NeighbourInfoRequestItem_tags_1[0]), /* 1 */ - asn_DEF_NeighbourInfoRequestItem_tags_1, /* Same as above */ - sizeof(asn_DEF_NeighbourInfoRequestItem_tags_1) - /sizeof(asn_DEF_NeighbourInfoRequestItem_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_NeighbourInfoRequestItem_1, - 2, /* Elements count */ - &asn_SPC_NeighbourInfoRequestItem_specs_1 /* Additional specs */ -}; - diff --git a/src/hnbap/NeighbourInfoRequestList.c b/src/hnbap/NeighbourInfoRequestList.c deleted file mode 100644 index 20c786e..0000000 --- a/src/hnbap/NeighbourInfoRequestList.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/NeighbourInfoRequestList.h> - -static asn_per_constraints_t asn_PER_type_NeighbourInfoRequestList_constr_1 GCC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 5, 5, 1l, 32l } /* (SIZE(1..32)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_NeighbourInfoRequestList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_NeighbourInfoRequestItem, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_NeighbourInfoRequestList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_NeighbourInfoRequestList_specs_1 = { - sizeof(struct NeighbourInfoRequestList), - offsetof(struct NeighbourInfoRequestList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_NeighbourInfoRequestList = { - "NeighbourInfoRequestList", - "NeighbourInfoRequestList", - SEQUENCE_OF_free, - SEQUENCE_OF_print, - SEQUENCE_OF_constraint, - SEQUENCE_OF_decode_ber, - SEQUENCE_OF_encode_der, - SEQUENCE_OF_decode_xer, - SEQUENCE_OF_encode_xer, - SEQUENCE_OF_decode_uper, - SEQUENCE_OF_encode_uper, - SEQUENCE_OF_decode_aper, - SEQUENCE_OF_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_NeighbourInfoRequestList_tags_1, - sizeof(asn_DEF_NeighbourInfoRequestList_tags_1) - /sizeof(asn_DEF_NeighbourInfoRequestList_tags_1[0]), /* 1 */ - asn_DEF_NeighbourInfoRequestList_tags_1, /* Same as above */ - sizeof(asn_DEF_NeighbourInfoRequestList_tags_1) - /sizeof(asn_DEF_NeighbourInfoRequestList_tags_1[0]), /* 1 */ - &asn_PER_type_NeighbourInfoRequestList_constr_1, - asn_MBR_NeighbourInfoRequestList_1, - 1, /* Single element */ - &asn_SPC_NeighbourInfoRequestList_specs_1 /* Additional specs */ -}; - diff --git a/src/hnbap/RAB-ID.c b/src/hnbap/RAB-ID.c deleted file mode 100644 index 47d8905..0000000 --- a/src/hnbap/RAB-ID.c +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/RAB-ID.h> - -int -RAB_ID_constraint(asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; - size_t size; - - if(!sptr) { - _ASN_CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - if(st->size > 0) { - /* Size in bits */ - size = 8 * st->size - (st->bits_unused & 0x07); - } else { - size = 0; - } - - if((size == 8l)) { - /* Constraint check succeeded */ - return 0; - } else { - _ASN_CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -/* - * This type is implemented using BIT_STRING, - * so here we adjust the DEF accordingly. - */ -static void -RAB_ID_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { - td->free_struct = asn_DEF_BIT_STRING.free_struct; - td->print_struct = asn_DEF_BIT_STRING.print_struct; - td->check_constraints = asn_DEF_BIT_STRING.check_constraints; - td->ber_decoder = asn_DEF_BIT_STRING.ber_decoder; - td->der_encoder = asn_DEF_BIT_STRING.der_encoder; - td->xer_decoder = asn_DEF_BIT_STRING.xer_decoder; - td->xer_encoder = asn_DEF_BIT_STRING.xer_encoder; - td->uper_decoder = asn_DEF_BIT_STRING.uper_decoder; - td->uper_encoder = asn_DEF_BIT_STRING.uper_encoder; - td->aper_decoder = asn_DEF_BIT_STRING.aper_decoder; - td->aper_encoder = asn_DEF_BIT_STRING.aper_encoder; - if(!td->per_constraints) - td->per_constraints = asn_DEF_BIT_STRING.per_constraints; - td->elements = asn_DEF_BIT_STRING.elements; - td->elements_count = asn_DEF_BIT_STRING.elements_count; - td->specifics = asn_DEF_BIT_STRING.specifics; -} - -void -RAB_ID_free(asn_TYPE_descriptor_t *td, - void *struct_ptr, int contents_only) { - RAB_ID_1_inherit_TYPE_descriptor(td); - td->free_struct(td, struct_ptr, contents_only); -} - -int -RAB_ID_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, - int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { - RAB_ID_1_inherit_TYPE_descriptor(td); - return td->print_struct(td, struct_ptr, ilevel, cb, app_key); -} - -asn_dec_rval_t -RAB_ID_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, - void **structure, const void *bufptr, size_t size, int tag_mode) { - RAB_ID_1_inherit_TYPE_descriptor(td); - return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); -} - -asn_enc_rval_t -RAB_ID_encode_der(asn_TYPE_descriptor_t *td, - void *structure, int tag_mode, ber_tlv_tag_t tag, - asn_app_consume_bytes_f *cb, void *app_key) { - RAB_ID_1_inherit_TYPE_descriptor(td); - return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); -} - -asn_dec_rval_t -RAB_ID_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, - void **structure, const char *opt_mname, const void *bufptr, size_t size) { - RAB_ID_1_inherit_TYPE_descriptor(td); - return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); -} - -asn_enc_rval_t -RAB_ID_encode_xer(asn_TYPE_descriptor_t *td, void *structure, - int ilevel, enum xer_encoder_flags_e flags, - asn_app_consume_bytes_f *cb, void *app_key) { - RAB_ID_1_inherit_TYPE_descriptor(td); - return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); -} - -asn_dec_rval_t -RAB_ID_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, - asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - RAB_ID_1_inherit_TYPE_descriptor(td); - return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data); -} - -asn_enc_rval_t -RAB_ID_encode_uper(asn_TYPE_descriptor_t *td, - asn_per_constraints_t *constraints, - void *structure, asn_per_outp_t *per_out) { - RAB_ID_1_inherit_TYPE_descriptor(td); - return td->uper_encoder(td, constraints, structure, per_out); -} - -asn_enc_rval_t -RAB_ID_encode_aper(asn_TYPE_descriptor_t *td, - asn_per_constraints_t *constraints, - void *structure, asn_per_outp_t *per_out) { - RAB_ID_1_inherit_TYPE_descriptor(td); - return td->aper_encoder(td, constraints, structure, per_out); -} - -asn_dec_rval_t -RAB_ID_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, - asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) { - RAB_ID_1_inherit_TYPE_descriptor(td); - return td->aper_decoder(opt_codec_ctx, td, constraints, structure, per_data); -} - -static asn_per_constraints_t asn_PER_type_RAB_ID_constr_1 GCC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 0, 0, 8l, 8l } /* (SIZE(8..8)) */, - 0, 0 /* No PER value map */ -}; -static const ber_tlv_tag_t asn_DEF_RAB_ID_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)) -}; -asn_TYPE_descriptor_t asn_DEF_RAB_ID = { - "RAB-ID", - "RAB-ID", - RAB_ID_free, - RAB_ID_print, - RAB_ID_constraint, - RAB_ID_decode_ber, - RAB_ID_encode_der, - RAB_ID_decode_xer, - RAB_ID_encode_xer, - RAB_ID_decode_uper, - RAB_ID_encode_uper, - RAB_ID_decode_aper, - RAB_ID_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_RAB_ID_tags_1, - sizeof(asn_DEF_RAB_ID_tags_1) - /sizeof(asn_DEF_RAB_ID_tags_1[0]), /* 1 */ - asn_DEF_RAB_ID_tags_1, /* Same as above */ - sizeof(asn_DEF_RAB_ID_tags_1) - /sizeof(asn_DEF_RAB_ID_tags_1[0]), /* 1 */ - &asn_PER_type_RAB_ID_constr_1, - 0, 0, /* No members */ - 0 /* No specifics */ -}; - diff --git a/src/hnbap/RABList.c b/src/hnbap/RABList.c deleted file mode 100644 index 393dcfb..0000000 --- a/src/hnbap/RABList.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/RABList.h> - -static asn_per_constraints_t asn_PER_type_RABList_constr_1 GCC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 8, 8, 1l, 256l } /* (SIZE(1..256)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_RABList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), - 0, - &asn_DEF_RABListItem, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_RABList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_RABList_specs_1 = { - sizeof(struct RABList), - offsetof(struct RABList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_RABList = { - "RABList", - "RABList", - SEQUENCE_OF_free, - SEQUENCE_OF_print, - SEQUENCE_OF_constraint, - SEQUENCE_OF_decode_ber, - SEQUENCE_OF_encode_der, - SEQUENCE_OF_decode_xer, - SEQUENCE_OF_encode_xer, - SEQUENCE_OF_decode_uper, - SEQUENCE_OF_encode_uper, - SEQUENCE_OF_decode_aper, - SEQUENCE_OF_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_RABList_tags_1, - sizeof(asn_DEF_RABList_tags_1) - /sizeof(asn_DEF_RABList_tags_1[0]), /* 1 */ - asn_DEF_RABList_tags_1, /* Same as above */ - sizeof(asn_DEF_RABList_tags_1) - /sizeof(asn_DEF_RABList_tags_1[0]), /* 1 */ - &asn_PER_type_RABList_constr_1, - asn_MBR_RABList_1, - 1, /* Single element */ - &asn_SPC_RABList_specs_1 /* Additional specs */ -}; - diff --git a/src/hnbap/Tunnel-Information.c b/src/hnbap/Tunnel-Information.c deleted file mode 100644 index 4c52952..0000000 --- a/src/hnbap/Tunnel-Information.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/Tunnel-Information.h> - -static asn_TYPE_member_t asn_MBR_Tunnel_Information_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Tunnel_Information, iP_Address), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_IP_Address, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iP-Address" - }, - { ATF_POINTER, 2, offsetof(struct Tunnel_Information, uDP_Port_Number), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_UDP_Port_Number, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "uDP-Port-Number" - }, - { ATF_POINTER, 1, offsetof(struct Tunnel_Information, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_Tunnel_Information_oms_1[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_Tunnel_Information_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Tunnel_Information_tag2el_1[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* iP-Address */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* uDP-Port-Number */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_Tunnel_Information_specs_1 = { - sizeof(struct Tunnel_Information), - offsetof(struct Tunnel_Information, _asn_ctx), - asn_MAP_Tunnel_Information_tag2el_1, - 3, /* Count of tags in the map */ - asn_MAP_Tunnel_Information_oms_1, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* Start extensions */ - 4 /* Stop extensions */ -}; -asn_TYPE_descriptor_t asn_DEF_Tunnel_Information = { - "Tunnel-Information", - "Tunnel-Information", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_Tunnel_Information_tags_1, - sizeof(asn_DEF_Tunnel_Information_tags_1) - /sizeof(asn_DEF_Tunnel_Information_tags_1[0]), /* 1 */ - asn_DEF_Tunnel_Information_tags_1, /* Same as above */ - sizeof(asn_DEF_Tunnel_Information_tags_1) - /sizeof(asn_DEF_Tunnel_Information_tags_1[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_Tunnel_Information_1, - 3, /* Elements count */ - &asn_SPC_Tunnel_Information_specs_1 /* Additional specs */ -}; - diff --git a/src/hnbap/URAIdentityList.c b/src/hnbap/URAIdentityList.c deleted file mode 100644 index 0872cec..0000000 --- a/src/hnbap/URAIdentityList.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) - * From ASN.1 module "HNBAP-IEs" - * found in "../../asn1/hnbap/HNBAP-IEs.asn" - * `asn1c -gen-PER` - */ - -#include <osmocom/hnbap/URAIdentityList.h> - -static asn_per_constraints_t asn_PER_type_URAIdentityList_constr_1 GCC_NOTUSED = { - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - { APC_CONSTRAINED, 4, 4, 0l, 8l } /* (SIZE(0..8)) */, - 0, 0 /* No PER value map */ -}; -static asn_TYPE_member_t asn_MBR_URAIdentityList_1[] = { - { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), - 0, - &asn_DEF_URAIdentity, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "" - }, -}; -static const ber_tlv_tag_t asn_DEF_URAIdentityList_tags_1[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static asn_SET_OF_specifics_t asn_SPC_URAIdentityList_specs_1 = { - sizeof(struct URAIdentityList), - offsetof(struct URAIdentityList, _asn_ctx), - 0, /* XER encoding is XMLDelimitedItemList */ -}; -asn_TYPE_descriptor_t asn_DEF_URAIdentityList = { - "URAIdentityList", - "URAIdentityList", - SEQUENCE_OF_free, - SEQUENCE_OF_print, - SEQUENCE_OF_constraint, - SEQUENCE_OF_decode_ber, - SEQUENCE_OF_encode_der, - SEQUENCE_OF_decode_xer, - SEQUENCE_OF_encode_xer, - SEQUENCE_OF_decode_uper, - SEQUENCE_OF_encode_uper, - SEQUENCE_OF_decode_aper, - SEQUENCE_OF_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_URAIdentityList_tags_1, - sizeof(asn_DEF_URAIdentityList_tags_1) - /sizeof(asn_DEF_URAIdentityList_tags_1[0]), /* 1 */ - asn_DEF_URAIdentityList_tags_1, /* Same as above */ - sizeof(asn_DEF_URAIdentityList_tags_1) - /sizeof(asn_DEF_URAIdentityList_tags_1[0]), /* 1 */ - &asn_PER_type_URAIdentityList_constr_1, - asn_MBR_URAIdentityList_1, - 1, /* Single element */ - &asn_SPC_URAIdentityList_specs_1 /* Additional specs */ -}; - diff --git a/src/hnbap_common.c b/src/hnbap_common.c index 4e79467..c7678fb 100644 --- a/src/hnbap_common.c +++ b/src/hnbap_common.c @@ -23,85 +23,89 @@ #include <osmocom/core/msgb.h> -#include <osmocom/hnbap/HNBAP-PDU.h> #include <osmocom/hnbap/hnbap_common.h> -#include <osmocom/iuh/hnbgw.h> + +int _hnbap_DHNBAP = 0; +#define DHNBAP _hnbap_DHNBAP static const struct value_string hnbap_cause_radio_vals[] = { - { CauseRadioNetwork_overload, "overload" }, - { CauseRadioNetwork_unauthorised_Location, "unauthorized location" }, - { CauseRadioNetwork_unauthorised_HNB, "unauthorized HNB" }, - { CauseRadioNetwork_hNB_parameter_mismatch, "HNB parameter mismatch" }, - { CauseRadioNetwork_invalid_UE_identity, "invalid UE identity" }, - { CauseRadioNetwork_uE_not_allowed_on_this_HNB, + { HNBAP_CauseRadioNetwork_overload, "overload" }, + { HNBAP_CauseRadioNetwork_unauthorised_Location, "unauthorized location" }, + { HNBAP_CauseRadioNetwork_unauthorised_HNB, "unauthorized HNB" }, + { HNBAP_CauseRadioNetwork_hNB_parameter_mismatch, "HNB parameter mismatch" }, + { HNBAP_CauseRadioNetwork_invalid_UE_identity, "invalid UE identity" }, + { HNBAP_CauseRadioNetwork_uE_not_allowed_on_this_HNB, "UE not allowed on this HNB" }, - { CauseRadioNetwork_uE_unauthorised, "unauthorised UE" }, - { CauseRadioNetwork_connection_with_UE_lost, "connection with UE lost" }, - { CauseRadioNetwork_ue_RRC_release, "UE RRC release" }, - { CauseRadioNetwork_hNB_not_registered, "HNB not registered" }, - { CauseRadioNetwork_unspecified, "unspecified" }, - { CauseRadioNetwork_normal, "normal" }, - { CauseRadioNetwork_uE_relocated, "UE relocated" }, - { CauseRadioNetwork_ue_registered_in_another_HNB, + { HNBAP_CauseRadioNetwork_uE_unauthorised, "unauthorised UE" }, + { HNBAP_CauseRadioNetwork_connection_with_UE_lost, "connection with UE lost" }, + { HNBAP_CauseRadioNetwork_ue_RRC_release, "UE RRC release" }, + { HNBAP_CauseRadioNetwork_hNB_not_registered, "HNB not registered" }, + { HNBAP_CauseRadioNetwork_unspecified, "unspecified" }, + { HNBAP_CauseRadioNetwork_normal, "normal" }, + { HNBAP_CauseRadioNetwork_uE_relocated, "UE relocated" }, + { HNBAP_CauseRadioNetwork_ue_registered_in_another_HNB, "UE registered in another HNB" }, { 0, NULL } }; static const struct value_string hnbap_cause_transp_vals[] = { - { CauseTransport_transport_resource_unavailable, + { HNBAP_CauseTransport_transport_resource_unavailable, "transport resource unavailable" }, - { CauseTransport_unspecified, "unspecified" }, + { HNBAP_CauseTransport_unspecified, "unspecified" }, { 0, NULL } }; static const struct value_string hnbap_cause_prot_vals[] = { - { CauseProtocol_transfer_syntax_error, "syntax error" }, - { CauseProtocol_abstract_syntax_error_reject, + { HNBAP_CauseProtocol_transfer_syntax_error, "syntax error" }, + { HNBAP_CauseProtocol_abstract_syntax_error_reject, "abstract syntax error; reject" }, - { CauseProtocol_abstract_syntax_error_ignore_and_notify, + { HNBAP_CauseProtocol_abstract_syntax_error_ignore_and_notify, "abstract syntax error; ignore and notify" }, - { CauseProtocol_message_not_compatible_with_receiver_state, + { HNBAP_CauseProtocol_message_not_compatible_with_receiver_state, "message not compatible with receiver state" }, - { CauseProtocol_semantic_error, "semantic error" }, - { CauseProtocol_unspecified, "unspecified" }, - { CauseProtocol_abstract_syntax_error_falsely_constructed_message, + { HNBAP_CauseProtocol_semantic_error, "semantic error" }, + { HNBAP_CauseProtocol_unspecified, "unspecified" }, + { HNBAP_CauseProtocol_abstract_syntax_error_falsely_constructed_message, "falsely constructed message" }, { 0, NULL } }; static const struct value_string hnbap_cause_misc_vals[] = { - { CauseMisc_processing_overload, "processing overload" }, - { CauseMisc_hardware_failure, "hardware failure" }, - { CauseMisc_o_and_m_intervention, "OAM intervention" }, - { CauseMisc_unspecified, "unspecified" }, + { HNBAP_CauseMisc_processing_overload, "processing overload" }, + { HNBAP_CauseMisc_hardware_failure, "hardware failure" }, + { HNBAP_CauseMisc_o_and_m_intervention, "OAM intervention" }, + { HNBAP_CauseMisc_unspecified, "unspecified" }, { 0, NULL } }; -char *hnbap_cause_str(Cause_t *cause) +char *hnbap_cause_str(const HNBAP_Cause_t *cause) { static char buf[32]; switch (cause->present) { - case Cause_PR_radioNetwork: + case HNBAP_Cause_PR_radioNetwork: snprintf(buf, sizeof(buf), "radio(%s)", get_value_string(hnbap_cause_radio_vals, cause->choice.radioNetwork)); break; - case Cause_PR_transport: + case HNBAP_Cause_PR_transport: snprintf(buf, sizeof(buf), "transport(%s)", get_value_string(hnbap_cause_transp_vals, cause->choice.transport)); break; - case Cause_PR_protocol: + case HNBAP_Cause_PR_protocol: snprintf(buf, sizeof(buf), "protocol(%s)", get_value_string(hnbap_cause_prot_vals, cause->choice.protocol)); break; - case Cause_PR_misc: + case HNBAP_Cause_PR_misc: snprintf(buf, sizeof(buf), "misc(%s)", get_value_string(hnbap_cause_misc_vals, cause->choice.misc)); break; + case HNBAP_Cause_PR_NOTHING: + snprintf(buf, sizeof(buf), "NOTHING"); + break; } return buf; } @@ -111,7 +115,7 @@ static struct msgb *hnbap_msgb_alloc(void) return msgb_alloc(1024, "HNBAP Tx"); } -static struct msgb *_hnbap_gen_msg(HNBAP_PDU_t *pdu) +static struct msgb *_hnbap_gen_msg(HNBAP_HNBAP_PDU_t *pdu) { struct msgb *msg = hnbap_msgb_alloc(); asn_enc_rval_t rval; @@ -119,7 +123,7 @@ static struct msgb *_hnbap_gen_msg(HNBAP_PDU_t *pdu) if (!msg) return NULL; - rval = aper_encode_to_buffer(&asn_DEF_HNBAP_PDU, pdu, + rval = aper_encode_to_buffer(&asn_DEF_HNBAP_HNBAP_PDU, pdu, msg->data, msgb_tailroom(msg)); if (rval.encoded < 0) { LOGP(DHNBAP, LOGL_ERROR, "Error encoding type: %s\n", @@ -133,94 +137,94 @@ static struct msgb *_hnbap_gen_msg(HNBAP_PDU_t *pdu) } struct msgb *hnbap_generate_initiating_message( - e_ProcedureCode procedureCode, - Criticality_t criticality, + e_HNBAP_ProcedureCode procedureCode, + HNBAP_Criticality_t criticality, asn_TYPE_descriptor_t * td, void *sptr) { struct msgb *msg; - HNBAP_PDU_t pdu; + HNBAP_HNBAP_PDU_t pdu; int rc; - memset(&pdu, 0, sizeof(HNBAP_PDU_t)); + memset(&pdu, 0, sizeof(HNBAP_HNBAP_PDU_t)); - pdu.present = HNBAP_PDU_PR_initiatingMessage; + pdu.present = HNBAP_HNBAP_PDU_PR_initiatingMessage; pdu.choice.initiatingMessage.procedureCode = procedureCode; pdu.choice.initiatingMessage.criticality = criticality; rc = ANY_fromType_aper(&pdu.choice.initiatingMessage.value, td, sptr); if (rc < 0) { - LOGP(DHNBAP, LOGL_ERROR, "Error in ANY_fromType_aper\n"); + LOGP(DHNBAP, LOGL_ERROR, "%s: Error in ANY_fromType_aper (%s)\n", __func__, td->name); return NULL; } msg = _hnbap_gen_msg(&pdu); - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_HNBAP_PDU, &pdu); + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_HNBAP_HNBAP_PDU, &pdu); return msg; } struct msgb *hnbap_generate_successful_outcome( - e_ProcedureCode procedureCode, - Criticality_t criticality, + e_HNBAP_ProcedureCode procedureCode, + HNBAP_Criticality_t criticality, asn_TYPE_descriptor_t * td, void *sptr) { struct msgb *msg; - HNBAP_PDU_t pdu; + HNBAP_HNBAP_PDU_t pdu; int rc; - memset(&pdu, 0, sizeof(HNBAP_PDU_t)); + memset(&pdu, 0, sizeof(HNBAP_HNBAP_PDU_t)); - pdu.present = HNBAP_PDU_PR_successfulOutcome; + pdu.present = HNBAP_HNBAP_PDU_PR_successfulOutcome; pdu.choice.successfulOutcome.procedureCode = procedureCode; pdu.choice.successfulOutcome.criticality = criticality; rc = ANY_fromType_aper(&pdu.choice.successfulOutcome.value, td, sptr); if (rc < 0) { - LOGP(DHNBAP, LOGL_ERROR, "Error in ANY_fromType_aper\n"); + LOGP(DHNBAP, LOGL_ERROR, "%s: Error in ANY_fromType_aper (%s)\n", __func__, td->name); return NULL; } msg = _hnbap_gen_msg(&pdu); - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_HNBAP_PDU, &pdu); + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_HNBAP_HNBAP_PDU, &pdu); return msg; } struct msgb *hnbap_generate_unsuccessful_outcome( - e_ProcedureCode procedureCode, - Criticality_t criticality, + e_HNBAP_ProcedureCode procedureCode, + HNBAP_Criticality_t criticality, asn_TYPE_descriptor_t * td, void *sptr) { struct msgb *msg; - HNBAP_PDU_t pdu; + HNBAP_HNBAP_PDU_t pdu; int rc; - memset(&pdu, 0, sizeof(HNBAP_PDU_t)); + memset(&pdu, 0, sizeof(HNBAP_HNBAP_PDU_t)); - pdu.present = HNBAP_PDU_PR_unsuccessfulOutcome; + pdu.present = HNBAP_HNBAP_PDU_PR_unsuccessfulOutcome; pdu.choice.unsuccessfulOutcome.procedureCode = procedureCode; pdu.choice.unsuccessfulOutcome.criticality = criticality; rc = ANY_fromType_aper(&pdu.choice.unsuccessfulOutcome.value, td, sptr); if (rc < 0) { - LOGP(DHNBAP, LOGL_ERROR, "Error in ANY_fromType_aper\n"); + LOGP(DHNBAP, LOGL_ERROR, "%s: Error in ANY_fromType_aper (%s)\n", __func__, td->name); return NULL; } msg = _hnbap_gen_msg(&pdu); - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_HNBAP_PDU, &pdu); + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_HNBAP_HNBAP_PDU, &pdu); return msg; } -IE_t *hnbap_new_ie(ProtocolIE_ID_t id, - Criticality_t criticality, +HNBAP_IE_t *hnbap_new_ie(HNBAP_ProtocolIE_ID_t id, + HNBAP_Criticality_t criticality, asn_TYPE_descriptor_t * type, void *sptr) { - IE_t *buff; + HNBAP_IE_t *buff; int rc; - if ((buff = CALLOC(1, sizeof(IE_t))) == NULL) { + if ((buff = CALLOC(1, sizeof(HNBAP_IE_t))) == NULL) { // Possible error on malloc return NULL; } @@ -230,16 +234,21 @@ IE_t *hnbap_new_ie(ProtocolIE_ID_t id, rc = ANY_fromType_aper(&buff->value, type, sptr); if (rc < 0) { - LOGP(DHNBAP, LOGL_ERROR, "Error in ANY_fromType_aper\n"); + LOGP(DHNBAP, LOGL_ERROR, "%s: Error in ANY_fromType_aper(%s)\n", __func__, type->name); FREEMEM(buff); return NULL; } if (asn1_xer_print) - if (xer_fprint(stdout, &asn_DEF_IE, buff) < 0) { + if (xer_fprint(stdout, &asn_DEF_HNBAP_IE, buff) < 0) { FREEMEM(buff); return NULL; } return buff; } + +void hnbap_set_log_area(int log_area) +{ + _hnbap_DHNBAP = log_area; +} diff --git a/src/hnbgw.c b/src/hnbgw.c deleted file mode 100644 index f18d2b1..0000000 --- a/src/hnbgw.c +++ /dev/null @@ -1,647 +0,0 @@ -/* main application for hnb-gw part of osmo-iuh */ - -/* (C) 2015 by Harald Welte <laforge@gnumonks.org> - * (C) 2016 by sysmocom s.f.m.c. GmbH <info@sysmocom.de> - * All Rights Reserved - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -#include <unistd.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <getopt.h> -#include <errno.h> -#include <signal.h> -#include <stdbool.h> - -#include <sys/types.h> -#include <sys/socket.h> -#include <netinet/in.h> -#include <netinet/sctp.h> -#include <arpa/inet.h> - -#include <osmocom/core/application.h> -#include <osmocom/core/talloc.h> -#include <osmocom/core/select.h> -#include <osmocom/core/logging.h> -#include <osmocom/core/socket.h> -#include <osmocom/core/msgb.h> -#include <osmocom/core/write_queue.h> -#include <osmocom/ctrl/control_if.h> -#include <osmocom/ctrl/control_cmd.h> -#include <osmocom/ctrl/control_vty.h> -#include <osmocom/ctrl/ports.h> -#include <osmocom/vty/telnet_interface.h> -#include <osmocom/vty/logging.h> -#include <osmocom/vty/command.h> -#include <osmocom/vty/ports.h> - -#include <osmocom/netif/stream.h> - -#include <osmocom/ranap/ranap_common.h> - -#include <osmocom/sigtran/protocol/m3ua.h> -#include <osmocom/sigtran/sccp_sap.h> - -#include <osmocom/iuh/hnbgw.h> -#include <osmocom/iuh/hnbgw_hnbap.h> -#include <osmocom/iuh/hnbgw_rua.h> -#include <osmocom/iuh/hnbgw_cn.h> -#include <osmocom/iuh/context_map.h> - -static const char * const osmo_hnbgw_copyright = - "OsmoHNBGW - Osmocom Home Node B Gateway implementation\r\n" - "Copyright (C) 2016 by sysmocom s.f.m.c. GmbH <info@sysmocom.de>\r\n" - "Contributions by Daniel Willmann, Harald Welte, Neels Hofmeyr\r\n" - "License AGPLv3+: GNU AGPL version 3 or later <http://gnu.org/licenses/agpl-3.0.html>\r\n" - "This is free software: you are free to change and redistribute it.\r\n" - "There is NO WARRANTY, to the extent permitted by law.\r\n"; - -static void *tall_hnb_ctx; -void *talloc_asn1_ctx; - -static struct hnb_gw *g_hnb_gw; - -static struct hnb_gw *hnb_gw_create(void *ctx) -{ - struct hnb_gw *gw = talloc_zero(ctx, struct hnb_gw); - - /* strdup so we can easily talloc_free in the VTY code */ - gw->config.iuh_local_ip = talloc_strdup(gw, HNBGW_LOCAL_IP_DEFAULT); - gw->config.iuh_local_port = IUH_DEFAULT_SCTP_PORT; - - gw->next_ue_ctx_id = 23; - INIT_LLIST_HEAD(&gw->hnb_list); - INIT_LLIST_HEAD(&gw->ue_list); - - context_map_init(gw); - - return gw; -} - -struct hnb_context *hnb_context_by_id(struct hnb_gw *gw, uint32_t cid) -{ - struct hnb_context *hnb; - - llist_for_each_entry(hnb, &gw->hnb_list, list) { - if (hnb->id.cid == cid) - return hnb; - } - - return NULL; -} - -struct hnb_context *hnb_context_by_identity_info(struct hnb_gw *gw, const char *identity_info) -{ - struct hnb_context *hnb; - - llist_for_each_entry(hnb, &gw->hnb_list, list) { - if (strcmp(identity_info, hnb->identity_info) == 0) - return hnb; - } - - return NULL; -} - - -unsigned hnb_contexts(const struct hnb_gw *gw) -{ - unsigned num_ctx = 0; - struct hnb_context *hnb; - - llist_for_each_entry(hnb, &gw->hnb_list, list) { - num_ctx++; - } - - return num_ctx; -} - -struct ue_context *ue_context_by_id(struct hnb_gw *gw, uint32_t id) -{ - struct ue_context *ue; - - llist_for_each_entry(ue, &gw->ue_list, list) { - if (ue->context_id == id) - return ue; - } - return NULL; - -} - -struct ue_context *ue_context_by_imsi(struct hnb_gw *gw, const char *imsi) -{ - struct ue_context *ue; - - llist_for_each_entry(ue, &gw->ue_list, list) { - if (!strcmp(ue->imsi, imsi)) - return ue; - } - return NULL; -} - -struct ue_context *ue_context_by_tmsi(struct hnb_gw *gw, uint32_t tmsi) -{ - struct ue_context *ue; - - llist_for_each_entry(ue, &gw->ue_list, list) { - if (ue->tmsi == tmsi) - return ue; - } - return NULL; -} - -void ue_context_free_by_hnb(struct hnb_gw *gw, const struct hnb_context *hnb) -{ - struct ue_context *ue, *tmp; - - llist_for_each_entry_safe(ue, tmp, &gw->ue_list, list) { - if (ue->hnb == hnb) - ue_context_free(ue); - } -} - -static uint32_t get_next_ue_ctx_id(struct hnb_gw *gw) -{ - uint32_t id; - - do { - id = gw->next_ue_ctx_id++; - } while (ue_context_by_id(gw, id)); - - return id; -} - -struct ue_context *ue_context_alloc(struct hnb_context *hnb, const char *imsi, - uint32_t tmsi) -{ - struct ue_context *ue; - - ue = talloc_zero(tall_hnb_ctx, struct ue_context); - if (!ue) - return NULL; - - ue->hnb = hnb; - if (imsi) { - strncpy(ue->imsi, imsi, sizeof(ue->imsi)); - ue->imsi[sizeof(ue->imsi)-1] = '\0'; - } else - ue->imsi[0] = '\0'; - ue->tmsi = tmsi; - ue->context_id = get_next_ue_ctx_id(hnb->gw); - llist_add_tail(&ue->list, &hnb->gw->ue_list); - - LOGP(DHNBAP, LOGL_INFO, "created UE context: id 0x%x, imsi %s, tmsi 0x%x\n", - ue->context_id, imsi? imsi : "-", tmsi); - - return ue; -} - -void ue_context_free(struct ue_context *ue) -{ - llist_del(&ue->list); - talloc_free(ue); -} - -static int hnb_read_cb(struct osmo_stream_srv *conn) -{ - struct hnb_context *hnb = osmo_stream_srv_get_data(conn); - struct msgb *msg = msgb_alloc(IUH_MSGB_SIZE, "Iuh rx"); - int rc; - - if (!msg) - return -ENOMEM; - - /* we store a reference to the HomeNodeB in the msg->dest for the - * benefit of varoius downstream processing functions */ - msg->dst = hnb; - - rc = osmo_stream_srv_recv(conn, msg); - if (rc == -EAGAIN) { - /* Notification received */ - msgb_free(msg); - return 0; - } else if (rc < 0) { - LOGP(DMAIN, LOGL_ERROR, "Error during sctp_recvmsg()\n"); - /* FIXME: clean up after disappeared HNB */ - hnb_context_release(hnb); - goto out; - } else if (rc == 0) { - hnb_context_release(hnb); - rc = -1; - - goto out; - } else { - msgb_put(msg, rc); - } - - switch (msgb_sctp_ppid(msg)) { - case IUH_PPI_HNBAP: - hnb->hnbap_stream = msgb_sctp_stream(msg); - rc = hnbgw_hnbap_rx(hnb, msg); - break; - case IUH_PPI_RUA: - hnb->rua_stream = msgb_sctp_stream(msg); - rc = hnbgw_rua_rx(hnb, msg); - break; - case IUH_PPI_SABP: - case IUH_PPI_RNA: - case IUH_PPI_PUA: - LOGP(DMAIN, LOGL_ERROR, "Unimplemented SCTP PPID=%lu received\n", - msgb_sctp_ppid(msg)); - rc = 0; - break; - default: - LOGP(DMAIN, LOGL_ERROR, "Unknown SCTP PPID=%lu received\n", - msgb_sctp_ppid(msg)); - rc = 0; - break; - } - -out: - msgb_free(msg); - return rc; -} - -struct hnb_context *hnb_context_alloc(struct hnb_gw *gw, struct osmo_stream_srv_link *link, int new_fd) -{ - struct hnb_context *ctx; - - ctx = talloc_zero(tall_hnb_ctx, struct hnb_context); - if (!ctx) - return NULL; - INIT_LLIST_HEAD(&ctx->map_list); - - ctx->gw = gw; - ctx->conn = osmo_stream_srv_create(tall_hnb_ctx, link, new_fd, hnb_read_cb, NULL, ctx); - if (!ctx->conn) { - LOGP(DMAIN, LOGL_INFO, "error while creating connection\n"); - talloc_free(ctx); - return NULL; - } - - llist_add_tail(&ctx->list, &gw->hnb_list); - return ctx; -} - -void hnb_context_release(struct hnb_context *ctx) -{ - struct hnbgw_context_map *map, *map2; - - /* remove from the list of HNB contexts */ - llist_del(&ctx->list); - - /* deactivate all context maps */ - llist_for_each_entry_safe(map, map2, &ctx->map_list, hnb_list) { - /* remove it from list, as HNB context will soon be - * gone. Let's hope the second osmo_llist_del in the - * map garbage collector works fine? */ - llist_del(&map->hnb_list); - llist_del(&map->cn_list); - context_map_deactivate(map); - } - ue_context_free_by_hnb(ctx->gw, ctx); - - osmo_stream_srv_destroy(ctx->conn); - - talloc_free(ctx); -} - -/*! call-back when the listen FD has something to read */ -static int accept_cb(struct osmo_stream_srv_link *srv, int fd) -{ - struct hnb_gw *gw = osmo_stream_srv_link_get_data(srv); - struct hnb_context *ctx; - - ctx = hnb_context_alloc(gw, srv, fd); - if (!ctx) - return -ENOMEM; - - return 0; -} - -static const struct log_info_cat log_cat[] = { - [DMAIN] = { - .name = "DMAIN", .loglevel = LOGL_NOTICE, .enabled = 1, - .color = "", - .description = "Main program", - }, - [DHNBAP] = { - .name = "DHNBAP", .loglevel = LOGL_NOTICE, .enabled = 1, - .color = "", - .description = "Home Node B Application Part", - }, - [DRUA] = { - .name = "DRUA", .loglevel = LOGL_NOTICE, .enabled = 1, - .color = "", - .description = "RANAP User Adaptation", - }, - [DRANAP] = { - .name = "DRANAP", .loglevel = LOGL_NOTICE, .enabled = 1, - .color = "", - .description = "RAN Application Part", - }, -}; - -static const struct log_info hnbgw_log_info = { - .cat = log_cat, - .num_cat = ARRAY_SIZE(log_cat), -}; - -static struct vty_app_info vty_info = { - .name = "OsmoHNBGW", - .version = PACKAGE_VERSION, - .go_parent_cb = hnbgw_vty_go_parent, -}; - -static struct { - int daemonize; - const char *config_file; - bool log_disable_color; - bool log_enable_timestamp; - int log_level; - const char *log_category_mask; -} hnbgw_cmdline_config = { - 0, - "osmo-hnbgw.cfg", - false, - false, - 0, - NULL, -}; - -static void print_usage() -{ - printf("Usage: osmo-hnbgw\n"); -} - -static void print_help() -{ - printf(" -h --help This text.\n"); - printf(" -d option --debug=DHNBAP:DRUA:DRANAP:DMAIN Enable debugging.\n"); - printf(" -D --daemonize Fork the process into a background daemon.\n"); - printf(" -c --config-file filename The config file to use.\n"); - printf(" -s --disable-color\n"); - printf(" -T --timestamp Prefix every log line with a timestamp.\n"); - printf(" -V --version Print the version of OsmoHNBGW.\n"); - printf(" -e --log-level number Set a global loglevel.\n"); -} - -static void handle_options(int argc, char **argv) -{ - while (1) { - int option_index = 0, c; - static struct option long_options[] = { - {"help", 0, 0, 'h'}, - {"debug", 1, 0, 'd'}, - {"daemonize", 0, 0, 'D'}, - {"config-file", 1, 0, 'c'}, - {"disable-color", 0, 0, 's'}, - {"timestamp", 0, 0, 'T'}, - {"version", 0, 0, 'V' }, - {"log-level", 1, 0, 'e'}, - {0, 0, 0, 0} - }; - - c = getopt_long(argc, argv, "hd:Dc:sTVe:", - long_options, &option_index); - if (c == -1) - break; - - switch (c) { - case 'h': - print_usage(); - print_help(); - exit(0); - case 's': - hnbgw_cmdline_config.log_disable_color = true; - break; - case 'd': - hnbgw_cmdline_config.log_category_mask = optarg; - break; - case 'D': - hnbgw_cmdline_config.daemonize = 1; - break; - case 'c': - hnbgw_cmdline_config.config_file = optarg; - break; - case 'T': - hnbgw_cmdline_config.log_enable_timestamp = true; - break; - case 'e': - hnbgw_cmdline_config.log_level = atoi(optarg); - break; - case 'V': - print_version(1); - exit(0); - break; - default: - /* catch unknown options *as well as* missing arguments. */ - fprintf(stderr, "Error in command line options. Exiting.\n"); - exit(-1); - break; - } - } - - if (argc > optind) { - fprintf(stderr, "Unsupported positional arguments on command line\n"); - exit(2); - } -} - -CTRL_CMD_DEFINE_RO(hnb_info, "info"); -static int get_hnb_info(struct ctrl_cmd *cmd, void *data) -{ - struct hnb_context *hnb = data; - - cmd->reply = talloc_strdup(cmd, hnb->identity_info); - - return CTRL_CMD_REPLY; -} - -CTRL_CMD_DEFINE_RO(hnbs, "num-hnb"); -static int get_hnbs(struct ctrl_cmd *cmd, void *data) -{ - cmd->reply = talloc_asprintf(cmd, "%u", hnb_contexts(data)); - - return CTRL_CMD_REPLY; -} - -int hnb_ctrl_cmds_install() -{ - int rc = 0; - - rc |= ctrl_cmd_install(CTRL_NODE_ROOT, &cmd_hnbs); - rc |= ctrl_cmd_install(CTRL_NODE_HNB, &cmd_hnb_info); - - return rc; -} - -static int hnb_ctrl_node_lookup(void *data, vector vline, int *node_type, void **node_data, int *i) -{ - const char *token = vector_slot(vline, *i); - struct hnb_context *hnb; - long num; - - switch (*node_type) { - case CTRL_NODE_ROOT: - if (strcmp(token, "hnb") != 0) - return 0; - - (*i)++; - - if (!ctrl_parse_get_num(vline, *i, &num)) - return -ERANGE; - - hnb = hnb_context_by_id(data, num); - if (!hnb) - return -ENODEV; - - *node_data = hnb; - *node_type = CTRL_NODE_HNB; - break; - default: - return 0; - } - - return 1; -} - -int main(int argc, char **argv) -{ - struct osmo_stream_srv_link *srv; - int rc; - - tall_hnb_ctx = talloc_named_const(NULL, 0, "hnb_context"); - talloc_asn1_ctx = talloc_named_const(NULL, 0, "asn1_context"); - msgb_talloc_ctx_init(tall_hnb_ctx, 0); - - g_hnb_gw = hnb_gw_create(tall_hnb_ctx); - g_hnb_gw->config.rnc_id = 23; - - rc = osmo_init_logging2(tall_hnb_ctx, &hnbgw_log_info); - if (rc < 0) - exit(1); - - rc = osmo_ss7_init(); - if (rc < 0) { - LOGP(DMAIN, LOGL_FATAL, "osmo_ss7_init() failed with rc=%d\n", rc); - exit(1); - } - - vty_info.copyright = osmo_hnbgw_copyright; - vty_init(&vty_info); - - osmo_ss7_vty_init_asp(tall_hnb_ctx); - osmo_sccp_vty_init(); - hnbgw_vty_init(g_hnb_gw, tall_hnb_ctx); - ctrl_vty_init(tall_hnb_ctx); - logging_vty_add_cmds(); - - /* Handle options after vty_init(), for --version */ - handle_options(argc, argv); - - rc = vty_read_config_file(hnbgw_cmdline_config.config_file, NULL); - if (rc < 0) { - LOGP(DMAIN, LOGL_FATAL, "Failed to parse the config file: '%s'\n", - hnbgw_cmdline_config.config_file); - return 1; - } - - /* - * cmdline options take precedence over config file, but if no options - * were passed we must not override the config file. - */ - if (hnbgw_cmdline_config.log_disable_color) - log_set_use_color(osmo_stderr_target, 0); - if (hnbgw_cmdline_config.log_category_mask) - log_parse_category_mask(osmo_stderr_target, - hnbgw_cmdline_config.log_category_mask); - if (hnbgw_cmdline_config.log_enable_timestamp) - log_set_print_timestamp(osmo_stderr_target, 1); - if (hnbgw_cmdline_config.log_level) - log_set_log_level(osmo_stderr_target, - hnbgw_cmdline_config.log_level); - - rc = telnet_init_dynif(tall_hnb_ctx, g_hnb_gw, vty_get_bind_addr(), OSMO_VTY_PORT_HNBGW); - if (rc < 0) { - perror("Error binding VTY port"); - exit(1); - } - - g_hnb_gw->ctrl = ctrl_interface_setup_dynip2(g_hnb_gw, ctrl_vty_get_bind_addr(), OSMO_CTRL_PORT_HNBGW, - hnb_ctrl_node_lookup, _LAST_CTRL_NODE_HNB); - if (!g_hnb_gw->ctrl) { - LOGP(DMAIN, LOGL_ERROR, "Failed to create CTRL interface on %s:%u\n", - ctrl_vty_get_bind_addr(), OSMO_CTRL_PORT_HNBGW); - exit(1); - } else { - rc = hnb_ctrl_cmds_install(); - if (rc) { - LOGP(DMAIN, LOGL_ERROR, "Failed to install CTRL interface commands\n"); - return 2; - } - } - - ranap_set_log_area(DRANAP); - - rc = hnbgw_cnlink_init(g_hnb_gw, "localhost", M3UA_PORT, "localhost"); - if (rc < 0) { - LOGP(DMAIN, LOGL_ERROR, "Failed to initialize SCCP link to CN\n"); - exit(1); - } - - LOGP(DHNBAP, LOGL_NOTICE, "Using RNC-Id %u\n", g_hnb_gw->config.rnc_id); - - OSMO_ASSERT(g_hnb_gw->config.iuh_local_ip); - LOGP(DMAIN, LOGL_NOTICE, "Listening for Iuh at %s %d\n", - g_hnb_gw->config.iuh_local_ip, - g_hnb_gw->config.iuh_local_port); - srv = osmo_stream_srv_link_create(tall_hnb_ctx); - if (!srv) { - perror("cannot create server"); - exit(1); - } - osmo_stream_srv_link_set_data(srv, g_hnb_gw); - osmo_stream_srv_link_set_proto(srv, IPPROTO_SCTP); - osmo_stream_srv_link_set_nodelay(srv, true); - osmo_stream_srv_link_set_addr(srv, g_hnb_gw->config.iuh_local_ip); - osmo_stream_srv_link_set_port(srv, g_hnb_gw->config.iuh_local_port); - osmo_stream_srv_link_set_accept_cb(srv, accept_cb); - - if (osmo_stream_srv_link_open(srv) < 0) { - perror("Cannot open server"); - exit(1); - } - g_hnb_gw->iuh = srv; - - if (hnbgw_cmdline_config.daemonize) { - rc = osmo_daemonize(); - if (rc < 0) { - perror("Error during daemonize"); - exit(1); - } - } - - while (1) { - rc = osmo_select_main(0); - if (rc < 0) - exit(3); - } - - /* not reached */ - exit(0); -} diff --git a/src/hnbgw_cn.c b/src/hnbgw_cn.c deleted file mode 100644 index 0623561..0000000 --- a/src/hnbgw_cn.c +++ /dev/null @@ -1,560 +0,0 @@ -/* IuCS/IuPS Core Network interface of HNB-GW */ - -/* (C) 2015 by Harald Welte <laforge@gnumonks.org> - * All Rights Reserved - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -#include <arpa/inet.h> -#include <errno.h> - -#include <osmocom/core/msgb.h> -#include <osmocom/core/utils.h> -#include <osmocom/core/timer.h> - -#include <osmocom/sigtran/protocol/m3ua.h> -#include <osmocom/sigtran/sccp_sap.h> -#include <osmocom/sigtran/sccp_helpers.h> - -#include <osmocom/iuh/hnbgw.h> -#include <osmocom/iuh/hnbgw_rua.h> -#include <osmocom/ranap/ranap_ies_defs.h> -#include <osmocom/ranap/ranap_msg_factory.h> -#include <osmocom/iuh/context_map.h> -#include <osmocom/hnbap/CN-DomainIndicator.h> - -/*********************************************************************** - * Outbound RANAP RESET to CN - ***********************************************************************/ - -void hnbgw_cnlink_change_state(struct hnbgw_cnlink *cnlink, enum hnbgw_cnlink_state state); - -static int transmit_rst(struct hnb_gw *gw, RANAP_CN_DomainIndicator_t domain, - struct osmo_sccp_addr *remote_addr) -{ - struct msgb *msg; - RANAP_Cause_t cause = { - .present = RANAP_Cause_PR_transmissionNetwork, - .choice. transmissionNetwork = RANAP_CauseTransmissionNetwork_signalling_transport_resource_failure, - }; - - LOGP(DRANAP, LOGL_NOTICE, "Tx RESET to %s %s\n", - domain == CN_DomainIndicator_cs_domain ? "IuCS" : "IuPS", - osmo_sccp_inst_addr_name(gw->sccp.cnlink->sccp, remote_addr)); - - msg = ranap_new_msg_reset(domain, &cause); - - return osmo_sccp_tx_unitdata_msg(gw->sccp.cnlink->sccp_user, - &gw->sccp.local_addr, - remote_addr, - msg); -} - -static int transmit_reset_ack(struct hnb_gw *gw, RANAP_CN_DomainIndicator_t domain, - const struct osmo_sccp_addr *remote_addr) -{ - struct msgb *msg; - - LOGP(DRANAP, LOGL_NOTICE, "Tx RESET ACK to %s %s\n", - domain == CN_DomainIndicator_cs_domain ? "IuCS" : "IuPS", - osmo_sccp_inst_addr_name(gw->sccp.cnlink->sccp, remote_addr)); - - msg = ranap_new_msg_reset_ack(domain, NULL); - - return osmo_sccp_tx_unitdata_msg(gw->sccp.cnlink->sccp_user, - &gw->sccp.local_addr, - remote_addr, - msg); -} - -/* Timer callback once T_RafC expires */ -static void cnlink_trafc_cb(void *data) -{ - struct hnb_gw *gw = data; - - transmit_rst(gw, RANAP_CN_DomainIndicator_cs_domain, &gw->sccp.iucs_remote_addr); - transmit_rst(gw, RANAP_CN_DomainIndicator_ps_domain, &gw->sccp.iups_remote_addr); - hnbgw_cnlink_change_state(gw->sccp.cnlink, CNLINK_S_EST_RST_TX_WAIT_ACK); - /* The spec states that we should abandon after a configurable - * number of times. We decide to simply continue trying */ -} - -/* change the state of a CN Link */ -void hnbgw_cnlink_change_state(struct hnbgw_cnlink *cnlink, enum hnbgw_cnlink_state state) -{ - switch (state) { - case CNLINK_S_NULL: - case CNLINK_S_EST_PEND: - break; - case CNLINK_S_EST_CONF: - cnlink_trafc_cb(cnlink->gw); - break; - case CNLINK_S_EST_RST_TX_WAIT_ACK: - osmo_timer_schedule(&cnlink->T_RafC, 5, 0); - break; - case CNLINK_S_EST_ACTIVE: - osmo_timer_del(&cnlink->T_RafC); - break; - } -} - -/*********************************************************************** - * Incoming primitives from SCCP User SAP - ***********************************************************************/ - -static int cn_ranap_rx_reset_cmd(struct hnbgw_cnlink *cnlink, - const struct osmo_scu_unitdata_param *unitdata, - RANAP_InitiatingMessage_t *imsg) -{ - CN_DomainIndicator_t domain; - RANAP_ResetIEs_t ies; - int rc; - - rc = ranap_decode_reseties(&ies, &imsg->value); - domain = ies.cN_DomainIndicator; - ranap_free_reseties(&ies); - - LOGP(DRANAP, LOGL_NOTICE, "Rx RESET from %s %s, returning ACK\n", - domain == CN_DomainIndicator_cs_domain ? "IuCS" : "IuPS", - osmo_sccp_inst_addr_name(cnlink->sccp, &unitdata->calling_addr)); - - /* FIXME: actually reset connections, if any */ - - if (transmit_reset_ack(cnlink->gw, domain, &unitdata->calling_addr)) - LOGP(DRANAP, LOGL_ERROR, "Error: cannot send RESET ACK to %s %s\n", - domain == CN_DomainIndicator_cs_domain ? "IuCS" : "IuPS", - osmo_sccp_inst_addr_name(cnlink->sccp, &unitdata->calling_addr)); - - return rc; -} - -static int cn_ranap_rx_reset_ack(struct hnbgw_cnlink *cnlink, - RANAP_SuccessfulOutcome_t *omsg) -{ - RANAP_ResetAcknowledgeIEs_t ies; - int rc; - - rc = ranap_decode_resetacknowledgeies(&ies, &omsg->value); - - hnbgw_cnlink_change_state(cnlink, CNLINK_S_EST_ACTIVE); - - ranap_free_resetacknowledgeies(&ies); - return rc; -} - -static int cn_ranap_rx_paging_cmd(struct hnbgw_cnlink *cnlink, - RANAP_InitiatingMessage_t *imsg, - const uint8_t *data, unsigned int len) -{ - struct hnb_gw *gw = cnlink->gw; - struct hnb_context *hnb; - RANAP_PagingIEs_t ies; - int rc; - - rc = ranap_decode_pagingies(&ies, &imsg->value); - if (rc < 0) - return rc; - - /* FIXME: determine which HNBs to send this Paging command, - * rather than broadcasting to all HNBs */ - llist_for_each_entry(hnb, &gw->hnb_list, list) { - rc = rua_tx_udt(hnb, data, len); - } - - ranap_free_pagingies(&ies); - return 0; -} - -static int cn_ranap_rx_initiating_msg(struct hnbgw_cnlink *cnlink, - const struct osmo_scu_unitdata_param *unitdata, - RANAP_InitiatingMessage_t *imsg, - const uint8_t *data, unsigned int len) -{ - switch (imsg->procedureCode) { - case RANAP_ProcedureCode_id_Reset: - return cn_ranap_rx_reset_cmd(cnlink, unitdata, imsg); - case RANAP_ProcedureCode_id_Paging: - return cn_ranap_rx_paging_cmd(cnlink, imsg, data, len); - case RANAP_ProcedureCode_id_OverloadControl: /* Overload ind */ - break; - case RANAP_ProcedureCode_id_ErrorIndication: /* Error ind */ - break; - case RANAP_ProcedureCode_id_ResetResource: /* request */ - case RANAP_ProcedureCode_id_InformationTransfer: - case RANAP_ProcedureCode_id_DirectInformationTransfer: - case RANAP_ProcedureCode_id_UplinkInformationExchange: - LOGP(DRANAP, LOGL_NOTICE, "Received unsupported RANAP " - "Procedure %ld from CN, ignoring\n", imsg->procedureCode); - break; - default: - LOGP(DRANAP, LOGL_NOTICE, "Received suspicious RANAP " - "Procedure %ld from CN, ignoring\n", imsg->procedureCode); - break; - } - return 0; -} - -static int cn_ranap_rx_successful_msg(struct hnbgw_cnlink *cnlink, - RANAP_SuccessfulOutcome_t *omsg) -{ - switch (omsg->procedureCode) { - case RANAP_ProcedureCode_id_Reset: /* Reset acknowledge */ - return cn_ranap_rx_reset_ack(cnlink, omsg); - case RANAP_ProcedureCode_id_ResetResource: /* response */ - case RANAP_ProcedureCode_id_InformationTransfer: - case RANAP_ProcedureCode_id_DirectInformationTransfer: - case RANAP_ProcedureCode_id_UplinkInformationExchange: - LOGP(DRANAP, LOGL_NOTICE, "Received unsupported RANAP " - "Procedure %ld from CN, ignoring\n", omsg->procedureCode); - break; - default: - LOGP(DRANAP, LOGL_NOTICE, "Received suspicious RANAP " - "Procedure %ld from CN, ignoring\n", omsg->procedureCode); - break; - } - return 0; -} - - -static int _cn_ranap_rx(struct hnbgw_cnlink *cnlink, - const struct osmo_scu_unitdata_param *unitdata, - RANAP_RANAP_PDU_t *pdu, const uint8_t *data, unsigned int len) -{ - int rc; - - switch (pdu->present) { - case RANAP_RANAP_PDU_PR_initiatingMessage: - rc = cn_ranap_rx_initiating_msg(cnlink, unitdata, &pdu->choice.initiatingMessage, - data, len); - break; - case RANAP_RANAP_PDU_PR_successfulOutcome: - rc = cn_ranap_rx_successful_msg(cnlink, &pdu->choice.successfulOutcome); - break; - case RANAP_RANAP_PDU_PR_unsuccessfulOutcome: - LOGP(DRANAP, LOGL_NOTICE, "Received unsupported RANAP " - "unsuccessful outcome procedure %ld from CN, ignoring\n", - pdu->choice.unsuccessfulOutcome.procedureCode); - rc = -ENOTSUP; - break; - default: - LOGP(DRANAP, LOGL_NOTICE, "Received suspicious RANAP " - "presence %u from CN, ignoring\n", pdu->present); - rc = -EINVAL; - break; - } - - return rc; -} - -static int handle_cn_ranap(struct hnbgw_cnlink *cnlink, const struct osmo_scu_unitdata_param *unitdata, - const uint8_t *data, unsigned int len) -{ - RANAP_RANAP_PDU_t _pdu, *pdu = &_pdu; - asn_dec_rval_t dec_ret; - int rc; - - memset(pdu, 0, sizeof(*pdu)); - dec_ret = aper_decode(NULL,&asn_DEF_RANAP_RANAP_PDU, (void **) &pdu, - data, len, 0, 0); - if (dec_ret.code != RC_OK) { - LOGP(DRANAP, LOGL_ERROR, "Error in RANAP ASN.1 decode\n"); - return -1; - } - - rc = _cn_ranap_rx(cnlink, unitdata, pdu, data, len); - - return rc; -} - -static bool pc_and_ssn_match(const struct osmo_sccp_addr *a, const struct osmo_sccp_addr *b) -{ - return (a == b) - || ((a->pc == b->pc) - && (a->ssn == b->ssn)); -} - -static int classify_cn_remote_addr(const struct hnb_gw *gw, - const struct osmo_sccp_addr *cn_remote_addr, - bool *is_ps) -{ - if (pc_and_ssn_match(cn_remote_addr, &gw->sccp.iucs_remote_addr)) { - if (is_ps) - *is_ps = false; - return 0; - } - if (pc_and_ssn_match(cn_remote_addr, &gw->sccp.iups_remote_addr)) { - if (is_ps) - *is_ps = true; - return 0; - } - LOGP(DMAIN, LOGL_ERROR, "Unexpected remote address, matches neither CS nor PS address: %s\n", - osmo_sccp_addr_dump(cn_remote_addr)); - return -1; -} - -static int handle_cn_unitdata(struct hnbgw_cnlink *cnlink, - const struct osmo_scu_unitdata_param *param, - struct osmo_prim_hdr *oph) -{ - if (param->called_addr.ssn != OSMO_SCCP_SSN_RANAP) { - LOGP(DMAIN, LOGL_NOTICE, "N-UNITDATA.ind for unknown SSN %u\n", - param->called_addr.ssn); - return -1; - } - - if (classify_cn_remote_addr(cnlink->gw, ¶m->calling_addr, NULL) < 0) - return -1; - - return handle_cn_ranap(cnlink, param, msgb_l2(oph->msg), msgb_l2len(oph->msg)); -} - -static int handle_cn_conn_conf(struct hnbgw_cnlink *cnlink, - const struct osmo_scu_connect_param *param, - struct osmo_prim_hdr *oph) -{ - /* we don't actually need to do anything, as RUA towards the HNB - * doesn't seem to know any confirmations to its CONNECT - * operation */ - - LOGP(DMAIN, LOGL_DEBUG, "handle_cn_conn_conf() conn_id=%d\n", - param->conn_id); - LOGP(DMAIN, LOGL_DEBUG, "handle_cn_conn_conf() called_addr=%s\n", - inet_ntoa(param->called_addr.ip.v4)); - LOGP(DMAIN, LOGL_DEBUG, "handle_cn_conn_conf() calling_addr=%s\n", - inet_ntoa(param->calling_addr.ip.v4)); - LOGP(DMAIN, LOGL_DEBUG, "handle_cn_conn_conf() responding_addr=%s\n", - inet_ntoa(param->responding_addr.ip.v4)); - - return 0; -} - -static int handle_cn_data_ind(struct hnbgw_cnlink *cnlink, - const struct osmo_scu_data_param *param, - struct osmo_prim_hdr *oph) -{ - struct hnbgw_context_map *map; - - /* connection-oriented data is always passed transparently - * towards the specific HNB, via a RUA connection identified by - * conn_id */ - - map = context_map_by_cn(cnlink, param->conn_id); - if (!map) { - /* FIXME: Return an error / released primitive */ - return 0; - } - - return rua_tx_dt(map->hnb_ctx, map->is_ps, map->rua_ctx_id, - msgb_l2(oph->msg), msgb_l2len(oph->msg)); -} - -static int handle_cn_disc_ind(struct hnbgw_cnlink *cnlink, - const struct osmo_scu_disconn_param *param, - struct osmo_prim_hdr *oph) -{ - struct hnbgw_context_map *map; - - LOGP(DMAIN, LOGL_DEBUG, "handle_cn_disc_ind() conn_id=%d originator=%d\n", - param->conn_id, param->originator); - LOGP(DMAIN, LOGL_DEBUG, "handle_cn_disc_ind() responding_addr=%s\n", - inet_ntoa(param->responding_addr.ip.v4)); - - RUA_Cause_t rua_cause = { - .present = RUA_Cause_PR_NOTHING, - /* FIXME: Convert incoming SCCP cause to RUA cause */ - }; - - /* we need to notify the HNB associated with this connection via - * a RUA DISCONNECT */ - - map = context_map_by_cn(cnlink, param->conn_id); - if (!map) { - /* FIXME: Return an error / released primitive */ - return 0; - } - - return rua_tx_disc(map->hnb_ctx, map->is_ps, map->rua_ctx_id, - &rua_cause, msgb_l2(oph->msg), msgb_l2len(oph->msg)); -} - -/* Entry point for primitives coming up from SCCP User SAP */ -static int sccp_sap_up(struct osmo_prim_hdr *oph, void *ctx) -{ - struct osmo_sccp_user *scu = ctx; - struct hnbgw_cnlink *cnlink; - struct osmo_scu_prim *prim = (struct osmo_scu_prim *) oph; - int rc = 0; - - LOGP(DMAIN, LOGL_DEBUG, "sccp_sap_up(%s)\n", osmo_scu_prim_name(oph)); - - if (!scu) { - LOGP(DMAIN, LOGL_ERROR, - "sccp_sap_up(): NULL osmo_sccp_user, cannot send prim (sap %u prim %u op %d)\n", - oph->sap, oph->primitive, oph->operation); - return -1; - } - - cnlink = osmo_sccp_user_get_priv(scu); - if (!cnlink) { - LOGP(DMAIN, LOGL_ERROR, - "sccp_sap_up(): NULL hnbgw_cnlink, cannot send prim (sap %u prim %u op %d)\n", - oph->sap, oph->primitive, oph->operation); - return -1; - } - - switch (OSMO_PRIM_HDR(oph)) { - case OSMO_PRIM(OSMO_SCU_PRIM_N_UNITDATA, PRIM_OP_INDICATION): - rc = handle_cn_unitdata(cnlink, &prim->u.unitdata, oph); - break; - case OSMO_PRIM(OSMO_SCU_PRIM_N_CONNECT, PRIM_OP_CONFIRM): - rc = handle_cn_conn_conf(cnlink, &prim->u.connect, oph); - break; - case OSMO_PRIM(OSMO_SCU_PRIM_N_DATA, PRIM_OP_INDICATION): - rc = handle_cn_data_ind(cnlink, &prim->u.data, oph); - break; - case OSMO_PRIM(OSMO_SCU_PRIM_N_DISCONNECT, PRIM_OP_INDICATION): - rc = handle_cn_disc_ind(cnlink, &prim->u.disconnect, oph); - break; - default: - LOGP(DMAIN, LOGL_ERROR, - "Received unknown prim %u from SCCP USER SAP\n", - OSMO_PRIM_HDR(oph)); - break; - } - - msgb_free(oph->msg); - - return rc; -} - -static bool addr_has_pc_and_ssn(const struct osmo_sccp_addr *addr) -{ - if (!(addr->presence & OSMO_SCCP_ADDR_T_SSN)) - return false; - if (!(addr->presence & OSMO_SCCP_ADDR_T_PC)) - return false; - return true; -} - -static int resolve_addr_name(struct osmo_sccp_addr *dest, struct osmo_ss7_instance **ss7, - const char *addr_name, const char *label, - uint32_t default_pc) -{ - struct osmo_ss7_instance *ss7_tmp; - - if (!addr_name) { - osmo_sccp_make_addr_pc_ssn(dest, default_pc, OSMO_SCCP_SSN_RANAP); - LOGP(DMAIN, LOGL_INFO, "%s remote addr not configured, using default: %s\n", label, - osmo_sccp_addr_name(*ss7, dest)); - return 0; - } - - ss7_tmp = osmo_sccp_addr_by_name(dest, addr_name); - if (!ss7_tmp) { - LOGP(DMAIN, LOGL_ERROR, "%s remote addr: no such SCCP address book entry: '%s'\n", - label, addr_name); - return -1; - } - - if (*ss7 && (*ss7 != ss7_tmp)) { - LOGP(DMAIN, LOGL_ERROR, "IuCS and IuPS cannot be served from separate CS7 instances," - " cs7 instance %d != %d\n", (*ss7)->cfg.id, ss7_tmp->cfg.id); - return -1; - } - - *ss7 = ss7_tmp; - - osmo_sccp_addr_set_ssn(dest, OSMO_SCCP_SSN_RANAP); - - if (!addr_has_pc_and_ssn(dest)) { - LOGP(DMAIN, LOGL_ERROR, "Invalid/incomplete %s remote-addr: %s\n", - label, osmo_sccp_addr_name(*ss7, dest)); - return -1; - } - - LOGP(DRANAP, LOGL_NOTICE, "Remote %s SCCP addr: %s\n", - label, osmo_sccp_addr_name(*ss7, dest)); - return 0; -} - -int hnbgw_cnlink_init(struct hnb_gw *gw, const char *stp_host, uint16_t stp_port, const char *local_ip) -{ - struct hnbgw_cnlink *cnlink; - struct osmo_ss7_instance *ss7; - uint32_t local_pc; - - OSMO_ASSERT(!gw->sccp.client); - OSMO_ASSERT(!gw->sccp.cnlink); - - ss7 = NULL; - if (resolve_addr_name(&gw->sccp.iucs_remote_addr, &ss7, - gw->config.iucs_remote_addr_name, "IuCS", (23 << 3) + 1)) - return -1; - if (resolve_addr_name(&gw->sccp.iups_remote_addr, &ss7, - gw->config.iups_remote_addr_name, "IuPS", (23 << 3) + 4)) - return -1; - - if (!ss7) { - LOGP(DRANAP, LOGL_NOTICE, "No cs7 instance configured for IuCS nor IuPS," - " creating default instance\n"); - ss7 = osmo_ss7_instance_find_or_create(gw, 0); - ss7->cfg.primary_pc = (23 << 3) + 5; - } - - if (!osmo_ss7_pc_is_valid(ss7->cfg.primary_pc)) { - LOGP(DMAIN, LOGL_ERROR, "IuCS/IuPS uplink cannot be setup: CS7 instance %d has no point-code set\n", - ss7->cfg.id); - return -1; - } - local_pc = ss7->cfg.primary_pc; - - osmo_sccp_make_addr_pc_ssn(&gw->sccp.local_addr, local_pc, OSMO_SCCP_SSN_RANAP); - LOGP(DRANAP, LOGL_NOTICE, "Local SCCP addr: %s\n", osmo_sccp_addr_name(ss7, &gw->sccp.local_addr)); - - gw->sccp.client = osmo_sccp_simple_client_on_ss7_id(gw, ss7->cfg.id, "OsmoHNBGW", - local_pc, OSMO_SS7_ASP_PROT_M3UA, - 0, local_ip, stp_port, stp_host); - if (!gw->sccp.client) { - LOGP(DMAIN, LOGL_ERROR, "Failed to init SCCP Client\n"); - return -1; - } - - cnlink = talloc_zero(gw, struct hnbgw_cnlink); - cnlink->gw = gw; - INIT_LLIST_HEAD(&cnlink->map_list); - cnlink->T_RafC.cb = cnlink_trafc_cb; - cnlink->T_RafC.data = gw; - cnlink->next_conn_id = 1000; - - cnlink->sccp_user = osmo_sccp_user_bind_pc(gw->sccp.client, "OsmoHNBGW", sccp_sap_up, - OSMO_SCCP_SSN_RANAP, gw->sccp.local_addr.pc); - if (!cnlink->sccp_user) { - LOGP(DMAIN, LOGL_ERROR, "Failed to init SCCP User\n"); - return -1; - } - - LOGP(DRANAP, LOGL_NOTICE, "Remote SCCP addr: IuCS: %s\n", - osmo_sccp_addr_name(ss7, &gw->sccp.iucs_remote_addr)); - LOGP(DRANAP, LOGL_NOTICE, "Remote SCCP addr: IuPS: %s\n", - osmo_sccp_addr_name(ss7, &gw->sccp.iups_remote_addr)); - - /* In sccp_sap_up() we expect the cnlink in the user's priv. */ - osmo_sccp_user_set_priv(cnlink->sccp_user, cnlink); - - gw->sccp.cnlink = cnlink; - - return 0; -} diff --git a/src/hnbgw_hnbap.c b/src/hnbgw_hnbap.c deleted file mode 100644 index c118774..0000000 --- a/src/hnbgw_hnbap.c +++ /dev/null @@ -1,657 +0,0 @@ -/* hnb-gw specific code for HNBAP */ - -/* (C) 2015 by Harald Welte <laforge@gnumonks.org> - * All Rights Reserved - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -#include <osmocom/core/msgb.h> -#include <osmocom/core/utils.h> -#include <osmocom/core/socket.h> -#include <osmocom/gsm/gsm48.h> -#include <osmocom/netif/stream.h> - -#include <unistd.h> -#include <errno.h> -#include <string.h> - -#include "asn1helpers.h" -#include <osmocom/hnbap/hnbap_common.h> -#include <osmocom/ranap/iu_helpers.h> - -#include <osmocom/iuh/hnbgw.h> -#include <osmocom/hnbap/hnbap_ies_defs.h> - -#define IU_MSG_NUM_IES 32 -#define IU_MSG_NUM_EXT_IES 32 - -static int hnbgw_hnbap_tx(struct hnb_context *ctx, struct msgb *msg) -{ - if (!msg) - return -EINVAL; - - msgb_sctp_ppid(msg) = IUH_PPI_HNBAP; - osmo_stream_srv_send(ctx->conn, msg); - - return 0; -} - -static int hnbgw_tx_hnb_register_rej(struct hnb_context *ctx) -{ - HNBRegisterReject_t reject_out; - HNBRegisterRejectIEs_t reject; - struct msgb *msg; - int rc; - - reject.presenceMask = 0, - reject.cause.present = Cause_PR_radioNetwork; - reject.cause.choice.radioNetwork = CauseRadioNetwork_unspecified; - - /* encode the Information Elements */ - memset(&reject_out, 0, sizeof(reject_out)); - rc = hnbap_encode_hnbregisterrejecties(&reject_out, &reject); - if (rc < 0) { - LOGP(DHNBAP, LOGL_ERROR, "Failure to encode HNB-REGISTER-REJECT to %s: rc=%d\n", - ctx->identity_info, rc); - return rc; - } - - /* generate a successfull outcome PDU */ - msg = hnbap_generate_unsuccessful_outcome(ProcedureCode_id_HNBRegister, - Criticality_reject, - &asn_DEF_HNBRegisterReject, - &reject_out); - - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_HNBRegisterReject, &reject_out); - - rc = hnbgw_hnbap_tx(ctx, msg); - if (rc == 0) { - /* Tell libosmo-netif to destroy this connection when it is done - * sending our HNB-REGISTER-REJECT response. */ - osmo_stream_srv_set_flush_and_destroy(ctx->conn); - } else { - /* The message was not queued. Destroy the connection right away. */ - hnb_context_release(ctx); - return rc; - } - - return 0; -} - -static int hnbgw_tx_hnb_register_acc(struct hnb_context *ctx) -{ - HNBRegisterAccept_t accept_out; - struct msgb *msg; - int rc; - - /* Single required response IE: RNC-ID */ - HNBRegisterAcceptIEs_t accept = { - .rnc_id = ctx->gw->config.rnc_id - }; - - /* encode the Information Elements */ - memset(&accept_out, 0, sizeof(accept_out)); - rc = hnbap_encode_hnbregisteraccepties(&accept_out, &accept); - if (rc < 0) { - LOGP(DHNBAP, LOGL_ERROR, "Failure to encode HNB-REGISTER-ACCEPT to %s: rc=%d\n", - ctx->identity_info, rc); - return rc; - } - - /* generate a successfull outcome PDU */ - msg = hnbap_generate_successful_outcome(ProcedureCode_id_HNBRegister, - Criticality_reject, - &asn_DEF_HNBRegisterAccept, - &accept_out); - - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_HNBRegisterAccept, &accept_out); - - LOGP(DHNBAP, LOGL_NOTICE, "Accepting HNB-REGISTER-REQ from %s\n", ctx->identity_info); - - return hnbgw_hnbap_tx(ctx, msg); -} - - -static int hnbgw_tx_ue_register_acc(struct ue_context *ue) -{ - UERegisterAccept_t accept_out; - UERegisterAcceptIEs_t accept; - struct msgb *msg; - uint8_t encoded_imsi[10]; - uint32_t ctx_id; - size_t encoded_imsi_len; - int rc; - - encoded_imsi_len = ranap_imsi_encode(encoded_imsi, - sizeof(encoded_imsi), ue->imsi); - - memset(&accept, 0, sizeof(accept)); - accept.uE_Identity.present = UE_Identity_PR_iMSI; - OCTET_STRING_fromBuf(&accept.uE_Identity.choice.iMSI, - (const char *)encoded_imsi, encoded_imsi_len); - asn1_u24_to_bitstring(&accept.context_ID, &ctx_id, ue->context_id); - - memset(&accept_out, 0, sizeof(accept_out)); - rc = hnbap_encode_ueregisteraccepties(&accept_out, &accept); - if (rc < 0) { - return rc; - } - - msg = hnbap_generate_successful_outcome(ProcedureCode_id_UERegister, - Criticality_reject, - &asn_DEF_UERegisterAccept, - &accept_out); - - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_OCTET_STRING, &accept.uE_Identity.choice.iMSI); - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_UERegisterAccept, &accept_out); - - return hnbgw_hnbap_tx(ue->hnb, msg); -} - -static int hnbgw_tx_ue_register_rej_tmsi(struct hnb_context *hnb, UE_Identity_t *ue_id) -{ - UERegisterReject_t reject_out; - UERegisterRejectIEs_t reject; - struct msgb *msg; - int rc; - - memset(&reject, 0, sizeof(reject)); - reject.uE_Identity.present = ue_id->present; - - /* Copy the identity over to the reject message */ - switch (ue_id->present) { - case UE_Identity_PR_tMSILAI: - LOGP(DHNBAP, LOGL_DEBUG, "REJ UE_Id tMSI %d %s\n", - ue_id->choice.tMSILAI.tMSI.size, - osmo_hexdump(ue_id->choice.tMSILAI.tMSI.buf, - ue_id->choice.tMSILAI.tMSI.size)); - - LOGP(DHNBAP, LOGL_DEBUG, "REJ UE_Id pLMNID %d %s\n", - ue_id->choice.tMSILAI.lAI.pLMNID.size, - osmo_hexdump(ue_id->choice.tMSILAI.lAI.pLMNID.buf, - ue_id->choice.tMSILAI.lAI.pLMNID.size)); - - LOGP(DHNBAP, LOGL_DEBUG, "REJ UE_Id lAC %d %s\n", - ue_id->choice.tMSILAI.lAI.lAC.size, - osmo_hexdump(ue_id->choice.tMSILAI.lAI.lAC.buf, - ue_id->choice.tMSILAI.lAI.lAC.size)); - - BIT_STRING_fromBuf(&reject.uE_Identity.choice.tMSILAI.tMSI, - ue_id->choice.tMSILAI.tMSI.buf, - ue_id->choice.tMSILAI.tMSI.size * 8 - - ue_id->choice.tMSILAI.tMSI.bits_unused); - OCTET_STRING_fromBuf(&reject.uE_Identity.choice.tMSILAI.lAI.pLMNID, - (const char *)ue_id->choice.tMSILAI.lAI.pLMNID.buf, - ue_id->choice.tMSILAI.lAI.pLMNID.size); - OCTET_STRING_fromBuf(&reject.uE_Identity.choice.tMSILAI.lAI.lAC, - (const char *)ue_id->choice.tMSILAI.lAI.lAC.buf, - ue_id->choice.tMSILAI.lAI.lAC.size); - break; - - case UE_Identity_PR_pTMSIRAI: - LOGP(DHNBAP, LOGL_DEBUG, "REJ UE_Id pTMSI %d %s\n", - ue_id->choice.pTMSIRAI.pTMSI.size, - osmo_hexdump(ue_id->choice.pTMSIRAI.pTMSI.buf, - ue_id->choice.pTMSIRAI.pTMSI.size)); - - LOGP(DHNBAP, LOGL_DEBUG, "REJ UE_Id pLMNID %d %s\n", - ue_id->choice.pTMSIRAI.rAI.lAI.pLMNID.size, - osmo_hexdump(ue_id->choice.pTMSIRAI.rAI.lAI.pLMNID.buf, - ue_id->choice.pTMSIRAI.rAI.lAI.pLMNID.size)); - - LOGP(DHNBAP, LOGL_DEBUG, "REJ UE_Id lAC %d %s\n", - ue_id->choice.pTMSIRAI.rAI.lAI.lAC.size, - osmo_hexdump(ue_id->choice.pTMSIRAI.rAI.lAI.lAC.buf, - ue_id->choice.pTMSIRAI.rAI.lAI.lAC.size)); - - LOGP(DHNBAP, LOGL_DEBUG, "REJ UE_Id rAC %d %s\n", - ue_id->choice.pTMSIRAI.rAI.rAC.size, - osmo_hexdump(ue_id->choice.pTMSIRAI.rAI.rAC.buf, - ue_id->choice.pTMSIRAI.rAI.rAC.size)); - - BIT_STRING_fromBuf(&reject.uE_Identity.choice.pTMSIRAI.pTMSI, - ue_id->choice.pTMSIRAI.pTMSI.buf, - ue_id->choice.pTMSIRAI.pTMSI.size * 8 - - ue_id->choice.pTMSIRAI.pTMSI.bits_unused); - OCTET_STRING_fromBuf(&reject.uE_Identity.choice.pTMSIRAI.rAI.lAI.pLMNID, - (const char *)ue_id->choice.pTMSIRAI.rAI.lAI.pLMNID.buf, - ue_id->choice.pTMSIRAI.rAI.lAI.pLMNID.size); - OCTET_STRING_fromBuf(&reject.uE_Identity.choice.pTMSIRAI.rAI.lAI.lAC, - (const char *)ue_id->choice.pTMSIRAI.rAI.lAI.lAC.buf, - ue_id->choice.pTMSIRAI.rAI.lAI.lAC.size); - OCTET_STRING_fromBuf(&reject.uE_Identity.choice.pTMSIRAI.rAI.rAC, - (const char *)ue_id->choice.pTMSIRAI.rAI.rAC.buf, - ue_id->choice.pTMSIRAI.rAI.rAC.size); - break; - - default: - LOGP(DHNBAP, LOGL_ERROR, "Cannot compose UE Register Reject:" - " unsupported UE ID (present=%d)\n", ue_id->present); - return -1; - } - - LOGP(DHNBAP, LOGL_ERROR, "Rejecting UE Register Request:" - " TMSI identity registration is switched off\n"); - - reject.cause.present = Cause_PR_radioNetwork; - reject.cause.choice.radioNetwork = CauseRadioNetwork_invalid_UE_identity; - - memset(&reject_out, 0, sizeof(reject_out)); - rc = hnbap_encode_ueregisterrejecties(&reject_out, &reject); - if (rc < 0) - return rc; - - msg = hnbap_generate_unsuccessful_outcome(ProcedureCode_id_UERegister, - Criticality_reject, - &asn_DEF_UERegisterReject, - &reject_out); - - /* Free copied identity IEs */ - switch (ue_id->present) { - case UE_Identity_PR_tMSILAI: - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_BIT_STRING, - &reject.uE_Identity.choice.tMSILAI.tMSI); - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_OCTET_STRING, - &reject.uE_Identity.choice.tMSILAI.lAI.pLMNID); - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_OCTET_STRING, - &reject.uE_Identity.choice.tMSILAI.lAI.lAC); - break; - - case UE_Identity_PR_pTMSIRAI: - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_BIT_STRING, - &reject.uE_Identity.choice.pTMSIRAI.pTMSI); - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_OCTET_STRING, - &reject.uE_Identity.choice.pTMSIRAI.rAI.lAI.pLMNID); - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_OCTET_STRING, - &reject.uE_Identity.choice.pTMSIRAI.rAI.lAI.lAC); - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_OCTET_STRING, - &reject.uE_Identity.choice.pTMSIRAI.rAI.rAC); - break; - - default: - /* should never happen after above switch() */ - break; - } - - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_UERegisterReject, &reject_out); - - return hnbgw_hnbap_tx(hnb, msg); -} - -static int hnbgw_tx_ue_register_acc_tmsi(struct hnb_context *hnb, UE_Identity_t *ue_id) -{ - UERegisterAccept_t accept_out; - UERegisterAcceptIEs_t accept; - struct msgb *msg; - uint32_t ctx_id; - uint32_t tmsi = 0; - struct ue_context *ue; - int rc; - - memset(&accept, 0, sizeof(accept)); - accept.uE_Identity.present = ue_id->present; - - switch (ue_id->present) { - case UE_Identity_PR_tMSILAI: - BIT_STRING_fromBuf(&accept.uE_Identity.choice.tMSILAI.tMSI, - ue_id->choice.tMSILAI.tMSI.buf, - ue_id->choice.tMSILAI.tMSI.size * 8 - - ue_id->choice.tMSILAI.tMSI.bits_unused); - tmsi = *(uint32_t*)accept.uE_Identity.choice.tMSILAI.tMSI.buf; - OCTET_STRING_fromBuf(&accept.uE_Identity.choice.tMSILAI.lAI.pLMNID, - (const char *)ue_id->choice.tMSILAI.lAI.pLMNID.buf, - ue_id->choice.tMSILAI.lAI.pLMNID.size); - OCTET_STRING_fromBuf(&accept.uE_Identity.choice.tMSILAI.lAI.lAC, - (const char *)ue_id->choice.tMSILAI.lAI.lAC.buf, - ue_id->choice.tMSILAI.lAI.lAC.size); - break; - - case UE_Identity_PR_pTMSIRAI: - BIT_STRING_fromBuf(&accept.uE_Identity.choice.pTMSIRAI.pTMSI, - ue_id->choice.pTMSIRAI.pTMSI.buf, - ue_id->choice.pTMSIRAI.pTMSI.size * 8 - - ue_id->choice.pTMSIRAI.pTMSI.bits_unused); - tmsi = *(uint32_t*)accept.uE_Identity.choice.pTMSIRAI.pTMSI.buf; - OCTET_STRING_fromBuf(&accept.uE_Identity.choice.pTMSIRAI.rAI.lAI.pLMNID, - (const char *)ue_id->choice.pTMSIRAI.rAI.lAI.pLMNID.buf, - ue_id->choice.pTMSIRAI.rAI.lAI.pLMNID.size); - OCTET_STRING_fromBuf(&accept.uE_Identity.choice.pTMSIRAI.rAI.lAI.lAC, - (const char *)ue_id->choice.pTMSIRAI.rAI.lAI.lAC.buf, - ue_id->choice.pTMSIRAI.rAI.lAI.lAC.size); - OCTET_STRING_fromBuf(&accept.uE_Identity.choice.pTMSIRAI.rAI.rAC, - (const char *)ue_id->choice.pTMSIRAI.rAI.rAC.buf, - ue_id->choice.pTMSIRAI.rAI.rAC.size); - break; - - default: - LOGP(DHNBAP, LOGL_ERROR, "Unsupportedccept UE ID (present=%d)\n", - ue_id->present); - return -1; - } - - tmsi = ntohl(tmsi); - LOGP(DHNBAP, LOGL_DEBUG, "HNBAP register with TMSI %x\n", - tmsi); - - ue = ue_context_by_tmsi(hnb->gw, tmsi); - if (!ue) - ue = ue_context_alloc(hnb, NULL, tmsi); - - asn1_u24_to_bitstring(&accept.context_ID, &ctx_id, ue->context_id); - - memset(&accept_out, 0, sizeof(accept_out)); - rc = hnbap_encode_ueregisteraccepties(&accept_out, &accept); - if (rc < 0) - return rc; - - msg = hnbap_generate_successful_outcome(ProcedureCode_id_UERegister, - Criticality_reject, - &asn_DEF_UERegisterAccept, - &accept_out); - - switch (ue_id->present) { - case UE_Identity_PR_tMSILAI: - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_BIT_STRING, - &accept.uE_Identity.choice.tMSILAI.tMSI); - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_OCTET_STRING, - &accept.uE_Identity.choice.tMSILAI.lAI.pLMNID); - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_OCTET_STRING, - &accept.uE_Identity.choice.tMSILAI.lAI.lAC); - break; - - case UE_Identity_PR_pTMSIRAI: - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_BIT_STRING, - &accept.uE_Identity.choice.pTMSIRAI.pTMSI); - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_OCTET_STRING, - &accept.uE_Identity.choice.pTMSIRAI.rAI.lAI.pLMNID); - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_OCTET_STRING, - &accept.uE_Identity.choice.pTMSIRAI.rAI.lAI.lAC); - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_OCTET_STRING, - &accept.uE_Identity.choice.pTMSIRAI.rAI.rAC); - break; - - default: - /* should never happen after above switch() */ - break; - } - - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_UERegisterAccept, &accept_out); - - return hnbgw_hnbap_tx(hnb, msg); -} - -static int hnbgw_rx_hnb_deregister(struct hnb_context *ctx, ANY_t *in) -{ - HNBDe_RegisterIEs_t ies; - int rc; - - rc = hnbap_decode_hnbde_registeries(&ies, in); - if (rc < 0) - return rc; - - DEBUGP(DHNBAP, "HNB-DE-REGISTER cause=%s\n", - hnbap_cause_str(&ies.cause)); - - hnbap_free_hnbde_registeries(&ies); - hnb_context_release(ctx); - - return 0; -} - -static int hnbgw_rx_hnb_register_req(struct hnb_context *ctx, ANY_t *in) -{ - struct hnb_context *hnb; - HNBRegisterRequestIEs_t ies; - int rc; - - rc = hnbap_decode_hnbregisterrequesties(&ies, in); - if (rc < 0) { - LOGP(DHNBAP, LOGL_ERROR, "Failure to decode HNB-REGISTER-REQ from %s: rc=%d\n", - ctx->identity_info, rc); - return rc; - } - - /* copy all identity parameters from the message to ctx */ - asn1_strncpy(ctx->identity_info, &ies.hnB_Identity.hNB_Identity_Info, - sizeof(ctx->identity_info)); - ctx->id.lac = asn1str_to_u16(&ies.lac); - ctx->id.sac = asn1str_to_u16(&ies.sac); - ctx->id.rac = asn1str_to_u8(&ies.rac); - ctx->id.cid = asn1bitstr_to_u28(&ies.cellIdentity); - gsm48_mcc_mnc_from_bcd(ies.plmNidentity.buf, &ctx->id.mcc, &ctx->id.mnc); - - llist_for_each_entry(hnb, &ctx->gw->hnb_list, list) { - if (hnb->hnb_registered && ctx != hnb && memcmp(&ctx->id, &hnb->id, sizeof(ctx->id)) == 0) { - struct osmo_fd *ofd = osmo_stream_srv_get_ofd(ctx->conn); - char *name = osmo_sock_get_name(ctx, ofd->fd); - LOGP(DHNBAP, LOGL_ERROR, "rejecting HNB-REGISTER-REQ with duplicate cell identity " - "MCC=%u,MNC=%u,LAC=%u,RAC=%u,SAC=%u,CID=%u from %s\n", - ctx->id.mcc, ctx->id.mnc, ctx->id.lac, ctx->id.rac, ctx->id.sac, ctx->id.cid, name); - talloc_free(name); - return hnbgw_tx_hnb_register_rej(ctx); - } - } - - ctx->hnb_registered = true; - - DEBUGP(DHNBAP, "HNB-REGISTER-REQ from %s\n", ctx->identity_info); - - /* Send HNBRegisterAccept */ - rc = hnbgw_tx_hnb_register_acc(ctx); - hnbap_free_hnbregisterrequesties(&ies); - return rc; -} - -static int hnbgw_rx_ue_register_req(struct hnb_context *ctx, ANY_t *in) -{ - UERegisterRequestIEs_t ies; - struct ue_context *ue; - char imsi[16]; - int rc; - - rc = hnbap_decode_ueregisterrequesties(&ies, in); - if (rc < 0) - return rc; - - switch (ies.uE_Identity.present) { - case UE_Identity_PR_iMSI: - ranap_bcd_decode(imsi, sizeof(imsi), ies.uE_Identity.choice.iMSI.buf, - ies.uE_Identity.choice.iMSI.size); - break; - case UE_Identity_PR_iMSIDS41: - ranap_bcd_decode(imsi, sizeof(imsi), ies.uE_Identity.choice.iMSIDS41.buf, - ies.uE_Identity.choice.iMSIDS41.size); - break; - case UE_Identity_PR_iMSIESN: - ranap_bcd_decode(imsi, sizeof(imsi), ies.uE_Identity.choice.iMSIESN.iMSIDS41.buf, - ies.uE_Identity.choice.iMSIESN.iMSIDS41.size); - break; - case UE_Identity_PR_tMSILAI: - case UE_Identity_PR_pTMSIRAI: - if (ctx->gw->config.hnbap_allow_tmsi) - rc = hnbgw_tx_ue_register_acc_tmsi(ctx, &ies.uE_Identity); - else - rc = hnbgw_tx_ue_register_rej_tmsi(ctx, &ies.uE_Identity); - /* all has been handled by TMSI, skip the IMSI code below */ - hnbap_free_ueregisterrequesties(&ies); - return rc; - default: - LOGP(DHNBAP, LOGL_NOTICE, - "UE-REGISTER-REQ with unsupported UE Id type %d\n", - ies.uE_Identity.present); - hnbap_free_ueregisterrequesties(&ies); - return rc; - } - - DEBUGP(DHNBAP, "UE-REGISTER-REQ ID_type=%d imsi=%s cause=%ld\n", - ies.uE_Identity.present, imsi, ies.registration_Cause); - - ue = ue_context_by_imsi(ctx->gw, imsi); - if (!ue) - ue = ue_context_alloc(ctx, imsi, 0); - - hnbap_free_ueregisterrequesties(&ies); - /* Send UERegisterAccept */ - return hnbgw_tx_ue_register_acc(ue); -} - -static int hnbgw_rx_ue_deregister(struct hnb_context *ctx, ANY_t *in) -{ - UEDe_RegisterIEs_t ies; - struct ue_context *ue; - int rc; - uint32_t ctxid; - - rc = hnbap_decode_uede_registeries(&ies, in); - if (rc < 0) - return rc; - - ctxid = asn1bitstr_to_u24(&ies.context_ID); - - DEBUGP(DHNBAP, "UE-DE-REGISTER context=%u cause=%s\n", - ctxid, hnbap_cause_str(&ies.cause)); - - ue = ue_context_by_id(ctx->gw, ctxid); - if (ue) - ue_context_free(ue); - - hnbap_free_uede_registeries(&ies); - return 0; -} - -static int hnbgw_rx_err_ind(struct hnb_context *hnb, ANY_t *in) -{ - ErrorIndicationIEs_t ies; - int rc; - - rc = hnbap_decode_errorindicationies(&ies, in); - if (rc < 0) - return rc; - - LOGP(DHNBAP, LOGL_NOTICE, "HNBAP ERROR.ind, cause: %s\n", - hnbap_cause_str(&ies.cause)); - - hnbap_free_errorindicationies(&ies); - return 0; -} - -static int hnbgw_rx_initiating_msg(struct hnb_context *hnb, InitiatingMessage_t *imsg) -{ - int rc = 0; - - switch (imsg->procedureCode) { - case ProcedureCode_id_HNBRegister: /* 8.2 */ - rc = hnbgw_rx_hnb_register_req(hnb, &imsg->value); - break; - case ProcedureCode_id_HNBDe_Register: /* 8.3 */ - rc = hnbgw_rx_hnb_deregister(hnb, &imsg->value); - break; - case ProcedureCode_id_UERegister: /* 8.4 */ - rc = hnbgw_rx_ue_register_req(hnb, &imsg->value); - break; - case ProcedureCode_id_UEDe_Register: /* 8.5 */ - rc = hnbgw_rx_ue_deregister(hnb, &imsg->value); - break; - case ProcedureCode_id_ErrorIndication: /* 8.6 */ - rc = hnbgw_rx_err_ind(hnb, &imsg->value); - break; - case ProcedureCode_id_TNLUpdate: /* 8.9 */ - case ProcedureCode_id_HNBConfigTransfer: /* 8.10 */ - case ProcedureCode_id_RelocationComplete: /* 8.11 */ - case ProcedureCode_id_U_RNTIQuery: /* 8.12 */ - case ProcedureCode_id_privateMessage: - LOGP(DHNBAP, LOGL_NOTICE, "Unimplemented HNBAP Procedure %ld\n", - imsg->procedureCode); - break; - default: - LOGP(DHNBAP, LOGL_NOTICE, "Unknown HNBAP Procedure %ld\n", - imsg->procedureCode); - break; - } - - return rc; -} - -static int hnbgw_rx_successful_outcome_msg(struct hnb_context *hnb, SuccessfulOutcome_t *msg) -{ - /* We don't care much about HNBAP */ - return 0; -} - -static int hnbgw_rx_unsuccessful_outcome_msg(struct hnb_context *hnb, UnsuccessfulOutcome_t *msg) -{ - /* We don't care much about HNBAP */ - LOGP(DHNBAP, LOGL_ERROR, "Received Unsuccessful Outcome, procedureCode %ld, criticality %ld," - " from '%s', cell mcc %u mnc %u lac %u rac %u sac %u cid %u\n", - msg->procedureCode, msg->criticality, hnb->identity_info, - hnb->id.mcc, hnb->id.mnc, hnb->id.lac, hnb->id.rac, hnb->id.sac, hnb->id.cid); - return 0; -} - - -static int _hnbgw_hnbap_rx(struct hnb_context *hnb, HNBAP_PDU_t *pdu) -{ - int rc = 0; - - /* it's a bit odd that we can't dispatch on procedure code, but - * that's not possible */ - switch (pdu->present) { - case HNBAP_PDU_PR_initiatingMessage: - rc = hnbgw_rx_initiating_msg(hnb, &pdu->choice.initiatingMessage); - break; - case HNBAP_PDU_PR_successfulOutcome: - rc = hnbgw_rx_successful_outcome_msg(hnb, &pdu->choice.successfulOutcome); - break; - case HNBAP_PDU_PR_unsuccessfulOutcome: - rc = hnbgw_rx_unsuccessful_outcome_msg(hnb, &pdu->choice.unsuccessfulOutcome); - break; - default: - LOGP(DHNBAP, LOGL_NOTICE, "Unknown HNBAP Presence %u\n", - pdu->present); - rc = -1; - } - - return rc; -} - -int hnbgw_hnbap_rx(struct hnb_context *hnb, struct msgb *msg) -{ - HNBAP_PDU_t _pdu, *pdu = &_pdu; - asn_dec_rval_t dec_ret; - int rc; - - /* decode and handle to _hnbgw_hnbap_rx() */ - - memset(pdu, 0, sizeof(*pdu)); - dec_ret = aper_decode(NULL, &asn_DEF_HNBAP_PDU, (void **) &pdu, - msg->data, msgb_length(msg), 0, 0); - if (dec_ret.code != RC_OK) { - LOGP(DHNBAP, LOGL_ERROR, "Error in ASN.1 decode\n"); - return -1; - } - - rc = _hnbgw_hnbap_rx(hnb, pdu); - - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_HNBAP_PDU, pdu); - - return rc; -} - - -int hnbgw_hnbap_init(void) -{ - return 0; -} diff --git a/src/hnbgw_ranap.c b/src/hnbgw_ranap.c deleted file mode 100644 index 6822752..0000000 --- a/src/hnbgw_ranap.c +++ /dev/null @@ -1,210 +0,0 @@ -/* hnb-gw specific code for RANAP */ - -/* (C) 2015 by Harald Welte <laforge@gnumonks.org> - * All Rights Reserved - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - - - -#include <osmocom/core/msgb.h> -#include <osmocom/core/utils.h> - -#include <unistd.h> -#include <errno.h> -#include <string.h> - -#include "asn1helpers.h" - -#include <osmocom/iuh/hnbgw.h> -#include <osmocom/iuh/hnbgw_rua.h> -#include <osmocom/ranap/ranap_common.h> -#include <osmocom/ranap/ranap_ies_defs.h> -#include <osmocom/ranap/ranap_msg_factory.h> - -static int ranap_tx_reset_ack(struct hnb_context *hnb, - RANAP_CN_DomainIndicator_t domain) -{ - struct msgb *msg; - int rc; - - msg = ranap_new_msg_reset_ack(domain, NULL); - if (!msg) - return -1; - - rc = rua_tx_udt(hnb, msg->data, msgb_length(msg)); - - msgb_free(msg); - - return rc; -} - -static int ranap_rx_init_reset(struct hnb_context *hnb, ANY_t *in) -{ - RANAP_ResetIEs_t ies; - int rc, is_ps = 0; - - rc = ranap_decode_reseties(&ies, in); - if (rc < 0) - return rc; - - if (ies.cN_DomainIndicator == RANAP_CN_DomainIndicator_ps_domain) - is_ps=1; - - LOGP(DRANAP, LOGL_INFO, "Rx RESET.req(%s,%s)\n", is_ps ? "ps" : "cs", - ranap_cause_str(&ies.cause)); - - /* FIXME: Actually we have to wait for some guard time? */ - /* FIXME: Reset all resources related to this HNB/RNC */ - ranap_tx_reset_ack(hnb, ies.cN_DomainIndicator); - - return 0; -} - -static int ranap_rx_error_ind(struct hnb_context *hnb, ANY_t *in) -{ - RANAP_ErrorIndicationIEs_t ies; - int rc; - - rc = ranap_decode_errorindicationies(&ies, in); - if (rc < 0) - return rc; - - if (ies.presenceMask & ERRORINDICATIONIES_RANAP_CAUSE_PRESENT) { - LOGP(DRANAP, LOGL_ERROR, "Rx ERROR.ind(%s)\n", - ranap_cause_str(&ies.cause)); - } else - LOGP(DRANAP, LOGL_ERROR, "Rx ERROR.ind\n"); - - return 0; -} - -static int ranap_rx_initiating_msg(struct hnb_context *hnb, RANAP_InitiatingMessage_t *imsg) -{ - int rc = 0; - - /* according tot the spec, we can primarily receive Overload, - * Reset, Reset ACK, Error Indication, reset Resource, Reset - * Resurce Acknowledge as connecitonless RANAP. There are some - * more messages regarding Information Transfer, Direct - * Information Transfer and Uplink Information Trnansfer that we - * can ignore. In either case, it is RANAP that we need to - * decode... */ - switch (imsg->procedureCode) { - case RANAP_ProcedureCode_id_Reset: - /* Reset request */ - rc = ranap_rx_init_reset(hnb, &imsg->value); - break; - case RANAP_ProcedureCode_id_OverloadControl: /* Overload ind */ - break; - case RANAP_ProcedureCode_id_ErrorIndication: /* Error ind */ - rc = ranap_rx_error_ind(hnb, &imsg->value); - break; - case RANAP_ProcedureCode_id_ResetResource: /* request */ - case RANAP_ProcedureCode_id_InformationTransfer: - case RANAP_ProcedureCode_id_DirectInformationTransfer: - case RANAP_ProcedureCode_id_UplinkInformationExchange: - LOGP(DRANAP, LOGL_NOTICE, "Received unsupported RANAP " - "Procedure %lu from HNB, ignoring\n", imsg->procedureCode); - break; - default: - LOGP(DRANAP, LOGL_NOTICE, "Received suspicious RANAP " - "Procedure %lu from HNB, ignoring\n", imsg->procedureCode); - break; - } - - return rc; -} - -static int ranap_rx_successful_msg(struct hnb_context *hnb, RANAP_SuccessfulOutcome_t *imsg) -{ - /* according tot the spec, we can primarily receive Overload, - * Reset, Reset ACK, Error Indication, reset Resource, Reset - * Resurce Acknowledge as connecitonless RANAP. There are some - * more messages regarding Information Transfer, Direct - * Information Transfer and Uplink Information Trnansfer that we - * can ignore. In either case, it is RANAP that we need to - * decode... */ - switch (imsg->procedureCode) { - case RANAP_ProcedureCode_id_Reset: /* Reset acknowledge */ - break; - case RANAP_ProcedureCode_id_ResetResource: /* response */ - case RANAP_ProcedureCode_id_InformationTransfer: - case RANAP_ProcedureCode_id_DirectInformationTransfer: - case RANAP_ProcedureCode_id_UplinkInformationExchange: - LOGP(DRANAP, LOGL_NOTICE, "Received unsupported RANAP " - "Procedure %lu from HNB, ignoring\n", imsg->procedureCode); - break; - default: - LOGP(DRANAP, LOGL_NOTICE, "Received suspicious RANAP " - "Procedure %lu from HNB, ignoring\n", imsg->procedureCode); - break; - } - - return 0; -} - - - -static int _hnbgw_ranap_rx(struct hnb_context *hnb, RANAP_RANAP_PDU_t *pdu) -{ - int rc = 0; - - switch (pdu->present) { - case RANAP_RANAP_PDU_PR_initiatingMessage: - rc = ranap_rx_initiating_msg(hnb, &pdu->choice.initiatingMessage); - break; - case RANAP_RANAP_PDU_PR_successfulOutcome: - rc = ranap_rx_successful_msg(hnb, &pdu->choice.successfulOutcome); - break; - case RANAP_RANAP_PDU_PR_unsuccessfulOutcome: - LOGP(DRANAP, LOGL_NOTICE, "Received unsupported RANAP " - "unsuccessful outcome procedure %lu from HNB, ignoring\n", - pdu->choice.unsuccessfulOutcome.procedureCode); - break; - default: - LOGP(DRANAP, LOGL_NOTICE, "Received suspicious RANAP " - "presence %u from HNB, ignoring\n", pdu->present); - break; - } - - return rc; -} - - -int hnbgw_ranap_rx(struct msgb *msg, uint8_t *data, size_t len) -{ - RANAP_RANAP_PDU_t _pdu, *pdu = &_pdu; - asn_dec_rval_t dec_ret; - int rc; - - memset(pdu, 0, sizeof(*pdu)); - dec_ret = aper_decode(NULL,&asn_DEF_RANAP_RANAP_PDU, (void **) &pdu, - data, len, 0, 0); - if (dec_ret.code != RC_OK) { - LOGP(DRANAP, LOGL_ERROR, "Error in RANAP ASN.1 decode\n"); - return -1; - } - - rc = _hnbgw_ranap_rx(msg->dst, pdu); - - return rc; -} - -int hnbgw_ranap_init(void) -{ - return 0; -} diff --git a/src/hnbgw_rua.c b/src/hnbgw_rua.c deleted file mode 100644 index 71c3f8e..0000000 --- a/src/hnbgw_rua.c +++ /dev/null @@ -1,569 +0,0 @@ -/* hnb-gw specific code for RUA (Ranap User Adaption) */ - -/* (C) 2015 by Harald Welte <laforge@gnumonks.org> - * All Rights Reserved - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - - -#include <osmocom/core/msgb.h> -#include <osmocom/core/utils.h> -#include <osmocom/netif/stream.h> - -#include <osmocom/sigtran/sccp_sap.h> -#include <osmocom/sigtran/sccp_helpers.h> - -#include <unistd.h> -#include <errno.h> -#include <string.h> - -#include "asn1helpers.h" - -#include <osmocom/iuh/hnbgw.h> -#include <osmocom/iuh/hnbgw_ranap.h> -#include <osmocom/rua/rua_common.h> -#include <osmocom/rua/rua_ies_defs.h> -#include <osmocom/iuh/context_map.h> -#include <osmocom/hnbap/CN-DomainIndicator.h> - -static const char *cn_domain_indicator_to_str(CN_DomainIndicator_t cN_DomainIndicator) -{ - switch (cN_DomainIndicator) { - case RUA_CN_DomainIndicator_cs_domain: - return "IuCS"; - case RUA_CN_DomainIndicator_ps_domain: - return "IuPS"; - default: - return "(unknown-domain)"; - } -} - -static int hnbgw_rua_tx(struct hnb_context *ctx, struct msgb *msg) -{ - if (!msg) - return -EINVAL; - - msgb_sctp_ppid(msg) = IUH_PPI_RUA; - osmo_stream_srv_send(ctx->conn, msg); - - return 0; -} - -int rua_tx_udt(struct hnb_context *hnb, const uint8_t *data, unsigned int len) -{ - RUA_ConnectionlessTransfer_t out; - RUA_ConnectionlessTransferIEs_t ies; - struct msgb *msg; - int rc; - - memset(&ies, 0, sizeof(ies)); - ies.ranaP_Message.buf = (uint8_t *) data; - ies.ranaP_Message.size = len; - - /* FIXME: msgb_free(msg)? ownership not yet clear */ - - memset(&out, 0, sizeof(out)); - rc = rua_encode_connectionlesstransferies(&out, &ies); - if (rc < 0) - return rc; - - msg = rua_generate_initiating_message(RUA_ProcedureCode_id_ConnectionlessTransfer, - RUA_Criticality_reject, - &asn_DEF_RUA_ConnectionlessTransfer, - &out); - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_RUA_ConnectionlessTransfer, &out); - - DEBUGP(DRUA, "transmitting RUA payload of %u bytes\n", msgb_length(msg)); - - return hnbgw_rua_tx(hnb, msg); -} - -int rua_tx_dt(struct hnb_context *hnb, int is_ps, uint32_t context_id, - const uint8_t *data, unsigned int len) -{ - RUA_DirectTransfer_t out; - RUA_DirectTransferIEs_t ies; - uint32_t ctxidbuf; - struct msgb *msg; - int rc; - - memset(&ies, 0, sizeof(ies)); - if (is_ps) - ies.cN_DomainIndicator = RUA_CN_DomainIndicator_ps_domain; - else - ies.cN_DomainIndicator = RUA_CN_DomainIndicator_cs_domain; - asn1_u24_to_bitstring(&ies.context_ID, &ctxidbuf, context_id); - ies.ranaP_Message.buf = (uint8_t *) data; - ies.ranaP_Message.size = len; - - /* FIXME: msgb_free(msg)? ownership not yet clear */ - - memset(&out, 0, sizeof(out)); - rc = rua_encode_directtransferies(&out, &ies); - if (rc < 0) - return rc; - - msg = rua_generate_initiating_message(RUA_ProcedureCode_id_DirectTransfer, - RUA_Criticality_reject, - &asn_DEF_RUA_DirectTransfer, - &out); - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_RUA_DirectTransfer, &out); - - DEBUGP(DRUA, "transmitting RUA (cn=%s) payload of %u bytes\n", - is_ps ? "ps" : "cs", msgb_length(msg)); - - return hnbgw_rua_tx(hnb, msg); -} - -int rua_tx_disc(struct hnb_context *hnb, int is_ps, uint32_t context_id, - const RUA_Cause_t *cause, const uint8_t *data, unsigned int len) -{ - RUA_Disconnect_t out; - RUA_DisconnectIEs_t ies; - struct msgb *msg; - uint32_t ctxidbuf; - int rc; - - memset(&ies, 0, sizeof(ies)); - if (is_ps) - ies.cN_DomainIndicator = RUA_CN_DomainIndicator_ps_domain; - else - ies.cN_DomainIndicator = RUA_CN_DomainIndicator_cs_domain; - asn1_u24_to_bitstring(&ies.context_ID, &ctxidbuf, context_id); - memcpy(&ies.cause, cause, sizeof(ies.cause)); - if (data && len) { - ies.presenceMask |= DISCONNECTIES_RUA_RANAP_MESSAGE_PRESENT; - ies.ranaP_Message.buf = (uint8_t *) data; - ies.ranaP_Message.size = len; - } - - /* FIXME: msgb_free(msg)? ownership not yet clear */ - - memset(&out, 0, sizeof(out)); - rc = rua_encode_disconnecties(&out, &ies); - if (rc < 0) - return rc; - - msg = rua_generate_initiating_message(RUA_ProcedureCode_id_Disconnect, - RUA_Criticality_reject, - &asn_DEF_RUA_Disconnect, - &out); - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_RUA_Disconnect, &out); - - DEBUGP(DRUA, "transmitting RUA (cn=%s) payload of %u bytes\n", - is_ps ? "ps" : "cs", msgb_length(msg)); - - - return hnbgw_rua_tx(hnb, msg); -} - - - -/* forward a RUA message to the SCCP User API to SCCP */ -static int rua_to_scu(struct hnb_context *hnb, - CN_DomainIndicator_t cN_DomainIndicator, - enum osmo_scu_prim_type type, - uint32_t context_id, uint32_t cause, - const uint8_t *data, unsigned int len) -{ - struct msgb *msg; - struct osmo_scu_prim *prim; - struct hnbgw_context_map *map = NULL; - struct hnbgw_cnlink *cn = hnb->gw->sccp.cnlink; - struct osmo_sccp_addr *remote_addr; - bool is_ps; - bool release_context_map = false; - int rc; - - switch (cN_DomainIndicator) { - case RUA_CN_DomainIndicator_cs_domain: - remote_addr = &hnb->gw->sccp.iucs_remote_addr; - is_ps = false; - break; - case RUA_CN_DomainIndicator_ps_domain: - remote_addr = &hnb->gw->sccp.iups_remote_addr; - is_ps = true; - break; - default: - LOGP(DRUA, LOGL_ERROR, "Unsupported Domain %ld\n", - cN_DomainIndicator); - return -1; - } - - if (!cn) { - DEBUGP(DRUA, "CN=NULL, discarding message\n"); - return 0; - } - - msg = msgb_alloc(1500, "rua_to_sccp"); - - prim = (struct osmo_scu_prim *) msgb_put(msg, sizeof(*prim)); - osmo_prim_init(&prim->oph, SCCP_SAP_USER, type, PRIM_OP_REQUEST, msg); - - switch (type) { - case OSMO_SCU_PRIM_N_UNITDATA: - DEBUGP(DRUA, "rua_to_scu() %s to %s, rua_ctx_id %u (unitdata, no scu_conn_id)\n", - cn_domain_indicator_to_str(cN_DomainIndicator), - osmo_sccp_addr_dump(remote_addr), - context_id); - break; - default: - map = context_map_alloc_by_hnb(hnb, context_id, is_ps, cn); - OSMO_ASSERT(map); - DEBUGP(DRUA, "rua_to_scu() %s to %s, rua_ctx_id %u scu_conn_id %u\n", - cn_domain_indicator_to_str(cN_DomainIndicator), - osmo_sccp_addr_dump(remote_addr), - map->rua_ctx_id, map->scu_conn_id); - } - - /* add primitive header */ - switch (type) { - case OSMO_SCU_PRIM_N_CONNECT: - prim->u.connect.called_addr = *remote_addr; - prim->u.connect.calling_addr = cn->gw->sccp.local_addr; - prim->u.connect.sccp_class = 2; - prim->u.connect.conn_id = map->scu_conn_id; - /* Two separate logs because of osmo_sccp_addr_dump(). */ - DEBUGP(DRUA, "RUA to SCCP N_CONNECT: called_addr:%s\n", - osmo_sccp_addr_dump(&prim->u.connect.called_addr)); - DEBUGP(DRUA, "RUA to SCCP N_CONNECT: calling_addr:%s\n", - osmo_sccp_addr_dump(&prim->u.connect.calling_addr)); - break; - case OSMO_SCU_PRIM_N_DATA: - prim->u.data.conn_id = map->scu_conn_id; - break; - case OSMO_SCU_PRIM_N_DISCONNECT: - prim->u.disconnect.conn_id = map->scu_conn_id; - prim->u.disconnect.cause = cause; - release_context_map = true; - break; - case OSMO_SCU_PRIM_N_UNITDATA: - prim->u.unitdata.called_addr = *remote_addr; - prim->u.unitdata.calling_addr = cn->gw->sccp.local_addr; - /* Two separate logs because of osmo_sccp_addr_dump(). */ - DEBUGP(DRUA, "RUA to SCCP N_UNITDATA: called_addr:%s\n", - osmo_sccp_addr_dump(&prim->u.unitdata.called_addr)); - DEBUGP(DRUA, "RUA to SCCP N_UNITDATA: calling_addr:%s\n", - osmo_sccp_addr_dump(&prim->u.unitdata.calling_addr)); - break; - default: - return -EINVAL; - } - - /* add optional data section, if needed */ - if (data && len) { - msg->l2h = msgb_put(msg, len); - memcpy(msg->l2h, data, len); - } - - rc = osmo_sccp_user_sap_down(cn->sccp_user, &prim->oph); - - if (map && release_context_map) - context_map_deactivate(map); - - return rc; -} - -static uint32_t rua_to_scu_cause(RUA_Cause_t *in) -{ - /* FIXME: Implement this! */ -#if 0 - switch (in->present) { - case RUA_Cause_PR_NOTHING: - break; - case RUA_Cause_PR_radioNetwork: - switch (in->choice.radioNetwork) { - case RUA_CauseRadioNetwork_normal: - case RUA_CauseRadioNetwork_connect_failed: - case RUA_CauseRadioNetwork_network_release: - case RUA_CauseRadioNetwork_unspecified: - } - break; - case RUA_Cause_PR_transport: - switch (in->choice.transport) { - case RUA_CauseTransport_transport_resource_unavailable: - break; - case RUA_CauseTransport_unspecified: - break; - } - break; - case RUA_Cause_PR_protocol: - switch (in->choice.protocol) { - case RUA_CauseProtocol_transfer_syntax_error: - break; - case RUA_CauseProtocol_abstract_syntax_error_reject: - break; - case RUA_CauseProtocol_abstract_syntax_error_ignore_and_notify: - break; - case RUA_CauseProtocol_message_not_compatible_with_receiver_state: - break; - case RUA_CauseProtocol_semantic_error: - break; - case RUA_CauseProtocol_unspecified: - break; - case RUA_CauseProtocol_abstract_syntax_error_falsely_constructed_message: - break; - } - break; - case RUA_Cause_PR_misc: - switch (in->choice.misc) { - case RUA_CauseMisc_processing_overload: - break; - case RUA_CauseMisc_hardware_failure: - break; - case RUA_CauseMisc_o_and_m_intervention: - break; - case RUA_CauseMisc_unspecified: - break; - } - break; - default: - break; - } -#else - return 0; -#endif - -} - -static int rua_rx_init_connect(struct msgb *msg, ANY_t *in) -{ - RUA_ConnectIEs_t ies; - struct hnb_context *hnb = msg->dst; - uint32_t context_id; - int rc; - - rc = rua_decode_connecties(&ies, in); - if (rc < 0) - return rc; - - context_id = asn1bitstr_to_u24(&ies.context_ID); - - DEBUGP(DRUA, "RUA %s Connect.req(ctx=0x%x, %s)\n", - cn_domain_indicator_to_str(ies.cN_DomainIndicator), - context_id, - ies.establishment_Cause == RUA_Establishment_Cause_emergency_call - ? "emergency" : "normal"); - - rc = rua_to_scu(hnb, ies.cN_DomainIndicator, OSMO_SCU_PRIM_N_CONNECT, - context_id, 0, ies.ranaP_Message.buf, - ies.ranaP_Message.size); - - rua_free_connecties(&ies); - - return rc; -} - -static int rua_rx_init_disconnect(struct msgb *msg, ANY_t *in) -{ - RUA_DisconnectIEs_t ies; - struct hnb_context *hnb = msg->dst; - uint32_t context_id; - uint32_t scu_cause; - uint8_t *ranap_data = NULL; - unsigned int ranap_len = 0; - int rc; - - rc = rua_decode_disconnecties(&ies, in); - if (rc < 0) - return rc; - - context_id = asn1bitstr_to_u24(&ies.context_ID); - scu_cause = rua_to_scu_cause(&ies.cause); - - DEBUGP(DRUA, "RUA Disconnect.req(ctx=0x%x,cause=%s)\n", context_id, - rua_cause_str(&ies.cause)); - - if (ies.presenceMask & DISCONNECTIES_RUA_RANAP_MESSAGE_PRESENT) { - ranap_data = ies.ranaP_Message.buf; - ranap_len = ies.ranaP_Message.size; - } - - rc = rua_to_scu(hnb, ies.cN_DomainIndicator, - OSMO_SCU_PRIM_N_DISCONNECT, - context_id, scu_cause, ranap_data, ranap_len); - - rua_free_disconnecties(&ies); - - return rc; -} - -static int rua_rx_init_dt(struct msgb *msg, ANY_t *in) -{ - RUA_DirectTransferIEs_t ies; - struct hnb_context *hnb = msg->dst; - uint32_t context_id; - int rc; - - rc = rua_decode_directtransferies(&ies, in); - if (rc < 0) - return rc; - - context_id = asn1bitstr_to_u24(&ies.context_ID); - - DEBUGP(DRUA, "RUA Data.req(ctx=0x%x)\n", context_id); - - rc = rua_to_scu(hnb, - ies.cN_DomainIndicator, - OSMO_SCU_PRIM_N_DATA, - context_id, 0, ies.ranaP_Message.buf, - ies.ranaP_Message.size); - - rua_free_directtransferies(&ies); - - return rc; -} - -static int rua_rx_init_udt(struct msgb *msg, ANY_t *in) -{ - RUA_ConnectionlessTransferIEs_t ies; - int rc; - - rc = rua_decode_connectionlesstransferies(&ies, in); - if (rc < 0) - return rc; - - DEBUGP(DRUA, "RUA UData.req()\n"); - - /* according tot the spec, we can primarily receive Overload, - * Reset, Reset ACK, Error Indication, reset Resource, Reset - * Resurce Acknowledge as connecitonless RANAP. There are some - * more messages regarding Information Transfer, Direct - * Information Transfer and Uplink Information Trnansfer that we - * can ignore. In either case, it is RANAP that we need to - * decode... */ - rc = hnbgw_ranap_rx(msg, ies.ranaP_Message.buf, ies.ranaP_Message.size); - rua_free_connectionlesstransferies(&ies); - - return rc; -} - - -static int rua_rx_init_err_ind(struct msgb *msg, ANY_t *in) -{ - RUA_ErrorIndicationIEs_t ies; - int rc; - - rc = rua_decode_errorindicationies(&ies, in); - if (rc < 0) - return rc; - - LOGP(DRUA, LOGL_ERROR, "RUA UData.ErrorInd(%s)\n", - rua_cause_str(&ies.cause)); - - rua_free_errorindicationies(&ies); - return rc; -} - -static int rua_rx_initiating_msg(struct msgb *msg, RUA_InitiatingMessage_t *imsg) -{ - int rc; - - switch (imsg->procedureCode) { - case RUA_ProcedureCode_id_Connect: - rc = rua_rx_init_connect(msg, &imsg->value); - break; - case RUA_ProcedureCode_id_DirectTransfer: - rc = rua_rx_init_dt(msg, &imsg->value); - break; - case RUA_ProcedureCode_id_Disconnect: - rc = rua_rx_init_disconnect(msg, &imsg->value); - break; - case RUA_ProcedureCode_id_ConnectionlessTransfer: - rc = rua_rx_init_udt(msg, &imsg->value); - break; - case RUA_ProcedureCode_id_ErrorIndication: - rc = rua_rx_init_err_ind(msg, &imsg->value); - break; - case RUA_ProcedureCode_id_privateMessage: - LOGP(DRUA, LOGL_NOTICE, - "Unhandled: RUA Initiating Msg: Private Msg\n"); - rc = 0; - break; - default: - LOGP(DRUA, LOGL_NOTICE, "Unknown RUA Procedure %lu\n", - imsg->procedureCode); - rc = -1; - } - - return rc; -} - -static int rua_rx_successful_outcome_msg(struct msgb *msg, RUA_SuccessfulOutcome_t *in) -{ - /* FIXME */ - LOGP(DRUA, LOGL_NOTICE, "Unexpected RUA Successful Outcome\n"); - return -1; -} - -static int rua_rx_unsuccessful_outcome_msg(struct msgb *msg, RUA_UnsuccessfulOutcome_t *in) -{ - /* FIXME */ - LOGP(DRUA, LOGL_NOTICE, "Unexpected RUA Unsucessful Outcome\n"); - return -1; -} - - -static int _hnbgw_rua_rx(struct msgb *msg, RUA_RUA_PDU_t *pdu) -{ - int rc; - - /* it's a bit odd that we can't dispatch on procedure code, but - * that's not possible */ - switch (pdu->present) { - case RUA_RUA_PDU_PR_initiatingMessage: - rc = rua_rx_initiating_msg(msg, &pdu->choice.initiatingMessage); - break; - case RUA_RUA_PDU_PR_successfulOutcome: - rc = rua_rx_successful_outcome_msg(msg, &pdu->choice.successfulOutcome); - break; - case RUA_RUA_PDU_PR_unsuccessfulOutcome: - rc = rua_rx_unsuccessful_outcome_msg(msg, &pdu->choice.unsuccessfulOutcome); - break; - default: - LOGP(DRUA, LOGL_NOTICE, "Unknown RUA presence %u\n", pdu->present); - rc = -1; - } - - return rc; -} - -int hnbgw_rua_rx(struct hnb_context *hnb, struct msgb *msg) -{ - RUA_RUA_PDU_t _pdu, *pdu = &_pdu; - asn_dec_rval_t dec_ret; - int rc; - - /* decode and handle to _hnbgw_hnbap_rx() */ - - memset(pdu, 0, sizeof(*pdu)); - dec_ret = aper_decode(NULL, &asn_DEF_RUA_RUA_PDU, (void **) &pdu, - msg->data, msgb_length(msg), 0, 0); - if (dec_ret.code != RC_OK) { - LOGP(DRUA, LOGL_ERROR, "Error in ASN.1 decode\n"); - return -1; - } - - rc = _hnbgw_rua_rx(msg, pdu); - - return rc; -} - - -int hnbgw_rua_init(void) -{ - return 0; -} diff --git a/src/hnbgw_vty.c b/src/hnbgw_vty.c deleted file mode 100644 index f2e51d4..0000000 --- a/src/hnbgw_vty.c +++ /dev/null @@ -1,402 +0,0 @@ -/* HNB-GW interface to quagga VTY */ - -/* (C) 2016 by sysmocom s.f.m.c. GmbH <info@sysmocom.de> - * All Rights Reserved - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -#include <string.h> - -#include <osmocom/core/socket.h> -#include <osmocom/vty/command.h> - -#include <osmocom/iuh/vty.h> - -#include <osmocom/iuh/hnbgw.h> -#include <osmocom/iuh/context_map.h> -#include <osmocom/sigtran/protocol/sua.h> -#include <osmocom/sigtran/sccp_helpers.h> -#include <osmocom/netif/stream.h> - -static void *tall_hnb_ctx = NULL; -static struct hnb_gw *g_hnb_gw = NULL; - -static struct cmd_node hnbgw_node = { - HNBGW_NODE, - "%s(config-hnbgw)# ", - 1, -}; - -DEFUN(cfg_hnbgw, cfg_hnbgw_cmd, - "hnbgw", "Configure HNBGW options") -{ - vty->node = HNBGW_NODE; - return CMD_SUCCESS; -} - -static struct cmd_node iuh_node = { - IUH_NODE, - "%s(config-hnbgw-iuh)# ", - 1, -}; - -DEFUN(cfg_hnbgw_iuh, cfg_hnbgw_iuh_cmd, - "iuh", "Configure Iuh options") -{ - vty->node = IUH_NODE; - return CMD_SUCCESS; -} - -static struct cmd_node iucs_node = { - IUCS_NODE, - "%s(config-hnbgw-iucs)# ", - 1, -}; - -DEFUN(cfg_hnbgw_iucs, cfg_hnbgw_iucs_cmd, - "iucs", "Configure IuCS options") -{ - vty->node = IUCS_NODE; - return CMD_SUCCESS; -} - -static struct cmd_node iups_node = { - IUPS_NODE, - "%s(config-hnbgw-iups)# ", - 1, -}; - -DEFUN(cfg_hnbgw_iups, cfg_hnbgw_iups_cmd, - "iups", "Configure IuPS options") -{ - vty->node = IUPS_NODE; - return CMD_SUCCESS; -} - -int hnbgw_vty_go_parent(struct vty *vty) -{ - switch (vty->node) { - case IUH_NODE: - case IUCS_NODE: - case IUPS_NODE: - vty->node = HNBGW_NODE; - vty->index = NULL; - break; - case HNBGW_NODE: - vty->node = CONFIG_NODE; - vty->index = NULL; - break; - case CONFIG_NODE: - vty->node = ENABLE_NODE; - vty->index = NULL; - break; - default: - osmo_ss7_vty_go_parent(vty); - break; - } - - return vty->node; -} - -DEFUN(show_cnlink, show_cnlink_cmd, "show cnlink", - SHOW_STR "Display information on core network link\n") -{ - struct osmo_ss7_route *rt; - struct osmo_ss7_instance *ss7 = osmo_sccp_get_ss7(g_hnb_gw->sccp.client); -#define GUARD(STR) \ - STR ? STR : "", \ - STR ? ":" : "" - - vty_out(vty, "IuCS: %s <->", - osmo_sccp_user_name(g_hnb_gw->sccp.cnlink->sccp_user)); - vty_out(vty, " %s%s%s%s", - GUARD(g_hnb_gw->config.iucs_remote_addr_name), - osmo_sccp_inst_addr_name(g_hnb_gw->sccp.client, &g_hnb_gw->sccp.iucs_remote_addr), - VTY_NEWLINE); - - rt = osmo_ss7_route_lookup(ss7, g_hnb_gw->sccp.iucs_remote_addr.pc); - vty_out(vty, " SS7 route: %s%s", osmo_ss7_route_name(rt, true), VTY_NEWLINE); - - vty_out(vty, "IuPS: %s <->", - osmo_sccp_user_name(g_hnb_gw->sccp.cnlink->sccp_user)); - vty_out(vty, " %s%s%s%s", - GUARD(g_hnb_gw->config.iups_remote_addr_name), - osmo_sccp_inst_addr_name(g_hnb_gw->sccp.client, &g_hnb_gw->sccp.iups_remote_addr), - VTY_NEWLINE); - - rt = osmo_ss7_route_lookup(ss7, g_hnb_gw->sccp.iups_remote_addr.pc); - vty_out(vty, " SS7 route: %s%s", osmo_ss7_route_name(rt, true), VTY_NEWLINE); - -#undef GUARD - return CMD_SUCCESS; -} - -static void vty_out_ofd_addr(struct vty *vty, struct osmo_fd *ofd) -{ - char *name; - if (!ofd || ofd->fd < 0 - || !(name = osmo_sock_get_name(vty, ofd->fd))) { - vty_out(vty, "(no addr)"); - return; - } - vty_out(vty, "%s", name); - talloc_free(name); -} - -static void vty_dump_hnb_info__map_states(struct vty *vty, const char *name, unsigned int count, - unsigned int state_count[]) -{ - unsigned int i; - if (!count) - return; - vty_out(vty, " %s: %u contexts:", name, count); - for (i = 0; i <= MAP_S_NUM_STATES; i++) { - if (!state_count[i]) - continue; - vty_out(vty, " %s:%u", hnbgw_context_map_state_name(i), state_count[i]); - } - vty_out(vty, VTY_NEWLINE); -} - -static void vty_dump_hnb_info(struct vty *vty, struct hnb_context *hnb) -{ - struct hnbgw_context_map *map; - unsigned int map_count[2] = {}; - unsigned int state_count[2][MAP_S_NUM_STATES + 1] = {}; - - vty_out(vty, "HNB "); - vty_out_ofd_addr(vty, hnb->conn? osmo_stream_srv_get_ofd(hnb->conn) : NULL); - vty_out(vty, " \"%s\"%s", hnb->identity_info, VTY_NEWLINE); - vty_out(vty, " MCC %u MNC %u LAC %u RAC %u SAC %u CID %u SCTP-stream:HNBAP=%u,RUA=%u%s", - hnb->id.mcc, hnb->id.mnc, hnb->id.lac, hnb->id.rac, hnb->id.sac, hnb->id.cid, - hnb->hnbap_stream, hnb->rua_stream, VTY_NEWLINE); - - llist_for_each_entry(map, &hnb->map_list, hnb_list) { - map_count[map->is_ps? 1 : 0]++; - state_count[map->is_ps? 1 : 0] - [(map->state >= 0 && map->state < MAP_S_NUM_STATES)? - map->state : MAP_S_NUM_STATES]++; - } - vty_dump_hnb_info__map_states(vty, "IuCS", map_count[0], state_count[0]); - vty_dump_hnb_info__map_states(vty, "IuPS", map_count[1], state_count[1]); -} - -static void vty_dump_ue_info(struct vty *vty, struct ue_context *ue) -{ - vty_out(vty, "UE IMSI \"%s\" context ID %u%s", ue->imsi, ue->context_id, VTY_NEWLINE); -} - -DEFUN(show_hnb, show_hnb_cmd, "show hnb all", SHOW_STR "Display information about all HNB") -{ - struct hnb_context *hnb; - unsigned int count = 0; - - if (llist_empty(&g_hnb_gw->hnb_list)) { - vty_out(vty, "No HNB connected%s", VTY_NEWLINE); - return CMD_SUCCESS; - } - - llist_for_each_entry(hnb, &g_hnb_gw->hnb_list, list) { - vty_dump_hnb_info(vty, hnb); - count++; - } - - vty_out(vty, "%u HNB connected%s", count, VTY_NEWLINE); - - return CMD_SUCCESS; -} - -DEFUN(show_one_hnb, show_one_hnb_cmd, "show hnb NAME ", SHOW_STR "Display information about a HNB") -{ - struct hnb_context *hnb; - const char *identity_info = argv[0]; - - if (llist_empty(&g_hnb_gw->hnb_list)) { - vty_out(vty, "No HNB connected%s", VTY_NEWLINE); - return CMD_SUCCESS; - } - - hnb = hnb_context_by_identity_info(g_hnb_gw, identity_info); - if (hnb == NULL) { - vty_out(vty, "No HNB found with identity '%s'%s", identity_info, VTY_NEWLINE); - return CMD_SUCCESS; - } - - vty_dump_hnb_info(vty, hnb); - return CMD_SUCCESS; -} - -DEFUN(show_ue, show_ue_cmd, "show ue all", SHOW_STR "Display information about a UE") -{ - struct ue_context *ue; - - llist_for_each_entry(ue, &g_hnb_gw->ue_list, list) { - vty_dump_ue_info(vty, ue); - } - - return CMD_SUCCESS; -} - -DEFUN(show_talloc, show_talloc_cmd, "show talloc", SHOW_STR "Display talloc info") -{ - talloc_report_full(tall_hnb_ctx, stderr); - talloc_report_full(talloc_asn1_ctx, stderr); - - return CMD_SUCCESS; -} - -DEFUN(cfg_hnbgw_rnc_id, cfg_hnbgw_rnc_id_cmd, - "rnc-id <0-65535>", - "Configure the HNBGW's RNC Id, the common RNC Id used for all connected hNodeB. It is sent to" - " each hNodeB upon HNBAP HNB-Register-Accept, and the hNodeB will subsequently send this as" - " RANAP InitialUE Messages' GlobalRNC-ID IE. Takes effect as soon as the hNodeB re-registers.\n" - "RNC Id value\n") -{ - g_hnb_gw->config.rnc_id = atoi(argv[0]); - return CMD_SUCCESS; -} - -DEFUN(cfg_hnbgw_iuh_local_ip, cfg_hnbgw_iuh_local_ip_cmd, "local-ip A.B.C.D", - "Accept Iuh connections on local interface\n" - "Local interface IP address (default: " HNBGW_LOCAL_IP_DEFAULT ")") -{ - talloc_free((void*)g_hnb_gw->config.iuh_local_ip); - g_hnb_gw->config.iuh_local_ip = talloc_strdup(tall_hnb_ctx, argv[0]); - return CMD_SUCCESS; -} - -DEFUN(cfg_hnbgw_iuh_local_port, cfg_hnbgw_iuh_local_port_cmd, "local-port <1-65535>", - "Accept Iuh connections on local port\n" - "Local interface port (default: 29169)") -{ - g_hnb_gw->config.iuh_local_port = atoi(argv[0]); - return CMD_SUCCESS; -} - -DEFUN(cfg_hnbgw_iuh_hnbap_allow_tmsi, cfg_hnbgw_iuh_hnbap_allow_tmsi_cmd, - "hnbap-allow-tmsi (0|1)", - "Allow HNBAP UE Register messages with TMSI or PTMSI identity\n" - "Only accept IMSI identity, reject TMSI or PTMSI\n" - "Accept IMSI, TMSI or PTMSI as UE identity\n") -{ - g_hnb_gw->config.hnbap_allow_tmsi = (*argv[0] == '1'); - return CMD_SUCCESS; -} - -DEFUN(cfg_hnbgw_iucs_remote_addr, - cfg_hnbgw_iucs_remote_addr_cmd, - "remote-addr NAME", - "SCCP address to send IuCS to (MSC)\n" - "SCCP address book entry name (see 'cs7-instance')\n") -{ - g_hnb_gw->config.iucs_remote_addr_name = talloc_strdup(g_hnb_gw, argv[0]); - return CMD_SUCCESS; -} - -DEFUN(cfg_hnbgw_iups_remote_addr, - cfg_hnbgw_iups_remote_addr_cmd, - "remote-addr NAME", - "SCCP address to send IuPS to (SGSN)\n" - "SCCP address book entry name (see 'cs7-instance')\n") -{ - g_hnb_gw->config.iups_remote_addr_name = talloc_strdup(g_hnb_gw, argv[0]); - return CMD_SUCCESS; -} - -static int config_write_hnbgw(struct vty *vty) -{ - vty_out(vty, "hnbgw%s", VTY_NEWLINE); - return CMD_SUCCESS; -} - -static int config_write_hnbgw_iuh(struct vty *vty) -{ - const char *addr; - uint16_t port; - - vty_out(vty, " iuh%s", VTY_NEWLINE); - - addr = g_hnb_gw->config.iuh_local_ip; - if (addr && (strcmp(addr, HNBGW_LOCAL_IP_DEFAULT) != 0)) - vty_out(vty, " local-ip %s%s", addr, VTY_NEWLINE); - - port = g_hnb_gw->config.iuh_local_port; - if (port && port != IUH_DEFAULT_SCTP_PORT) - vty_out(vty, " local-port %u%s", port, VTY_NEWLINE); - - if (g_hnb_gw->config.hnbap_allow_tmsi) - vty_out(vty, " hnbap-allow-tmsi 1%s", VTY_NEWLINE); - - return CMD_SUCCESS; -} - -static int config_write_hnbgw_iucs(struct vty *vty) -{ - if (!g_hnb_gw->config.iucs_remote_addr_name) - return CMD_SUCCESS; - - vty_out(vty, " iucs%s", VTY_NEWLINE); - vty_out(vty, " remote-addr %s%s", g_hnb_gw->config.iucs_remote_addr_name, - VTY_NEWLINE); - - return CMD_SUCCESS; -} - -static int config_write_hnbgw_iups(struct vty *vty) -{ - if (!g_hnb_gw->config.iups_remote_addr_name) - return CMD_SUCCESS; - - vty_out(vty, " iups%s", VTY_NEWLINE); - vty_out(vty, " remote-addr %s%s", g_hnb_gw->config.iups_remote_addr_name, - VTY_NEWLINE); - - return CMD_SUCCESS; -} - -void hnbgw_vty_init(struct hnb_gw *gw, void *tall_ctx) -{ - g_hnb_gw = gw; - tall_hnb_ctx = tall_ctx; - - install_element(CONFIG_NODE, &cfg_hnbgw_cmd); - install_node(&hnbgw_node, config_write_hnbgw); - - install_element(HNBGW_NODE, &cfg_hnbgw_rnc_id_cmd); - - install_element(HNBGW_NODE, &cfg_hnbgw_iuh_cmd); - install_node(&iuh_node, config_write_hnbgw_iuh); - - install_element(IUH_NODE, &cfg_hnbgw_iuh_local_ip_cmd); - install_element(IUH_NODE, &cfg_hnbgw_iuh_local_port_cmd); - install_element(IUH_NODE, &cfg_hnbgw_iuh_hnbap_allow_tmsi_cmd); - - install_element(HNBGW_NODE, &cfg_hnbgw_iucs_cmd); - install_node(&iucs_node, config_write_hnbgw_iucs); - - install_element(IUCS_NODE, &cfg_hnbgw_iucs_remote_addr_cmd); - - install_element(HNBGW_NODE, &cfg_hnbgw_iups_cmd); - install_node(&iups_node, config_write_hnbgw_iups); - - install_element(IUPS_NODE, &cfg_hnbgw_iups_remote_addr_cmd); - - install_element_ve(&show_cnlink_cmd); - install_element_ve(&show_hnb_cmd); - install_element_ve(&show_one_hnb_cmd); - install_element_ve(&show_ue_cmd); - install_element_ve(&show_talloc_cmd); -} diff --git a/src/iu_client.c b/src/iu_client.c index 4b0acb0..ea5ebe8 100644 --- a/src/iu_client.c +++ b/src/iu_client.c @@ -55,6 +55,14 @@ struct iu_lac_rac_entry { uint8_t rac; }; +/* Entry to cache conn_id <-> sccp_addr mapping in case we receive an empty CR */ +struct iu_new_ctx_entry { + struct llist_head list; + + uint32_t conn_id; + struct osmo_sccp_addr sccp_addr; +}; + /* A remote RNC (Radio Network Controller, like BSC but for UMTS) that has * called us and is currently reachable at the given osmo_sccp_addr. So, when we * know a LAC for a subscriber, we can page it at the RNC matching that LAC or @@ -94,6 +102,7 @@ int iu_log_subsystem = 0; #define LOGPIUC(level, fmt, args...) \ LOGPC(iu_log_subsystem, level, fmt, ## args) +static LLIST_HEAD(ue_conn_sccp_addr_list); static LLIST_HEAD(ue_conn_ctx_list); static LLIST_HEAD(rnc_list); @@ -119,9 +128,17 @@ static int global_iu_event(struct ranap_ue_conn_ctx *ue_ctx, if (!ue_ctx->notification) return 0; + LOGPIU(LOGL_DEBUG, "Submit Iu event to upper layer: %s\n", ranap_iu_event_type_str(type)); + return global_iu_event_cb(ue_ctx, type, data); } +static void ue_conn_ctx_release_timeout_cb(void *ctx_) +{ + struct ranap_ue_conn_ctx *ctx = (struct ranap_ue_conn_ctx *)ctx_; + global_iu_event(ctx, RANAP_IU_EVENT_IU_RELEASE, NULL); +} + static struct ranap_ue_conn_ctx *ue_conn_ctx_alloc(struct ranap_iu_rnc *rnc, uint32_t conn_id) { struct ranap_ue_conn_ctx *ctx = talloc_zero(talloc_iu_ctx, struct ranap_ue_conn_ctx); @@ -131,7 +148,7 @@ static struct ranap_ue_conn_ctx *ue_conn_ctx_alloc(struct ranap_iu_rnc *rnc, uin ctx->notification = true; ctx->free_on_release = false; osmo_timer_setup(&ctx->release_timeout, - (void *)(void *) ranap_iu_free_ue, + ue_conn_ctx_release_timeout_cb, ctx); llist_add(&ctx->list, &ue_conn_ctx_list); @@ -160,6 +177,38 @@ void ranap_iu_free_ue(struct ranap_ue_conn_ctx *ue_ctx) talloc_free(ue_ctx); } +static void ue_conn_sccp_addr_add(uint32_t conn_id, const struct osmo_sccp_addr *calling_addr) +{ + struct iu_new_ctx_entry *entry = talloc_zero(talloc_iu_ctx, struct iu_new_ctx_entry); + + entry->conn_id = conn_id; + entry->sccp_addr = *calling_addr; + + llist_add(&entry->list, &ue_conn_sccp_addr_list); +} + +static const struct osmo_sccp_addr *ue_conn_sccp_addr_find(uint32_t conn_id) +{ + struct iu_new_ctx_entry *entry; + llist_for_each_entry(entry, &ue_conn_sccp_addr_list, list) { + if (entry->conn_id == conn_id) + return &entry->sccp_addr; + } + return NULL; +} + +static void ue_conn_sccp_addr_del(uint32_t conn_id) +{ + struct iu_new_ctx_entry *entry; + llist_for_each_entry(entry, &ue_conn_sccp_addr_list, list) { + if (entry->conn_id == conn_id) { + llist_del(&entry->list); + talloc_free(entry); + return; + } + } +} + static struct ranap_iu_rnc *iu_rnc_alloc(uint16_t rnc_id, struct osmo_sccp_addr *addr) { struct ranap_iu_rnc *rnc = talloc_zero(talloc_iu_ctx, struct ranap_iu_rnc); @@ -453,6 +502,11 @@ int ranap_iu_tx(struct msgb *msg_nas, uint8_t sapi) struct msgb *msg; struct osmo_scu_prim *prim; + if (!uectx) { + LOGPIU(LOGL_ERROR, "Discarding to-be-transmitted L3 Message as RANAP DT with unset dst SCCP conn_id!\n"); + return -ENOTCONN; + } + LOGPIU(LOGL_INFO, "Transmitting L3 Message as RANAP DT (SCCP conn_id %u)\n", uectx->conn_id); @@ -499,10 +553,9 @@ void ranap_iu_tx_release_free(struct ranap_ue_conn_ctx *ctx, ctx->notification = false; ctx->free_on_release = true; int ret = ranap_iu_tx_release(ctx, cause); - if (ret) { - ranap_iu_free_ue(ctx); - return; - } + /* On Tx failure, trigger timeout immediately, as the response will never arrive */ + if (ret) + timeout = 0; osmo_timer_schedule(&ctx->release_timeout, timeout, 0); } @@ -807,6 +860,7 @@ static int sccp_sap_up(struct osmo_prim_hdr *oph, void *_scu) int rc = -1; struct ranap_ue_conn_ctx *ue; struct new_ue_conn_ctx new_ctx = {}; + uint32_t conn_id; LOGPIU(LOGL_DEBUG, "sccp_sap_up(%s)\n", osmo_scu_prim_name(oph)); @@ -816,26 +870,32 @@ static int sccp_sap_up(struct osmo_prim_hdr *oph, void *_scu) break; case OSMO_PRIM(OSMO_SCU_PRIM_N_CONNECT, PRIM_OP_INDICATION): /* indication of new inbound connection request*/ - LOGPIU(LOGL_DEBUG, "N-CONNECT.ind(X->%u)\n", prim->u.connect.conn_id); - if (/* prim->u.connect.called_addr.ssn != OSMO_SCCP_SSN_RANAP || */ - !msgb_l2(oph->msg) || msgb_l2len(oph->msg) == 0) { - LOGPIU(LOGL_NOTICE, - "Received invalid N-CONNECT.ind\n"); - return 0; - } + conn_id = prim->u.connect.conn_id; + LOGPIU(LOGL_DEBUG, "N-CONNECT.ind(X->%u)\n", conn_id); + new_ctx.sccp_addr = prim->u.connect.calling_addr; - new_ctx.conn_id = prim->u.connect.conn_id; + new_ctx.conn_id = conn_id; + /* first ensure the local SCCP socket is ACTIVE */ resp = make_conn_resp(&prim->u.connect); osmo_sccp_user_sap_down(scu, resp); /* then handle the RANAP payload */ - rc = ranap_cn_rx_co(cn_ranap_handle_co_initial, &new_ctx, msgb_l2(oph->msg), msgb_l2len(oph->msg)); + if (/* prim->u.connect.called_addr.ssn != OSMO_SCCP_SSN_RANAP || */ + !msgb_l2(oph->msg) || msgb_l2len(oph->msg) == 0) { + LOGPIU(LOGL_DEBUG, + "Received N-CONNECT.ind without data\n"); + ue_conn_sccp_addr_add(conn_id, &prim->u.connect.calling_addr); + } else { + rc = ranap_cn_rx_co(cn_ranap_handle_co_initial, &new_ctx, msgb_l2(oph->msg), msgb_l2len(oph->msg)); + } break; case OSMO_PRIM(OSMO_SCU_PRIM_N_DISCONNECT, PRIM_OP_INDICATION): /* indication of disconnect */ - LOGPIU(LOGL_DEBUG, "N-DISCONNECT.ind(%u)\n", - prim->u.disconnect.conn_id); - ue = ue_conn_ctx_find(prim->u.disconnect.conn_id); + conn_id = prim->u.disconnect.conn_id; + LOGPIU(LOGL_DEBUG, "N-DISCONNECT.ind(%u)\n", conn_id); + + ue_conn_sccp_addr_del(conn_id); + ue = ue_conn_ctx_find(conn_id); if (!ue) break; @@ -844,14 +904,14 @@ static int sccp_sap_up(struct osmo_prim_hdr *oph, void *_scu) rc = ranap_cn_rx_co(cn_ranap_handle_co, ue, msgb_l2(oph->msg), msgb_l2len(oph->msg)); /* A Iu Release event might be used to free the UE in cn_ranap_handle_co. */ - ue = ue_conn_ctx_find(prim->u.disconnect.conn_id); + ue = ue_conn_ctx_find(conn_id); if (!ue) break; global_iu_event(ue, RANAP_IU_EVENT_LINK_INVALIDATED, NULL); /* A RANAP_IU_EVENT_LINK_INVALIDATED, can lead to a free */ - ue = ue_conn_ctx_find(prim->u.disconnect.conn_id); + ue = ue_conn_ctx_find(conn_id); if (!ue) break; if (ue->free_on_release) @@ -859,12 +919,26 @@ static int sccp_sap_up(struct osmo_prim_hdr *oph, void *_scu) break; case OSMO_PRIM(OSMO_SCU_PRIM_N_DATA, PRIM_OP_INDICATION): /* connection-oriented data received */ - LOGPIU(LOGL_DEBUG, "N-DATA.ind(%u, %s)\n", prim->u.data.conn_id, + conn_id = prim->u.data.conn_id; + LOGPIU(LOGL_DEBUG, "N-DATA.ind(%u, %s)\n", conn_id, osmo_hexdump(msgb_l2(oph->msg), msgb_l2len(oph->msg))); + /* resolve UE context */ - ue = ue_conn_ctx_find(prim->u.data.conn_id); - if (!ue) + ue = ue_conn_ctx_find(conn_id); + if (!ue) { + /* Could be an InitialUE-Message after an empty CR, recreate new_ctx */ + const struct osmo_sccp_addr *sccp_addr = ue_conn_sccp_addr_find(conn_id); + if (!sccp_addr) { + LOGPIU(LOGL_NOTICE, + "N-DATA.ind for unknown conn_id (%u)\n", conn_id); + break; + } + new_ctx.conn_id = conn_id; + new_ctx.sccp_addr = *sccp_addr; + ue_conn_sccp_addr_del(conn_id); + rc = ranap_cn_rx_co(cn_ranap_handle_co_initial, &new_ctx, msgb_l2(oph->msg), msgb_l2len(oph->msg)); break; + } rc = ranap_cn_rx_co(cn_ranap_handle_co, ue, msgb_l2(oph->msg), msgb_l2len(oph->msg)); break; diff --git a/src/iu_client_vty.c b/src/iu_client_vty.c index 7388468..b111a5b 100644 --- a/src/iu_client_vty.c +++ b/src/iu_client_vty.c @@ -1,5 +1,5 @@ /* OpenBSC Iu related interface to quagga VTY */ -/* (C) 2016 by sysmocom s.m.f.c. GmbH <info@sysmocom.de> +/* (C) 2016 by sysmocom s.f.m.c. GmbH <info@sysmocom.de> * All Rights Reserved * * This program is free software; you can redistribute it and/or modify diff --git a/src/iu_helpers.c b/src/iu_helpers.c index bf82fde..5c7ff31 100644 --- a/src/iu_helpers.c +++ b/src/iu_helpers.c @@ -24,8 +24,12 @@ #include <arpa/inet.h> #include "asn1helpers.h" #include <osmocom/core/utils.h> +#include <osmocom/core/socket.h> +#include <osmocom/core/bit16gen.h> + #include <osmocom/ranap/RANAP_IuTransportAssociation.h> #include <osmocom/ranap/RANAP_TransportLayerAddress.h> +#include <osmocom/ranap/RANAP_TransportLayerInformation.h> /* decode a BCD-string as used inside ASN.1 encoded Iu interface protocols */ int ranap_bcd_decode(char *out, size_t out_len, const uint8_t *in, size_t in_len) @@ -109,7 +113,7 @@ int ranap_transp_layer_addr_decode(char *addr, unsigned int addr_len, buf = trasp_layer_addr->buf; len = trasp_layer_addr->size; - if (buf[0] == 0x35 && len >= 7) + if (len >= 7 && buf[0] == 0x35) rc = inet_ntop(AF_INET, buf + 3, addr, addr_len); else if (len > 3) rc = inet_ntop(AF_INET, buf, addr, addr_len); @@ -121,3 +125,161 @@ int ranap_transp_layer_addr_decode(char *addr, unsigned int addr_len, return 0; } + +/* (same as ranap_transp_layer_addr_decode, but AF agnostic) */ +int ranap_transp_layer_addr_decode2(struct osmo_sockaddr *addr, bool *uses_x213_nsap, + const RANAP_TransportLayerAddress_t *trasp_layer_addr) +{ + unsigned char *buf; + int len; + bool x213_nsap = false; + uint16_t icp; + + buf = trasp_layer_addr->buf; + len = trasp_layer_addr->size; + + memset(addr, 0, sizeof(*addr)); + + if ((len == 7 || len == 20) && buf[0] == 0x35) { + /* ITU-T Rec. X.213 A.5.2.1.2.7, RFC 1888 section 6 + * For an X.213 NSAP encoded address we expect: + * 3 bytes IDP (first byte AFI = 0x35, which means that two byte IDI and an IP address follows) + * Either 4 or 17 bytes of DSP containing the IP address. + * (see also comments in function ranap_new_transp_layer_addr below) */ + x213_nsap = true; + icp = osmo_load16be(&buf[1]); + switch (icp) { + case 0x0000: + /* "RFC 1888 provides guidance on how to embed an IPv6 address within the DSP of an NSAP + * address. The IPv6 address is carried in the first 16 octets of the DSP. + * Octet 17 of the DSP is set to zero, but has no significance for IPv6." */ + if (len != 20) + return -EINVAL; + addr->u.sa.sa_family = AF_INET6; + memcpy(addr->u.sin6.sin6_addr.s6_addr, buf + 3, sizeof(addr->u.sin6.sin6_addr.s6_addr)); + break; + case 0x0001: + addr->u.sa.sa_family = AF_INET; + memcpy((uint8_t *) &addr->u.sin.sin_addr.s_addr, buf + 3, sizeof(addr->u.sin.sin_addr.s_addr)); + break; + default: + return -EINVAL; + } + } else if (len == 4) { + /* A non X.213 NSAP encoded IPv4 address is 4 bytes long */ + addr->u.sa.sa_family = AF_INET; + memcpy((uint8_t *) &addr->u.sin.sin_addr.s_addr, buf, sizeof(addr->u.sin.sin_addr.s_addr)); + } else if (len == 16) { + /* A non X.213 NSAP encoded IPv6 address is 16 bytes long */ + addr->u.sa.sa_family = AF_INET6; + memcpy(addr->u.sin6.sin6_addr.s6_addr, buf, sizeof(addr->u.sin6.sin6_addr.s6_addr)); + } else + return -EINVAL; + + /* In case the caller is interested in the encoding method that was used */ + if (uses_x213_nsap) + *uses_x213_nsap = x213_nsap; + + return 0; +} + +int ranap_new_transp_layer_addr(BIT_STRING_t *out, struct osmo_sockaddr *addr, bool use_x213_nsap) +{ + uint8_t *buf; + unsigned int len; + size_t ip_len; + uint8_t *ip_addr; + uint16_t icp; + + switch (addr->u.sa.sa_family) { + case AF_INET: + ip_len = sizeof(addr->u.sin.sin_addr.s_addr); + ip_addr = (uint8_t *) &addr->u.sin.sin_addr.s_addr; + icp = 0x0001; /* See X.213, section A.5.2.1.2.7 */ + break; + case AF_INET6: + ip_len = sizeof(addr->u.sin6.sin6_addr.s6_addr); + ip_addr = addr->u.sin6.sin6_addr.s6_addr; + icp = 0x0000; /* See X.213, section A.5.2.1.2.7 */ + break; + default: + return -EINVAL; + } + + if (use_x213_nsap) { + /* 3 bytes IDP (AFI+ICP) + 17 bytes DSP */ + len = 3 + 17; + buf = CALLOC(len, sizeof(uint8_t)); + + /* 1 byte AFI to announce IANA ICP, see also X.213, table A.4 */ + buf[0] = 0x35; + + /* 2 byte IANA ICP IDI, see also X.213, A.5.2.1.2.7 */ + osmo_store16be(icp, &buf[1]); + + /* 17 byte DSP, see also X.213, table A.5 and A.5.2.1.2.7 */ + memcpy(&buf[3], ip_addr, ip_len); + } else { + len = ip_len; + buf = CALLOC(len, sizeof(uint8_t)); + memcpy(buf, ip_addr, ip_len); + } + if (out->buf) + FREEMEM(out->buf); + out->buf = buf; + out->size = len; + out->bits_unused = 0; + + return 0; +} + +RANAP_TransportLayerInformation_t *ranap_new_transp_info_rtp(struct osmo_sockaddr *addr, bool use_x213_nsap) +{ + RANAP_TransportLayerInformation_t *tli; + uint8_t binding_id[4] = { 0 }; + int rc; + + switch (addr->u.sin.sin_family) { + case AF_INET: + osmo_store16be(ntohs(addr->u.sin.sin_port), binding_id); + break; + case AF_INET6: + osmo_store16be(ntohs(addr->u.sin6.sin6_port), binding_id); + break; + default: + return NULL; + } + + tli = CALLOC(1, sizeof(*tli)); + rc = ranap_new_transp_layer_addr(&tli->transportLayerAddress, addr, use_x213_nsap); + if (rc < 0) { + ASN_STRUCT_FREE(asn_DEF_RANAP_TransportLayerInformation, tli); + return NULL; + } + + tli->iuTransportAssociation.present = RANAP_IuTransportAssociation_PR_bindingID; + OCTET_STRING_fromBuf(&tli->iuTransportAssociation.choice.bindingID, + (const char *)binding_id, sizeof(binding_id)); + + return tli; +} + +RANAP_TransportLayerInformation_t *ranap_new_transp_info_gtp(struct osmo_sockaddr *addr, uint32_t tei, + bool use_x213_nsap) +{ + RANAP_TransportLayerInformation_t *tli = CALLOC(1, sizeof(*tli)); + uint32_t binding_buf = htonl(tei); + int rc; + + rc = ranap_new_transp_layer_addr(&tli->transportLayerAddress, addr, use_x213_nsap); + if (rc < 0) { + ASN_STRUCT_FREE(asn_DEF_RANAP_TransportLayerInformation, tli); + return NULL; + } + + tli->iuTransportAssociation.present = RANAP_IuTransportAssociation_PR_gTP_TEI; + OCTET_STRING_fromBuf(&tli->iuTransportAssociation.choice.gTP_TEI, + (const char *)&binding_buf, sizeof(binding_buf)); + + return tli; +} diff --git a/src/ranap/Makefile.am b/src/ranap/Makefile.am index 0fb3cdf..e1bb579 100644 --- a/src/ranap/Makefile.am +++ b/src/ranap/Makefile.am @@ -37,6 +37,7 @@ ASN_MODULE_SRC= \ RANAP_Ass-RAB-Parameter-GuaranteedBitrateList.c \ RANAP_Ass-RAB-Parameter-MaxBitrateList.c \ RANAP_AuthorisedPLMNs.c \ + RANAP_AuthorisedPLMNs-Value.c \ RANAP_AuthorisedSNAs.c \ RANAP_BindingID.c \ RANAP_BroadcastAssistanceDataDecipheringKeys.c \ @@ -59,7 +60,9 @@ ASN_MODULE_SRC= \ RANAP_ClientType.c \ RANAP_CriticalityDiagnostics.c \ RANAP_CriticalityDiagnostics-IE-List.c \ + RANAP_CriticalityDiagnostics-IE-List-Value.c \ RANAP_MessageStructure.c \ + RANAP_MessageStructure-Value.c \ RANAP_CGI.c \ RANAP_ChosenEncryptionAlgorithm.c \ RANAP_ChosenIntegrityProtectionAlgorithm.c \ @@ -117,6 +120,7 @@ ASN_MODULE_SRC= \ RANAP_GA-PointWithUnCertainty.c \ RANAP_GA-PointWithUnCertaintyEllipse.c \ RANAP_GA-Polygon.c \ + RANAP_GA-Polygon-Value.c \ RANAP_GA-UncertaintyEllipse.c \ RANAP_GERAN-BSC-Container.c \ RANAP_GERAN-Cell-ID.c \ @@ -152,6 +156,7 @@ ASN_MODULE_SRC= \ RANAP_IuTransportAssociation.c \ RANAP_KeyStatus.c \ RANAP_LA-LIST.c \ + RANAP_LA-LIST-Value.c \ RANAP_LAC.c \ RANAP_LAI.c \ RANAP_LastKnownServiceArea.c \ @@ -237,6 +242,7 @@ ASN_MODULE_SRC= \ RANAP_LoggingDuration.c \ RANAP_PLMNidentity.c \ RANAP_PLMNs-in-shared-network.c \ + RANAP_PLMNs-in-shared-network-Value.c \ RANAP_Port-Number.c \ RANAP_PositioningDataDiscriminator.c \ RANAP_PositioningDataSet.c \ @@ -255,6 +261,7 @@ ASN_MODULE_SRC= \ RANAP_RABased.c \ RANAP_RAI-List.c \ RANAP_RABDataVolumeReport.c \ + RANAP_RABDataVolumeReport-Value.c \ RANAP_RAB-ID.c \ RANAP_RAB-Parameter-ExtendedGuaranteedBitrateList.c \ RANAP_RAB-Parameter-ExtendedMaxBitrateList.c \ @@ -262,6 +269,7 @@ ASN_MODULE_SRC= \ RANAP_RAB-Parameter-MaxBitrateList.c \ RANAP_RAB-Parameters.c \ RANAP_RABParametersList.c \ + RANAP_RABParametersList-Value.c \ RANAP_RAB-SubflowCombinationBitRate.c \ RANAP_RAB-TrCH-Mapping.c \ RANAP_RAB-TrCH-MappingItem.c \ @@ -335,6 +343,7 @@ ASN_MODULE_SRC= \ RANAP_RSRQ-Type.c \ RANAP_RSRQ-Extension.c \ RANAP_EUTRANFrequencies.c \ + RANAP_EUTRANFrequencies-Value.c \ RANAP_MeasBand.c \ RANAP_SubscriberProfileIDforRFP.c \ RANAP_SourceStatisticsDescriptor.c \ @@ -544,6 +553,7 @@ ASN_MODULE_SRC= \ RANAP_UserPlaneInformation.c \ RANAP_CNMBMSLinkingInformation.c \ RANAP_JoinedMBMSBearerService-IEs.c \ + RANAP_JoinedMBMSBearerService-IEs-Value.c \ RANAP_RAB-SetupItem-RelocReqAck.c \ RANAP_RAB-FailedItem.c \ RANAP_RAB-ContextItem.c \ @@ -563,6 +573,7 @@ ASN_MODULE_SRC= \ RANAP_RAB-SetupOrModifiedItem.c \ RANAP_RAB-ReleasedItem.c \ RANAP_DataVolumeList.c \ + RANAP_DataVolumeList-Value.c \ RANAP_RAB-QueuedItem.c \ RANAP_RAB-ReleaseFailedList.c \ RANAP_GERAN-Iumode-RAB-Failed-RABAssgntResponse-List.c \ @@ -577,7 +588,9 @@ ASN_MODULE_SRC= \ RANAP_RAB-ModifyItem.c \ RANAP_MBMSSynchronisationInformation.c \ RANAP_LeftMBMSBearerService-IEs.c \ - RANAP_UnsuccessfulLinking-IEs.c + RANAP_LeftMBMSBearerService-IEs-Value.c \ + RANAP_UnsuccessfulLinking-IEs.c \ + RANAP_UnsuccessfulLinking-IEs-Value.c ASN_MODULE_INC= \ RANAP_Criticality.h \ @@ -618,6 +631,7 @@ ASN_MODULE_INC= \ RANAP_Ass-RAB-Parameter-GuaranteedBitrateList.h \ RANAP_Ass-RAB-Parameter-MaxBitrateList.h \ RANAP_AuthorisedPLMNs.h \ + RANAP_AuthorisedPLMNs-Value.h \ RANAP_AuthorisedSNAs.h \ RANAP_BindingID.h \ RANAP_BroadcastAssistanceDataDecipheringKeys.h \ @@ -640,7 +654,9 @@ ASN_MODULE_INC= \ RANAP_ClientType.h \ RANAP_CriticalityDiagnostics.h \ RANAP_CriticalityDiagnostics-IE-List.h \ + RANAP_CriticalityDiagnostics-IE-List-Value.h \ RANAP_MessageStructure.h \ + RANAP_MessageStructure-Value.h \ RANAP_CGI.h \ RANAP_ChosenEncryptionAlgorithm.h \ RANAP_ChosenIntegrityProtectionAlgorithm.h \ @@ -698,6 +714,7 @@ ASN_MODULE_INC= \ RANAP_GA-PointWithUnCertainty.h \ RANAP_GA-PointWithUnCertaintyEllipse.h \ RANAP_GA-Polygon.h \ + RANAP_GA-Polygon-Value.h \ RANAP_GA-UncertaintyEllipse.h \ RANAP_GERAN-BSC-Container.h \ RANAP_GERAN-Cell-ID.h \ @@ -733,6 +750,7 @@ ASN_MODULE_INC= \ RANAP_IuTransportAssociation.h \ RANAP_KeyStatus.h \ RANAP_LA-LIST.h \ + RANAP_LA-LIST-Value.h \ RANAP_LAC.h \ RANAP_LAI.h \ RANAP_LastKnownServiceArea.h \ @@ -818,6 +836,7 @@ ASN_MODULE_INC= \ RANAP_LoggingDuration.h \ RANAP_PLMNidentity.h \ RANAP_PLMNs-in-shared-network.h \ + RANAP_PLMNs-in-shared-network-Value.h \ RANAP_Port-Number.h \ RANAP_PositioningDataDiscriminator.h \ RANAP_PositioningDataSet.h \ @@ -836,6 +855,7 @@ ASN_MODULE_INC= \ RANAP_RABased.h \ RANAP_RAI-List.h \ RANAP_RABDataVolumeReport.h \ + RANAP_RABDataVolumeReport-Value.h \ RANAP_RAB-ID.h \ RANAP_RAB-Parameter-ExtendedGuaranteedBitrateList.h \ RANAP_RAB-Parameter-ExtendedMaxBitrateList.h \ @@ -843,6 +863,7 @@ ASN_MODULE_INC= \ RANAP_RAB-Parameter-MaxBitrateList.h \ RANAP_RAB-Parameters.h \ RANAP_RABParametersList.h \ + RANAP_RABParametersList-Value.h \ RANAP_RAB-SubflowCombinationBitRate.h \ RANAP_RAB-TrCH-Mapping.h \ RANAP_RAB-TrCH-MappingItem.h \ @@ -916,6 +937,7 @@ ASN_MODULE_INC= \ RANAP_RSRQ-Type.h \ RANAP_RSRQ-Extension.h \ RANAP_EUTRANFrequencies.h \ + RANAP_EUTRANFrequencies-Value.h \ RANAP_MeasBand.h \ RANAP_SubscriberProfileIDforRFP.h \ RANAP_SourceStatisticsDescriptor.h \ @@ -1125,6 +1147,7 @@ ASN_MODULE_INC= \ RANAP_UserPlaneInformation.h \ RANAP_CNMBMSLinkingInformation.h \ RANAP_JoinedMBMSBearerService-IEs.h \ + RANAP_JoinedMBMSBearerService-IEs-Value.h \ RANAP_RAB-SetupItem-RelocReqAck.h \ RANAP_RAB-FailedItem.h \ RANAP_RAB-ContextItem.h \ @@ -1144,6 +1167,7 @@ ASN_MODULE_INC= \ RANAP_RAB-SetupOrModifiedItem.h \ RANAP_RAB-ReleasedItem.h \ RANAP_DataVolumeList.h \ + RANAP_DataVolumeList-Value.h \ RANAP_RAB-QueuedItem.h \ RANAP_RAB-ReleaseFailedList.h \ RANAP_GERAN-Iumode-RAB-Failed-RABAssgntResponse-List.h \ @@ -1158,7 +1182,9 @@ ASN_MODULE_INC= \ RANAP_RAB-ModifyItem.h \ RANAP_MBMSSynchronisationInformation.h \ RANAP_LeftMBMSBearerService-IEs.h \ - RANAP_UnsuccessfulLinking-IEs.h + RANAP_LeftMBMSBearerService-IEs-Value.h \ + RANAP_UnsuccessfulLinking-IEs.h \ + RANAP_UnsuccessfulLinking-IEs-Value.h AM_CFLAGS = -I$(top_srcdir)/include $(ASN1C_CFLAGS) $(OSMOCORE_CFLAGS) @@ -1169,23 +1195,18 @@ libosmo_asn1_ranap_la_LIBADD=$(ASN1C_LDADD) regen: regenerate-from-asn1-source regenerate-from-asn1-source: - ASN1C_PREFIX="RANAP_" asn1c -gen-PER $(top_srcdir)/asn1/ranap/RANAP-CommonDataTypes.asn $(top_srcdir)/asn1/ranap/RANAP-Constants.asn $(top_srcdir)/asn1/ranap/RANAP-IEs.asn $(top_srcdir)/asn1/ranap/RANAP-PDU.asn - @rm ANY.* BOOLEAN.* INTEGER.* NativeEnumerated.* NativeInteger.* NULL.* OBJECT_IDENTIFIER.* asn_* OCTET_STRING.* converter-sample.c per_* xer_* constr* der_* ber_* BIT_STRING.* -# some fixups in erroneous code that asn1c generates - sed -i '6i#include <constr_CHOICE.h>' RANAP_ChosenEncryptionAlgorithm.h RANAP_ChosenIntegrityProtectionAlgorithm.h RANAP_IMSI.h RANAP_PLMNidentity.h RANAP_RAB-ReleaseFailedList.c RANAP_RAB-ReleaseList.c RANAP_RAB-SetupOrModifyList.c RANAP_ResetResourceList.c RANAP_ResetResourceAckList.c - sed -i 's/Member/MemberA/' RANAP_LA-LIST.[ch] - sed -i 's/Member/MemberB/' RANAP_RABParametersList.[ch] - sed -i 's/Member/MemberC/' RANAP_AuthorisedPLMNs.[ch] - sed -i 's/Member/MemberD/' RANAP_UnsuccessfulLinking-IEs.[ch] - sed -i 's/Member/MemberE/' RANAP_SDU-FormatInformationParameters.[ch] - sed -i 's/Member/MemberF/' RANAP_JoinedMBMSBearerService-IEs.[ch] - sed -i 's/Member/MemberG/' RANAP_CriticalityDiagnostics-IE-List.[ch] - sed -i 's/Member/MemberH/' RANAP_DataVolumeList.[ch] - sed -i 's/Member/MemberJ/' RANAP_EUTRANFrequencies.[ch] - sed -i 's/Member/MemberK/' RANAP_LeftMBMSBearerService-IEs.[ch] - sed -i 's/Member/MemberL/' RANAP_MessageStructure.[ch] - sed -i 's/Member/MemberM/' RANAP_PLMNs-in-shared-network.[ch] - sed -i 's/Member/MemberN/' RANAP_RABDataVolumeReport.[ch] + ASN1C_PREFIX="RANAP_" asn1c \ + -fcompound-names \ + -R \ + -gen-PER \ + $(top_srcdir)/asn1/ranap/RANAP-CommonDataTypes.asn \ + $(top_srcdir)/asn1/ranap/RANAP-Constants.asn \ + $(top_srcdir)/asn1/ranap/RANAP-IEs.asn \ + $(top_srcdir)/asn1/ranap/RANAP-PDU.asn + sed -i '7i#include <constr_CHOICE.h>' RANAP_ChosenEncryptionAlgorithm.h RANAP_ChosenIntegrityProtectionAlgorithm.h RANAP_IMSI.h RANAP_PLMNidentity.h RANAP_RAB-ReleaseFailedList.c RANAP_RAB-ReleaseList.c RANAP_RAB-SetupOrModifyList.c RANAP_ResetResourceList.c RANAP_ResetResourceAckList.c # change include style to `#include <dir/foo.h>' $(top_srcdir)/move-asn1-header-files.sh osmocom/ranap $(ASN_MODULE_INC) - +# Finally copy *.c from buildir to srcdir: + if test "$(realpath $(CURDIR))" != "$(realpath $(top_srcdir)/src/ranap)"; then \ + cp *.c $(top_srcdir)/src/ranap/; \ + fi diff --git a/src/ranap/RANAP_APN.c b/src/ranap/RANAP_APN.c index d2024aa..6506733 100644 --- a/src/ranap/RANAP_APN.c +++ b/src/ranap/RANAP_APN.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_APN.h> diff --git a/src/ranap/RANAP_AccuracyFulfilmentIndicator.c b/src/ranap/RANAP_AccuracyFulfilmentIndicator.c index d444558..6936199 100644 --- a/src/ranap/RANAP_AccuracyFulfilmentIndicator.c +++ b/src/ranap/RANAP_AccuracyFulfilmentIndicator.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_AccuracyFulfilmentIndicator.h> diff --git a/src/ranap/RANAP_AllocationOrRetentionPriority.c b/src/ranap/RANAP_AllocationOrRetentionPriority.c index 2997cd0..f147aa3 100644 --- a/src/ranap/RANAP_AllocationOrRetentionPriority.c +++ b/src/ranap/RANAP_AllocationOrRetentionPriority.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_AllocationOrRetentionPriority.h> diff --git a/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrateInf.c b/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrateInf.c index d04fccf..8d142de 100644 --- a/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrateInf.c +++ b/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrateInf.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrateInf.h> diff --git a/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrateList.c b/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrateList.c index 18b02f6..ae50fe1 100644 --- a/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrateList.c +++ b/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrateList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrateList.h> diff --git a/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrates.c b/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrates.c index 2e35f50..e322e8d 100644 --- a/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrates.c +++ b/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrates.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedGuaranteedBitrates.h> diff --git a/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrateInf.c b/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrateInf.c index 4bab57d..0c320eb 100644 --- a/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrateInf.c +++ b/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrateInf.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrateInf.h> diff --git a/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrateList.c b/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrateList.c index 9eb3a2b..077c41a 100644 --- a/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrateList.c +++ b/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrateList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrateList.h> diff --git a/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrates.c b/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrates.c index dccb6c5..74b20a7 100644 --- a/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrates.c +++ b/src/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrates.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Alt-RAB-Parameter-ExtendedMaxBitrates.h> diff --git a/src/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateInf.c b/src/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateInf.c index 878b8d0..726289e 100644 --- a/src/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateInf.c +++ b/src/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateInf.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateInf.h> diff --git a/src/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateList.c b/src/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateList.c index 9e717cc..fa69d18 100644 --- a/src/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateList.c +++ b/src/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateList.h> diff --git a/src/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateType.c b/src/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateType.c index 6d56142..c3aab43 100644 --- a/src/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateType.c +++ b/src/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateType.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrateType.h> diff --git a/src/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrates.c b/src/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrates.c index 6fa5614..1888ecc 100644 --- a/src/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrates.c +++ b/src/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrates.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Alt-RAB-Parameter-GuaranteedBitrates.h> diff --git a/src/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateInf.c b/src/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateInf.c index bc5633e..1b81d03 100644 --- a/src/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateInf.c +++ b/src/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateInf.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateInf.h> diff --git a/src/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateList.c b/src/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateList.c index 3e2271b..f25285e 100644 --- a/src/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateList.c +++ b/src/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateList.h> diff --git a/src/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateType.c b/src/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateType.c index 6899fe4..05cd5d9 100644 --- a/src/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateType.c +++ b/src/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateType.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Alt-RAB-Parameter-MaxBitrateType.h> diff --git a/src/ranap/RANAP_Alt-RAB-Parameter-MaxBitrates.c b/src/ranap/RANAP_Alt-RAB-Parameter-MaxBitrates.c index 31bcbcd..8666628 100644 --- a/src/ranap/RANAP_Alt-RAB-Parameter-MaxBitrates.c +++ b/src/ranap/RANAP_Alt-RAB-Parameter-MaxBitrates.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Alt-RAB-Parameter-MaxBitrates.h> diff --git a/src/ranap/RANAP_Alt-RAB-Parameter-SupportedGuaranteedBitrateInf.c b/src/ranap/RANAP_Alt-RAB-Parameter-SupportedGuaranteedBitrateInf.c index c70e610..f46bd33 100644 --- a/src/ranap/RANAP_Alt-RAB-Parameter-SupportedGuaranteedBitrateInf.c +++ b/src/ranap/RANAP_Alt-RAB-Parameter-SupportedGuaranteedBitrateInf.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Alt-RAB-Parameter-SupportedGuaranteedBitrateInf.h> diff --git a/src/ranap/RANAP_Alt-RAB-Parameter-SupportedGuaranteedBitrates.c b/src/ranap/RANAP_Alt-RAB-Parameter-SupportedGuaranteedBitrates.c index 6baa771..e1eb99c 100644 --- a/src/ranap/RANAP_Alt-RAB-Parameter-SupportedGuaranteedBitrates.c +++ b/src/ranap/RANAP_Alt-RAB-Parameter-SupportedGuaranteedBitrates.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Alt-RAB-Parameter-SupportedGuaranteedBitrates.h> diff --git a/src/ranap/RANAP_Alt-RAB-Parameter-SupportedMaxBitrateInf.c b/src/ranap/RANAP_Alt-RAB-Parameter-SupportedMaxBitrateInf.c index 6a5ad4d..4c259c3 100644 --- a/src/ranap/RANAP_Alt-RAB-Parameter-SupportedMaxBitrateInf.c +++ b/src/ranap/RANAP_Alt-RAB-Parameter-SupportedMaxBitrateInf.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Alt-RAB-Parameter-SupportedMaxBitrateInf.h> diff --git a/src/ranap/RANAP_Alt-RAB-Parameter-SupportedMaxBitrates.c b/src/ranap/RANAP_Alt-RAB-Parameter-SupportedMaxBitrates.c index 1a9bb37..795bbe9 100644 --- a/src/ranap/RANAP_Alt-RAB-Parameter-SupportedMaxBitrates.c +++ b/src/ranap/RANAP_Alt-RAB-Parameter-SupportedMaxBitrates.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Alt-RAB-Parameter-SupportedMaxBitrates.h> diff --git a/src/ranap/RANAP_Alt-RAB-Parameters.c b/src/ranap/RANAP_Alt-RAB-Parameters.c index f6da356..b9bb09f 100644 --- a/src/ranap/RANAP_Alt-RAB-Parameters.c +++ b/src/ranap/RANAP_Alt-RAB-Parameters.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Alt-RAB-Parameters.h> diff --git a/src/ranap/RANAP_AlternativeRABConfigurationRequest.c b/src/ranap/RANAP_AlternativeRABConfigurationRequest.c index 238d6e1..3cec24e 100644 --- a/src/ranap/RANAP_AlternativeRABConfigurationRequest.c +++ b/src/ranap/RANAP_AlternativeRABConfigurationRequest.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_AlternativeRABConfigurationRequest.h> diff --git a/src/ranap/RANAP_AreaIdentity.c b/src/ranap/RANAP_AreaIdentity.c index c774c21..009de52 100644 --- a/src/ranap/RANAP_AreaIdentity.c +++ b/src/ranap/RANAP_AreaIdentity.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_AreaIdentity.h> diff --git a/src/ranap/RANAP_Ass-RAB-Parameter-ExtendedGuaranteedBitrateList.c b/src/ranap/RANAP_Ass-RAB-Parameter-ExtendedGuaranteedBitrateList.c index 3c97828..8b95f99 100644 --- a/src/ranap/RANAP_Ass-RAB-Parameter-ExtendedGuaranteedBitrateList.c +++ b/src/ranap/RANAP_Ass-RAB-Parameter-ExtendedGuaranteedBitrateList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Ass-RAB-Parameter-ExtendedGuaranteedBitrateList.h> diff --git a/src/ranap/RANAP_Ass-RAB-Parameter-ExtendedMaxBitrateList.c b/src/ranap/RANAP_Ass-RAB-Parameter-ExtendedMaxBitrateList.c index 80d0ed8..d234fa6 100644 --- a/src/ranap/RANAP_Ass-RAB-Parameter-ExtendedMaxBitrateList.c +++ b/src/ranap/RANAP_Ass-RAB-Parameter-ExtendedMaxBitrateList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Ass-RAB-Parameter-ExtendedMaxBitrateList.h> diff --git a/src/ranap/RANAP_Ass-RAB-Parameter-GuaranteedBitrateList.c b/src/ranap/RANAP_Ass-RAB-Parameter-GuaranteedBitrateList.c index 0797012..1702560 100644 --- a/src/ranap/RANAP_Ass-RAB-Parameter-GuaranteedBitrateList.c +++ b/src/ranap/RANAP_Ass-RAB-Parameter-GuaranteedBitrateList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Ass-RAB-Parameter-GuaranteedBitrateList.h> diff --git a/src/ranap/RANAP_Ass-RAB-Parameter-MaxBitrateList.c b/src/ranap/RANAP_Ass-RAB-Parameter-MaxBitrateList.c index e1f9f92..073829e 100644 --- a/src/ranap/RANAP_Ass-RAB-Parameter-MaxBitrateList.c +++ b/src/ranap/RANAP_Ass-RAB-Parameter-MaxBitrateList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Ass-RAB-Parameter-MaxBitrateList.h> diff --git a/src/ranap/RANAP_Ass-RAB-Parameters.c b/src/ranap/RANAP_Ass-RAB-Parameters.c index 18018ff..1588e0d 100644 --- a/src/ranap/RANAP_Ass-RAB-Parameters.c +++ b/src/ranap/RANAP_Ass-RAB-Parameters.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Ass-RAB-Parameters.h> diff --git a/src/ranap/RANAP_AuthorisedPLMNs-Value.c b/src/ranap/RANAP_AuthorisedPLMNs-Value.c new file mode 100644 index 0000000..f0312f8 --- /dev/null +++ b/src/ranap/RANAP_AuthorisedPLMNs-Value.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-IEs" + * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` + */ + +#include <osmocom/ranap/RANAP_AuthorisedPLMNs-Value.h> + +static asn_TYPE_member_t asn_MBR_RANAP_AuthorisedPLMNs_Value_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RANAP_AuthorisedPLMNs_Value, pLMNidentity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_PLMNidentity, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "pLMNidentity" + }, + { ATF_POINTER, 2, offsetof(struct RANAP_AuthorisedPLMNs_Value, authorisedSNAsList), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_AuthorisedSNAs, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "authorisedSNAsList" + }, + { ATF_POINTER, 1, offsetof(struct RANAP_AuthorisedPLMNs_Value, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_RANAP_AuthorisedPLMNs_Value_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_RANAP_AuthorisedPLMNs_Value_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RANAP_AuthorisedPLMNs_Value_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pLMNidentity */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* authorisedSNAsList */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_RANAP_AuthorisedPLMNs_Value_specs_1 = { + sizeof(struct RANAP_AuthorisedPLMNs_Value), + offsetof(struct RANAP_AuthorisedPLMNs_Value, _asn_ctx), + asn_MAP_RANAP_AuthorisedPLMNs_Value_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_RANAP_AuthorisedPLMNs_Value_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* Start extensions */ + 4 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_RANAP_AuthorisedPLMNs_Value = { + "RANAP_AuthorisedPLMNs-Value", + "RANAP_AuthorisedPLMNs-Value", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_RANAP_AuthorisedPLMNs_Value_tags_1, + sizeof(asn_DEF_RANAP_AuthorisedPLMNs_Value_tags_1) + /sizeof(asn_DEF_RANAP_AuthorisedPLMNs_Value_tags_1[0]), /* 1 */ + asn_DEF_RANAP_AuthorisedPLMNs_Value_tags_1, /* Same as above */ + sizeof(asn_DEF_RANAP_AuthorisedPLMNs_Value_tags_1) + /sizeof(asn_DEF_RANAP_AuthorisedPLMNs_Value_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_RANAP_AuthorisedPLMNs_Value_1, + 3, /* Elements count */ + &asn_SPC_RANAP_AuthorisedPLMNs_Value_specs_1 /* Additional specs */ +}; + diff --git a/src/ranap/RANAP_AuthorisedPLMNs.c b/src/ranap/RANAP_AuthorisedPLMNs.c index b25c22e..ed2beac 100644 --- a/src/ranap/RANAP_AuthorisedPLMNs.c +++ b/src/ranap/RANAP_AuthorisedPLMNs.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_AuthorisedPLMNs.h> @@ -11,87 +12,11 @@ static asn_per_constraints_t asn_PER_type_RANAP_AuthorisedPLMNs_constr_1 GCC_NOT { APC_CONSTRAINED, 5, 5, 1l, 32l } /* (SIZE(1..32)) */, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_MemberC_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct MemberC, pLMNidentity), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_PLMNidentity, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "pLMNidentity" - }, - { ATF_POINTER, 2, offsetof(struct MemberC, authorisedSNAsList), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_AuthorisedSNAs, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "authorisedSNAsList" - }, - { ATF_POINTER, 1, offsetof(struct MemberC, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_MemberC_oms_2[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_MemberC_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MemberC_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pLMNidentity */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* authorisedSNAsList */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_MemberC_specs_2 = { - sizeof(struct MemberC), - offsetof(struct MemberC, _asn_ctx), - asn_MAP_MemberC_tag2el_2, - 3, /* Count of tags in the map */ - asn_MAP_MemberC_oms_2, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* Start extensions */ - 4 /* Stop extensions */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_MemberC_2 = { - "SEQUENCE", - "SEQUENCE", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_MemberC_tags_2, - sizeof(asn_DEF_MemberC_tags_2) - /sizeof(asn_DEF_MemberC_tags_2[0]), /* 1 */ - asn_DEF_MemberC_tags_2, /* Same as above */ - sizeof(asn_DEF_MemberC_tags_2) - /sizeof(asn_DEF_MemberC_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_MemberC_2, - 3, /* Elements count */ - &asn_SPC_MemberC_specs_2 /* Additional specs */ -}; - static asn_TYPE_member_t asn_MBR_RANAP_AuthorisedPLMNs_1[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_MemberC_2, + &asn_DEF_RANAP_AuthorisedPLMNs_Value, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, diff --git a/src/ranap/RANAP_AuthorisedSNAs.c b/src/ranap/RANAP_AuthorisedSNAs.c index 9514dc3..121ba9f 100644 --- a/src/ranap/RANAP_AuthorisedSNAs.c +++ b/src/ranap/RANAP_AuthorisedSNAs.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_AuthorisedSNAs.h> diff --git a/src/ranap/RANAP_BindingID.c b/src/ranap/RANAP_BindingID.c index d79da49..41c9fbb 100644 --- a/src/ranap/RANAP_BindingID.c +++ b/src/ranap/RANAP_BindingID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_BindingID.h> diff --git a/src/ranap/RANAP_BroadcastAssistanceDataDecipheringKeys.c b/src/ranap/RANAP_BroadcastAssistanceDataDecipheringKeys.c index e16fdbb..d34543a 100644 --- a/src/ranap/RANAP_BroadcastAssistanceDataDecipheringKeys.c +++ b/src/ranap/RANAP_BroadcastAssistanceDataDecipheringKeys.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_BroadcastAssistanceDataDecipheringKeys.h> diff --git a/src/ranap/RANAP_CGI.c b/src/ranap/RANAP_CGI.c index 2d08bce..08e47c3 100644 --- a/src/ranap/RANAP_CGI.c +++ b/src/ranap/RANAP_CGI.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CGI.h> diff --git a/src/ranap/RANAP_CI.c b/src/ranap/RANAP_CI.c index ed83b75..c3fb181 100644 --- a/src/ranap/RANAP_CI.c +++ b/src/ranap/RANAP_CI.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CI.h> diff --git a/src/ranap/RANAP_CN-DeactivateTrace.c b/src/ranap/RANAP_CN-DeactivateTrace.c index ba7fb6f..fdb6dcb 100644 --- a/src/ranap/RANAP_CN-DeactivateTrace.c +++ b/src/ranap/RANAP_CN-DeactivateTrace.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CN-DeactivateTrace.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_cN_DeactivateTrace_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_cN_DeactivateTrace_ies_specs_2 = { - sizeof(struct cN_DeactivateTrace_ies), - offsetof(struct cN_DeactivateTrace_ies, _asn_ctx), + sizeof(struct RANAP_CN_DeactivateTrace__cN_DeactivateTrace_ies), + offsetof(struct RANAP_CN_DeactivateTrace__cN_DeactivateTrace_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_CN-DomainIndicator.c b/src/ranap/RANAP_CN-DomainIndicator.c index b5b9d10..836206f 100644 --- a/src/ranap/RANAP_CN-DomainIndicator.c +++ b/src/ranap/RANAP_CN-DomainIndicator.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CN-DomainIndicator.h> diff --git a/src/ranap/RANAP_CN-ID.c b/src/ranap/RANAP_CN-ID.c index f181580..02e2158 100644 --- a/src/ranap/RANAP_CN-ID.c +++ b/src/ranap/RANAP_CN-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CN-ID.h> diff --git a/src/ranap/RANAP_CN-InvokeTrace.c b/src/ranap/RANAP_CN-InvokeTrace.c index 4e50b42..fd84d17 100644 --- a/src/ranap/RANAP_CN-InvokeTrace.c +++ b/src/ranap/RANAP_CN-InvokeTrace.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CN-InvokeTrace.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_cN_InvokeTrace_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_cN_InvokeTrace_ies_specs_2 = { - sizeof(struct cN_InvokeTrace_ies), - offsetof(struct cN_InvokeTrace_ies, _asn_ctx), + sizeof(struct RANAP_CN_InvokeTrace__cN_InvokeTrace_ies), + offsetof(struct RANAP_CN_InvokeTrace__cN_InvokeTrace_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_CNMBMSLinkingInformation.c b/src/ranap/RANAP_CNMBMSLinkingInformation.c index 3e724fe..535ccba 100644 --- a/src/ranap/RANAP_CNMBMSLinkingInformation.c +++ b/src/ranap/RANAP_CNMBMSLinkingInformation.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CNMBMSLinkingInformation.h> diff --git a/src/ranap/RANAP_CSFB-Information.c b/src/ranap/RANAP_CSFB-Information.c index 434b1ad..c2c4945 100644 --- a/src/ranap/RANAP_CSFB-Information.c +++ b/src/ranap/RANAP_CSFB-Information.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CSFB-Information.h> diff --git a/src/ranap/RANAP_CSG-Id-List.c b/src/ranap/RANAP_CSG-Id-List.c index 5d58575..8786842 100644 --- a/src/ranap/RANAP_CSG-Id-List.c +++ b/src/ranap/RANAP_CSG-Id-List.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CSG-Id-List.h> diff --git a/src/ranap/RANAP_CSG-Id.c b/src/ranap/RANAP_CSG-Id.c index 0699dc6..b2101da 100644 --- a/src/ranap/RANAP_CSG-Id.c +++ b/src/ranap/RANAP_CSG-Id.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CSG-Id.h> diff --git a/src/ranap/RANAP_CSG-Membership-Status.c b/src/ranap/RANAP_CSG-Membership-Status.c index 8ddf050..341bc81 100644 --- a/src/ranap/RANAP_CSG-Membership-Status.c +++ b/src/ranap/RANAP_CSG-Membership-Status.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CSG-Membership-Status.h> diff --git a/src/ranap/RANAP_Cause.c b/src/ranap/RANAP_Cause.c index 3e688cc..8a1d5da 100644 --- a/src/ranap/RANAP_Cause.c +++ b/src/ranap/RANAP_Cause.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Cause.h> diff --git a/src/ranap/RANAP_CauseMisc.c b/src/ranap/RANAP_CauseMisc.c index 262c462..261ca10 100644 --- a/src/ranap/RANAP_CauseMisc.c +++ b/src/ranap/RANAP_CauseMisc.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CauseMisc.h> diff --git a/src/ranap/RANAP_CauseNAS.c b/src/ranap/RANAP_CauseNAS.c index ea6fb82..155f908 100644 --- a/src/ranap/RANAP_CauseNAS.c +++ b/src/ranap/RANAP_CauseNAS.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CauseNAS.h> diff --git a/src/ranap/RANAP_CauseNon-Standard.c b/src/ranap/RANAP_CauseNon-Standard.c index 1e75804..725f7ff 100644 --- a/src/ranap/RANAP_CauseNon-Standard.c +++ b/src/ranap/RANAP_CauseNon-Standard.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CauseNon-Standard.h> diff --git a/src/ranap/RANAP_CauseProtocol.c b/src/ranap/RANAP_CauseProtocol.c index 47b03f3..cb5f56f 100644 --- a/src/ranap/RANAP_CauseProtocol.c +++ b/src/ranap/RANAP_CauseProtocol.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CauseProtocol.h> diff --git a/src/ranap/RANAP_CauseRadioNetwork.c b/src/ranap/RANAP_CauseRadioNetwork.c index 32f9965..2114b71 100644 --- a/src/ranap/RANAP_CauseRadioNetwork.c +++ b/src/ranap/RANAP_CauseRadioNetwork.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CauseRadioNetwork.h> diff --git a/src/ranap/RANAP_CauseRadioNetworkExtension.c b/src/ranap/RANAP_CauseRadioNetworkExtension.c index 233d6b6..9bc2e4b 100644 --- a/src/ranap/RANAP_CauseRadioNetworkExtension.c +++ b/src/ranap/RANAP_CauseRadioNetworkExtension.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CauseRadioNetworkExtension.h> diff --git a/src/ranap/RANAP_CauseTransmissionNetwork.c b/src/ranap/RANAP_CauseTransmissionNetwork.c index 887589e..83c9aed 100644 --- a/src/ranap/RANAP_CauseTransmissionNetwork.c +++ b/src/ranap/RANAP_CauseTransmissionNetwork.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CauseTransmissionNetwork.h> diff --git a/src/ranap/RANAP_Cell-Access-Mode.c b/src/ranap/RANAP_Cell-Access-Mode.c index b9af5d1..30c8960 100644 --- a/src/ranap/RANAP_Cell-Access-Mode.c +++ b/src/ranap/RANAP_Cell-Access-Mode.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Cell-Access-Mode.h> diff --git a/src/ranap/RANAP_Cell-Capacity-Class-Value.c b/src/ranap/RANAP_Cell-Capacity-Class-Value.c index 2537ab4..51e75b4 100644 --- a/src/ranap/RANAP_Cell-Capacity-Class-Value.c +++ b/src/ranap/RANAP_Cell-Capacity-Class-Value.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Cell-Capacity-Class-Value.h> diff --git a/src/ranap/RANAP_Cell-Id.c b/src/ranap/RANAP_Cell-Id.c index 49225b7..b6d9cad 100644 --- a/src/ranap/RANAP_Cell-Id.c +++ b/src/ranap/RANAP_Cell-Id.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Cell-Id.h> diff --git a/src/ranap/RANAP_CellBased.c b/src/ranap/RANAP_CellBased.c index 0428a07..f231ca1 100644 --- a/src/ranap/RANAP_CellBased.c +++ b/src/ranap/RANAP_CellBased.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CellBased.h> diff --git a/src/ranap/RANAP_CellIdList.c b/src/ranap/RANAP_CellIdList.c index 7a91269..a333c29 100644 --- a/src/ranap/RANAP_CellIdList.c +++ b/src/ranap/RANAP_CellIdList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CellIdList.h> diff --git a/src/ranap/RANAP_CellLoadInformation.c b/src/ranap/RANAP_CellLoadInformation.c index b086b3d..0656e93 100644 --- a/src/ranap/RANAP_CellLoadInformation.c +++ b/src/ranap/RANAP_CellLoadInformation.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CellLoadInformation.h> diff --git a/src/ranap/RANAP_CellLoadInformationGroup.c b/src/ranap/RANAP_CellLoadInformationGroup.c index 5c12990..2f98b31 100644 --- a/src/ranap/RANAP_CellLoadInformationGroup.c +++ b/src/ranap/RANAP_CellLoadInformationGroup.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CellLoadInformationGroup.h> diff --git a/src/ranap/RANAP_CellType.c b/src/ranap/RANAP_CellType.c index e7047da..1d18452 100644 --- a/src/ranap/RANAP_CellType.c +++ b/src/ranap/RANAP_CellType.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CellType.h> diff --git a/src/ranap/RANAP_ChosenEncryptionAlgorithm.c b/src/ranap/RANAP_ChosenEncryptionAlgorithm.c index de8f55c..cc52e2a 100644 --- a/src/ranap/RANAP_ChosenEncryptionAlgorithm.c +++ b/src/ranap/RANAP_ChosenEncryptionAlgorithm.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ChosenEncryptionAlgorithm.h> diff --git a/src/ranap/RANAP_ChosenIntegrityProtectionAlgorithm.c b/src/ranap/RANAP_ChosenIntegrityProtectionAlgorithm.c index a1b7f92..da95101 100644 --- a/src/ranap/RANAP_ChosenIntegrityProtectionAlgorithm.c +++ b/src/ranap/RANAP_ChosenIntegrityProtectionAlgorithm.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ChosenIntegrityProtectionAlgorithm.h> diff --git a/src/ranap/RANAP_ClassmarkInformation2.c b/src/ranap/RANAP_ClassmarkInformation2.c index 69409e1..8959330 100644 --- a/src/ranap/RANAP_ClassmarkInformation2.c +++ b/src/ranap/RANAP_ClassmarkInformation2.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ClassmarkInformation2.h> diff --git a/src/ranap/RANAP_ClassmarkInformation3.c b/src/ranap/RANAP_ClassmarkInformation3.c index 4ec6abe..90a8f08 100644 --- a/src/ranap/RANAP_ClassmarkInformation3.c +++ b/src/ranap/RANAP_ClassmarkInformation3.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ClassmarkInformation3.h> diff --git a/src/ranap/RANAP_ClientType.c b/src/ranap/RANAP_ClientType.c index 1f11e80..6df8425 100644 --- a/src/ranap/RANAP_ClientType.c +++ b/src/ranap/RANAP_ClientType.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ClientType.h> diff --git a/src/ranap/RANAP_CommonID.c b/src/ranap/RANAP_CommonID.c index 6568b2d..2261012 100644 --- a/src/ranap/RANAP_CommonID.c +++ b/src/ranap/RANAP_CommonID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CommonID.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_commonID_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_commonID_ies_specs_2 = { - sizeof(struct commonID_ies), - offsetof(struct commonID_ies, _asn_ctx), + sizeof(struct RANAP_CommonID__commonID_ies), + offsetof(struct RANAP_CommonID__commonID_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_Correlation-ID.c b/src/ranap/RANAP_Correlation-ID.c index e6f3b6d..3d07e2a 100644 --- a/src/ranap/RANAP_Correlation-ID.c +++ b/src/ranap/RANAP_Correlation-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Correlation-ID.h> diff --git a/src/ranap/RANAP_Criticality.c b/src/ranap/RANAP_Criticality.c index 073f0dc..d906435 100644 --- a/src/ranap/RANAP_Criticality.c +++ b/src/ranap/RANAP_Criticality.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-CommonDataTypes" * found in "../../asn1/ranap/RANAP-CommonDataTypes.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Criticality.h> diff --git a/src/ranap/RANAP_CriticalityDiagnostics-IE-List-Value.c b/src/ranap/RANAP_CriticalityDiagnostics-IE-List-Value.c new file mode 100644 index 0000000..ca55f69 --- /dev/null +++ b/src/ranap/RANAP_CriticalityDiagnostics-IE-List-Value.c @@ -0,0 +1,94 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-IEs" + * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` + */ + +#include <osmocom/ranap/RANAP_CriticalityDiagnostics-IE-List-Value.h> + +static asn_TYPE_member_t asn_MBR_RANAP_CriticalityDiagnostics_IE_List_Value_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RANAP_CriticalityDiagnostics_IE_List_Value, iECriticality), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_Criticality, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iECriticality" + }, + { ATF_NOFLAGS, 0, offsetof(struct RANAP_CriticalityDiagnostics_IE_List_Value, iE_ID), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_ProtocolIE_ID, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-ID" + }, + { ATF_POINTER, 2, offsetof(struct RANAP_CriticalityDiagnostics_IE_List_Value, repetitionNumber), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_RepetitionNumber0, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "repetitionNumber" + }, + { ATF_POINTER, 1, offsetof(struct RANAP_CriticalityDiagnostics_IE_List_Value, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_RANAP_CriticalityDiagnostics_IE_List_Value_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_RANAP_CriticalityDiagnostics_IE_List_Value_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RANAP_CriticalityDiagnostics_IE_List_Value_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* iECriticality */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* iE-ID */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* repetitionNumber */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_RANAP_CriticalityDiagnostics_IE_List_Value_specs_1 = { + sizeof(struct RANAP_CriticalityDiagnostics_IE_List_Value), + offsetof(struct RANAP_CriticalityDiagnostics_IE_List_Value, _asn_ctx), + asn_MAP_RANAP_CriticalityDiagnostics_IE_List_Value_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_RANAP_CriticalityDiagnostics_IE_List_Value_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 3, /* Start extensions */ + 5 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_RANAP_CriticalityDiagnostics_IE_List_Value = { + "RANAP_CriticalityDiagnostics-IE-List-Value", + "RANAP_CriticalityDiagnostics-IE-List-Value", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_RANAP_CriticalityDiagnostics_IE_List_Value_tags_1, + sizeof(asn_DEF_RANAP_CriticalityDiagnostics_IE_List_Value_tags_1) + /sizeof(asn_DEF_RANAP_CriticalityDiagnostics_IE_List_Value_tags_1[0]), /* 1 */ + asn_DEF_RANAP_CriticalityDiagnostics_IE_List_Value_tags_1, /* Same as above */ + sizeof(asn_DEF_RANAP_CriticalityDiagnostics_IE_List_Value_tags_1) + /sizeof(asn_DEF_RANAP_CriticalityDiagnostics_IE_List_Value_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_RANAP_CriticalityDiagnostics_IE_List_Value_1, + 4, /* Elements count */ + &asn_SPC_RANAP_CriticalityDiagnostics_IE_List_Value_specs_1 /* Additional specs */ +}; + diff --git a/src/ranap/RANAP_CriticalityDiagnostics-IE-List.c b/src/ranap/RANAP_CriticalityDiagnostics-IE-List.c index 044a235..b5c2b81 100644 --- a/src/ranap/RANAP_CriticalityDiagnostics-IE-List.c +++ b/src/ranap/RANAP_CriticalityDiagnostics-IE-List.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CriticalityDiagnostics-IE-List.h> @@ -11,97 +12,11 @@ static asn_per_constraints_t asn_PER_type_RANAP_CriticalityDiagnostics_IE_List_c { APC_CONSTRAINED, 8, 8, 1l, 256l } /* (SIZE(1..256)) */, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_MemberG_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct MemberG, iECriticality), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_Criticality, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iECriticality" - }, - { ATF_NOFLAGS, 0, offsetof(struct MemberG, iE_ID), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_ProtocolIE_ID, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-ID" - }, - { ATF_POINTER, 2, offsetof(struct MemberG, repetitionNumber), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_RepetitionNumber0, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "repetitionNumber" - }, - { ATF_POINTER, 1, offsetof(struct MemberG, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_MemberG_oms_2[] = { 2, 3 }; -static const ber_tlv_tag_t asn_DEF_MemberG_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MemberG_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* iECriticality */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* iE-ID */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* repetitionNumber */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_MemberG_specs_2 = { - sizeof(struct MemberG), - offsetof(struct MemberG, _asn_ctx), - asn_MAP_MemberG_tag2el_2, - 4, /* Count of tags in the map */ - asn_MAP_MemberG_oms_2, /* Optional members */ - 2, 0, /* Root/Additions */ - 3, /* Start extensions */ - 5 /* Stop extensions */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_MemberG_2 = { - "SEQUENCE", - "SEQUENCE", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_MemberG_tags_2, - sizeof(asn_DEF_MemberG_tags_2) - /sizeof(asn_DEF_MemberG_tags_2[0]), /* 1 */ - asn_DEF_MemberG_tags_2, /* Same as above */ - sizeof(asn_DEF_MemberG_tags_2) - /sizeof(asn_DEF_MemberG_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_MemberG_2, - 4, /* Elements count */ - &asn_SPC_MemberG_specs_2 /* Additional specs */ -}; - static asn_TYPE_member_t asn_MBR_RANAP_CriticalityDiagnostics_IE_List_1[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_MemberG_2, + &asn_DEF_RANAP_CriticalityDiagnostics_IE_List_Value, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, diff --git a/src/ranap/RANAP_CriticalityDiagnostics.c b/src/ranap/RANAP_CriticalityDiagnostics.c index 5865d64..3b8808b 100644 --- a/src/ranap/RANAP_CriticalityDiagnostics.c +++ b/src/ranap/RANAP_CriticalityDiagnostics.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_CriticalityDiagnostics.h> diff --git a/src/ranap/RANAP_D-RNTI.c b/src/ranap/RANAP_D-RNTI.c index 77dc4c8..abbcafa 100644 --- a/src/ranap/RANAP_D-RNTI.c +++ b/src/ranap/RANAP_D-RNTI.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_D-RNTI.h> diff --git a/src/ranap/RANAP_DCH-ID.c b/src/ranap/RANAP_DCH-ID.c index 73ec84f..b8d221b 100644 --- a/src/ranap/RANAP_DCH-ID.c +++ b/src/ranap/RANAP_DCH-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_DCH-ID.h> diff --git a/src/ranap/RANAP_DL-GTP-PDU-SequenceNumber.c b/src/ranap/RANAP_DL-GTP-PDU-SequenceNumber.c index 87782ea..19dd1ba 100644 --- a/src/ranap/RANAP_DL-GTP-PDU-SequenceNumber.c +++ b/src/ranap/RANAP_DL-GTP-PDU-SequenceNumber.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_DL-GTP-PDU-SequenceNumber.h> diff --git a/src/ranap/RANAP_DL-N-PDU-SequenceNumber.c b/src/ranap/RANAP_DL-N-PDU-SequenceNumber.c index d2c5583..47c2451 100644 --- a/src/ranap/RANAP_DL-N-PDU-SequenceNumber.c +++ b/src/ranap/RANAP_DL-N-PDU-SequenceNumber.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_DL-N-PDU-SequenceNumber.h> diff --git a/src/ranap/RANAP_DRX-CycleLengthCoefficient.c b/src/ranap/RANAP_DRX-CycleLengthCoefficient.c index b5e1699..9737c69 100644 --- a/src/ranap/RANAP_DRX-CycleLengthCoefficient.c +++ b/src/ranap/RANAP_DRX-CycleLengthCoefficient.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_DRX-CycleLengthCoefficient.h> diff --git a/src/ranap/RANAP_DSCH-ID.c b/src/ranap/RANAP_DSCH-ID.c index 7a73d37..702f941 100644 --- a/src/ranap/RANAP_DSCH-ID.c +++ b/src/ranap/RANAP_DSCH-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_DSCH-ID.h> diff --git a/src/ranap/RANAP_DataPDUType.c b/src/ranap/RANAP_DataPDUType.c index 581130b..d83846f 100644 --- a/src/ranap/RANAP_DataPDUType.c +++ b/src/ranap/RANAP_DataPDUType.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_DataPDUType.h> diff --git a/src/ranap/RANAP_DataVolumeList-Value.c b/src/ranap/RANAP_DataVolumeList-Value.c new file mode 100644 index 0000000..ff0fec6 --- /dev/null +++ b/src/ranap/RANAP_DataVolumeList-Value.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-PDU" + * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` + */ + +#include <osmocom/ranap/RANAP_DataVolumeList-Value.h> + +static asn_TYPE_member_t asn_MBR_RANAP_DataVolumeList_Value_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RANAP_DataVolumeList_Value, dl_UnsuccessfullyTransmittedDataVolume), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_UnsuccessfullyTransmittedDataVolume, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "dl-UnsuccessfullyTransmittedDataVolume" + }, + { ATF_POINTER, 2, offsetof(struct RANAP_DataVolumeList_Value, dataVolumeReference), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_DataVolumeReference, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "dataVolumeReference" + }, + { ATF_POINTER, 1, offsetof(struct RANAP_DataVolumeList_Value, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_ProtocolExtensionContainer, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_RANAP_DataVolumeList_Value_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_RANAP_DataVolumeList_Value_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RANAP_DataVolumeList_Value_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-UnsuccessfullyTransmittedDataVolume */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* dataVolumeReference */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_RANAP_DataVolumeList_Value_specs_1 = { + sizeof(struct RANAP_DataVolumeList_Value), + offsetof(struct RANAP_DataVolumeList_Value, _asn_ctx), + asn_MAP_RANAP_DataVolumeList_Value_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_RANAP_DataVolumeList_Value_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* Start extensions */ + 4 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_RANAP_DataVolumeList_Value = { + "RANAP_DataVolumeList-Value", + "RANAP_DataVolumeList-Value", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_RANAP_DataVolumeList_Value_tags_1, + sizeof(asn_DEF_RANAP_DataVolumeList_Value_tags_1) + /sizeof(asn_DEF_RANAP_DataVolumeList_Value_tags_1[0]), /* 1 */ + asn_DEF_RANAP_DataVolumeList_Value_tags_1, /* Same as above */ + sizeof(asn_DEF_RANAP_DataVolumeList_Value_tags_1) + /sizeof(asn_DEF_RANAP_DataVolumeList_Value_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_RANAP_DataVolumeList_Value_1, + 3, /* Elements count */ + &asn_SPC_RANAP_DataVolumeList_Value_specs_1 /* Additional specs */ +}; + diff --git a/src/ranap/RANAP_DataVolumeList.c b/src/ranap/RANAP_DataVolumeList.c index 5be74e1..6c0cc4a 100644 --- a/src/ranap/RANAP_DataVolumeList.c +++ b/src/ranap/RANAP_DataVolumeList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_DataVolumeList.h> @@ -11,87 +12,11 @@ static asn_per_constraints_t asn_PER_type_RANAP_DataVolumeList_constr_1 GCC_NOTU { APC_CONSTRAINED, 1, 1, 1l, 2l } /* (SIZE(1..2)) */, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_MemberH_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct MemberH, dl_UnsuccessfullyTransmittedDataVolume), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_UnsuccessfullyTransmittedDataVolume, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "dl-UnsuccessfullyTransmittedDataVolume" - }, - { ATF_POINTER, 2, offsetof(struct MemberH, dataVolumeReference), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_DataVolumeReference, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "dataVolumeReference" - }, - { ATF_POINTER, 1, offsetof(struct MemberH, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_ProtocolExtensionContainer, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_MemberH_oms_2[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_MemberH_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MemberH_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-UnsuccessfullyTransmittedDataVolume */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* dataVolumeReference */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_MemberH_specs_2 = { - sizeof(struct MemberH), - offsetof(struct MemberH, _asn_ctx), - asn_MAP_MemberH_tag2el_2, - 3, /* Count of tags in the map */ - asn_MAP_MemberH_oms_2, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* Start extensions */ - 4 /* Stop extensions */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_MemberH_2 = { - "SEQUENCE", - "SEQUENCE", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_MemberH_tags_2, - sizeof(asn_DEF_MemberH_tags_2) - /sizeof(asn_DEF_MemberH_tags_2[0]), /* 1 */ - asn_DEF_MemberH_tags_2, /* Same as above */ - sizeof(asn_DEF_MemberH_tags_2) - /sizeof(asn_DEF_MemberH_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_MemberH_2, - 3, /* Elements count */ - &asn_SPC_MemberH_specs_2 /* Additional specs */ -}; - static asn_TYPE_member_t asn_MBR_RANAP_DataVolumeList_1[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_MemberH_2, + &asn_DEF_RANAP_DataVolumeList_Value, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, diff --git a/src/ranap/RANAP_DataVolumeReference.c b/src/ranap/RANAP_DataVolumeReference.c index 0d88fb9..667389d 100644 --- a/src/ranap/RANAP_DataVolumeReference.c +++ b/src/ranap/RANAP_DataVolumeReference.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_DataVolumeReference.h> diff --git a/src/ranap/RANAP_DataVolumeReport.c b/src/ranap/RANAP_DataVolumeReport.c index 2c1d6b0..f8dc056 100644 --- a/src/ranap/RANAP_DataVolumeReport.c +++ b/src/ranap/RANAP_DataVolumeReport.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_DataVolumeReport.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_dataVolumeReport_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_dataVolumeReport_ies_specs_2 = { - sizeof(struct dataVolumeReport_ies), - offsetof(struct dataVolumeReport_ies, _asn_ctx), + sizeof(struct RANAP_DataVolumeReport__dataVolumeReport_ies), + offsetof(struct RANAP_DataVolumeReport__dataVolumeReport_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_DataVolumeReportList.c b/src/ranap/RANAP_DataVolumeReportList.c index 1476e7d..20186a7 100644 --- a/src/ranap/RANAP_DataVolumeReportList.c +++ b/src/ranap/RANAP_DataVolumeReportList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_DataVolumeReportList.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_dataVolumeReportListe_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_dataVolumeReportListe_ies_specs_2 = { - sizeof(struct dataVolumeReportListe_ies), - offsetof(struct dataVolumeReportListe_ies, _asn_ctx), + sizeof(struct RANAP_DataVolumeReportList__dataVolumeReportListe_ies), + offsetof(struct RANAP_DataVolumeReportList__dataVolumeReportListe_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_DataVolumeReportRequest.c b/src/ranap/RANAP_DataVolumeReportRequest.c index 2b0463a..35728d6 100644 --- a/src/ranap/RANAP_DataVolumeReportRequest.c +++ b/src/ranap/RANAP_DataVolumeReportRequest.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_DataVolumeReportRequest.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_dataVolumeReportRequest_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_dataVolumeReportRequest_ies_specs_2 = { - sizeof(struct dataVolumeReportRequest_ies), - offsetof(struct dataVolumeReportRequest_ies, _asn_ctx), + sizeof(struct RANAP_DataVolumeReportRequest__dataVolumeReportRequest_ies), + offsetof(struct RANAP_DataVolumeReportRequest__dataVolumeReportRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_DataVolumeReportingIndication.c b/src/ranap/RANAP_DataVolumeReportingIndication.c index a549bcf..ab15b73 100644 --- a/src/ranap/RANAP_DataVolumeReportingIndication.c +++ b/src/ranap/RANAP_DataVolumeReportingIndication.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_DataVolumeReportingIndication.h> diff --git a/src/ranap/RANAP_DeliveryOfErroneousSDU.c b/src/ranap/RANAP_DeliveryOfErroneousSDU.c index 6da9d59..76dc399 100644 --- a/src/ranap/RANAP_DeliveryOfErroneousSDU.c +++ b/src/ranap/RANAP_DeliveryOfErroneousSDU.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_DeliveryOfErroneousSDU.h> diff --git a/src/ranap/RANAP_DeliveryOrder.c b/src/ranap/RANAP_DeliveryOrder.c index f8443f6..ffb5eb0 100644 --- a/src/ranap/RANAP_DeliveryOrder.c +++ b/src/ranap/RANAP_DeliveryOrder.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_DeliveryOrder.h> diff --git a/src/ranap/RANAP_DeltaRAListofIdleModeUEs.c b/src/ranap/RANAP_DeltaRAListofIdleModeUEs.c index 8ebd374..de7fbf0 100644 --- a/src/ranap/RANAP_DeltaRAListofIdleModeUEs.c +++ b/src/ranap/RANAP_DeltaRAListofIdleModeUEs.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_DeltaRAListofIdleModeUEs.h> diff --git a/src/ranap/RANAP_DirectInformationTransfer.c b/src/ranap/RANAP_DirectInformationTransfer.c index 0f7d143..373af4c 100644 --- a/src/ranap/RANAP_DirectInformationTransfer.c +++ b/src/ranap/RANAP_DirectInformationTransfer.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_DirectInformationTransfer.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_directInformationTransfer_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_directInformationTransfer_ies_specs_2 = { - sizeof(struct directInformationTransfer_ies), - offsetof(struct directInformationTransfer_ies, _asn_ctx), + sizeof(struct RANAP_DirectInformationTransfer__directInformationTransfer_ies), + offsetof(struct RANAP_DirectInformationTransfer__directInformationTransfer_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_DirectReportingIndicator.c b/src/ranap/RANAP_DirectReportingIndicator.c index 8b9c560..d77889e 100644 --- a/src/ranap/RANAP_DirectReportingIndicator.c +++ b/src/ranap/RANAP_DirectReportingIndicator.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_DirectReportingIndicator.h> diff --git a/src/ranap/RANAP_DirectTransfer-IE-ContainerList.c b/src/ranap/RANAP_DirectTransfer-IE-ContainerList.c index a4fae90..e1fab27 100644 --- a/src/ranap/RANAP_DirectTransfer-IE-ContainerList.c +++ b/src/ranap/RANAP_DirectTransfer-IE-ContainerList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_DirectTransfer-IE-ContainerList.h> diff --git a/src/ranap/RANAP_DirectTransfer.c b/src/ranap/RANAP_DirectTransfer.c index 03fed10..05b51cf 100644 --- a/src/ranap/RANAP_DirectTransfer.c +++ b/src/ranap/RANAP_DirectTransfer.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_DirectTransfer.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_directTransfer_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_directTransfer_ies_specs_2 = { - sizeof(struct directTransfer_ies), - offsetof(struct directTransfer_ies, _asn_ctx), + sizeof(struct RANAP_DirectTransfer__directTransfer_ies), + offsetof(struct RANAP_DirectTransfer__directTransfer_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_DirectTransferInformationItem-RANAP-RelocInf.c b/src/ranap/RANAP_DirectTransferInformationItem-RANAP-RelocInf.c index dca65f8..8e381ae 100644 --- a/src/ranap/RANAP_DirectTransferInformationItem-RANAP-RelocInf.c +++ b/src/ranap/RANAP_DirectTransferInformationItem-RANAP-RelocInf.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_DirectTransferInformationItem-RANAP-RelocInf.h> diff --git a/src/ranap/RANAP_E-DCH-MAC-d-Flow-ID.c b/src/ranap/RANAP_E-DCH-MAC-d-Flow-ID.c index 19a69ff..216a63a 100644 --- a/src/ranap/RANAP_E-DCH-MAC-d-Flow-ID.c +++ b/src/ranap/RANAP_E-DCH-MAC-d-Flow-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_E-DCH-MAC-d-Flow-ID.h> diff --git a/src/ranap/RANAP_E-UTRAN-Service-Handover.c b/src/ranap/RANAP_E-UTRAN-Service-Handover.c index 8f964a3..188fe58 100644 --- a/src/ranap/RANAP_E-UTRAN-Service-Handover.c +++ b/src/ranap/RANAP_E-UTRAN-Service-Handover.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_E-UTRAN-Service-Handover.h> diff --git a/src/ranap/RANAP_EARFCN-Extended.c b/src/ranap/RANAP_EARFCN-Extended.c index 09340d1..d608f45 100644 --- a/src/ranap/RANAP_EARFCN-Extended.c +++ b/src/ranap/RANAP_EARFCN-Extended.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_EARFCN-Extended.h> diff --git a/src/ranap/RANAP_ENB-ID.c b/src/ranap/RANAP_ENB-ID.c index f7e855d..b7cfc7d 100644 --- a/src/ranap/RANAP_ENB-ID.c +++ b/src/ranap/RANAP_ENB-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ENB-ID.h> diff --git a/src/ranap/RANAP_EUTRANFrequencies-Value.c b/src/ranap/RANAP_EUTRANFrequencies-Value.c new file mode 100644 index 0000000..62ede9d --- /dev/null +++ b/src/ranap/RANAP_EUTRANFrequencies-Value.c @@ -0,0 +1,114 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-IEs" + * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` + */ + +#include <osmocom/ranap/RANAP_EUTRANFrequencies-Value.h> + +static int +memb_earfcn_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, + asn_app_constraint_failed_f *ctfailcb, void *app_key) { + long value; + + if(!sptr) { + _ASN_CTFAIL(app_key, td, sptr, + "%s: value not given (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } + + value = *(const long *)sptr; + + if((value >= 0l && value <= 65535l)) { + /* Constraint check succeeded */ + return 0; + } else { + _ASN_CTFAIL(app_key, td, sptr, + "%s: constraint failed (%s:%d)", + td->name, __FILE__, __LINE__); + return -1; + } +} + +static asn_per_constraints_t asn_PER_memb_earfcn_constr_2 GCC_NOTUSED = { + { APC_CONSTRAINED, 16, 16, 0l, 65535l } /* (0..65535) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +static asn_TYPE_member_t asn_MBR_RANAP_EUTRANFrequencies_Value_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RANAP_EUTRANFrequencies_Value, earfcn), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_NativeInteger, + memb_earfcn_constraint_1, + &asn_PER_memb_earfcn_constr_2, + 0, + "earfcn" + }, + { ATF_POINTER, 2, offsetof(struct RANAP_EUTRANFrequencies_Value, measBand), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_MeasBand, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "measBand" + }, + { ATF_POINTER, 1, offsetof(struct RANAP_EUTRANFrequencies_Value, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_RANAP_EUTRANFrequencies_Value_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_RANAP_EUTRANFrequencies_Value_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RANAP_EUTRANFrequencies_Value_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* earfcn */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* measBand */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_RANAP_EUTRANFrequencies_Value_specs_1 = { + sizeof(struct RANAP_EUTRANFrequencies_Value), + offsetof(struct RANAP_EUTRANFrequencies_Value, _asn_ctx), + asn_MAP_RANAP_EUTRANFrequencies_Value_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_RANAP_EUTRANFrequencies_Value_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + -1, /* Start extensions */ + -1 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_RANAP_EUTRANFrequencies_Value = { + "RANAP_EUTRANFrequencies-Value", + "RANAP_EUTRANFrequencies-Value", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_RANAP_EUTRANFrequencies_Value_tags_1, + sizeof(asn_DEF_RANAP_EUTRANFrequencies_Value_tags_1) + /sizeof(asn_DEF_RANAP_EUTRANFrequencies_Value_tags_1[0]), /* 1 */ + asn_DEF_RANAP_EUTRANFrequencies_Value_tags_1, /* Same as above */ + sizeof(asn_DEF_RANAP_EUTRANFrequencies_Value_tags_1) + /sizeof(asn_DEF_RANAP_EUTRANFrequencies_Value_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_RANAP_EUTRANFrequencies_Value_1, + 3, /* Elements count */ + &asn_SPC_RANAP_EUTRANFrequencies_Value_specs_1 /* Additional specs */ +}; + diff --git a/src/ranap/RANAP_EUTRANFrequencies.c b/src/ranap/RANAP_EUTRANFrequencies.c index f6faca6..b1fdda5 100644 --- a/src/ranap/RANAP_EUTRANFrequencies.c +++ b/src/ranap/RANAP_EUTRANFrequencies.c @@ -2,126 +2,21 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_EUTRANFrequencies.h> -static int -memb_earfcn_constraint_2(asn_TYPE_descriptor_t *td, const void *sptr, - asn_app_constraint_failed_f *ctfailcb, void *app_key) { - long value; - - if(!sptr) { - _ASN_CTFAIL(app_key, td, sptr, - "%s: value not given (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } - - value = *(const long *)sptr; - - if((value >= 0l && value <= 65535l)) { - /* Constraint check succeeded */ - return 0; - } else { - _ASN_CTFAIL(app_key, td, sptr, - "%s: constraint failed (%s:%d)", - td->name, __FILE__, __LINE__); - return -1; - } -} - -static asn_per_constraints_t asn_PER_memb_earfcn_constr_3 GCC_NOTUSED = { - { APC_CONSTRAINED, 16, 16, 0l, 65535l } /* (0..65535) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 }, - 0, 0 /* No PER value map */ -}; static asn_per_constraints_t asn_PER_type_RANAP_EUTRANFrequencies_constr_1 GCC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 3, 3, 1l, 8l } /* (SIZE(1..8)) */, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_MemberJ_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct MemberJ, earfcn), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_NativeInteger, - memb_earfcn_constraint_2, - &asn_PER_memb_earfcn_constr_3, - 0, - "earfcn" - }, - { ATF_POINTER, 2, offsetof(struct MemberJ, measBand), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_MeasBand, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "measBand" - }, - { ATF_POINTER, 1, offsetof(struct MemberJ, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_MemberJ_oms_2[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_MemberJ_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MemberJ_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* earfcn */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* measBand */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_MemberJ_specs_2 = { - sizeof(struct MemberJ), - offsetof(struct MemberJ, _asn_ctx), - asn_MAP_MemberJ_tag2el_2, - 3, /* Count of tags in the map */ - asn_MAP_MemberJ_oms_2, /* Optional members */ - 2, 0, /* Root/Additions */ - -1, /* Start extensions */ - -1 /* Stop extensions */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_MemberJ_2 = { - "SEQUENCE", - "SEQUENCE", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_MemberJ_tags_2, - sizeof(asn_DEF_MemberJ_tags_2) - /sizeof(asn_DEF_MemberJ_tags_2[0]), /* 1 */ - asn_DEF_MemberJ_tags_2, /* Same as above */ - sizeof(asn_DEF_MemberJ_tags_2) - /sizeof(asn_DEF_MemberJ_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_MemberJ_2, - 3, /* Elements count */ - &asn_SPC_MemberJ_specs_2 /* Additional specs */ -}; - static asn_TYPE_member_t asn_MBR_RANAP_EUTRANFrequencies_1[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_MemberJ_2, + &asn_DEF_RANAP_EUTRANFrequencies_Value, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, diff --git a/src/ranap/RANAP_EncryptionAlgorithm.c b/src/ranap/RANAP_EncryptionAlgorithm.c index b8df715..be6d6b9 100644 --- a/src/ranap/RANAP_EncryptionAlgorithm.c +++ b/src/ranap/RANAP_EncryptionAlgorithm.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_EncryptionAlgorithm.h> diff --git a/src/ranap/RANAP_EncryptionInformation.c b/src/ranap/RANAP_EncryptionInformation.c index 0f2c650..f2e4be7 100644 --- a/src/ranap/RANAP_EncryptionInformation.c +++ b/src/ranap/RANAP_EncryptionInformation.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_EncryptionInformation.h> diff --git a/src/ranap/RANAP_EncryptionKey.c b/src/ranap/RANAP_EncryptionKey.c index e451789..2de9da9 100644 --- a/src/ranap/RANAP_EncryptionKey.c +++ b/src/ranap/RANAP_EncryptionKey.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_EncryptionKey.h> diff --git a/src/ranap/RANAP_End-Of-CSFB.c b/src/ranap/RANAP_End-Of-CSFB.c index d409967..519d101 100644 --- a/src/ranap/RANAP_End-Of-CSFB.c +++ b/src/ranap/RANAP_End-Of-CSFB.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_End-Of-CSFB.h> diff --git a/src/ranap/RANAP_EnhancedRelocationCompleteConfirm.c b/src/ranap/RANAP_EnhancedRelocationCompleteConfirm.c index 0c5d28b..2585763 100644 --- a/src/ranap/RANAP_EnhancedRelocationCompleteConfirm.c +++ b/src/ranap/RANAP_EnhancedRelocationCompleteConfirm.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_EnhancedRelocationCompleteConfirm.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_enhancedRelocationCompleteConfirm_ies_tags_2[ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_enhancedRelocationCompleteConfirm_ies_specs_2 = { - sizeof(struct enhancedRelocationCompleteConfirm_ies), - offsetof(struct enhancedRelocationCompleteConfirm_ies, _asn_ctx), + sizeof(struct RANAP_EnhancedRelocationCompleteConfirm__enhancedRelocationCompleteConfirm_ies), + offsetof(struct RANAP_EnhancedRelocationCompleteConfirm__enhancedRelocationCompleteConfirm_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_EnhancedRelocationCompleteFailure.c b/src/ranap/RANAP_EnhancedRelocationCompleteFailure.c index 7201203..8148241 100644 --- a/src/ranap/RANAP_EnhancedRelocationCompleteFailure.c +++ b/src/ranap/RANAP_EnhancedRelocationCompleteFailure.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_EnhancedRelocationCompleteFailure.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_enhancedRelocationCompleteFailure_ies_tags_2[ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_enhancedRelocationCompleteFailure_ies_specs_2 = { - sizeof(struct enhancedRelocationCompleteFailure_ies), - offsetof(struct enhancedRelocationCompleteFailure_ies, _asn_ctx), + sizeof(struct RANAP_EnhancedRelocationCompleteFailure__enhancedRelocationCompleteFailure_ies), + offsetof(struct RANAP_EnhancedRelocationCompleteFailure__enhancedRelocationCompleteFailure_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_EnhancedRelocationCompleteRequest.c b/src/ranap/RANAP_EnhancedRelocationCompleteRequest.c index cd6a042..356f60e 100644 --- a/src/ranap/RANAP_EnhancedRelocationCompleteRequest.c +++ b/src/ranap/RANAP_EnhancedRelocationCompleteRequest.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_EnhancedRelocationCompleteRequest.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_enhancedRelocationCompleteRequest_ies_tags_2[ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_enhancedRelocationCompleteRequest_ies_specs_2 = { - sizeof(struct enhancedRelocationCompleteRequest_ies), - offsetof(struct enhancedRelocationCompleteRequest_ies, _asn_ctx), + sizeof(struct RANAP_EnhancedRelocationCompleteRequest__enhancedRelocationCompleteRequest_ies), + offsetof(struct RANAP_EnhancedRelocationCompleteRequest__enhancedRelocationCompleteRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_EnhancedRelocationCompleteResponse.c b/src/ranap/RANAP_EnhancedRelocationCompleteResponse.c index ac1328e..05be583 100644 --- a/src/ranap/RANAP_EnhancedRelocationCompleteResponse.c +++ b/src/ranap/RANAP_EnhancedRelocationCompleteResponse.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_EnhancedRelocationCompleteResponse.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_enhancedRelocationCompleteResponse_ies_tags_2 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_enhancedRelocationCompleteResponse_ies_specs_2 = { - sizeof(struct enhancedRelocationCompleteResponse_ies), - offsetof(struct enhancedRelocationCompleteResponse_ies, _asn_ctx), + sizeof(struct RANAP_EnhancedRelocationCompleteResponse__enhancedRelocationCompleteResponse_ies), + offsetof(struct RANAP_EnhancedRelocationCompleteResponse__enhancedRelocationCompleteResponse_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_EquipmentsToBeTraced.c b/src/ranap/RANAP_EquipmentsToBeTraced.c index cf6e08f..6eead10 100644 --- a/src/ranap/RANAP_EquipmentsToBeTraced.c +++ b/src/ranap/RANAP_EquipmentsToBeTraced.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_EquipmentsToBeTraced.h> diff --git a/src/ranap/RANAP_ErrorIndication.c b/src/ranap/RANAP_ErrorIndication.c index 4fcb502..d951a45 100644 --- a/src/ranap/RANAP_ErrorIndication.c +++ b/src/ranap/RANAP_ErrorIndication.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ErrorIndication.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_errorIndication_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_errorIndication_ies_specs_2 = { - sizeof(struct errorIndication_ies), - offsetof(struct errorIndication_ies, _asn_ctx), + sizeof(struct RANAP_ErrorIndication__errorIndication_ies), + offsetof(struct RANAP_ErrorIndication__errorIndication_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_Event.c b/src/ranap/RANAP_Event.c index 07b2370..d5aa206 100644 --- a/src/ranap/RANAP_Event.c +++ b/src/ranap/RANAP_Event.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Event.h> diff --git a/src/ranap/RANAP_Event1F-Parameters.c b/src/ranap/RANAP_Event1F-Parameters.c index 550cc0e..2fb1e0e 100644 --- a/src/ranap/RANAP_Event1F-Parameters.c +++ b/src/ranap/RANAP_Event1F-Parameters.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Event1F-Parameters.h> diff --git a/src/ranap/RANAP_Event1I-Parameters.c b/src/ranap/RANAP_Event1I-Parameters.c index 606755f..1d6a664 100644 --- a/src/ranap/RANAP_Event1I-Parameters.c +++ b/src/ranap/RANAP_Event1I-Parameters.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Event1I-Parameters.h> diff --git a/src/ranap/RANAP_ExtendedGuaranteedBitrate.c b/src/ranap/RANAP_ExtendedGuaranteedBitrate.c index 8891830..6b7e1e4 100644 --- a/src/ranap/RANAP_ExtendedGuaranteedBitrate.c +++ b/src/ranap/RANAP_ExtendedGuaranteedBitrate.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ExtendedGuaranteedBitrate.h> diff --git a/src/ranap/RANAP_ExtendedMaxBitrate.c b/src/ranap/RANAP_ExtendedMaxBitrate.c index 3158e83..0c89af0 100644 --- a/src/ranap/RANAP_ExtendedMaxBitrate.c +++ b/src/ranap/RANAP_ExtendedMaxBitrate.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ExtendedMaxBitrate.h> diff --git a/src/ranap/RANAP_ExtendedRNC-ID.c b/src/ranap/RANAP_ExtendedRNC-ID.c index 10e1f6b..a609b76 100644 --- a/src/ranap/RANAP_ExtendedRNC-ID.c +++ b/src/ranap/RANAP_ExtendedRNC-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ExtendedRNC-ID.h> diff --git a/src/ranap/RANAP_ForwardSRNS-Context.c b/src/ranap/RANAP_ForwardSRNS-Context.c index 61f1a5b..cdc6392 100644 --- a/src/ranap/RANAP_ForwardSRNS-Context.c +++ b/src/ranap/RANAP_ForwardSRNS-Context.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ForwardSRNS-Context.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_forwardSRNS_Context_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_forwardSRNS_Context_ies_specs_2 = { - sizeof(struct forwardSRNS_Context_ies), - offsetof(struct forwardSRNS_Context_ies, _asn_ctx), + sizeof(struct RANAP_ForwardSRNS_Context__forwardSRNS_Context_ies), + offsetof(struct RANAP_ForwardSRNS_Context__forwardSRNS_Context_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_ForwardingIndication.c b/src/ranap/RANAP_ForwardingIndication.c index 11478b1..3bd1cad 100644 --- a/src/ranap/RANAP_ForwardingIndication.c +++ b/src/ranap/RANAP_ForwardingIndication.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ForwardingIndication.h> diff --git a/src/ranap/RANAP_FrameSequenceNumber.c b/src/ranap/RANAP_FrameSequenceNumber.c index a933552..b8cab4f 100644 --- a/src/ranap/RANAP_FrameSequenceNumber.c +++ b/src/ranap/RANAP_FrameSequenceNumber.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_FrameSequenceNumber.h> diff --git a/src/ranap/RANAP_FrequenceLayerConvergenceFlag.c b/src/ranap/RANAP_FrequenceLayerConvergenceFlag.c index f9b71ed..d871d3a 100644 --- a/src/ranap/RANAP_FrequenceLayerConvergenceFlag.c +++ b/src/ranap/RANAP_FrequenceLayerConvergenceFlag.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_FrequenceLayerConvergenceFlag.h> diff --git a/src/ranap/RANAP_GA-AltitudeAndDirection.c b/src/ranap/RANAP_GA-AltitudeAndDirection.c index b707f1c..1050419 100644 --- a/src/ranap/RANAP_GA-AltitudeAndDirection.c +++ b/src/ranap/RANAP_GA-AltitudeAndDirection.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GA-AltitudeAndDirection.h> diff --git a/src/ranap/RANAP_GA-EllipsoidArc.c b/src/ranap/RANAP_GA-EllipsoidArc.c index bf406ac..c8d655a 100644 --- a/src/ranap/RANAP_GA-EllipsoidArc.c +++ b/src/ranap/RANAP_GA-EllipsoidArc.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GA-EllipsoidArc.h> diff --git a/src/ranap/RANAP_GA-Point.c b/src/ranap/RANAP_GA-Point.c index 41e10d6..d43e746 100644 --- a/src/ranap/RANAP_GA-Point.c +++ b/src/ranap/RANAP_GA-Point.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GA-Point.h> diff --git a/src/ranap/RANAP_GA-PointWithAltitude.c b/src/ranap/RANAP_GA-PointWithAltitude.c index b72fdd3..2ad5773 100644 --- a/src/ranap/RANAP_GA-PointWithAltitude.c +++ b/src/ranap/RANAP_GA-PointWithAltitude.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GA-PointWithAltitude.h> diff --git a/src/ranap/RANAP_GA-PointWithAltitudeAndUncertaintyEllipsoid.c b/src/ranap/RANAP_GA-PointWithAltitudeAndUncertaintyEllipsoid.c index 29c3919..38a20d0 100644 --- a/src/ranap/RANAP_GA-PointWithAltitudeAndUncertaintyEllipsoid.c +++ b/src/ranap/RANAP_GA-PointWithAltitudeAndUncertaintyEllipsoid.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GA-PointWithAltitudeAndUncertaintyEllipsoid.h> diff --git a/src/ranap/RANAP_GA-PointWithUnCertainty.c b/src/ranap/RANAP_GA-PointWithUnCertainty.c index cc65d70..ba72b96 100644 --- a/src/ranap/RANAP_GA-PointWithUnCertainty.c +++ b/src/ranap/RANAP_GA-PointWithUnCertainty.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GA-PointWithUnCertainty.h> diff --git a/src/ranap/RANAP_GA-PointWithUnCertaintyEllipse.c b/src/ranap/RANAP_GA-PointWithUnCertaintyEllipse.c index f0e1115..f529db2 100644 --- a/src/ranap/RANAP_GA-PointWithUnCertaintyEllipse.c +++ b/src/ranap/RANAP_GA-PointWithUnCertaintyEllipse.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GA-PointWithUnCertaintyEllipse.h> diff --git a/src/ranap/RANAP_GA-Polygon-Value.c b/src/ranap/RANAP_GA-Polygon-Value.c new file mode 100644 index 0000000..40e19ba --- /dev/null +++ b/src/ranap/RANAP_GA-Polygon-Value.c @@ -0,0 +1,74 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-IEs" + * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` + */ + +#include <osmocom/ranap/RANAP_GA-Polygon-Value.h> + +static asn_TYPE_member_t asn_MBR_RANAP_GA_Polygon_Value_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RANAP_GA_Polygon_Value, geographicalCoordinates), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_GeographicalCoordinates, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "geographicalCoordinates" + }, + { ATF_POINTER, 1, offsetof(struct RANAP_GA_Polygon_Value, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_RANAP_GA_Polygon_Value_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_RANAP_GA_Polygon_Value_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RANAP_GA_Polygon_Value_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* geographicalCoordinates */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_RANAP_GA_Polygon_Value_specs_1 = { + sizeof(struct RANAP_GA_Polygon_Value), + offsetof(struct RANAP_GA_Polygon_Value, _asn_ctx), + asn_MAP_RANAP_GA_Polygon_Value_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_RANAP_GA_Polygon_Value_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* Start extensions */ + 3 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_RANAP_GA_Polygon_Value = { + "RANAP_GA-Polygon-Value", + "RANAP_GA-Polygon-Value", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_RANAP_GA_Polygon_Value_tags_1, + sizeof(asn_DEF_RANAP_GA_Polygon_Value_tags_1) + /sizeof(asn_DEF_RANAP_GA_Polygon_Value_tags_1[0]), /* 1 */ + asn_DEF_RANAP_GA_Polygon_Value_tags_1, /* Same as above */ + sizeof(asn_DEF_RANAP_GA_Polygon_Value_tags_1) + /sizeof(asn_DEF_RANAP_GA_Polygon_Value_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_RANAP_GA_Polygon_Value_1, + 2, /* Elements count */ + &asn_SPC_RANAP_GA_Polygon_Value_specs_1 /* Additional specs */ +}; + diff --git a/src/ranap/RANAP_GA-Polygon.c b/src/ranap/RANAP_GA-Polygon.c index 0e9979f..a959342 100644 --- a/src/ranap/RANAP_GA-Polygon.c +++ b/src/ranap/RANAP_GA-Polygon.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GA-Polygon.h> @@ -11,77 +12,11 @@ static asn_per_constraints_t asn_PER_type_RANAP_GA_Polygon_constr_1 GCC_NOTUSED { APC_CONSTRAINED, 4, 4, 1l, 15l } /* (SIZE(1..15)) */, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_Member_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct Member, geographicalCoordinates), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_GeographicalCoordinates, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "geographicalCoordinates" - }, - { ATF_POINTER, 1, offsetof(struct Member, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_Member_oms_2[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* geographicalCoordinates */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = { - sizeof(struct Member), - offsetof(struct Member, _asn_ctx), - asn_MAP_Member_tag2el_2, - 2, /* Count of tags in the map */ - asn_MAP_Member_oms_2, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* Start extensions */ - 3 /* Stop extensions */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_Member_2 = { - "SEQUENCE", - "SEQUENCE", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_Member_tags_2, - sizeof(asn_DEF_Member_tags_2) - /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ - asn_DEF_Member_tags_2, /* Same as above */ - sizeof(asn_DEF_Member_tags_2) - /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_Member_2, - 2, /* Elements count */ - &asn_SPC_Member_specs_2 /* Additional specs */ -}; - static asn_TYPE_member_t asn_MBR_RANAP_GA_Polygon_1[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_Member_2, + &asn_DEF_RANAP_GA_Polygon_Value, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, diff --git a/src/ranap/RANAP_GA-UncertaintyEllipse.c b/src/ranap/RANAP_GA-UncertaintyEllipse.c index c88dd10..a55d643 100644 --- a/src/ranap/RANAP_GA-UncertaintyEllipse.c +++ b/src/ranap/RANAP_GA-UncertaintyEllipse.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GA-UncertaintyEllipse.h> diff --git a/src/ranap/RANAP_GANSS-PositioningDataSet.c b/src/ranap/RANAP_GANSS-PositioningDataSet.c index b427447..5f271a0 100644 --- a/src/ranap/RANAP_GANSS-PositioningDataSet.c +++ b/src/ranap/RANAP_GANSS-PositioningDataSet.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GANSS-PositioningDataSet.h> diff --git a/src/ranap/RANAP_GANSS-PositioningMethodAndUsage.c b/src/ranap/RANAP_GANSS-PositioningMethodAndUsage.c index a18b51d..51436fa 100644 --- a/src/ranap/RANAP_GANSS-PositioningMethodAndUsage.c +++ b/src/ranap/RANAP_GANSS-PositioningMethodAndUsage.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GANSS-PositioningMethodAndUsage.h> diff --git a/src/ranap/RANAP_GERAN-BSC-Container.c b/src/ranap/RANAP_GERAN-BSC-Container.c index b7205fc..6522efe 100644 --- a/src/ranap/RANAP_GERAN-BSC-Container.c +++ b/src/ranap/RANAP_GERAN-BSC-Container.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GERAN-BSC-Container.h> diff --git a/src/ranap/RANAP_GERAN-Cell-ID.c b/src/ranap/RANAP_GERAN-Cell-ID.c index c0539f7..a8858db 100644 --- a/src/ranap/RANAP_GERAN-Cell-ID.c +++ b/src/ranap/RANAP_GERAN-Cell-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GERAN-Cell-ID.h> diff --git a/src/ranap/RANAP_GERAN-Classmark.c b/src/ranap/RANAP_GERAN-Classmark.c index f499935..37fc5d8 100644 --- a/src/ranap/RANAP_GERAN-Classmark.c +++ b/src/ranap/RANAP_GERAN-Classmark.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GERAN-Classmark.h> diff --git a/src/ranap/RANAP_GERAN-Iumode-RAB-Failed-RABAssgntResponse-Item.c b/src/ranap/RANAP_GERAN-Iumode-RAB-Failed-RABAssgntResponse-Item.c index 9cc7df2..5fa017a 100644 --- a/src/ranap/RANAP_GERAN-Iumode-RAB-Failed-RABAssgntResponse-Item.c +++ b/src/ranap/RANAP_GERAN-Iumode-RAB-Failed-RABAssgntResponse-Item.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GERAN-Iumode-RAB-Failed-RABAssgntResponse-Item.h> diff --git a/src/ranap/RANAP_GERAN-Iumode-RAB-Failed-RABAssgntResponse-List.c b/src/ranap/RANAP_GERAN-Iumode-RAB-Failed-RABAssgntResponse-List.c index f981c08..47efa2d 100644 --- a/src/ranap/RANAP_GERAN-Iumode-RAB-Failed-RABAssgntResponse-List.c +++ b/src/ranap/RANAP_GERAN-Iumode-RAB-Failed-RABAssgntResponse-List.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GERAN-Iumode-RAB-Failed-RABAssgntResponse-List.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_geraN_Iumode_RAB_Failed_RABAssgntResponse_Lis (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_geraN_Iumode_RAB_Failed_RABAssgntResponse_List_ies_specs_2 = { - sizeof(struct geraN_Iumode_RAB_Failed_RABAssgntResponse_List_ies), - offsetof(struct geraN_Iumode_RAB_Failed_RABAssgntResponse_List_ies, _asn_ctx), + sizeof(struct RANAP_GERAN_Iumode_RAB_Failed_RABAssgntResponse_List__geraN_Iumode_RAB_Failed_RABAssgntResponse_List_ies), + offsetof(struct RANAP_GERAN_Iumode_RAB_Failed_RABAssgntResponse_List__geraN_Iumode_RAB_Failed_RABAssgntResponse_List_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_GTP-TEI.c b/src/ranap/RANAP_GTP-TEI.c index 34e1e3f..8ceff04 100644 --- a/src/ranap/RANAP_GTP-TEI.c +++ b/src/ranap/RANAP_GTP-TEI.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GTP-TEI.h> diff --git a/src/ranap/RANAP_GeographicalArea.c b/src/ranap/RANAP_GeographicalArea.c index a007c11..b0db6b5 100644 --- a/src/ranap/RANAP_GeographicalArea.c +++ b/src/ranap/RANAP_GeographicalArea.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GeographicalArea.h> diff --git a/src/ranap/RANAP_GeographicalCoordinates.c b/src/ranap/RANAP_GeographicalCoordinates.c index 1296794..51579f4 100644 --- a/src/ranap/RANAP_GeographicalCoordinates.c +++ b/src/ranap/RANAP_GeographicalCoordinates.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GeographicalCoordinates.h> diff --git a/src/ranap/RANAP_GlobalCN-ID.c b/src/ranap/RANAP_GlobalCN-ID.c index 4bd7ed0..3f394d4 100644 --- a/src/ranap/RANAP_GlobalCN-ID.c +++ b/src/ranap/RANAP_GlobalCN-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GlobalCN-ID.h> diff --git a/src/ranap/RANAP_GlobalRNC-ID.c b/src/ranap/RANAP_GlobalRNC-ID.c index 3858840..a46bbda 100644 --- a/src/ranap/RANAP_GlobalRNC-ID.c +++ b/src/ranap/RANAP_GlobalRNC-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GlobalRNC-ID.h> diff --git a/src/ranap/RANAP_GuaranteedBitrate.c b/src/ranap/RANAP_GuaranteedBitrate.c index e00bf5c..0a9f233 100644 --- a/src/ranap/RANAP_GuaranteedBitrate.c +++ b/src/ranap/RANAP_GuaranteedBitrate.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_GuaranteedBitrate.h> diff --git a/src/ranap/RANAP_HS-DSCH-MAC-d-Flow-ID.c b/src/ranap/RANAP_HS-DSCH-MAC-d-Flow-ID.c index 69e3d6f..e802261 100644 --- a/src/ranap/RANAP_HS-DSCH-MAC-d-Flow-ID.c +++ b/src/ranap/RANAP_HS-DSCH-MAC-d-Flow-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_HS-DSCH-MAC-d-Flow-ID.h> diff --git a/src/ranap/RANAP_HigherBitratesThan16MbpsFlag.c b/src/ranap/RANAP_HigherBitratesThan16MbpsFlag.c index c4291e5..c240ed3 100644 --- a/src/ranap/RANAP_HigherBitratesThan16MbpsFlag.c +++ b/src/ranap/RANAP_HigherBitratesThan16MbpsFlag.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_HigherBitratesThan16MbpsFlag.h> diff --git a/src/ranap/RANAP_HorizontalSpeedAndBearing.c b/src/ranap/RANAP_HorizontalSpeedAndBearing.c index 02f8ab5..d975578 100644 --- a/src/ranap/RANAP_HorizontalSpeedAndBearing.c +++ b/src/ranap/RANAP_HorizontalSpeedAndBearing.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_HorizontalSpeedAndBearing.h> diff --git a/src/ranap/RANAP_HorizontalVelocity.c b/src/ranap/RANAP_HorizontalVelocity.c index 878ff66..5030ee5 100644 --- a/src/ranap/RANAP_HorizontalVelocity.c +++ b/src/ranap/RANAP_HorizontalVelocity.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_HorizontalVelocity.h> diff --git a/src/ranap/RANAP_HorizontalVelocityWithUncertainty.c b/src/ranap/RANAP_HorizontalVelocityWithUncertainty.c index 70ed4f3..b849c24 100644 --- a/src/ranap/RANAP_HorizontalVelocityWithUncertainty.c +++ b/src/ranap/RANAP_HorizontalVelocityWithUncertainty.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_HorizontalVelocityWithUncertainty.h> diff --git a/src/ranap/RANAP_HorizontalWithVerticalVelocity.c b/src/ranap/RANAP_HorizontalWithVerticalVelocity.c index 0a2175e..a11db08 100644 --- a/src/ranap/RANAP_HorizontalWithVerticalVelocity.c +++ b/src/ranap/RANAP_HorizontalWithVerticalVelocity.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_HorizontalWithVerticalVelocity.h> diff --git a/src/ranap/RANAP_HorizontalWithVerticalVelocityAndUncertainty.c b/src/ranap/RANAP_HorizontalWithVerticalVelocityAndUncertainty.c index 0472005..27c849e 100644 --- a/src/ranap/RANAP_HorizontalWithVerticalVelocityAndUncertainty.c +++ b/src/ranap/RANAP_HorizontalWithVerticalVelocityAndUncertainty.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_HorizontalWithVerticalVelocityAndUncertainty.h> diff --git a/src/ranap/RANAP_IE-Extensions.c b/src/ranap/RANAP_IE-Extensions.c index 689058f..922f4c9 100644 --- a/src/ranap/RANAP_IE-Extensions.c +++ b/src/ranap/RANAP_IE-Extensions.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_IE-Extensions.h> diff --git a/src/ranap/RANAP_IE.c b/src/ranap/RANAP_IE.c index 47c54b7..d979d5a 100644 --- a/src/ranap/RANAP_IE.c +++ b/src/ranap/RANAP_IE.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_IE.h> diff --git a/src/ranap/RANAP_IMEI.c b/src/ranap/RANAP_IMEI.c index a1bf807..2c4f440 100644 --- a/src/ranap/RANAP_IMEI.c +++ b/src/ranap/RANAP_IMEI.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_IMEI.h> diff --git a/src/ranap/RANAP_IMEIGroup.c b/src/ranap/RANAP_IMEIGroup.c index 684fcdd..eb51ee9 100644 --- a/src/ranap/RANAP_IMEIGroup.c +++ b/src/ranap/RANAP_IMEIGroup.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_IMEIGroup.h> diff --git a/src/ranap/RANAP_IMEIList.c b/src/ranap/RANAP_IMEIList.c index f24ad4e..504244f 100644 --- a/src/ranap/RANAP_IMEIList.c +++ b/src/ranap/RANAP_IMEIList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_IMEIList.h> diff --git a/src/ranap/RANAP_IMEISV.c b/src/ranap/RANAP_IMEISV.c index 1f9627d..1de70a3 100644 --- a/src/ranap/RANAP_IMEISV.c +++ b/src/ranap/RANAP_IMEISV.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_IMEISV.h> diff --git a/src/ranap/RANAP_IMEISVGroup.c b/src/ranap/RANAP_IMEISVGroup.c index 83ccbd8..7bc0670 100644 --- a/src/ranap/RANAP_IMEISVGroup.c +++ b/src/ranap/RANAP_IMEISVGroup.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_IMEISVGroup.h> diff --git a/src/ranap/RANAP_IMEISVList.c b/src/ranap/RANAP_IMEISVList.c index 25cb5e1..88c6c62 100644 --- a/src/ranap/RANAP_IMEISVList.c +++ b/src/ranap/RANAP_IMEISVList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_IMEISVList.h> diff --git a/src/ranap/RANAP_IMSI.c b/src/ranap/RANAP_IMSI.c index cddcb8a..e7f7801 100644 --- a/src/ranap/RANAP_IMSI.c +++ b/src/ranap/RANAP_IMSI.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_IMSI.h> diff --git a/src/ranap/RANAP_IPMulticastAddress.c b/src/ranap/RANAP_IPMulticastAddress.c index 3a9ee2b..4598a41 100644 --- a/src/ranap/RANAP_IPMulticastAddress.c +++ b/src/ranap/RANAP_IPMulticastAddress.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_IPMulticastAddress.h> diff --git a/src/ranap/RANAP_IRAT-Measurement-Configuration.c b/src/ranap/RANAP_IRAT-Measurement-Configuration.c index 766b8df..576c467 100644 --- a/src/ranap/RANAP_IRAT-Measurement-Configuration.c +++ b/src/ranap/RANAP_IRAT-Measurement-Configuration.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_IRAT-Measurement-Configuration.h> diff --git a/src/ranap/RANAP_IRATmeasurementParameters.c b/src/ranap/RANAP_IRATmeasurementParameters.c index b511b59..e144cf9 100644 --- a/src/ranap/RANAP_IRATmeasurementParameters.c +++ b/src/ranap/RANAP_IRATmeasurementParameters.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_IRATmeasurementParameters.h> diff --git a/src/ranap/RANAP_ImmediateMDT.c b/src/ranap/RANAP_ImmediateMDT.c index c007c09..468762e 100644 --- a/src/ranap/RANAP_ImmediateMDT.c +++ b/src/ranap/RANAP_ImmediateMDT.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ImmediateMDT.h> diff --git a/src/ranap/RANAP_IncludeVelocity.c b/src/ranap/RANAP_IncludeVelocity.c index c10b1cb..ac6f10a 100644 --- a/src/ranap/RANAP_IncludeVelocity.c +++ b/src/ranap/RANAP_IncludeVelocity.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_IncludeVelocity.h> diff --git a/src/ranap/RANAP_InformationExchangeID.c b/src/ranap/RANAP_InformationExchangeID.c index 239c345..435d498 100644 --- a/src/ranap/RANAP_InformationExchangeID.c +++ b/src/ranap/RANAP_InformationExchangeID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_InformationExchangeID.h> diff --git a/src/ranap/RANAP_InformationExchangeType.c b/src/ranap/RANAP_InformationExchangeType.c index fd8bb0f..b9285c3 100644 --- a/src/ranap/RANAP_InformationExchangeType.c +++ b/src/ranap/RANAP_InformationExchangeType.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_InformationExchangeType.h> diff --git a/src/ranap/RANAP_InformationRequestType.c b/src/ranap/RANAP_InformationRequestType.c index 5775d89..ee434fe 100644 --- a/src/ranap/RANAP_InformationRequestType.c +++ b/src/ranap/RANAP_InformationRequestType.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_InformationRequestType.h> diff --git a/src/ranap/RANAP_InformationRequested.c b/src/ranap/RANAP_InformationRequested.c index b01e726..b0ee3d9 100644 --- a/src/ranap/RANAP_InformationRequested.c +++ b/src/ranap/RANAP_InformationRequested.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_InformationRequested.h> diff --git a/src/ranap/RANAP_InformationTransferConfirmation.c b/src/ranap/RANAP_InformationTransferConfirmation.c index 846cb05..87e065d 100644 --- a/src/ranap/RANAP_InformationTransferConfirmation.c +++ b/src/ranap/RANAP_InformationTransferConfirmation.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_InformationTransferConfirmation.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_informationTransferConfirmation_ies_tags_2[] (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_informationTransferConfirmation_ies_specs_2 = { - sizeof(struct informationTransferConfirmation_ies), - offsetof(struct informationTransferConfirmation_ies, _asn_ctx), + sizeof(struct RANAP_InformationTransferConfirmation__informationTransferConfirmation_ies), + offsetof(struct RANAP_InformationTransferConfirmation__informationTransferConfirmation_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_InformationTransferFailure.c b/src/ranap/RANAP_InformationTransferFailure.c index fe3b40d..f9002e2 100644 --- a/src/ranap/RANAP_InformationTransferFailure.c +++ b/src/ranap/RANAP_InformationTransferFailure.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_InformationTransferFailure.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_informationTransferFailure_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_informationTransferFailure_ies_specs_2 = { - sizeof(struct informationTransferFailure_ies), - offsetof(struct informationTransferFailure_ies, _asn_ctx), + sizeof(struct RANAP_InformationTransferFailure__informationTransferFailure_ies), + offsetof(struct RANAP_InformationTransferFailure__informationTransferFailure_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_InformationTransferID.c b/src/ranap/RANAP_InformationTransferID.c index 2a862a6..80723b4 100644 --- a/src/ranap/RANAP_InformationTransferID.c +++ b/src/ranap/RANAP_InformationTransferID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_InformationTransferID.h> diff --git a/src/ranap/RANAP_InformationTransferIndication.c b/src/ranap/RANAP_InformationTransferIndication.c index 5956c5e..c1dbb98 100644 --- a/src/ranap/RANAP_InformationTransferIndication.c +++ b/src/ranap/RANAP_InformationTransferIndication.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_InformationTransferIndication.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_informationTransferIndication_ies_tags_2[] = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_informationTransferIndication_ies_specs_2 = { - sizeof(struct informationTransferIndication_ies), - offsetof(struct informationTransferIndication_ies, _asn_ctx), + sizeof(struct RANAP_InformationTransferIndication__informationTransferIndication_ies), + offsetof(struct RANAP_InformationTransferIndication__informationTransferIndication_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_InformationTransferType.c b/src/ranap/RANAP_InformationTransferType.c index c73463d..a076677 100644 --- a/src/ranap/RANAP_InformationTransferType.c +++ b/src/ranap/RANAP_InformationTransferType.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_InformationTransferType.h> diff --git a/src/ranap/RANAP_InitialUE-Message.c b/src/ranap/RANAP_InitialUE-Message.c index 45ff1e5..13407f0 100644 --- a/src/ranap/RANAP_InitialUE-Message.c +++ b/src/ranap/RANAP_InitialUE-Message.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_InitialUE-Message.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_initialUE_Message_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_initialUE_Message_ies_specs_2 = { - sizeof(struct initialUE_Message_ies), - offsetof(struct initialUE_Message_ies, _asn_ctx), + sizeof(struct RANAP_InitialUE_Message__initialUE_Message_ies), + offsetof(struct RANAP_InitialUE_Message__initialUE_Message_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_InitiatingMessage.c b/src/ranap/RANAP_InitiatingMessage.c index a9a2e72..b525e9c 100644 --- a/src/ranap/RANAP_InitiatingMessage.c +++ b/src/ranap/RANAP_InitiatingMessage.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_InitiatingMessage.h> diff --git a/src/ranap/RANAP_IntegrityProtectionAlgorithm.c b/src/ranap/RANAP_IntegrityProtectionAlgorithm.c index a402600..c7510a2 100644 --- a/src/ranap/RANAP_IntegrityProtectionAlgorithm.c +++ b/src/ranap/RANAP_IntegrityProtectionAlgorithm.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_IntegrityProtectionAlgorithm.h> diff --git a/src/ranap/RANAP_IntegrityProtectionInformation.c b/src/ranap/RANAP_IntegrityProtectionInformation.c index 4c4453a..616647a 100644 --- a/src/ranap/RANAP_IntegrityProtectionInformation.c +++ b/src/ranap/RANAP_IntegrityProtectionInformation.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_IntegrityProtectionInformation.h> diff --git a/src/ranap/RANAP_IntegrityProtectionKey.c b/src/ranap/RANAP_IntegrityProtectionKey.c index fe42226..36d4221 100644 --- a/src/ranap/RANAP_IntegrityProtectionKey.c +++ b/src/ranap/RANAP_IntegrityProtectionKey.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_IntegrityProtectionKey.h> diff --git a/src/ranap/RANAP_InterSystemInformation-TransparentContainer.c b/src/ranap/RANAP_InterSystemInformation-TransparentContainer.c index 3b77feb..810aacc 100644 --- a/src/ranap/RANAP_InterSystemInformation-TransparentContainer.c +++ b/src/ranap/RANAP_InterSystemInformation-TransparentContainer.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_InterSystemInformation-TransparentContainer.h> diff --git a/src/ranap/RANAP_InterSystemInformationTransferType.c b/src/ranap/RANAP_InterSystemInformationTransferType.c index 6d7ea90..dca6027 100644 --- a/src/ranap/RANAP_InterSystemInformationTransferType.c +++ b/src/ranap/RANAP_InterSystemInformationTransferType.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_InterSystemInformationTransferType.h> diff --git a/src/ranap/RANAP_InterfacesToTraceItem.c b/src/ranap/RANAP_InterfacesToTraceItem.c index f1d5aa0..96c9e9f 100644 --- a/src/ranap/RANAP_InterfacesToTraceItem.c +++ b/src/ranap/RANAP_InterfacesToTraceItem.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_InterfacesToTraceItem.h> diff --git a/src/ranap/RANAP_Iu-ReleaseCommand.c b/src/ranap/RANAP_Iu-ReleaseCommand.c index 8bb0fe5..b7b03bb 100644 --- a/src/ranap/RANAP_Iu-ReleaseCommand.c +++ b/src/ranap/RANAP_Iu-ReleaseCommand.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Iu-ReleaseCommand.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_iu_ReleaseCommand_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_iu_ReleaseCommand_ies_specs_2 = { - sizeof(struct iu_ReleaseCommand_ies), - offsetof(struct iu_ReleaseCommand_ies, _asn_ctx), + sizeof(struct RANAP_Iu_ReleaseCommand__iu_ReleaseCommand_ies), + offsetof(struct RANAP_Iu_ReleaseCommand__iu_ReleaseCommand_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_Iu-ReleaseComplete.c b/src/ranap/RANAP_Iu-ReleaseComplete.c index 7fd8aff..4a03d95 100644 --- a/src/ranap/RANAP_Iu-ReleaseComplete.c +++ b/src/ranap/RANAP_Iu-ReleaseComplete.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Iu-ReleaseComplete.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_iu_ReleaseComplete_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_iu_ReleaseComplete_ies_specs_2 = { - sizeof(struct iu_ReleaseComplete_ies), - offsetof(struct iu_ReleaseComplete_ies, _asn_ctx), + sizeof(struct RANAP_Iu_ReleaseComplete__iu_ReleaseComplete_ies), + offsetof(struct RANAP_Iu_ReleaseComplete__iu_ReleaseComplete_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_Iu-ReleaseRequest.c b/src/ranap/RANAP_Iu-ReleaseRequest.c index f629f45..f3247a0 100644 --- a/src/ranap/RANAP_Iu-ReleaseRequest.c +++ b/src/ranap/RANAP_Iu-ReleaseRequest.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Iu-ReleaseRequest.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_iu_ReleaseRequest_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_iu_ReleaseRequest_ies_specs_2 = { - sizeof(struct iu_ReleaseRequest_ies), - offsetof(struct iu_ReleaseRequest_ies, _asn_ctx), + sizeof(struct RANAP_Iu_ReleaseRequest__iu_ReleaseRequest_ies), + offsetof(struct RANAP_Iu_ReleaseRequest__iu_ReleaseRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_IuSigConId-IE-ContainerList.c b/src/ranap/RANAP_IuSigConId-IE-ContainerList.c index a3718ec..442ff25 100644 --- a/src/ranap/RANAP_IuSigConId-IE-ContainerList.c +++ b/src/ranap/RANAP_IuSigConId-IE-ContainerList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_IuSigConId-IE-ContainerList.h> diff --git a/src/ranap/RANAP_IuSignallingConnectionIdentifier.c b/src/ranap/RANAP_IuSignallingConnectionIdentifier.c index 118f3ab..3c8dcc3 100644 --- a/src/ranap/RANAP_IuSignallingConnectionIdentifier.c +++ b/src/ranap/RANAP_IuSignallingConnectionIdentifier.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_IuSignallingConnectionIdentifier.h> diff --git a/src/ranap/RANAP_IuTransportAssociation.c b/src/ranap/RANAP_IuTransportAssociation.c index 7da78f2..38ff8fa 100644 --- a/src/ranap/RANAP_IuTransportAssociation.c +++ b/src/ranap/RANAP_IuTransportAssociation.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_IuTransportAssociation.h> diff --git a/src/ranap/RANAP_JoinedMBMSBearerService-IEs-Value.c b/src/ranap/RANAP_JoinedMBMSBearerService-IEs-Value.c new file mode 100644 index 0000000..a4cb8ca --- /dev/null +++ b/src/ranap/RANAP_JoinedMBMSBearerService-IEs-Value.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-PDU" + * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` + */ + +#include <osmocom/ranap/RANAP_JoinedMBMSBearerService-IEs-Value.h> + +static asn_TYPE_member_t asn_MBR_RANAP_JoinedMBMSBearerService_IEs_Value_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RANAP_JoinedMBMSBearerService_IEs_Value, tMGI), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_TMGI, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "tMGI" + }, + { ATF_NOFLAGS, 0, offsetof(struct RANAP_JoinedMBMSBearerService_IEs_Value, mBMS_PTP_RAB_ID), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_MBMS_PTP_RAB_ID, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "mBMS-PTP-RAB-ID" + }, + { ATF_POINTER, 1, offsetof(struct RANAP_JoinedMBMSBearerService_IEs_Value, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_ProtocolExtensionContainer, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_RANAP_JoinedMBMSBearerService_IEs_Value_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_RANAP_JoinedMBMSBearerService_IEs_Value_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RANAP_JoinedMBMSBearerService_IEs_Value_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tMGI */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* mBMS-PTP-RAB-ID */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_RANAP_JoinedMBMSBearerService_IEs_Value_specs_1 = { + sizeof(struct RANAP_JoinedMBMSBearerService_IEs_Value), + offsetof(struct RANAP_JoinedMBMSBearerService_IEs_Value, _asn_ctx), + asn_MAP_RANAP_JoinedMBMSBearerService_IEs_Value_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_RANAP_JoinedMBMSBearerService_IEs_Value_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* Start extensions */ + 4 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_RANAP_JoinedMBMSBearerService_IEs_Value = { + "RANAP_JoinedMBMSBearerService-IEs-Value", + "RANAP_JoinedMBMSBearerService-IEs-Value", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_RANAP_JoinedMBMSBearerService_IEs_Value_tags_1, + sizeof(asn_DEF_RANAP_JoinedMBMSBearerService_IEs_Value_tags_1) + /sizeof(asn_DEF_RANAP_JoinedMBMSBearerService_IEs_Value_tags_1[0]), /* 1 */ + asn_DEF_RANAP_JoinedMBMSBearerService_IEs_Value_tags_1, /* Same as above */ + sizeof(asn_DEF_RANAP_JoinedMBMSBearerService_IEs_Value_tags_1) + /sizeof(asn_DEF_RANAP_JoinedMBMSBearerService_IEs_Value_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_RANAP_JoinedMBMSBearerService_IEs_Value_1, + 3, /* Elements count */ + &asn_SPC_RANAP_JoinedMBMSBearerService_IEs_Value_specs_1 /* Additional specs */ +}; + diff --git a/src/ranap/RANAP_JoinedMBMSBearerService-IEs.c b/src/ranap/RANAP_JoinedMBMSBearerService-IEs.c index 4055055..1dd3e8a 100644 --- a/src/ranap/RANAP_JoinedMBMSBearerService-IEs.c +++ b/src/ranap/RANAP_JoinedMBMSBearerService-IEs.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_JoinedMBMSBearerService-IEs.h> @@ -11,87 +12,11 @@ static asn_per_constraints_t asn_PER_type_RANAP_JoinedMBMSBearerService_IEs_cons { APC_CONSTRAINED, 7, 7, 1l, 128l } /* (SIZE(1..128)) */, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_MemberF_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct MemberF, tMGI), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_TMGI, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "tMGI" - }, - { ATF_NOFLAGS, 0, offsetof(struct MemberF, mBMS_PTP_RAB_ID), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_MBMS_PTP_RAB_ID, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "mBMS-PTP-RAB-ID" - }, - { ATF_POINTER, 1, offsetof(struct MemberF, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_ProtocolExtensionContainer, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_MemberF_oms_2[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_MemberF_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MemberF_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tMGI */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* mBMS-PTP-RAB-ID */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_MemberF_specs_2 = { - sizeof(struct MemberF), - offsetof(struct MemberF, _asn_ctx), - asn_MAP_MemberF_tag2el_2, - 3, /* Count of tags in the map */ - asn_MAP_MemberF_oms_2, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* Start extensions */ - 4 /* Stop extensions */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_MemberF_2 = { - "SEQUENCE", - "SEQUENCE", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_MemberF_tags_2, - sizeof(asn_DEF_MemberF_tags_2) - /sizeof(asn_DEF_MemberF_tags_2[0]), /* 1 */ - asn_DEF_MemberF_tags_2, /* Same as above */ - sizeof(asn_DEF_MemberF_tags_2) - /sizeof(asn_DEF_MemberF_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_MemberF_2, - 3, /* Elements count */ - &asn_SPC_MemberF_specs_2 /* Additional specs */ -}; - static asn_TYPE_member_t asn_MBR_RANAP_JoinedMBMSBearerService_IEs_1[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_MemberF_2, + &asn_DEF_RANAP_JoinedMBMSBearerService_IEs_Value, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, diff --git a/src/ranap/RANAP_KeyStatus.c b/src/ranap/RANAP_KeyStatus.c index 5a7c058..52a9eb1 100644 --- a/src/ranap/RANAP_KeyStatus.c +++ b/src/ranap/RANAP_KeyStatus.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_KeyStatus.h> diff --git a/src/ranap/RANAP_L3-Information.c b/src/ranap/RANAP_L3-Information.c index cf9e797..d7bd5ac 100644 --- a/src/ranap/RANAP_L3-Information.c +++ b/src/ranap/RANAP_L3-Information.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_L3-Information.h> diff --git a/src/ranap/RANAP_LA-LIST-Value.c b/src/ranap/RANAP_LA-LIST-Value.c new file mode 100644 index 0000000..b637c2b --- /dev/null +++ b/src/ranap/RANAP_LA-LIST-Value.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-IEs" + * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` + */ + +#include <osmocom/ranap/RANAP_LA-LIST-Value.h> + +static asn_TYPE_member_t asn_MBR_RANAP_LA_LIST_Value_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RANAP_LA_LIST_Value, lAC), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_LAC, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "lAC" + }, + { ATF_NOFLAGS, 0, offsetof(struct RANAP_LA_LIST_Value, listOF_SNAs), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_ListOF_SNAs, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "listOF-SNAs" + }, + { ATF_POINTER, 1, offsetof(struct RANAP_LA_LIST_Value, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_RANAP_LA_LIST_Value_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_RANAP_LA_LIST_Value_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RANAP_LA_LIST_Value_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lAC */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* listOF-SNAs */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_RANAP_LA_LIST_Value_specs_1 = { + sizeof(struct RANAP_LA_LIST_Value), + offsetof(struct RANAP_LA_LIST_Value, _asn_ctx), + asn_MAP_RANAP_LA_LIST_Value_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_RANAP_LA_LIST_Value_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* Start extensions */ + 4 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_RANAP_LA_LIST_Value = { + "RANAP_LA-LIST-Value", + "RANAP_LA-LIST-Value", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_RANAP_LA_LIST_Value_tags_1, + sizeof(asn_DEF_RANAP_LA_LIST_Value_tags_1) + /sizeof(asn_DEF_RANAP_LA_LIST_Value_tags_1[0]), /* 1 */ + asn_DEF_RANAP_LA_LIST_Value_tags_1, /* Same as above */ + sizeof(asn_DEF_RANAP_LA_LIST_Value_tags_1) + /sizeof(asn_DEF_RANAP_LA_LIST_Value_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_RANAP_LA_LIST_Value_1, + 3, /* Elements count */ + &asn_SPC_RANAP_LA_LIST_Value_specs_1 /* Additional specs */ +}; + diff --git a/src/ranap/RANAP_LA-LIST.c b/src/ranap/RANAP_LA-LIST.c index 59793d8..0a5ed27 100644 --- a/src/ranap/RANAP_LA-LIST.c +++ b/src/ranap/RANAP_LA-LIST.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LA-LIST.h> @@ -11,87 +12,11 @@ static asn_per_constraints_t asn_PER_type_RANAP_LA_LIST_constr_1 GCC_NOTUSED = { { APC_CONSTRAINED, 16, -1, 1l, 65536l } /* (SIZE(1..65536)) */, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_MemberA_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct MemberA, lAC), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_LAC, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "lAC" - }, - { ATF_NOFLAGS, 0, offsetof(struct MemberA, listOF_SNAs), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_ListOF_SNAs, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "listOF-SNAs" - }, - { ATF_POINTER, 1, offsetof(struct MemberA, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_MemberA_oms_2[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_MemberA_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MemberA_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* lAC */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* listOF-SNAs */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_MemberA_specs_2 = { - sizeof(struct MemberA), - offsetof(struct MemberA, _asn_ctx), - asn_MAP_MemberA_tag2el_2, - 3, /* Count of tags in the map */ - asn_MAP_MemberA_oms_2, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* Start extensions */ - 4 /* Stop extensions */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_MemberA_2 = { - "SEQUENCE", - "SEQUENCE", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_MemberA_tags_2, - sizeof(asn_DEF_MemberA_tags_2) - /sizeof(asn_DEF_MemberA_tags_2[0]), /* 1 */ - asn_DEF_MemberA_tags_2, /* Same as above */ - sizeof(asn_DEF_MemberA_tags_2) - /sizeof(asn_DEF_MemberA_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_MemberA_2, - 3, /* Elements count */ - &asn_SPC_MemberA_specs_2 /* Additional specs */ -}; - static asn_TYPE_member_t asn_MBR_RANAP_LA_LIST_1[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_MemberA_2, + &asn_DEF_RANAP_LA_LIST_Value, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, diff --git a/src/ranap/RANAP_LABased.c b/src/ranap/RANAP_LABased.c index 4ba1a60..91a804c 100644 --- a/src/ranap/RANAP_LABased.c +++ b/src/ranap/RANAP_LABased.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LABased.h> diff --git a/src/ranap/RANAP_LAC.c b/src/ranap/RANAP_LAC.c index 8d3e6ed..4129db4 100644 --- a/src/ranap/RANAP_LAC.c +++ b/src/ranap/RANAP_LAC.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LAC.h> diff --git a/src/ranap/RANAP_LAI-List.c b/src/ranap/RANAP_LAI-List.c index 4aa08c0..bf03efe 100644 --- a/src/ranap/RANAP_LAI-List.c +++ b/src/ranap/RANAP_LAI-List.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LAI-List.h> diff --git a/src/ranap/RANAP_LAI.c b/src/ranap/RANAP_LAI.c index 8a5aa0a..0dbe5bf 100644 --- a/src/ranap/RANAP_LAI.c +++ b/src/ranap/RANAP_LAI.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LAI.h> diff --git a/src/ranap/RANAP_LAListofIdleModeUEs.c b/src/ranap/RANAP_LAListofIdleModeUEs.c index ff3a43d..b48c882 100644 --- a/src/ranap/RANAP_LAListofIdleModeUEs.c +++ b/src/ranap/RANAP_LAListofIdleModeUEs.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LAListofIdleModeUEs.h> diff --git a/src/ranap/RANAP_LHN-ID.c b/src/ranap/RANAP_LHN-ID.c index c030c96..f735e1a 100644 --- a/src/ranap/RANAP_LHN-ID.c +++ b/src/ranap/RANAP_LHN-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LHN-ID.h> diff --git a/src/ranap/RANAP_LastKnownServiceArea.c b/src/ranap/RANAP_LastKnownServiceArea.c index 00983a2..0d8cf82 100644 --- a/src/ranap/RANAP_LastKnownServiceArea.c +++ b/src/ranap/RANAP_LastKnownServiceArea.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LastKnownServiceArea.h> diff --git a/src/ranap/RANAP_LastVisitedUTRANCell-Item.c b/src/ranap/RANAP_LastVisitedUTRANCell-Item.c index 5322aaa..a055c42 100644 --- a/src/ranap/RANAP_LastVisitedUTRANCell-Item.c +++ b/src/ranap/RANAP_LastVisitedUTRANCell-Item.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LastVisitedUTRANCell-Item.h> diff --git a/src/ranap/RANAP_LeftMBMSBearerService-IEs-Value.c b/src/ranap/RANAP_LeftMBMSBearerService-IEs-Value.c new file mode 100644 index 0000000..ea07f4a --- /dev/null +++ b/src/ranap/RANAP_LeftMBMSBearerService-IEs-Value.c @@ -0,0 +1,74 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-PDU" + * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` + */ + +#include <osmocom/ranap/RANAP_LeftMBMSBearerService-IEs-Value.h> + +static asn_TYPE_member_t asn_MBR_RANAP_LeftMBMSBearerService_IEs_Value_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RANAP_LeftMBMSBearerService_IEs_Value, tMGI), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_TMGI, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "tMGI" + }, + { ATF_POINTER, 1, offsetof(struct RANAP_LeftMBMSBearerService_IEs_Value, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_ProtocolExtensionContainer, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_RANAP_LeftMBMSBearerService_IEs_Value_oms_1[] = { 1 }; +static const ber_tlv_tag_t asn_DEF_RANAP_LeftMBMSBearerService_IEs_Value_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RANAP_LeftMBMSBearerService_IEs_Value_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tMGI */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_RANAP_LeftMBMSBearerService_IEs_Value_specs_1 = { + sizeof(struct RANAP_LeftMBMSBearerService_IEs_Value), + offsetof(struct RANAP_LeftMBMSBearerService_IEs_Value, _asn_ctx), + asn_MAP_RANAP_LeftMBMSBearerService_IEs_Value_tag2el_1, + 2, /* Count of tags in the map */ + asn_MAP_RANAP_LeftMBMSBearerService_IEs_Value_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 1, /* Start extensions */ + 3 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_RANAP_LeftMBMSBearerService_IEs_Value = { + "RANAP_LeftMBMSBearerService-IEs-Value", + "RANAP_LeftMBMSBearerService-IEs-Value", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_RANAP_LeftMBMSBearerService_IEs_Value_tags_1, + sizeof(asn_DEF_RANAP_LeftMBMSBearerService_IEs_Value_tags_1) + /sizeof(asn_DEF_RANAP_LeftMBMSBearerService_IEs_Value_tags_1[0]), /* 1 */ + asn_DEF_RANAP_LeftMBMSBearerService_IEs_Value_tags_1, /* Same as above */ + sizeof(asn_DEF_RANAP_LeftMBMSBearerService_IEs_Value_tags_1) + /sizeof(asn_DEF_RANAP_LeftMBMSBearerService_IEs_Value_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_RANAP_LeftMBMSBearerService_IEs_Value_1, + 2, /* Elements count */ + &asn_SPC_RANAP_LeftMBMSBearerService_IEs_Value_specs_1 /* Additional specs */ +}; + diff --git a/src/ranap/RANAP_LeftMBMSBearerService-IEs.c b/src/ranap/RANAP_LeftMBMSBearerService-IEs.c index b6f00f1..a1795a7 100644 --- a/src/ranap/RANAP_LeftMBMSBearerService-IEs.c +++ b/src/ranap/RANAP_LeftMBMSBearerService-IEs.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LeftMBMSBearerService-IEs.h> @@ -11,77 +12,11 @@ static asn_per_constraints_t asn_PER_type_RANAP_LeftMBMSBearerService_IEs_constr { APC_CONSTRAINED, 7, 7, 1l, 128l } /* (SIZE(1..128)) */, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_MemberK_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct MemberK, tMGI), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_TMGI, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "tMGI" - }, - { ATF_POINTER, 1, offsetof(struct MemberK, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_ProtocolExtensionContainer, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_MemberK_oms_2[] = { 1 }; -static const ber_tlv_tag_t asn_DEF_MemberK_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MemberK_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tMGI */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_MemberK_specs_2 = { - sizeof(struct MemberK), - offsetof(struct MemberK, _asn_ctx), - asn_MAP_MemberK_tag2el_2, - 2, /* Count of tags in the map */ - asn_MAP_MemberK_oms_2, /* Optional members */ - 1, 0, /* Root/Additions */ - 1, /* Start extensions */ - 3 /* Stop extensions */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_MemberK_2 = { - "SEQUENCE", - "SEQUENCE", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_MemberK_tags_2, - sizeof(asn_DEF_MemberK_tags_2) - /sizeof(asn_DEF_MemberK_tags_2[0]), /* 1 */ - asn_DEF_MemberK_tags_2, /* Same as above */ - sizeof(asn_DEF_MemberK_tags_2) - /sizeof(asn_DEF_MemberK_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_MemberK_2, - 2, /* Elements count */ - &asn_SPC_MemberK_specs_2 /* Additional specs */ -}; - static asn_TYPE_member_t asn_MBR_RANAP_LeftMBMSBearerService_IEs_1[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_MemberK_2, + &asn_DEF_RANAP_LeftMBMSBearerService_IEs_Value, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, diff --git a/src/ranap/RANAP_Links-to-log.c b/src/ranap/RANAP_Links-to-log.c index a02d7be..4b13e14 100644 --- a/src/ranap/RANAP_Links-to-log.c +++ b/src/ranap/RANAP_Links-to-log.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Links-to-log.h> diff --git a/src/ranap/RANAP_ListOF-SNAs.c b/src/ranap/RANAP_ListOF-SNAs.c index cba3a0c..e315136 100644 --- a/src/ranap/RANAP_ListOF-SNAs.c +++ b/src/ranap/RANAP_ListOF-SNAs.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ListOF-SNAs.h> diff --git a/src/ranap/RANAP_ListOfInterfacesToTrace.c b/src/ranap/RANAP_ListOfInterfacesToTrace.c index 76a6a3f..cb02dd0 100644 --- a/src/ranap/RANAP_ListOfInterfacesToTrace.c +++ b/src/ranap/RANAP_ListOfInterfacesToTrace.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ListOfInterfacesToTrace.h> diff --git a/src/ranap/RANAP_LoadValue.c b/src/ranap/RANAP_LoadValue.c index f6449a9..2db4f0f 100644 --- a/src/ranap/RANAP_LoadValue.c +++ b/src/ranap/RANAP_LoadValue.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LoadValue.h> diff --git a/src/ranap/RANAP_LocationRelatedDataFailure.c b/src/ranap/RANAP_LocationRelatedDataFailure.c index 1bdc865..7cdb207 100644 --- a/src/ranap/RANAP_LocationRelatedDataFailure.c +++ b/src/ranap/RANAP_LocationRelatedDataFailure.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LocationRelatedDataFailure.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_locationRelatedDataFailure_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_locationRelatedDataFailure_ies_specs_2 = { - sizeof(struct locationRelatedDataFailure_ies), - offsetof(struct locationRelatedDataFailure_ies, _asn_ctx), + sizeof(struct RANAP_LocationRelatedDataFailure__locationRelatedDataFailure_ies), + offsetof(struct RANAP_LocationRelatedDataFailure__locationRelatedDataFailure_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_LocationRelatedDataRequest.c b/src/ranap/RANAP_LocationRelatedDataRequest.c index 16cbfba..dd9a1a0 100644 --- a/src/ranap/RANAP_LocationRelatedDataRequest.c +++ b/src/ranap/RANAP_LocationRelatedDataRequest.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LocationRelatedDataRequest.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_locationRelatedDataRequest_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_locationRelatedDataRequest_ies_specs_2 = { - sizeof(struct locationRelatedDataRequest_ies), - offsetof(struct locationRelatedDataRequest_ies, _asn_ctx), + sizeof(struct RANAP_LocationRelatedDataRequest__locationRelatedDataRequest_ies), + offsetof(struct RANAP_LocationRelatedDataRequest__locationRelatedDataRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_LocationRelatedDataRequestType.c b/src/ranap/RANAP_LocationRelatedDataRequestType.c index 2bab91d..577df06 100644 --- a/src/ranap/RANAP_LocationRelatedDataRequestType.c +++ b/src/ranap/RANAP_LocationRelatedDataRequestType.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LocationRelatedDataRequestType.h> diff --git a/src/ranap/RANAP_LocationRelatedDataRequestTypeSpecificToGERANIuMode.c b/src/ranap/RANAP_LocationRelatedDataRequestTypeSpecificToGERANIuMode.c index 5ba2c8c..483d7c0 100644 --- a/src/ranap/RANAP_LocationRelatedDataRequestTypeSpecificToGERANIuMode.c +++ b/src/ranap/RANAP_LocationRelatedDataRequestTypeSpecificToGERANIuMode.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LocationRelatedDataRequestTypeSpecificToGERANIuMode.h> diff --git a/src/ranap/RANAP_LocationRelatedDataResponse.c b/src/ranap/RANAP_LocationRelatedDataResponse.c index 71ced5d..62713d1 100644 --- a/src/ranap/RANAP_LocationRelatedDataResponse.c +++ b/src/ranap/RANAP_LocationRelatedDataResponse.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LocationRelatedDataResponse.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_locationRelatedDataResponse_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_locationRelatedDataResponse_ies_specs_2 = { - sizeof(struct locationRelatedDataResponse_ies), - offsetof(struct locationRelatedDataResponse_ies, _asn_ctx), + sizeof(struct RANAP_LocationRelatedDataResponse__locationRelatedDataResponse_ies), + offsetof(struct RANAP_LocationRelatedDataResponse__locationRelatedDataResponse_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_LocationReport.c b/src/ranap/RANAP_LocationReport.c index 0e0d612..d55d42a 100644 --- a/src/ranap/RANAP_LocationReport.c +++ b/src/ranap/RANAP_LocationReport.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LocationReport.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_locationReport_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_locationReport_ies_specs_2 = { - sizeof(struct locationReport_ies), - offsetof(struct locationReport_ies, _asn_ctx), + sizeof(struct RANAP_LocationReport__locationReport_ies), + offsetof(struct RANAP_LocationReport__locationReport_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_LocationReportingControl.c b/src/ranap/RANAP_LocationReportingControl.c index d77be12..61f897b 100644 --- a/src/ranap/RANAP_LocationReportingControl.c +++ b/src/ranap/RANAP_LocationReportingControl.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LocationReportingControl.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_locationReportingControl_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_locationReportingControl_ies_specs_2 = { - sizeof(struct locationReportingControl_ies), - offsetof(struct locationReportingControl_ies, _asn_ctx), + sizeof(struct RANAP_LocationReportingControl__locationReportingControl_ies), + offsetof(struct RANAP_LocationReportingControl__locationReportingControl_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_LocationReportingTransferInformation.c b/src/ranap/RANAP_LocationReportingTransferInformation.c index 3c01ed4..0e9e285 100644 --- a/src/ranap/RANAP_LocationReportingTransferInformation.c +++ b/src/ranap/RANAP_LocationReportingTransferInformation.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LocationReportingTransferInformation.h> diff --git a/src/ranap/RANAP_LoggedMDT.c b/src/ranap/RANAP_LoggedMDT.c index 10bf814..6aeb7e7 100644 --- a/src/ranap/RANAP_LoggedMDT.c +++ b/src/ranap/RANAP_LoggedMDT.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LoggedMDT.h> diff --git a/src/ranap/RANAP_LoggingDuration.c b/src/ranap/RANAP_LoggingDuration.c index beed4bc..342a97b 100644 --- a/src/ranap/RANAP_LoggingDuration.c +++ b/src/ranap/RANAP_LoggingDuration.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LoggingDuration.h> diff --git a/src/ranap/RANAP_LoggingInterval.c b/src/ranap/RANAP_LoggingInterval.c index 9859f4f..8f0ba2d 100644 --- a/src/ranap/RANAP_LoggingInterval.c +++ b/src/ranap/RANAP_LoggingInterval.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_LoggingInterval.h> diff --git a/src/ranap/RANAP_M1Report.c b/src/ranap/RANAP_M1Report.c index 5a489ed..8f551c9 100644 --- a/src/ranap/RANAP_M1Report.c +++ b/src/ranap/RANAP_M1Report.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_M1Report.h> diff --git a/src/ranap/RANAP_M2Report.c b/src/ranap/RANAP_M2Report.c index 1fda992..139f7b5 100644 --- a/src/ranap/RANAP_M2Report.c +++ b/src/ranap/RANAP_M2Report.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_M2Report.h> diff --git a/src/ranap/RANAP_M4-Collection-Parameters.c b/src/ranap/RANAP_M4-Collection-Parameters.c index ea0f0c3..a1065e9 100644 --- a/src/ranap/RANAP_M4-Collection-Parameters.c +++ b/src/ranap/RANAP_M4-Collection-Parameters.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_M4-Collection-Parameters.h> diff --git a/src/ranap/RANAP_M4-Period.c b/src/ranap/RANAP_M4-Period.c index f7ca873..3e15012 100644 --- a/src/ranap/RANAP_M4-Period.c +++ b/src/ranap/RANAP_M4-Period.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_M4-Period.h> diff --git a/src/ranap/RANAP_M4-Threshold.c b/src/ranap/RANAP_M4-Threshold.c index d2c6692..b1c2874 100644 --- a/src/ranap/RANAP_M4-Threshold.c +++ b/src/ranap/RANAP_M4-Threshold.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_M4-Threshold.h> diff --git a/src/ranap/RANAP_M4Report.c b/src/ranap/RANAP_M4Report.c index 9fe44b2..319354c 100644 --- a/src/ranap/RANAP_M4Report.c +++ b/src/ranap/RANAP_M4Report.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_M4Report.h> diff --git a/src/ranap/RANAP_M5-Period.c b/src/ranap/RANAP_M5-Period.c index d841ca0..7f99028 100644 --- a/src/ranap/RANAP_M5-Period.c +++ b/src/ranap/RANAP_M5-Period.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_M5-Period.h> diff --git a/src/ranap/RANAP_M5Report.c b/src/ranap/RANAP_M5Report.c index 1551a35..d283eb4 100644 --- a/src/ranap/RANAP_M5Report.c +++ b/src/ranap/RANAP_M5Report.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_M5Report.h> diff --git a/src/ranap/RANAP_M6-Period.c b/src/ranap/RANAP_M6-Period.c index 0802b47..78e5d9b 100644 --- a/src/ranap/RANAP_M6-Period.c +++ b/src/ranap/RANAP_M6-Period.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_M6-Period.h> diff --git a/src/ranap/RANAP_M6Report.c b/src/ranap/RANAP_M6Report.c index c30b430..3effc10 100644 --- a/src/ranap/RANAP_M6Report.c +++ b/src/ranap/RANAP_M6Report.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_M6Report.h> diff --git a/src/ranap/RANAP_M7-Period.c b/src/ranap/RANAP_M7-Period.c index a488ee3..cc5258c 100644 --- a/src/ranap/RANAP_M7-Period.c +++ b/src/ranap/RANAP_M7-Period.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_M7-Period.h> diff --git a/src/ranap/RANAP_M7Report.c b/src/ranap/RANAP_M7Report.c index fb16de4..85ddc2c 100644 --- a/src/ranap/RANAP_M7Report.c +++ b/src/ranap/RANAP_M7Report.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_M7Report.h> diff --git a/src/ranap/RANAP_MBMS-PTP-RAB-ID.c b/src/ranap/RANAP_MBMS-PTP-RAB-ID.c index 2854c0b..967389c 100644 --- a/src/ranap/RANAP_MBMS-PTP-RAB-ID.c +++ b/src/ranap/RANAP_MBMS-PTP-RAB-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMS-PTP-RAB-ID.h> diff --git a/src/ranap/RANAP_MBMSBearerServiceType.c b/src/ranap/RANAP_MBMSBearerServiceType.c index bed0c28..b180d68 100644 --- a/src/ranap/RANAP_MBMSBearerServiceType.c +++ b/src/ranap/RANAP_MBMSBearerServiceType.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSBearerServiceType.h> diff --git a/src/ranap/RANAP_MBMSCNDe-Registration.c b/src/ranap/RANAP_MBMSCNDe-Registration.c index 0d962b9..2fe916a 100644 --- a/src/ranap/RANAP_MBMSCNDe-Registration.c +++ b/src/ranap/RANAP_MBMSCNDe-Registration.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSCNDe-Registration.h> diff --git a/src/ranap/RANAP_MBMSCNDe-RegistrationRequest.c b/src/ranap/RANAP_MBMSCNDe-RegistrationRequest.c index c1773c3..ebfe331 100644 --- a/src/ranap/RANAP_MBMSCNDe-RegistrationRequest.c +++ b/src/ranap/RANAP_MBMSCNDe-RegistrationRequest.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSCNDe-RegistrationRequest.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_mbmscnDe_RegistrationRequest_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_mbmscnDe_RegistrationRequest_ies_specs_2 = { - sizeof(struct mbmscnDe_RegistrationRequest_ies), - offsetof(struct mbmscnDe_RegistrationRequest_ies, _asn_ctx), + sizeof(struct RANAP_MBMSCNDe_RegistrationRequest__mbmscnDe_RegistrationRequest_ies), + offsetof(struct RANAP_MBMSCNDe_RegistrationRequest__mbmscnDe_RegistrationRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_MBMSCNDe-RegistrationResponse.c b/src/ranap/RANAP_MBMSCNDe-RegistrationResponse.c index 85246a2..0c52cb8 100644 --- a/src/ranap/RANAP_MBMSCNDe-RegistrationResponse.c +++ b/src/ranap/RANAP_MBMSCNDe-RegistrationResponse.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSCNDe-RegistrationResponse.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_mbmscnDe_RegistrationResponse_ies_tags_2[] = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_mbmscnDe_RegistrationResponse_ies_specs_2 = { - sizeof(struct mbmscnDe_RegistrationResponse_ies), - offsetof(struct mbmscnDe_RegistrationResponse_ies, _asn_ctx), + sizeof(struct RANAP_MBMSCNDe_RegistrationResponse__mbmscnDe_RegistrationResponse_ies), + offsetof(struct RANAP_MBMSCNDe_RegistrationResponse__mbmscnDe_RegistrationResponse_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_MBMSCountingInformation.c b/src/ranap/RANAP_MBMSCountingInformation.c index cc92316..4875ca7 100644 --- a/src/ranap/RANAP_MBMSCountingInformation.c +++ b/src/ranap/RANAP_MBMSCountingInformation.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSCountingInformation.h> diff --git a/src/ranap/RANAP_MBMSHCIndicator.c b/src/ranap/RANAP_MBMSHCIndicator.c index ec0f82c..16204b6 100644 --- a/src/ranap/RANAP_MBMSHCIndicator.c +++ b/src/ranap/RANAP_MBMSHCIndicator.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSHCIndicator.h> diff --git a/src/ranap/RANAP_MBMSIPMulticastAddressandAPNRequest.c b/src/ranap/RANAP_MBMSIPMulticastAddressandAPNRequest.c index d052585..a09468c 100644 --- a/src/ranap/RANAP_MBMSIPMulticastAddressandAPNRequest.c +++ b/src/ranap/RANAP_MBMSIPMulticastAddressandAPNRequest.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSIPMulticastAddressandAPNRequest.h> diff --git a/src/ranap/RANAP_MBMSIPMulticastAddressandAPNlist.c b/src/ranap/RANAP_MBMSIPMulticastAddressandAPNlist.c index e46166d..3fb5e68 100644 --- a/src/ranap/RANAP_MBMSIPMulticastAddressandAPNlist.c +++ b/src/ranap/RANAP_MBMSIPMulticastAddressandAPNlist.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSIPMulticastAddressandAPNlist.h> diff --git a/src/ranap/RANAP_MBMSLinkingInformation.c b/src/ranap/RANAP_MBMSLinkingInformation.c index 6e8e8e0..719a569 100644 --- a/src/ranap/RANAP_MBMSLinkingInformation.c +++ b/src/ranap/RANAP_MBMSLinkingInformation.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSLinkingInformation.h> diff --git a/src/ranap/RANAP_MBMSRABEstablishmentIndication.c b/src/ranap/RANAP_MBMSRABEstablishmentIndication.c index e38dc54..4de7c77 100644 --- a/src/ranap/RANAP_MBMSRABEstablishmentIndication.c +++ b/src/ranap/RANAP_MBMSRABEstablishmentIndication.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSRABEstablishmentIndication.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_mbmsrabEstablishmentIndication_ies_tags_2[] = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_mbmsrabEstablishmentIndication_ies_specs_2 = { - sizeof(struct mbmsrabEstablishmentIndication_ies), - offsetof(struct mbmsrabEstablishmentIndication_ies, _asn_ctx), + sizeof(struct RANAP_MBMSRABEstablishmentIndication__mbmsrabEstablishmentIndication_ies), + offsetof(struct RANAP_MBMSRABEstablishmentIndication__mbmsrabEstablishmentIndication_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_MBMSRABRelease.c b/src/ranap/RANAP_MBMSRABRelease.c index 0ad3d80..0645678 100644 --- a/src/ranap/RANAP_MBMSRABRelease.c +++ b/src/ranap/RANAP_MBMSRABRelease.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSRABRelease.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_mbmsrabRelease_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_mbmsrabRelease_ies_specs_2 = { - sizeof(struct mbmsrabRelease_ies), - offsetof(struct mbmsrabRelease_ies, _asn_ctx), + sizeof(struct RANAP_MBMSRABRelease__mbmsrabRelease_ies), + offsetof(struct RANAP_MBMSRABRelease__mbmsrabRelease_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_MBMSRABReleaseFailure.c b/src/ranap/RANAP_MBMSRABReleaseFailure.c index 620c586..9ced550 100644 --- a/src/ranap/RANAP_MBMSRABReleaseFailure.c +++ b/src/ranap/RANAP_MBMSRABReleaseFailure.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSRABReleaseFailure.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_mbmsrabReleaseFailure_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_mbmsrabReleaseFailure_ies_specs_2 = { - sizeof(struct mbmsrabReleaseFailure_ies), - offsetof(struct mbmsrabReleaseFailure_ies, _asn_ctx), + sizeof(struct RANAP_MBMSRABReleaseFailure__mbmsrabReleaseFailure_ies), + offsetof(struct RANAP_MBMSRABReleaseFailure__mbmsrabReleaseFailure_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_MBMSRABReleaseRequest.c b/src/ranap/RANAP_MBMSRABReleaseRequest.c index 07380e1..ba96f96 100644 --- a/src/ranap/RANAP_MBMSRABReleaseRequest.c +++ b/src/ranap/RANAP_MBMSRABReleaseRequest.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSRABReleaseRequest.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_mbmsrabReleaseRequest_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_mbmsrabReleaseRequest_ies_specs_2 = { - sizeof(struct mbmsrabReleaseRequest_ies), - offsetof(struct mbmsrabReleaseRequest_ies, _asn_ctx), + sizeof(struct RANAP_MBMSRABReleaseRequest__mbmsrabReleaseRequest_ies), + offsetof(struct RANAP_MBMSRABReleaseRequest__mbmsrabReleaseRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_MBMSRegistrationFailure.c b/src/ranap/RANAP_MBMSRegistrationFailure.c index 63fb097..75d1401 100644 --- a/src/ranap/RANAP_MBMSRegistrationFailure.c +++ b/src/ranap/RANAP_MBMSRegistrationFailure.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSRegistrationFailure.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_mbmsRegistrationFailure_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_mbmsRegistrationFailure_ies_specs_2 = { - sizeof(struct mbmsRegistrationFailure_ies), - offsetof(struct mbmsRegistrationFailure_ies, _asn_ctx), + sizeof(struct RANAP_MBMSRegistrationFailure__mbmsRegistrationFailure_ies), + offsetof(struct RANAP_MBMSRegistrationFailure__mbmsRegistrationFailure_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_MBMSRegistrationRequest.c b/src/ranap/RANAP_MBMSRegistrationRequest.c index 568668e..a49bad8 100644 --- a/src/ranap/RANAP_MBMSRegistrationRequest.c +++ b/src/ranap/RANAP_MBMSRegistrationRequest.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSRegistrationRequest.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_mbmsRegistrationRequest_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_mbmsRegistrationRequest_ies_specs_2 = { - sizeof(struct mbmsRegistrationRequest_ies), - offsetof(struct mbmsRegistrationRequest_ies, _asn_ctx), + sizeof(struct RANAP_MBMSRegistrationRequest__mbmsRegistrationRequest_ies), + offsetof(struct RANAP_MBMSRegistrationRequest__mbmsRegistrationRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_MBMSRegistrationRequestType.c b/src/ranap/RANAP_MBMSRegistrationRequestType.c index 374698b..ce7dc6a 100644 --- a/src/ranap/RANAP_MBMSRegistrationRequestType.c +++ b/src/ranap/RANAP_MBMSRegistrationRequestType.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSRegistrationRequestType.h> diff --git a/src/ranap/RANAP_MBMSRegistrationResponse.c b/src/ranap/RANAP_MBMSRegistrationResponse.c index 3302a3b..4677dea 100644 --- a/src/ranap/RANAP_MBMSRegistrationResponse.c +++ b/src/ranap/RANAP_MBMSRegistrationResponse.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSRegistrationResponse.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_mbmsRegistrationResponse_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_mbmsRegistrationResponse_ies_specs_2 = { - sizeof(struct mbmsRegistrationResponse_ies), - offsetof(struct mbmsRegistrationResponse_ies, _asn_ctx), + sizeof(struct RANAP_MBMSRegistrationResponse__mbmsRegistrationResponse_ies), + offsetof(struct RANAP_MBMSRegistrationResponse__mbmsRegistrationResponse_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_MBMSServiceArea.c b/src/ranap/RANAP_MBMSServiceArea.c index eb0e118..2c60577 100644 --- a/src/ranap/RANAP_MBMSServiceArea.c +++ b/src/ranap/RANAP_MBMSServiceArea.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSServiceArea.h> diff --git a/src/ranap/RANAP_MBMSSessionDuration.c b/src/ranap/RANAP_MBMSSessionDuration.c index b36c222..518ab67 100644 --- a/src/ranap/RANAP_MBMSSessionDuration.c +++ b/src/ranap/RANAP_MBMSSessionDuration.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSSessionDuration.h> diff --git a/src/ranap/RANAP_MBMSSessionIdentity.c b/src/ranap/RANAP_MBMSSessionIdentity.c index 72070cb..8157929 100644 --- a/src/ranap/RANAP_MBMSSessionIdentity.c +++ b/src/ranap/RANAP_MBMSSessionIdentity.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSSessionIdentity.h> diff --git a/src/ranap/RANAP_MBMSSessionRepetitionNumber.c b/src/ranap/RANAP_MBMSSessionRepetitionNumber.c index a6c6ddf..3919895 100644 --- a/src/ranap/RANAP_MBMSSessionRepetitionNumber.c +++ b/src/ranap/RANAP_MBMSSessionRepetitionNumber.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSSessionRepetitionNumber.h> diff --git a/src/ranap/RANAP_MBMSSessionStart.c b/src/ranap/RANAP_MBMSSessionStart.c index d239766..5562727 100644 --- a/src/ranap/RANAP_MBMSSessionStart.c +++ b/src/ranap/RANAP_MBMSSessionStart.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSSessionStart.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_mbmsSessionStart_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_mbmsSessionStart_ies_specs_2 = { - sizeof(struct mbmsSessionStart_ies), - offsetof(struct mbmsSessionStart_ies, _asn_ctx), + sizeof(struct RANAP_MBMSSessionStart__mbmsSessionStart_ies), + offsetof(struct RANAP_MBMSSessionStart__mbmsSessionStart_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_MBMSSessionStartFailure.c b/src/ranap/RANAP_MBMSSessionStartFailure.c index 3036fea..ecc9666 100644 --- a/src/ranap/RANAP_MBMSSessionStartFailure.c +++ b/src/ranap/RANAP_MBMSSessionStartFailure.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSSessionStartFailure.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_mbmsSessionStartFailure_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_mbmsSessionStartFailure_ies_specs_2 = { - sizeof(struct mbmsSessionStartFailure_ies), - offsetof(struct mbmsSessionStartFailure_ies, _asn_ctx), + sizeof(struct RANAP_MBMSSessionStartFailure__mbmsSessionStartFailure_ies), + offsetof(struct RANAP_MBMSSessionStartFailure__mbmsSessionStartFailure_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_MBMSSessionStartResponse.c b/src/ranap/RANAP_MBMSSessionStartResponse.c index 79c9d74..68fc24f 100644 --- a/src/ranap/RANAP_MBMSSessionStartResponse.c +++ b/src/ranap/RANAP_MBMSSessionStartResponse.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSSessionStartResponse.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_mbmsSessionStartResponse_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_mbmsSessionStartResponse_ies_specs_2 = { - sizeof(struct mbmsSessionStartResponse_ies), - offsetof(struct mbmsSessionStartResponse_ies, _asn_ctx), + sizeof(struct RANAP_MBMSSessionStartResponse__mbmsSessionStartResponse_ies), + offsetof(struct RANAP_MBMSSessionStartResponse__mbmsSessionStartResponse_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_MBMSSessionStop.c b/src/ranap/RANAP_MBMSSessionStop.c index a812966..c65a99c 100644 --- a/src/ranap/RANAP_MBMSSessionStop.c +++ b/src/ranap/RANAP_MBMSSessionStop.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSSessionStop.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_mbmsSessionStop_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_mbmsSessionStop_ies_specs_2 = { - sizeof(struct mbmsSessionStop_ies), - offsetof(struct mbmsSessionStop_ies, _asn_ctx), + sizeof(struct RANAP_MBMSSessionStop__mbmsSessionStop_ies), + offsetof(struct RANAP_MBMSSessionStop__mbmsSessionStop_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_MBMSSessionStopResponse.c b/src/ranap/RANAP_MBMSSessionStopResponse.c index 8ce2bdf..22bf2bf 100644 --- a/src/ranap/RANAP_MBMSSessionStopResponse.c +++ b/src/ranap/RANAP_MBMSSessionStopResponse.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSSessionStopResponse.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_mbmsSessionStopResponse_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_mbmsSessionStopResponse_ies_specs_2 = { - sizeof(struct mbmsSessionStopResponse_ies), - offsetof(struct mbmsSessionStopResponse_ies, _asn_ctx), + sizeof(struct RANAP_MBMSSessionStopResponse__mbmsSessionStopResponse_ies), + offsetof(struct RANAP_MBMSSessionStopResponse__mbmsSessionStopResponse_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_MBMSSessionUpdate.c b/src/ranap/RANAP_MBMSSessionUpdate.c index d246b4a..98b980c 100644 --- a/src/ranap/RANAP_MBMSSessionUpdate.c +++ b/src/ranap/RANAP_MBMSSessionUpdate.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSSessionUpdate.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_mbmsSessionUpdate_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_mbmsSessionUpdate_ies_specs_2 = { - sizeof(struct mbmsSessionUpdate_ies), - offsetof(struct mbmsSessionUpdate_ies, _asn_ctx), + sizeof(struct RANAP_MBMSSessionUpdate__mbmsSessionUpdate_ies), + offsetof(struct RANAP_MBMSSessionUpdate__mbmsSessionUpdate_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_MBMSSessionUpdateFailure.c b/src/ranap/RANAP_MBMSSessionUpdateFailure.c index 5940672..6e824d4 100644 --- a/src/ranap/RANAP_MBMSSessionUpdateFailure.c +++ b/src/ranap/RANAP_MBMSSessionUpdateFailure.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSSessionUpdateFailure.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_mbmsSessionUpdateFailure_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_mbmsSessionUpdateFailure_ies_specs_2 = { - sizeof(struct mbmsSessionUpdateFailure_ies), - offsetof(struct mbmsSessionUpdateFailure_ies, _asn_ctx), + sizeof(struct RANAP_MBMSSessionUpdateFailure__mbmsSessionUpdateFailure_ies), + offsetof(struct RANAP_MBMSSessionUpdateFailure__mbmsSessionUpdateFailure_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_MBMSSessionUpdateResponse.c b/src/ranap/RANAP_MBMSSessionUpdateResponse.c index 5aa7eae..1dffb2c 100644 --- a/src/ranap/RANAP_MBMSSessionUpdateResponse.c +++ b/src/ranap/RANAP_MBMSSessionUpdateResponse.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSSessionUpdateResponse.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_mbmsSessionUpdateResponse_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_mbmsSessionUpdateResponse_ies_specs_2 = { - sizeof(struct mbmsSessionUpdateResponse_ies), - offsetof(struct mbmsSessionUpdateResponse_ies, _asn_ctx), + sizeof(struct RANAP_MBMSSessionUpdateResponse__mbmsSessionUpdateResponse_ies), + offsetof(struct RANAP_MBMSSessionUpdateResponse__mbmsSessionUpdateResponse_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_MBMSSynchronisationInformation.c b/src/ranap/RANAP_MBMSSynchronisationInformation.c index 2296501..7e66b5c 100644 --- a/src/ranap/RANAP_MBMSSynchronisationInformation.c +++ b/src/ranap/RANAP_MBMSSynchronisationInformation.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSSynchronisationInformation.h> diff --git a/src/ranap/RANAP_MBMSUELinkingRequest.c b/src/ranap/RANAP_MBMSUELinkingRequest.c index 157d62b..75010fc 100644 --- a/src/ranap/RANAP_MBMSUELinkingRequest.c +++ b/src/ranap/RANAP_MBMSUELinkingRequest.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSUELinkingRequest.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_mbmsueLinkingRequest_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_mbmsueLinkingRequest_ies_specs_2 = { - sizeof(struct mbmsueLinkingRequest_ies), - offsetof(struct mbmsueLinkingRequest_ies, _asn_ctx), + sizeof(struct RANAP_MBMSUELinkingRequest__mbmsueLinkingRequest_ies), + offsetof(struct RANAP_MBMSUELinkingRequest__mbmsueLinkingRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_MBMSUELinkingResponse.c b/src/ranap/RANAP_MBMSUELinkingResponse.c index 49a8cf1..cf52665 100644 --- a/src/ranap/RANAP_MBMSUELinkingResponse.c +++ b/src/ranap/RANAP_MBMSUELinkingResponse.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MBMSUELinkingResponse.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_mbmsueLinkingResponse_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_mbmsueLinkingResponse_ies_specs_2 = { - sizeof(struct mbmsueLinkingResponse_ies), - offsetof(struct mbmsueLinkingResponse_ies, _asn_ctx), + sizeof(struct RANAP_MBMSUELinkingResponse__mbmsueLinkingResponse_ies), + offsetof(struct RANAP_MBMSUELinkingResponse__mbmsueLinkingResponse_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_MDT-Activation.c b/src/ranap/RANAP_MDT-Activation.c index 7412f7b..bbb27b0 100644 --- a/src/ranap/RANAP_MDT-Activation.c +++ b/src/ranap/RANAP_MDT-Activation.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MDT-Activation.h> diff --git a/src/ranap/RANAP_MDT-Configuration.c b/src/ranap/RANAP_MDT-Configuration.c index 9d532c4..67af615 100644 --- a/src/ranap/RANAP_MDT-Configuration.c +++ b/src/ranap/RANAP_MDT-Configuration.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MDT-Configuration.h> diff --git a/src/ranap/RANAP_MDT-PLMN-List.c b/src/ranap/RANAP_MDT-PLMN-List.c index ef69ec3..ae4d512 100644 --- a/src/ranap/RANAP_MDT-PLMN-List.c +++ b/src/ranap/RANAP_MDT-PLMN-List.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MDT-PLMN-List.h> diff --git a/src/ranap/RANAP_MDT-Report-Parameters.c b/src/ranap/RANAP_MDT-Report-Parameters.c index 0b2b193..e665240 100644 --- a/src/ranap/RANAP_MDT-Report-Parameters.c +++ b/src/ranap/RANAP_MDT-Report-Parameters.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MDT-Report-Parameters.h> diff --git a/src/ranap/RANAP_MDTAreaScope.c b/src/ranap/RANAP_MDTAreaScope.c index c0daddf..cee923a 100644 --- a/src/ranap/RANAP_MDTAreaScope.c +++ b/src/ranap/RANAP_MDTAreaScope.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MDTAreaScope.h> diff --git a/src/ranap/RANAP_MDTMode.c b/src/ranap/RANAP_MDTMode.c index 9ef4883..4ef79e1 100644 --- a/src/ranap/RANAP_MDTMode.c +++ b/src/ranap/RANAP_MDTMode.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MDTMode.h> diff --git a/src/ranap/RANAP_MSISDN.c b/src/ranap/RANAP_MSISDN.c index b0c358d..65d3904 100644 --- a/src/ranap/RANAP_MSISDN.c +++ b/src/ranap/RANAP_MSISDN.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MSISDN.h> diff --git a/src/ranap/RANAP_Management-Based-MDT-Allowed.c b/src/ranap/RANAP_Management-Based-MDT-Allowed.c index a6832a5..a18a4ca 100644 --- a/src/ranap/RANAP_Management-Based-MDT-Allowed.c +++ b/src/ranap/RANAP_Management-Based-MDT-Allowed.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Management-Based-MDT-Allowed.h> diff --git a/src/ranap/RANAP_MaxBitrate.c b/src/ranap/RANAP_MaxBitrate.c index 7b37b4a..ceeea0e 100644 --- a/src/ranap/RANAP_MaxBitrate.c +++ b/src/ranap/RANAP_MaxBitrate.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MaxBitrate.h> diff --git a/src/ranap/RANAP_MaxSDU-Size.c b/src/ranap/RANAP_MaxSDU-Size.c index 963ec54..be2dfad 100644 --- a/src/ranap/RANAP_MaxSDU-Size.c +++ b/src/ranap/RANAP_MaxSDU-Size.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MaxSDU-Size.h> diff --git a/src/ranap/RANAP_MeasBand.c b/src/ranap/RANAP_MeasBand.c index 550c847..669ff41 100644 --- a/src/ranap/RANAP_MeasBand.c +++ b/src/ranap/RANAP_MeasBand.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MeasBand.h> diff --git a/src/ranap/RANAP_MeasurementQuantity.c b/src/ranap/RANAP_MeasurementQuantity.c index b2ed847..826d69e 100644 --- a/src/ranap/RANAP_MeasurementQuantity.c +++ b/src/ranap/RANAP_MeasurementQuantity.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MeasurementQuantity.h> diff --git a/src/ranap/RANAP_MeasurementsToActivate.c b/src/ranap/RANAP_MeasurementsToActivate.c index c44f5a5..792e093 100644 --- a/src/ranap/RANAP_MeasurementsToActivate.c +++ b/src/ranap/RANAP_MeasurementsToActivate.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MeasurementsToActivate.h> diff --git a/src/ranap/RANAP_MessageStructure-Value.c b/src/ranap/RANAP_MessageStructure-Value.c new file mode 100644 index 0000000..bea08a1 --- /dev/null +++ b/src/ranap/RANAP_MessageStructure-Value.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-IEs" + * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` + */ + +#include <osmocom/ranap/RANAP_MessageStructure-Value.h> + +static asn_TYPE_member_t asn_MBR_RANAP_MessageStructure_Value_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RANAP_MessageStructure_Value, iE_ID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_ProtocolIE_ID, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-ID" + }, + { ATF_POINTER, 2, offsetof(struct RANAP_MessageStructure_Value, repetitionNumber), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_RepetitionNumber1, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "repetitionNumber" + }, + { ATF_POINTER, 1, offsetof(struct RANAP_MessageStructure_Value, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_RANAP_MessageStructure_Value_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_RANAP_MessageStructure_Value_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RANAP_MessageStructure_Value_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* iE-ID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* repetitionNumber */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_RANAP_MessageStructure_Value_specs_1 = { + sizeof(struct RANAP_MessageStructure_Value), + offsetof(struct RANAP_MessageStructure_Value, _asn_ctx), + asn_MAP_RANAP_MessageStructure_Value_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_RANAP_MessageStructure_Value_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* Start extensions */ + 4 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_RANAP_MessageStructure_Value = { + "RANAP_MessageStructure-Value", + "RANAP_MessageStructure-Value", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_RANAP_MessageStructure_Value_tags_1, + sizeof(asn_DEF_RANAP_MessageStructure_Value_tags_1) + /sizeof(asn_DEF_RANAP_MessageStructure_Value_tags_1[0]), /* 1 */ + asn_DEF_RANAP_MessageStructure_Value_tags_1, /* Same as above */ + sizeof(asn_DEF_RANAP_MessageStructure_Value_tags_1) + /sizeof(asn_DEF_RANAP_MessageStructure_Value_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_RANAP_MessageStructure_Value_1, + 3, /* Elements count */ + &asn_SPC_RANAP_MessageStructure_Value_specs_1 /* Additional specs */ +}; + diff --git a/src/ranap/RANAP_MessageStructure.c b/src/ranap/RANAP_MessageStructure.c index 92dab9d..802c4c2 100644 --- a/src/ranap/RANAP_MessageStructure.c +++ b/src/ranap/RANAP_MessageStructure.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_MessageStructure.h> @@ -11,87 +12,11 @@ static asn_per_constraints_t asn_PER_type_RANAP_MessageStructure_constr_1 GCC_NO { APC_CONSTRAINED, 8, 8, 1l, 256l } /* (SIZE(1..256)) */, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_MemberL_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct MemberL, iE_ID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_ProtocolIE_ID, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-ID" - }, - { ATF_POINTER, 2, offsetof(struct MemberL, repetitionNumber), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_RepetitionNumber1, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "repetitionNumber" - }, - { ATF_POINTER, 1, offsetof(struct MemberL, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_MemberL_oms_2[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_MemberL_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MemberL_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* iE-ID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* repetitionNumber */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_MemberL_specs_2 = { - sizeof(struct MemberL), - offsetof(struct MemberL, _asn_ctx), - asn_MAP_MemberL_tag2el_2, - 3, /* Count of tags in the map */ - asn_MAP_MemberL_oms_2, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* Start extensions */ - 4 /* Stop extensions */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_MemberL_2 = { - "SEQUENCE", - "SEQUENCE", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_MemberL_tags_2, - sizeof(asn_DEF_MemberL_tags_2) - /sizeof(asn_DEF_MemberL_tags_2[0]), /* 1 */ - asn_DEF_MemberL_tags_2, /* Same as above */ - sizeof(asn_DEF_MemberL_tags_2) - /sizeof(asn_DEF_MemberL_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_MemberL_2, - 3, /* Elements count */ - &asn_SPC_MemberL_specs_2 /* Additional specs */ -}; - static asn_TYPE_member_t asn_MBR_RANAP_MessageStructure_1[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_MemberL_2, + &asn_DEF_RANAP_MessageStructure_Value, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, diff --git a/src/ranap/RANAP_NAS-PDU.c b/src/ranap/RANAP_NAS-PDU.c index cb0d5f9..bf48a98 100644 --- a/src/ranap/RANAP_NAS-PDU.c +++ b/src/ranap/RANAP_NAS-PDU.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_NAS-PDU.h> diff --git a/src/ranap/RANAP_NAS-SequenceNumber.c b/src/ranap/RANAP_NAS-SequenceNumber.c index a5b77e0..c6a437c 100644 --- a/src/ranap/RANAP_NAS-SequenceNumber.c +++ b/src/ranap/RANAP_NAS-SequenceNumber.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_NAS-SequenceNumber.h> diff --git a/src/ranap/RANAP_NAS-SynchronisationIndicator.c b/src/ranap/RANAP_NAS-SynchronisationIndicator.c index 57b5074..1e6df0d 100644 --- a/src/ranap/RANAP_NAS-SynchronisationIndicator.c +++ b/src/ranap/RANAP_NAS-SynchronisationIndicator.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_NAS-SynchronisationIndicator.h> diff --git a/src/ranap/RANAP_NRTLoadInformationValue.c b/src/ranap/RANAP_NRTLoadInformationValue.c index 5a53d24..733799d 100644 --- a/src/ranap/RANAP_NRTLoadInformationValue.c +++ b/src/ranap/RANAP_NRTLoadInformationValue.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_NRTLoadInformationValue.h> diff --git a/src/ranap/RANAP_NewBSS-To-OldBSS-Information.c b/src/ranap/RANAP_NewBSS-To-OldBSS-Information.c index ad93f02..9987375 100644 --- a/src/ranap/RANAP_NewBSS-To-OldBSS-Information.c +++ b/src/ranap/RANAP_NewBSS-To-OldBSS-Information.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_NewBSS-To-OldBSS-Information.h> diff --git a/src/ranap/RANAP_NewRAListofIdleModeUEs.c b/src/ranap/RANAP_NewRAListofIdleModeUEs.c index 03bba51..c0b7627 100644 --- a/src/ranap/RANAP_NewRAListofIdleModeUEs.c +++ b/src/ranap/RANAP_NewRAListofIdleModeUEs.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_NewRAListofIdleModeUEs.h> diff --git a/src/ranap/RANAP_NonSearchingIndication.c b/src/ranap/RANAP_NonSearchingIndication.c index 18d6015..279f11a 100644 --- a/src/ranap/RANAP_NonSearchingIndication.c +++ b/src/ranap/RANAP_NonSearchingIndication.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_NonSearchingIndication.h> diff --git a/src/ranap/RANAP_NotEmptyRAListofIdleModeUEs.c b/src/ranap/RANAP_NotEmptyRAListofIdleModeUEs.c index 13803f3..75f0f54 100644 --- a/src/ranap/RANAP_NotEmptyRAListofIdleModeUEs.c +++ b/src/ranap/RANAP_NotEmptyRAListofIdleModeUEs.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_NotEmptyRAListofIdleModeUEs.h> diff --git a/src/ranap/RANAP_NumberOfIuInstances.c b/src/ranap/RANAP_NumberOfIuInstances.c index 08af647..324646c 100644 --- a/src/ranap/RANAP_NumberOfIuInstances.c +++ b/src/ranap/RANAP_NumberOfIuInstances.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_NumberOfIuInstances.h> diff --git a/src/ranap/RANAP_NumberOfSteps.c b/src/ranap/RANAP_NumberOfSteps.c index 7265264..441373a 100644 --- a/src/ranap/RANAP_NumberOfSteps.c +++ b/src/ranap/RANAP_NumberOfSteps.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_NumberOfSteps.h> diff --git a/src/ranap/RANAP_OMC-ID.c b/src/ranap/RANAP_OMC-ID.c index a389129..3ffc026 100644 --- a/src/ranap/RANAP_OMC-ID.c +++ b/src/ranap/RANAP_OMC-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_OMC-ID.h> diff --git a/src/ranap/RANAP_Offload-RAB-Parameters-APN.c b/src/ranap/RANAP_Offload-RAB-Parameters-APN.c index 46d9e96..f4543c6 100644 --- a/src/ranap/RANAP_Offload-RAB-Parameters-APN.c +++ b/src/ranap/RANAP_Offload-RAB-Parameters-APN.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Offload-RAB-Parameters-APN.h> diff --git a/src/ranap/RANAP_Offload-RAB-Parameters-ChargingCharacteristics.c b/src/ranap/RANAP_Offload-RAB-Parameters-ChargingCharacteristics.c index 7708d5f..882af47 100644 --- a/src/ranap/RANAP_Offload-RAB-Parameters-ChargingCharacteristics.c +++ b/src/ranap/RANAP_Offload-RAB-Parameters-ChargingCharacteristics.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Offload-RAB-Parameters-ChargingCharacteristics.h> diff --git a/src/ranap/RANAP_Offload-RAB-Parameters.c b/src/ranap/RANAP_Offload-RAB-Parameters.c index 73472fc..3abe0d3 100644 --- a/src/ranap/RANAP_Offload-RAB-Parameters.c +++ b/src/ranap/RANAP_Offload-RAB-Parameters.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Offload-RAB-Parameters.h> diff --git a/src/ranap/RANAP_OldBSS-ToNewBSS-Information.c b/src/ranap/RANAP_OldBSS-ToNewBSS-Information.c index 7d9763f..a475f53 100644 --- a/src/ranap/RANAP_OldBSS-ToNewBSS-Information.c +++ b/src/ranap/RANAP_OldBSS-ToNewBSS-Information.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_OldBSS-ToNewBSS-Information.h> diff --git a/src/ranap/RANAP_Out-Of-UTRAN.c b/src/ranap/RANAP_Out-Of-UTRAN.c index 6bd1be4..c9eeac9 100644 --- a/src/ranap/RANAP_Out-Of-UTRAN.c +++ b/src/ranap/RANAP_Out-Of-UTRAN.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Out-Of-UTRAN.h> diff --git a/src/ranap/RANAP_Outcome.c b/src/ranap/RANAP_Outcome.c index 3ad872a..1000578 100644 --- a/src/ranap/RANAP_Outcome.c +++ b/src/ranap/RANAP_Outcome.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Outcome.h> diff --git a/src/ranap/RANAP_Overload.c b/src/ranap/RANAP_Overload.c index b0cc47c..e431798 100644 --- a/src/ranap/RANAP_Overload.c +++ b/src/ranap/RANAP_Overload.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Overload.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_overload_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_overload_ies_specs_2 = { - sizeof(struct overload_ies), - offsetof(struct overload_ies, _asn_ctx), + sizeof(struct RANAP_Overload__overload_ies), + offsetof(struct RANAP_Overload__overload_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_P-TMSI.c b/src/ranap/RANAP_P-TMSI.c index da5be7c..920b7ae 100644 --- a/src/ranap/RANAP_P-TMSI.c +++ b/src/ranap/RANAP_P-TMSI.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_P-TMSI.h> diff --git a/src/ranap/RANAP_PDP-Type-extension.c b/src/ranap/RANAP_PDP-Type-extension.c index 4647ced..052758e 100644 --- a/src/ranap/RANAP_PDP-Type-extension.c +++ b/src/ranap/RANAP_PDP-Type-extension.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PDP-Type-extension.h> diff --git a/src/ranap/RANAP_PDP-Type.c b/src/ranap/RANAP_PDP-Type.c index 03d116e..bdbaf19 100644 --- a/src/ranap/RANAP_PDP-Type.c +++ b/src/ranap/RANAP_PDP-Type.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PDP-Type.h> diff --git a/src/ranap/RANAP_PDP-TypeInformation-extension.c b/src/ranap/RANAP_PDP-TypeInformation-extension.c index 2a63070..42798ec 100644 --- a/src/ranap/RANAP_PDP-TypeInformation-extension.c +++ b/src/ranap/RANAP_PDP-TypeInformation-extension.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PDP-TypeInformation-extension.h> diff --git a/src/ranap/RANAP_PDP-TypeInformation.c b/src/ranap/RANAP_PDP-TypeInformation.c index 8808ec6..86e35c4 100644 --- a/src/ranap/RANAP_PDP-TypeInformation.c +++ b/src/ranap/RANAP_PDP-TypeInformation.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PDP-TypeInformation.h> diff --git a/src/ranap/RANAP_PDUType14FrameSequenceNumber.c b/src/ranap/RANAP_PDUType14FrameSequenceNumber.c index 8f5c3de..44e0551 100644 --- a/src/ranap/RANAP_PDUType14FrameSequenceNumber.c +++ b/src/ranap/RANAP_PDUType14FrameSequenceNumber.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PDUType14FrameSequenceNumber.h> diff --git a/src/ranap/RANAP_PLMNidentity.c b/src/ranap/RANAP_PLMNidentity.c index 0664e9f..41571c6 100644 --- a/src/ranap/RANAP_PLMNidentity.c +++ b/src/ranap/RANAP_PLMNidentity.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PLMNidentity.h> diff --git a/src/ranap/RANAP_PLMNs-in-shared-network-Value.c b/src/ranap/RANAP_PLMNs-in-shared-network-Value.c new file mode 100644 index 0000000..04ccb03 --- /dev/null +++ b/src/ranap/RANAP_PLMNs-in-shared-network-Value.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-IEs" + * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` + */ + +#include <osmocom/ranap/RANAP_PLMNs-in-shared-network-Value.h> + +static asn_TYPE_member_t asn_MBR_RANAP_PLMNs_in_shared_network_Value_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RANAP_PLMNs_in_shared_network_Value, pLMNidentity), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_PLMNidentity, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "pLMNidentity" + }, + { ATF_NOFLAGS, 0, offsetof(struct RANAP_PLMNs_in_shared_network_Value, lA_LIST), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_LA_LIST, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "lA-LIST" + }, + { ATF_POINTER, 1, offsetof(struct RANAP_PLMNs_in_shared_network_Value, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_RANAP_PLMNs_in_shared_network_Value_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_RANAP_PLMNs_in_shared_network_Value_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RANAP_PLMNs_in_shared_network_Value_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pLMNidentity */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* lA-LIST */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_RANAP_PLMNs_in_shared_network_Value_specs_1 = { + sizeof(struct RANAP_PLMNs_in_shared_network_Value), + offsetof(struct RANAP_PLMNs_in_shared_network_Value, _asn_ctx), + asn_MAP_RANAP_PLMNs_in_shared_network_Value_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_RANAP_PLMNs_in_shared_network_Value_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* Start extensions */ + 4 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_RANAP_PLMNs_in_shared_network_Value = { + "RANAP_PLMNs-in-shared-network-Value", + "RANAP_PLMNs-in-shared-network-Value", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_RANAP_PLMNs_in_shared_network_Value_tags_1, + sizeof(asn_DEF_RANAP_PLMNs_in_shared_network_Value_tags_1) + /sizeof(asn_DEF_RANAP_PLMNs_in_shared_network_Value_tags_1[0]), /* 1 */ + asn_DEF_RANAP_PLMNs_in_shared_network_Value_tags_1, /* Same as above */ + sizeof(asn_DEF_RANAP_PLMNs_in_shared_network_Value_tags_1) + /sizeof(asn_DEF_RANAP_PLMNs_in_shared_network_Value_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_RANAP_PLMNs_in_shared_network_Value_1, + 3, /* Elements count */ + &asn_SPC_RANAP_PLMNs_in_shared_network_Value_specs_1 /* Additional specs */ +}; + diff --git a/src/ranap/RANAP_PLMNs-in-shared-network.c b/src/ranap/RANAP_PLMNs-in-shared-network.c index e98d5e2..2c7a174 100644 --- a/src/ranap/RANAP_PLMNs-in-shared-network.c +++ b/src/ranap/RANAP_PLMNs-in-shared-network.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PLMNs-in-shared-network.h> @@ -11,87 +12,11 @@ static asn_per_constraints_t asn_PER_type_RANAP_PLMNs_in_shared_network_constr_1 { APC_CONSTRAINED, 5, 5, 1l, 32l } /* (SIZE(1..32)) */, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_MemberM_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct MemberM, pLMNidentity), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_PLMNidentity, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "pLMNidentity" - }, - { ATF_NOFLAGS, 0, offsetof(struct MemberM, lA_LIST), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_LA_LIST, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "lA-LIST" - }, - { ATF_POINTER, 1, offsetof(struct MemberM, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_MemberM_oms_2[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_MemberM_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MemberM_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pLMNidentity */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* lA-LIST */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_MemberM_specs_2 = { - sizeof(struct MemberM), - offsetof(struct MemberM, _asn_ctx), - asn_MAP_MemberM_tag2el_2, - 3, /* Count of tags in the map */ - asn_MAP_MemberM_oms_2, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* Start extensions */ - 4 /* Stop extensions */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_MemberM_2 = { - "SEQUENCE", - "SEQUENCE", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_MemberM_tags_2, - sizeof(asn_DEF_MemberM_tags_2) - /sizeof(asn_DEF_MemberM_tags_2[0]), /* 1 */ - asn_DEF_MemberM_tags_2, /* Same as above */ - sizeof(asn_DEF_MemberM_tags_2) - /sizeof(asn_DEF_MemberM_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_MemberM_2, - 3, /* Elements count */ - &asn_SPC_MemberM_specs_2 /* Additional specs */ -}; - static asn_TYPE_member_t asn_MBR_RANAP_PLMNs_in_shared_network_1[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_MemberM_2, + &asn_DEF_RANAP_PLMNs_in_shared_network_Value, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, diff --git a/src/ranap/RANAP_Paging.c b/src/ranap/RANAP_Paging.c index 18d232c..623964b 100644 --- a/src/ranap/RANAP_Paging.c +++ b/src/ranap/RANAP_Paging.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Paging.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_paging_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_paging_ies_specs_2 = { - sizeof(struct paging_ies), - offsetof(struct paging_ies, _asn_ctx), + sizeof(struct RANAP_Paging__paging_ies), + offsetof(struct RANAP_Paging__paging_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_PagingAreaID.c b/src/ranap/RANAP_PagingAreaID.c index 84467f4..e789d63 100644 --- a/src/ranap/RANAP_PagingAreaID.c +++ b/src/ranap/RANAP_PagingAreaID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PagingAreaID.h> diff --git a/src/ranap/RANAP_PagingCause.c b/src/ranap/RANAP_PagingCause.c index 9006147..40e6ee3 100644 --- a/src/ranap/RANAP_PagingCause.c +++ b/src/ranap/RANAP_PagingCause.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PagingCause.h> diff --git a/src/ranap/RANAP_PeriodicLocationInfo.c b/src/ranap/RANAP_PeriodicLocationInfo.c index 86ca3cd..3ef3821 100644 --- a/src/ranap/RANAP_PeriodicLocationInfo.c +++ b/src/ranap/RANAP_PeriodicLocationInfo.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PeriodicLocationInfo.h> diff --git a/src/ranap/RANAP_PeriodicReportingIndicator.c b/src/ranap/RANAP_PeriodicReportingIndicator.c index 9b31305..43a4356 100644 --- a/src/ranap/RANAP_PeriodicReportingIndicator.c +++ b/src/ranap/RANAP_PeriodicReportingIndicator.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PeriodicReportingIndicator.h> diff --git a/src/ranap/RANAP_PermanentNAS-UE-ID.c b/src/ranap/RANAP_PermanentNAS-UE-ID.c index 87e22fa..945c228 100644 --- a/src/ranap/RANAP_PermanentNAS-UE-ID.c +++ b/src/ranap/RANAP_PermanentNAS-UE-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PermanentNAS-UE-ID.h> diff --git a/src/ranap/RANAP_PermittedEncryptionAlgorithms.c b/src/ranap/RANAP_PermittedEncryptionAlgorithms.c index fe7d11d..bf0bb93 100644 --- a/src/ranap/RANAP_PermittedEncryptionAlgorithms.c +++ b/src/ranap/RANAP_PermittedEncryptionAlgorithms.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PermittedEncryptionAlgorithms.h> diff --git a/src/ranap/RANAP_PermittedIntegrityProtectionAlgorithms.c b/src/ranap/RANAP_PermittedIntegrityProtectionAlgorithms.c index 5ab24af..6c64d48 100644 --- a/src/ranap/RANAP_PermittedIntegrityProtectionAlgorithms.c +++ b/src/ranap/RANAP_PermittedIntegrityProtectionAlgorithms.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PermittedIntegrityProtectionAlgorithms.h> diff --git a/src/ranap/RANAP_Port-Number.c b/src/ranap/RANAP_Port-Number.c index e68b262..6ac137d 100644 --- a/src/ranap/RANAP_Port-Number.c +++ b/src/ranap/RANAP_Port-Number.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Port-Number.h> diff --git a/src/ranap/RANAP_PositionData.c b/src/ranap/RANAP_PositionData.c index c96d2ed..67cd743 100644 --- a/src/ranap/RANAP_PositionData.c +++ b/src/ranap/RANAP_PositionData.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PositionData.h> diff --git a/src/ranap/RANAP_PositionDataSpecificToGERANIuMode.c b/src/ranap/RANAP_PositionDataSpecificToGERANIuMode.c index 6338fa4..8fba268 100644 --- a/src/ranap/RANAP_PositionDataSpecificToGERANIuMode.c +++ b/src/ranap/RANAP_PositionDataSpecificToGERANIuMode.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PositionDataSpecificToGERANIuMode.h> diff --git a/src/ranap/RANAP_PositioningDataDiscriminator.c b/src/ranap/RANAP_PositioningDataDiscriminator.c index 5892f08..b94ebe9 100644 --- a/src/ranap/RANAP_PositioningDataDiscriminator.c +++ b/src/ranap/RANAP_PositioningDataDiscriminator.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PositioningDataDiscriminator.h> diff --git a/src/ranap/RANAP_PositioningDataSet.c b/src/ranap/RANAP_PositioningDataSet.c index c978f1f..89bb544 100644 --- a/src/ranap/RANAP_PositioningDataSet.c +++ b/src/ranap/RANAP_PositioningDataSet.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PositioningDataSet.h> diff --git a/src/ranap/RANAP_PositioningMethodAndUsage.c b/src/ranap/RANAP_PositioningMethodAndUsage.c index 4b6a2f2..91a9493 100644 --- a/src/ranap/RANAP_PositioningMethodAndUsage.c +++ b/src/ranap/RANAP_PositioningMethodAndUsage.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PositioningMethodAndUsage.h> diff --git a/src/ranap/RANAP_PositioningPriority.c b/src/ranap/RANAP_PositioningPriority.c index 547e4f4..3a3ebbb 100644 --- a/src/ranap/RANAP_PositioningPriority.c +++ b/src/ranap/RANAP_PositioningPriority.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PositioningPriority.h> diff --git a/src/ranap/RANAP_Pre-emptionCapability.c b/src/ranap/RANAP_Pre-emptionCapability.c index 0c4df99..7351b1e 100644 --- a/src/ranap/RANAP_Pre-emptionCapability.c +++ b/src/ranap/RANAP_Pre-emptionCapability.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Pre-emptionCapability.h> diff --git a/src/ranap/RANAP_Pre-emptionVulnerability.c b/src/ranap/RANAP_Pre-emptionVulnerability.c index 3b1fb1f..ccfafcc 100644 --- a/src/ranap/RANAP_Pre-emptionVulnerability.c +++ b/src/ranap/RANAP_Pre-emptionVulnerability.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Pre-emptionVulnerability.h> diff --git a/src/ranap/RANAP_Presence.c b/src/ranap/RANAP_Presence.c index 5e8bf00..4829c59 100644 --- a/src/ranap/RANAP_Presence.c +++ b/src/ranap/RANAP_Presence.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-CommonDataTypes" * found in "../../asn1/ranap/RANAP-CommonDataTypes.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Presence.h> diff --git a/src/ranap/RANAP_Priority-Class-Indicator.c b/src/ranap/RANAP_Priority-Class-Indicator.c index ad02157..8d7b1ad 100644 --- a/src/ranap/RANAP_Priority-Class-Indicator.c +++ b/src/ranap/RANAP_Priority-Class-Indicator.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Priority-Class-Indicator.h> diff --git a/src/ranap/RANAP_PriorityLevel.c b/src/ranap/RANAP_PriorityLevel.c index 399298a..fe00bc8 100644 --- a/src/ranap/RANAP_PriorityLevel.c +++ b/src/ranap/RANAP_PriorityLevel.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PriorityLevel.h> diff --git a/src/ranap/RANAP_PrivateIE-ID.c b/src/ranap/RANAP_PrivateIE-ID.c index 1f1bd97..a4489fc 100644 --- a/src/ranap/RANAP_PrivateIE-ID.c +++ b/src/ranap/RANAP_PrivateIE-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-CommonDataTypes" * found in "../../asn1/ranap/RANAP-CommonDataTypes.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PrivateIE-ID.h> diff --git a/src/ranap/RANAP_PrivateMessage.c b/src/ranap/RANAP_PrivateMessage.c index d4c8cb6..d6fec5e 100644 --- a/src/ranap/RANAP_PrivateMessage.c +++ b/src/ranap/RANAP_PrivateMessage.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_PrivateMessage.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_privateMessage_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_privateMessage_ies_specs_2 = { - sizeof(struct privateMessage_ies), - offsetof(struct privateMessage_ies, _asn_ctx), + sizeof(struct RANAP_PrivateMessage__privateMessage_ies), + offsetof(struct RANAP_PrivateMessage__privateMessage_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_ProcedureCode.c b/src/ranap/RANAP_ProcedureCode.c index 8729ba0..6218742 100644 --- a/src/ranap/RANAP_ProcedureCode.c +++ b/src/ranap/RANAP_ProcedureCode.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-CommonDataTypes" * found in "../../asn1/ranap/RANAP-CommonDataTypes.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ProcedureCode.h> diff --git a/src/ranap/RANAP_ProtocolError-IE-ContainerList.c b/src/ranap/RANAP_ProtocolError-IE-ContainerList.c index 8f2c0ab..5e217f7 100644 --- a/src/ranap/RANAP_ProtocolError-IE-ContainerList.c +++ b/src/ranap/RANAP_ProtocolError-IE-ContainerList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ProtocolError-IE-ContainerList.h> diff --git a/src/ranap/RANAP_ProtocolExtensionContainer.c b/src/ranap/RANAP_ProtocolExtensionContainer.c index 55d8e5e..fe27345 100644 --- a/src/ranap/RANAP_ProtocolExtensionContainer.c +++ b/src/ranap/RANAP_ProtocolExtensionContainer.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ProtocolExtensionContainer.h> diff --git a/src/ranap/RANAP_ProtocolExtensionField.c b/src/ranap/RANAP_ProtocolExtensionField.c index 7dc81c0..0da8626 100644 --- a/src/ranap/RANAP_ProtocolExtensionField.c +++ b/src/ranap/RANAP_ProtocolExtensionField.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ProtocolExtensionField.h> diff --git a/src/ranap/RANAP_ProtocolExtensionID.c b/src/ranap/RANAP_ProtocolExtensionID.c index c3fdd0f..959663e 100644 --- a/src/ranap/RANAP_ProtocolExtensionID.c +++ b/src/ranap/RANAP_ProtocolExtensionID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-CommonDataTypes" * found in "../../asn1/ranap/RANAP-CommonDataTypes.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ProtocolExtensionID.h> diff --git a/src/ranap/RANAP_ProtocolIE-Container.c b/src/ranap/RANAP_ProtocolIE-Container.c index 592222d..f86f594 100644 --- a/src/ranap/RANAP_ProtocolIE-Container.c +++ b/src/ranap/RANAP_ProtocolIE-Container.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ProtocolIE-Container.h> diff --git a/src/ranap/RANAP_ProtocolIE-ContainerPair.c b/src/ranap/RANAP_ProtocolIE-ContainerPair.c index ce9cec3..6b01896 100644 --- a/src/ranap/RANAP_ProtocolIE-ContainerPair.c +++ b/src/ranap/RANAP_ProtocolIE-ContainerPair.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ProtocolIE-ContainerPair.h> diff --git a/src/ranap/RANAP_ProtocolIE-FieldPair.c b/src/ranap/RANAP_ProtocolIE-FieldPair.c index 5f1ab9a..7f59d22 100644 --- a/src/ranap/RANAP_ProtocolIE-FieldPair.c +++ b/src/ranap/RANAP_ProtocolIE-FieldPair.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ProtocolIE-FieldPair.h> diff --git a/src/ranap/RANAP_ProtocolIE-ID.c b/src/ranap/RANAP_ProtocolIE-ID.c index b4fadb4..6319ec5 100644 --- a/src/ranap/RANAP_ProtocolIE-ID.c +++ b/src/ranap/RANAP_ProtocolIE-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-CommonDataTypes" * found in "../../asn1/ranap/RANAP-CommonDataTypes.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ProtocolIE-ID.h> diff --git a/src/ranap/RANAP_ProvidedData.c b/src/ranap/RANAP_ProvidedData.c index 067f250..67f57c1 100644 --- a/src/ranap/RANAP_ProvidedData.c +++ b/src/ranap/RANAP_ProvidedData.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ProvidedData.h> diff --git a/src/ranap/RANAP_QueuingAllowed.c b/src/ranap/RANAP_QueuingAllowed.c index 62cf81b..5d6fb12 100644 --- a/src/ranap/RANAP_QueuingAllowed.c +++ b/src/ranap/RANAP_QueuingAllowed.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_QueuingAllowed.h> diff --git a/src/ranap/RANAP_RAB-AssignmentRequest.c b/src/ranap/RANAP_RAB-AssignmentRequest.c index 65882ed..1500f5d 100644 --- a/src/ranap/RANAP_RAB-AssignmentRequest.c +++ b/src/ranap/RANAP_RAB-AssignmentRequest.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-AssignmentRequest.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_AssignmentRequest_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_AssignmentRequest_ies_specs_2 = { - sizeof(struct raB_AssignmentRequest_ies), - offsetof(struct raB_AssignmentRequest_ies, _asn_ctx), + sizeof(struct RANAP_RAB_AssignmentRequest__raB_AssignmentRequest_ies), + offsetof(struct RANAP_RAB_AssignmentRequest__raB_AssignmentRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-AssignmentResponse.c b/src/ranap/RANAP_RAB-AssignmentResponse.c index 1d7914a..197d7da 100644 --- a/src/ranap/RANAP_RAB-AssignmentResponse.c +++ b/src/ranap/RANAP_RAB-AssignmentResponse.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-AssignmentResponse.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_AssignmentResponse_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_AssignmentResponse_ies_specs_2 = { - sizeof(struct raB_AssignmentResponse_ies), - offsetof(struct raB_AssignmentResponse_ies, _asn_ctx), + sizeof(struct RANAP_RAB_AssignmentResponse__raB_AssignmentResponse_ies), + offsetof(struct RANAP_RAB_AssignmentResponse__raB_AssignmentResponse_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-AsymmetryIndicator.c b/src/ranap/RANAP_RAB-AsymmetryIndicator.c index 2828d2d..65f8a05 100644 --- a/src/ranap/RANAP_RAB-AsymmetryIndicator.c +++ b/src/ranap/RANAP_RAB-AsymmetryIndicator.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-AsymmetryIndicator.h> diff --git a/src/ranap/RANAP_RAB-ContextItem-RANAP-RelocInf.c b/src/ranap/RANAP_RAB-ContextItem-RANAP-RelocInf.c index a219ee6..4fad545 100644 --- a/src/ranap/RANAP_RAB-ContextItem-RANAP-RelocInf.c +++ b/src/ranap/RANAP_RAB-ContextItem-RANAP-RelocInf.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-ContextItem-RANAP-RelocInf.h> diff --git a/src/ranap/RANAP_RAB-ContextItem.c b/src/ranap/RANAP_RAB-ContextItem.c index abe94a9..aec15de 100644 --- a/src/ranap/RANAP_RAB-ContextItem.c +++ b/src/ranap/RANAP_RAB-ContextItem.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-ContextItem.h> diff --git a/src/ranap/RANAP_RAB-ContextList-RANAP-RelocInf.c b/src/ranap/RANAP_RAB-ContextList-RANAP-RelocInf.c index c0ec066..6cfa97d 100644 --- a/src/ranap/RANAP_RAB-ContextList-RANAP-RelocInf.c +++ b/src/ranap/RANAP_RAB-ContextList-RANAP-RelocInf.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-ContextList-RANAP-RelocInf.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_ContextList_RANAP_RelocInf_ies_tags_2[] = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_ContextList_RANAP_RelocInf_ies_specs_2 = { - sizeof(struct raB_ContextList_RANAP_RelocInf_ies), - offsetof(struct raB_ContextList_RANAP_RelocInf_ies, _asn_ctx), + sizeof(struct RANAP_RAB_ContextList_RANAP_RelocInf__raB_ContextList_RANAP_RelocInf_ies), + offsetof(struct RANAP_RAB_ContextList_RANAP_RelocInf__raB_ContextList_RANAP_RelocInf_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-ContextList.c b/src/ranap/RANAP_RAB-ContextList.c index 8456109..5192d1c 100644 --- a/src/ranap/RANAP_RAB-ContextList.c +++ b/src/ranap/RANAP_RAB-ContextList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-ContextList.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_ContextList_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_ContextList_ies_specs_2 = { - sizeof(struct raB_ContextList_ies), - offsetof(struct raB_ContextList_ies, _asn_ctx), + sizeof(struct RANAP_RAB_ContextList__raB_ContextList_ies), + offsetof(struct RANAP_RAB_ContextList__raB_ContextList_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-DataForwardingItem-SRNS-CtxReq.c b/src/ranap/RANAP_RAB-DataForwardingItem-SRNS-CtxReq.c index bee0d76..28bd73a 100644 --- a/src/ranap/RANAP_RAB-DataForwardingItem-SRNS-CtxReq.c +++ b/src/ranap/RANAP_RAB-DataForwardingItem-SRNS-CtxReq.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-DataForwardingItem-SRNS-CtxReq.h> diff --git a/src/ranap/RANAP_RAB-DataForwardingItem.c b/src/ranap/RANAP_RAB-DataForwardingItem.c index 2342301..5074bf6 100644 --- a/src/ranap/RANAP_RAB-DataForwardingItem.c +++ b/src/ranap/RANAP_RAB-DataForwardingItem.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-DataForwardingItem.h> diff --git a/src/ranap/RANAP_RAB-DataForwardingList-SRNS-CtxReq.c b/src/ranap/RANAP_RAB-DataForwardingList-SRNS-CtxReq.c index 63eab28..c06ee3f 100644 --- a/src/ranap/RANAP_RAB-DataForwardingList-SRNS-CtxReq.c +++ b/src/ranap/RANAP_RAB-DataForwardingList-SRNS-CtxReq.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-DataForwardingList-SRNS-CtxReq.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_DataForwardingList_SRNS_CtxReq_ies_tags_2 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_DataForwardingList_SRNS_CtxReq_ies_specs_2 = { - sizeof(struct raB_DataForwardingList_SRNS_CtxReq_ies), - offsetof(struct raB_DataForwardingList_SRNS_CtxReq_ies, _asn_ctx), + sizeof(struct RANAP_RAB_DataForwardingList_SRNS_CtxReq__raB_DataForwardingList_SRNS_CtxReq_ies), + offsetof(struct RANAP_RAB_DataForwardingList_SRNS_CtxReq__raB_DataForwardingList_SRNS_CtxReq_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-DataForwardingList.c b/src/ranap/RANAP_RAB-DataForwardingList.c index a80d4cd..47bbb3e 100644 --- a/src/ranap/RANAP_RAB-DataForwardingList.c +++ b/src/ranap/RANAP_RAB-DataForwardingList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-DataForwardingList.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_DataForwardingList_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_DataForwardingList_ies_specs_2 = { - sizeof(struct raB_DataForwardingList_ies), - offsetof(struct raB_DataForwardingList_ies, _asn_ctx), + sizeof(struct RANAP_RAB_DataForwardingList__raB_DataForwardingList_ies), + offsetof(struct RANAP_RAB_DataForwardingList__raB_DataForwardingList_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-DataVolumeReportItem.c b/src/ranap/RANAP_RAB-DataVolumeReportItem.c index bf9a9fa..ffe9027 100644 --- a/src/ranap/RANAP_RAB-DataVolumeReportItem.c +++ b/src/ranap/RANAP_RAB-DataVolumeReportItem.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-DataVolumeReportItem.h> diff --git a/src/ranap/RANAP_RAB-DataVolumeReportList.c b/src/ranap/RANAP_RAB-DataVolumeReportList.c index 7730e59..5358868 100644 --- a/src/ranap/RANAP_RAB-DataVolumeReportList.c +++ b/src/ranap/RANAP_RAB-DataVolumeReportList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-DataVolumeReportList.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_DataVolumeReportList_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_DataVolumeReportList_ies_specs_2 = { - sizeof(struct raB_DataVolumeReportList_ies), - offsetof(struct raB_DataVolumeReportList_ies, _asn_ctx), + sizeof(struct RANAP_RAB_DataVolumeReportList__raB_DataVolumeReportList_ies), + offsetof(struct RANAP_RAB_DataVolumeReportList__raB_DataVolumeReportList_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-DataVolumeReportRequestItem.c b/src/ranap/RANAP_RAB-DataVolumeReportRequestItem.c index a0fcba9..30ee227 100644 --- a/src/ranap/RANAP_RAB-DataVolumeReportRequestItem.c +++ b/src/ranap/RANAP_RAB-DataVolumeReportRequestItem.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-DataVolumeReportRequestItem.h> diff --git a/src/ranap/RANAP_RAB-DataVolumeReportRequestList.c b/src/ranap/RANAP_RAB-DataVolumeReportRequestList.c index 716f578..ba67768 100644 --- a/src/ranap/RANAP_RAB-DataVolumeReportRequestList.c +++ b/src/ranap/RANAP_RAB-DataVolumeReportRequestList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-DataVolumeReportRequestList.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_DataVolumeReportRequestList_ies_tags_2[] (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_DataVolumeReportRequestList_ies_specs_2 = { - sizeof(struct raB_DataVolumeReportRequestList_ies), - offsetof(struct raB_DataVolumeReportRequestList_ies, _asn_ctx), + sizeof(struct RANAP_RAB_DataVolumeReportRequestList__raB_DataVolumeReportRequestList_ies), + offsetof(struct RANAP_RAB_DataVolumeReportRequestList__raB_DataVolumeReportRequestList_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-FailedItem-EnhRelocInfoRes.c b/src/ranap/RANAP_RAB-FailedItem-EnhRelocInfoRes.c index c44192c..3bb6ae5 100644 --- a/src/ranap/RANAP_RAB-FailedItem-EnhRelocInfoRes.c +++ b/src/ranap/RANAP_RAB-FailedItem-EnhRelocInfoRes.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-FailedItem-EnhRelocInfoRes.h> diff --git a/src/ranap/RANAP_RAB-FailedItem.c b/src/ranap/RANAP_RAB-FailedItem.c index db248df..4d1bac1 100644 --- a/src/ranap/RANAP_RAB-FailedItem.c +++ b/src/ranap/RANAP_RAB-FailedItem.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-FailedItem.h> diff --git a/src/ranap/RANAP_RAB-FailedList-EnhRelocInfoRes.c b/src/ranap/RANAP_RAB-FailedList-EnhRelocInfoRes.c index 5fe38a7..4206f93 100644 --- a/src/ranap/RANAP_RAB-FailedList-EnhRelocInfoRes.c +++ b/src/ranap/RANAP_RAB-FailedList-EnhRelocInfoRes.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-FailedList-EnhRelocInfoRes.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_FailedList_EnhRelocInfoRes_ies_tags_2[] = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_FailedList_EnhRelocInfoRes_ies_specs_2 = { - sizeof(struct raB_FailedList_EnhRelocInfoRes_ies), - offsetof(struct raB_FailedList_EnhRelocInfoRes_ies, _asn_ctx), + sizeof(struct RANAP_RAB_FailedList_EnhRelocInfoRes__raB_FailedList_EnhRelocInfoRes_ies), + offsetof(struct RANAP_RAB_FailedList_EnhRelocInfoRes__raB_FailedList_EnhRelocInfoRes_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-FailedList.c b/src/ranap/RANAP_RAB-FailedList.c index 8bea44d..6f57e0e 100644 --- a/src/ranap/RANAP_RAB-FailedList.c +++ b/src/ranap/RANAP_RAB-FailedList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-FailedList.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_FailedList_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_FailedList_ies_specs_2 = { - sizeof(struct raB_FailedList_ies), - offsetof(struct raB_FailedList_ies, _asn_ctx), + sizeof(struct RANAP_RAB_FailedList__raB_FailedList_ies), + offsetof(struct RANAP_RAB_FailedList__raB_FailedList_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-ID.c b/src/ranap/RANAP_RAB-ID.c index 6351672..79a5d59 100644 --- a/src/ranap/RANAP_RAB-ID.c +++ b/src/ranap/RANAP_RAB-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-ID.h> diff --git a/src/ranap/RANAP_RAB-IE-ContainerList.c b/src/ranap/RANAP_RAB-IE-ContainerList.c index 1f3009a..dfd7792 100644 --- a/src/ranap/RANAP_RAB-IE-ContainerList.c +++ b/src/ranap/RANAP_RAB-IE-ContainerList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-IE-ContainerList.h> diff --git a/src/ranap/RANAP_RAB-IE-ContainerPairList.c b/src/ranap/RANAP_RAB-IE-ContainerPairList.c index 02b3182..23b5143 100644 --- a/src/ranap/RANAP_RAB-IE-ContainerPairList.c +++ b/src/ranap/RANAP_RAB-IE-ContainerPairList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-IE-ContainerPairList.h> diff --git a/src/ranap/RANAP_RAB-ModifyItem.c b/src/ranap/RANAP_RAB-ModifyItem.c index b8e6ec4..d138297 100644 --- a/src/ranap/RANAP_RAB-ModifyItem.c +++ b/src/ranap/RANAP_RAB-ModifyItem.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-ModifyItem.h> diff --git a/src/ranap/RANAP_RAB-ModifyList.c b/src/ranap/RANAP_RAB-ModifyList.c index 7312683..80fbbdb 100644 --- a/src/ranap/RANAP_RAB-ModifyList.c +++ b/src/ranap/RANAP_RAB-ModifyList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-ModifyList.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_ModifyList_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_ModifyList_ies_specs_2 = { - sizeof(struct raB_ModifyList_ies), - offsetof(struct raB_ModifyList_ies, _asn_ctx), + sizeof(struct RANAP_RAB_ModifyList__raB_ModifyList_ies), + offsetof(struct RANAP_RAB_ModifyList__raB_ModifyList_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-ModifyRequest.c b/src/ranap/RANAP_RAB-ModifyRequest.c index 49442d6..641669c 100644 --- a/src/ranap/RANAP_RAB-ModifyRequest.c +++ b/src/ranap/RANAP_RAB-ModifyRequest.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-ModifyRequest.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_ModifyRequest_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_ModifyRequest_ies_specs_2 = { - sizeof(struct raB_ModifyRequest_ies), - offsetof(struct raB_ModifyRequest_ies, _asn_ctx), + sizeof(struct RANAP_RAB_ModifyRequest__raB_ModifyRequest_ies), + offsetof(struct RANAP_RAB_ModifyRequest__raB_ModifyRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-Parameter-ExtendedGuaranteedBitrateList.c b/src/ranap/RANAP_RAB-Parameter-ExtendedGuaranteedBitrateList.c index c3bbe2e..95ba1f2 100644 --- a/src/ranap/RANAP_RAB-Parameter-ExtendedGuaranteedBitrateList.c +++ b/src/ranap/RANAP_RAB-Parameter-ExtendedGuaranteedBitrateList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-Parameter-ExtendedGuaranteedBitrateList.h> diff --git a/src/ranap/RANAP_RAB-Parameter-ExtendedMaxBitrateList.c b/src/ranap/RANAP_RAB-Parameter-ExtendedMaxBitrateList.c index 84ce71a..d27db7a 100644 --- a/src/ranap/RANAP_RAB-Parameter-ExtendedMaxBitrateList.c +++ b/src/ranap/RANAP_RAB-Parameter-ExtendedMaxBitrateList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-Parameter-ExtendedMaxBitrateList.h> diff --git a/src/ranap/RANAP_RAB-Parameter-GuaranteedBitrateList.c b/src/ranap/RANAP_RAB-Parameter-GuaranteedBitrateList.c index f674fb5..037f953 100644 --- a/src/ranap/RANAP_RAB-Parameter-GuaranteedBitrateList.c +++ b/src/ranap/RANAP_RAB-Parameter-GuaranteedBitrateList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-Parameter-GuaranteedBitrateList.h> diff --git a/src/ranap/RANAP_RAB-Parameter-MaxBitrateList.c b/src/ranap/RANAP_RAB-Parameter-MaxBitrateList.c index e60048a..e1c8556 100644 --- a/src/ranap/RANAP_RAB-Parameter-MaxBitrateList.c +++ b/src/ranap/RANAP_RAB-Parameter-MaxBitrateList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-Parameter-MaxBitrateList.h> diff --git a/src/ranap/RANAP_RAB-Parameters.c b/src/ranap/RANAP_RAB-Parameters.c index 0a3fb45..08b1861 100644 --- a/src/ranap/RANAP_RAB-Parameters.c +++ b/src/ranap/RANAP_RAB-Parameters.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-Parameters.h> diff --git a/src/ranap/RANAP_RAB-QueuedItem.c b/src/ranap/RANAP_RAB-QueuedItem.c index 75a75d7..8c52341 100644 --- a/src/ranap/RANAP_RAB-QueuedItem.c +++ b/src/ranap/RANAP_RAB-QueuedItem.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-QueuedItem.h> diff --git a/src/ranap/RANAP_RAB-QueuedList.c b/src/ranap/RANAP_RAB-QueuedList.c index c60e7b9..7555852 100644 --- a/src/ranap/RANAP_RAB-QueuedList.c +++ b/src/ranap/RANAP_RAB-QueuedList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-QueuedList.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_QueuedList_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_QueuedList_ies_specs_2 = { - sizeof(struct raB_QueuedList_ies), - offsetof(struct raB_QueuedList_ies, _asn_ctx), + sizeof(struct RANAP_RAB_QueuedList__raB_QueuedList_ies), + offsetof(struct RANAP_RAB_QueuedList__raB_QueuedList_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-ReleaseFailedList.c b/src/ranap/RANAP_RAB-ReleaseFailedList.c index 2652a12..aab4464 100644 --- a/src/ranap/RANAP_RAB-ReleaseFailedList.c +++ b/src/ranap/RANAP_RAB-ReleaseFailedList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <constr_CHOICE.h> diff --git a/src/ranap/RANAP_RAB-ReleaseItem.c b/src/ranap/RANAP_RAB-ReleaseItem.c index ef17012..3e9f6d1 100644 --- a/src/ranap/RANAP_RAB-ReleaseItem.c +++ b/src/ranap/RANAP_RAB-ReleaseItem.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-ReleaseItem.h> diff --git a/src/ranap/RANAP_RAB-ReleaseList.c b/src/ranap/RANAP_RAB-ReleaseList.c index dc88f8d..9f83466 100644 --- a/src/ranap/RANAP_RAB-ReleaseList.c +++ b/src/ranap/RANAP_RAB-ReleaseList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <constr_CHOICE.h> @@ -59,8 +60,8 @@ static const ber_tlv_tag_t asn_DEF_raB_ReleaseList_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_ReleaseList_ies_specs_2 = { - sizeof(struct raB_ReleaseList_ies), - offsetof(struct raB_ReleaseList_ies, _asn_ctx), + sizeof(struct RANAP_RAB_ReleaseList__raB_ReleaseList_ies), + offsetof(struct RANAP_RAB_ReleaseList__raB_ReleaseList_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-ReleaseRequest.c b/src/ranap/RANAP_RAB-ReleaseRequest.c index db6dd26..36e1781 100644 --- a/src/ranap/RANAP_RAB-ReleaseRequest.c +++ b/src/ranap/RANAP_RAB-ReleaseRequest.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-ReleaseRequest.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_ReleaseRequest_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_ReleaseRequest_ies_specs_2 = { - sizeof(struct raB_ReleaseRequest_ies), - offsetof(struct raB_ReleaseRequest_ies, _asn_ctx), + sizeof(struct RANAP_RAB_ReleaseRequest__raB_ReleaseRequest_ies), + offsetof(struct RANAP_RAB_ReleaseRequest__raB_ReleaseRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-ReleasedItem-IuRelComp.c b/src/ranap/RANAP_RAB-ReleasedItem-IuRelComp.c index 9e73bf1..1108cf5 100644 --- a/src/ranap/RANAP_RAB-ReleasedItem-IuRelComp.c +++ b/src/ranap/RANAP_RAB-ReleasedItem-IuRelComp.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-ReleasedItem-IuRelComp.h> diff --git a/src/ranap/RANAP_RAB-ReleasedItem.c b/src/ranap/RANAP_RAB-ReleasedItem.c index 357e7ca..0cf11c4 100644 --- a/src/ranap/RANAP_RAB-ReleasedItem.c +++ b/src/ranap/RANAP_RAB-ReleasedItem.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-ReleasedItem.h> diff --git a/src/ranap/RANAP_RAB-ReleasedList-IuRelComp.c b/src/ranap/RANAP_RAB-ReleasedList-IuRelComp.c index cce2172..2d02f5d 100644 --- a/src/ranap/RANAP_RAB-ReleasedList-IuRelComp.c +++ b/src/ranap/RANAP_RAB-ReleasedList-IuRelComp.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-ReleasedList-IuRelComp.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_ReleasedList_IuRelComp_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_ReleasedList_IuRelComp_ies_specs_2 = { - sizeof(struct raB_ReleasedList_IuRelComp_ies), - offsetof(struct raB_ReleasedList_IuRelComp_ies, _asn_ctx), + sizeof(struct RANAP_RAB_ReleasedList_IuRelComp__raB_ReleasedList_IuRelComp_ies), + offsetof(struct RANAP_RAB_ReleasedList_IuRelComp__raB_ReleasedList_IuRelComp_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-ReleasedList.c b/src/ranap/RANAP_RAB-ReleasedList.c index 5311ece..c07c9cd 100644 --- a/src/ranap/RANAP_RAB-ReleasedList.c +++ b/src/ranap/RANAP_RAB-ReleasedList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-ReleasedList.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_ReleasedList_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_ReleasedList_ies_specs_2 = { - sizeof(struct raB_ReleasedList_ies), - offsetof(struct raB_ReleasedList_ies, _asn_ctx), + sizeof(struct RANAP_RAB_ReleasedList__raB_ReleasedList_ies), + offsetof(struct RANAP_RAB_ReleasedList__raB_ReleasedList_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-RelocationReleaseItem.c b/src/ranap/RANAP_RAB-RelocationReleaseItem.c index 94c199f..85c0e05 100644 --- a/src/ranap/RANAP_RAB-RelocationReleaseItem.c +++ b/src/ranap/RANAP_RAB-RelocationReleaseItem.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-RelocationReleaseItem.h> diff --git a/src/ranap/RANAP_RAB-RelocationReleaseList.c b/src/ranap/RANAP_RAB-RelocationReleaseList.c index 8af6229..b5d1a51 100644 --- a/src/ranap/RANAP_RAB-RelocationReleaseList.c +++ b/src/ranap/RANAP_RAB-RelocationReleaseList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-RelocationReleaseList.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_RelocationReleaseList_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_RelocationReleaseList_ies_specs_2 = { - sizeof(struct raB_RelocationReleaseList_ies), - offsetof(struct raB_RelocationReleaseList_ies, _asn_ctx), + sizeof(struct RANAP_RAB_RelocationReleaseList__raB_RelocationReleaseList_ies), + offsetof(struct RANAP_RAB_RelocationReleaseList__raB_RelocationReleaseList_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-SetupItem-EnhRelocInfoReq.c b/src/ranap/RANAP_RAB-SetupItem-EnhRelocInfoReq.c index 3b0ef4e..468e255 100644 --- a/src/ranap/RANAP_RAB-SetupItem-EnhRelocInfoReq.c +++ b/src/ranap/RANAP_RAB-SetupItem-EnhRelocInfoReq.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-SetupItem-EnhRelocInfoReq.h> diff --git a/src/ranap/RANAP_RAB-SetupItem-EnhRelocInfoRes.c b/src/ranap/RANAP_RAB-SetupItem-EnhRelocInfoRes.c index 473902a..6cf7bed 100644 --- a/src/ranap/RANAP_RAB-SetupItem-EnhRelocInfoRes.c +++ b/src/ranap/RANAP_RAB-SetupItem-EnhRelocInfoRes.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-SetupItem-EnhRelocInfoRes.h> diff --git a/src/ranap/RANAP_RAB-SetupItem-EnhancedRelocCompleteReq.c b/src/ranap/RANAP_RAB-SetupItem-EnhancedRelocCompleteReq.c index acb0766..02d1694 100644 --- a/src/ranap/RANAP_RAB-SetupItem-EnhancedRelocCompleteReq.c +++ b/src/ranap/RANAP_RAB-SetupItem-EnhancedRelocCompleteReq.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-SetupItem-EnhancedRelocCompleteReq.h> diff --git a/src/ranap/RANAP_RAB-SetupItem-EnhancedRelocCompleteRes.c b/src/ranap/RANAP_RAB-SetupItem-EnhancedRelocCompleteRes.c index 3e47cf7..7ab74f0 100644 --- a/src/ranap/RANAP_RAB-SetupItem-EnhancedRelocCompleteRes.c +++ b/src/ranap/RANAP_RAB-SetupItem-EnhancedRelocCompleteRes.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-SetupItem-EnhancedRelocCompleteRes.h> diff --git a/src/ranap/RANAP_RAB-SetupItem-RelocReq.c b/src/ranap/RANAP_RAB-SetupItem-RelocReq.c index ff6c26a..81bf421 100644 --- a/src/ranap/RANAP_RAB-SetupItem-RelocReq.c +++ b/src/ranap/RANAP_RAB-SetupItem-RelocReq.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-SetupItem-RelocReq.h> diff --git a/src/ranap/RANAP_RAB-SetupItem-RelocReqAck.c b/src/ranap/RANAP_RAB-SetupItem-RelocReqAck.c index 2af68cf..2bd687b 100644 --- a/src/ranap/RANAP_RAB-SetupItem-RelocReqAck.c +++ b/src/ranap/RANAP_RAB-SetupItem-RelocReqAck.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-SetupItem-RelocReqAck.h> diff --git a/src/ranap/RANAP_RAB-SetupList-EnhRelocInfoReq.c b/src/ranap/RANAP_RAB-SetupList-EnhRelocInfoReq.c index 8764f0b..c07f741 100644 --- a/src/ranap/RANAP_RAB-SetupList-EnhRelocInfoReq.c +++ b/src/ranap/RANAP_RAB-SetupList-EnhRelocInfoReq.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-SetupList-EnhRelocInfoReq.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_SetupList_EnhRelocInfoReq_ies_tags_2[] = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_SetupList_EnhRelocInfoReq_ies_specs_2 = { - sizeof(struct raB_SetupList_EnhRelocInfoReq_ies), - offsetof(struct raB_SetupList_EnhRelocInfoReq_ies, _asn_ctx), + sizeof(struct RANAP_RAB_SetupList_EnhRelocInfoReq__raB_SetupList_EnhRelocInfoReq_ies), + offsetof(struct RANAP_RAB_SetupList_EnhRelocInfoReq__raB_SetupList_EnhRelocInfoReq_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-SetupList-EnhRelocInfoRes.c b/src/ranap/RANAP_RAB-SetupList-EnhRelocInfoRes.c index 08b3c60..8d0f2d5 100644 --- a/src/ranap/RANAP_RAB-SetupList-EnhRelocInfoRes.c +++ b/src/ranap/RANAP_RAB-SetupList-EnhRelocInfoRes.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-SetupList-EnhRelocInfoRes.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_SetupList_EnhRelocInfoRes_ies_tags_2[] = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_SetupList_EnhRelocInfoRes_ies_specs_2 = { - sizeof(struct raB_SetupList_EnhRelocInfoRes_ies), - offsetof(struct raB_SetupList_EnhRelocInfoRes_ies, _asn_ctx), + sizeof(struct RANAP_RAB_SetupList_EnhRelocInfoRes__raB_SetupList_EnhRelocInfoRes_ies), + offsetof(struct RANAP_RAB_SetupList_EnhRelocInfoRes__raB_SetupList_EnhRelocInfoRes_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-SetupList-EnhancedRelocCompleteReq.c b/src/ranap/RANAP_RAB-SetupList-EnhancedRelocCompleteReq.c index 5668b72..f8a8661 100644 --- a/src/ranap/RANAP_RAB-SetupList-EnhancedRelocCompleteReq.c +++ b/src/ranap/RANAP_RAB-SetupList-EnhancedRelocCompleteReq.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-SetupList-EnhancedRelocCompleteReq.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_SetupList_EnhancedRelocCompleteReq_ies_ta (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_SetupList_EnhancedRelocCompleteReq_ies_specs_2 = { - sizeof(struct raB_SetupList_EnhancedRelocCompleteReq_ies), - offsetof(struct raB_SetupList_EnhancedRelocCompleteReq_ies, _asn_ctx), + sizeof(struct RANAP_RAB_SetupList_EnhancedRelocCompleteReq__raB_SetupList_EnhancedRelocCompleteReq_ies), + offsetof(struct RANAP_RAB_SetupList_EnhancedRelocCompleteReq__raB_SetupList_EnhancedRelocCompleteReq_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-SetupList-EnhancedRelocCompleteRes.c b/src/ranap/RANAP_RAB-SetupList-EnhancedRelocCompleteRes.c index aba4e14..46058f4 100644 --- a/src/ranap/RANAP_RAB-SetupList-EnhancedRelocCompleteRes.c +++ b/src/ranap/RANAP_RAB-SetupList-EnhancedRelocCompleteRes.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-SetupList-EnhancedRelocCompleteRes.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_SetupList_EnhancedRelocCompleteRes_ies_ta (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_SetupList_EnhancedRelocCompleteRes_ies_specs_2 = { - sizeof(struct raB_SetupList_EnhancedRelocCompleteRes_ies), - offsetof(struct raB_SetupList_EnhancedRelocCompleteRes_ies, _asn_ctx), + sizeof(struct RANAP_RAB_SetupList_EnhancedRelocCompleteRes__raB_SetupList_EnhancedRelocCompleteRes_ies), + offsetof(struct RANAP_RAB_SetupList_EnhancedRelocCompleteRes__raB_SetupList_EnhancedRelocCompleteRes_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-SetupList-RelocReq.c b/src/ranap/RANAP_RAB-SetupList-RelocReq.c index 85dc110..fd3ae60 100644 --- a/src/ranap/RANAP_RAB-SetupList-RelocReq.c +++ b/src/ranap/RANAP_RAB-SetupList-RelocReq.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-SetupList-RelocReq.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_SetupList_RelocReq_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_SetupList_RelocReq_ies_specs_2 = { - sizeof(struct raB_SetupList_RelocReq_ies), - offsetof(struct raB_SetupList_RelocReq_ies, _asn_ctx), + sizeof(struct RANAP_RAB_SetupList_RelocReq__raB_SetupList_RelocReq_ies), + offsetof(struct RANAP_RAB_SetupList_RelocReq__raB_SetupList_RelocReq_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-SetupList-RelocReqAck.c b/src/ranap/RANAP_RAB-SetupList-RelocReqAck.c index 181c5fc..79bc736 100644 --- a/src/ranap/RANAP_RAB-SetupList-RelocReqAck.c +++ b/src/ranap/RANAP_RAB-SetupList-RelocReqAck.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-SetupList-RelocReqAck.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_SetupList_RelocReqAck_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_SetupList_RelocReqAck_ies_specs_2 = { - sizeof(struct raB_SetupList_RelocReqAck_ies), - offsetof(struct raB_SetupList_RelocReqAck_ies, _asn_ctx), + sizeof(struct RANAP_RAB_SetupList_RelocReqAck__raB_SetupList_RelocReqAck_ies), + offsetof(struct RANAP_RAB_SetupList_RelocReqAck__raB_SetupList_RelocReqAck_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-SetupOrModifiedItem.c b/src/ranap/RANAP_RAB-SetupOrModifiedItem.c index 940ee71..ce47eeb 100644 --- a/src/ranap/RANAP_RAB-SetupOrModifiedItem.c +++ b/src/ranap/RANAP_RAB-SetupOrModifiedItem.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-SetupOrModifiedItem.h> diff --git a/src/ranap/RANAP_RAB-SetupOrModifiedList.c b/src/ranap/RANAP_RAB-SetupOrModifiedList.c index 1bc52c8..a8a5bf3 100644 --- a/src/ranap/RANAP_RAB-SetupOrModifiedList.c +++ b/src/ranap/RANAP_RAB-SetupOrModifiedList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-SetupOrModifiedList.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_SetupOrModifiedList_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_SetupOrModifiedList_ies_specs_2 = { - sizeof(struct raB_SetupOrModifiedList_ies), - offsetof(struct raB_SetupOrModifiedList_ies, _asn_ctx), + sizeof(struct RANAP_RAB_SetupOrModifiedList__raB_SetupOrModifiedList_ies), + offsetof(struct RANAP_RAB_SetupOrModifiedList__raB_SetupOrModifiedList_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-SetupOrModifyItemFirst.c b/src/ranap/RANAP_RAB-SetupOrModifyItemFirst.c index 172bea3..238ad5f 100644 --- a/src/ranap/RANAP_RAB-SetupOrModifyItemFirst.c +++ b/src/ranap/RANAP_RAB-SetupOrModifyItemFirst.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-SetupOrModifyItemFirst.h> diff --git a/src/ranap/RANAP_RAB-SetupOrModifyItemSecond.c b/src/ranap/RANAP_RAB-SetupOrModifyItemSecond.c index 6f09c00..d26e632 100644 --- a/src/ranap/RANAP_RAB-SetupOrModifyItemSecond.c +++ b/src/ranap/RANAP_RAB-SetupOrModifyItemSecond.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-SetupOrModifyItemSecond.h> diff --git a/src/ranap/RANAP_RAB-SetupOrModifyList.c b/src/ranap/RANAP_RAB-SetupOrModifyList.c index a4aac71..a1cdc9e 100644 --- a/src/ranap/RANAP_RAB-SetupOrModifyList.c +++ b/src/ranap/RANAP_RAB-SetupOrModifyList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <constr_CHOICE.h> diff --git a/src/ranap/RANAP_RAB-SubflowCombinationBitRate.c b/src/ranap/RANAP_RAB-SubflowCombinationBitRate.c index c0c0185..0815297 100644 --- a/src/ranap/RANAP_RAB-SubflowCombinationBitRate.c +++ b/src/ranap/RANAP_RAB-SubflowCombinationBitRate.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-SubflowCombinationBitRate.h> diff --git a/src/ranap/RANAP_RAB-ToBeReleasedItem-EnhancedRelocCompleteRes.c b/src/ranap/RANAP_RAB-ToBeReleasedItem-EnhancedRelocCompleteRes.c index ea67d32..fcc243c 100644 --- a/src/ranap/RANAP_RAB-ToBeReleasedItem-EnhancedRelocCompleteRes.c +++ b/src/ranap/RANAP_RAB-ToBeReleasedItem-EnhancedRelocCompleteRes.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-ToBeReleasedItem-EnhancedRelocCompleteRes.h> diff --git a/src/ranap/RANAP_RAB-ToBeReleasedList-EnhancedRelocCompleteRes.c b/src/ranap/RANAP_RAB-ToBeReleasedList-EnhancedRelocCompleteRes.c index 762ae25..09c8cd4 100644 --- a/src/ranap/RANAP_RAB-ToBeReleasedList-EnhancedRelocCompleteRes.c +++ b/src/ranap/RANAP_RAB-ToBeReleasedList-EnhancedRelocCompleteRes.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-ToBeReleasedList-EnhancedRelocCompleteRes.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raB_ToBeReleasedList_EnhancedRelocCompleteRes (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raB_ToBeReleasedList_EnhancedRelocCompleteRes_ies_specs_2 = { - sizeof(struct raB_ToBeReleasedList_EnhancedRelocCompleteRes_ies), - offsetof(struct raB_ToBeReleasedList_EnhancedRelocCompleteRes_ies, _asn_ctx), + sizeof(struct RANAP_RAB_ToBeReleasedList_EnhancedRelocCompleteRes__raB_ToBeReleasedList_EnhancedRelocCompleteRes_ies), + offsetof(struct RANAP_RAB_ToBeReleasedList_EnhancedRelocCompleteRes__raB_ToBeReleasedList_EnhancedRelocCompleteRes_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAB-TrCH-Mapping.c b/src/ranap/RANAP_RAB-TrCH-Mapping.c index df4fc25..6921d04 100644 --- a/src/ranap/RANAP_RAB-TrCH-Mapping.c +++ b/src/ranap/RANAP_RAB-TrCH-Mapping.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-TrCH-Mapping.h> diff --git a/src/ranap/RANAP_RAB-TrCH-MappingItem.c b/src/ranap/RANAP_RAB-TrCH-MappingItem.c index 97352c0..8a59ca9 100644 --- a/src/ranap/RANAP_RAB-TrCH-MappingItem.c +++ b/src/ranap/RANAP_RAB-TrCH-MappingItem.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAB-TrCH-MappingItem.h> diff --git a/src/ranap/RANAP_RABDataVolumeReport-Value.c b/src/ranap/RANAP_RABDataVolumeReport-Value.c new file mode 100644 index 0000000..d97e937 --- /dev/null +++ b/src/ranap/RANAP_RABDataVolumeReport-Value.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-IEs" + * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` + */ + +#include <osmocom/ranap/RANAP_RABDataVolumeReport-Value.h> + +static asn_TYPE_member_t asn_MBR_RANAP_RABDataVolumeReport_Value_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RANAP_RABDataVolumeReport_Value, dl_UnsuccessfullyTransmittedDataVolume), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_UnsuccessfullyTransmittedDataVolume, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "dl-UnsuccessfullyTransmittedDataVolume" + }, + { ATF_POINTER, 2, offsetof(struct RANAP_RABDataVolumeReport_Value, dataVolumeReference), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_DataVolumeReference, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "dataVolumeReference" + }, + { ATF_POINTER, 1, offsetof(struct RANAP_RABDataVolumeReport_Value, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_RANAP_RABDataVolumeReport_Value_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_RANAP_RABDataVolumeReport_Value_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RANAP_RABDataVolumeReport_Value_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-UnsuccessfullyTransmittedDataVolume */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* dataVolumeReference */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_RANAP_RABDataVolumeReport_Value_specs_1 = { + sizeof(struct RANAP_RABDataVolumeReport_Value), + offsetof(struct RANAP_RABDataVolumeReport_Value, _asn_ctx), + asn_MAP_RANAP_RABDataVolumeReport_Value_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_RANAP_RABDataVolumeReport_Value_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* Start extensions */ + 4 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_RANAP_RABDataVolumeReport_Value = { + "RANAP_RABDataVolumeReport-Value", + "RANAP_RABDataVolumeReport-Value", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_RANAP_RABDataVolumeReport_Value_tags_1, + sizeof(asn_DEF_RANAP_RABDataVolumeReport_Value_tags_1) + /sizeof(asn_DEF_RANAP_RABDataVolumeReport_Value_tags_1[0]), /* 1 */ + asn_DEF_RANAP_RABDataVolumeReport_Value_tags_1, /* Same as above */ + sizeof(asn_DEF_RANAP_RABDataVolumeReport_Value_tags_1) + /sizeof(asn_DEF_RANAP_RABDataVolumeReport_Value_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_RANAP_RABDataVolumeReport_Value_1, + 3, /* Elements count */ + &asn_SPC_RANAP_RABDataVolumeReport_Value_specs_1 /* Additional specs */ +}; + diff --git a/src/ranap/RANAP_RABDataVolumeReport.c b/src/ranap/RANAP_RABDataVolumeReport.c index 6be90da..a44eb9e 100644 --- a/src/ranap/RANAP_RABDataVolumeReport.c +++ b/src/ranap/RANAP_RABDataVolumeReport.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RABDataVolumeReport.h> @@ -11,87 +12,11 @@ static asn_per_constraints_t asn_PER_type_RANAP_RABDataVolumeReport_constr_1 GCC { APC_CONSTRAINED, 1, 1, 1l, 2l } /* (SIZE(1..2)) */, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_MemberN_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct MemberN, dl_UnsuccessfullyTransmittedDataVolume), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_UnsuccessfullyTransmittedDataVolume, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "dl-UnsuccessfullyTransmittedDataVolume" - }, - { ATF_POINTER, 2, offsetof(struct MemberN, dataVolumeReference), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_DataVolumeReference, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "dataVolumeReference" - }, - { ATF_POINTER, 1, offsetof(struct MemberN, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_MemberN_oms_2[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_MemberN_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MemberN_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* dl-UnsuccessfullyTransmittedDataVolume */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* dataVolumeReference */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_MemberN_specs_2 = { - sizeof(struct MemberN), - offsetof(struct MemberN, _asn_ctx), - asn_MAP_MemberN_tag2el_2, - 3, /* Count of tags in the map */ - asn_MAP_MemberN_oms_2, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* Start extensions */ - 4 /* Stop extensions */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_MemberN_2 = { - "SEQUENCE", - "SEQUENCE", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_MemberN_tags_2, - sizeof(asn_DEF_MemberN_tags_2) - /sizeof(asn_DEF_MemberN_tags_2[0]), /* 1 */ - asn_DEF_MemberN_tags_2, /* Same as above */ - sizeof(asn_DEF_MemberN_tags_2) - /sizeof(asn_DEF_MemberN_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_MemberN_2, - 3, /* Elements count */ - &asn_SPC_MemberN_specs_2 /* Additional specs */ -}; - static asn_TYPE_member_t asn_MBR_RANAP_RABDataVolumeReport_1[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_MemberN_2, + &asn_DEF_RANAP_RABDataVolumeReport_Value, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, diff --git a/src/ranap/RANAP_RABParametersList-Value.c b/src/ranap/RANAP_RABParametersList-Value.c new file mode 100644 index 0000000..1489443 --- /dev/null +++ b/src/ranap/RANAP_RABParametersList-Value.c @@ -0,0 +1,104 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-IEs" + * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` + */ + +#include <osmocom/ranap/RANAP_RABParametersList-Value.h> + +static asn_TYPE_member_t asn_MBR_RANAP_RABParametersList_Value_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RANAP_RABParametersList_Value, rab_Id), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_RAB_ID, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "rab-Id" + }, + { ATF_NOFLAGS, 0, offsetof(struct RANAP_RABParametersList_Value, cn_domain), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_CN_DomainIndicator, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "cn-domain" + }, + { ATF_POINTER, 3, offsetof(struct RANAP_RABParametersList_Value, rabDataVolumeReport), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_RABDataVolumeReport, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "rabDataVolumeReport" + }, + { ATF_POINTER, 2, offsetof(struct RANAP_RABParametersList_Value, upInformation), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_UPInformation, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "upInformation" + }, + { ATF_POINTER, 1, offsetof(struct RANAP_RABParametersList_Value, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (4 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_RANAP_RABParametersList_Value_oms_1[] = { 2, 3, 4 }; +static const ber_tlv_tag_t asn_DEF_RANAP_RABParametersList_Value_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RANAP_RABParametersList_Value_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rab-Id */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cn-domain */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* rabDataVolumeReport */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* upInformation */ + { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_RANAP_RABParametersList_Value_specs_1 = { + sizeof(struct RANAP_RABParametersList_Value), + offsetof(struct RANAP_RABParametersList_Value, _asn_ctx), + asn_MAP_RANAP_RABParametersList_Value_tag2el_1, + 5, /* Count of tags in the map */ + asn_MAP_RANAP_RABParametersList_Value_oms_1, /* Optional members */ + 3, 0, /* Root/Additions */ + 4, /* Start extensions */ + 6 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_RANAP_RABParametersList_Value = { + "RANAP_RABParametersList-Value", + "RANAP_RABParametersList-Value", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_RANAP_RABParametersList_Value_tags_1, + sizeof(asn_DEF_RANAP_RABParametersList_Value_tags_1) + /sizeof(asn_DEF_RANAP_RABParametersList_Value_tags_1[0]), /* 1 */ + asn_DEF_RANAP_RABParametersList_Value_tags_1, /* Same as above */ + sizeof(asn_DEF_RANAP_RABParametersList_Value_tags_1) + /sizeof(asn_DEF_RANAP_RABParametersList_Value_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_RANAP_RABParametersList_Value_1, + 5, /* Elements count */ + &asn_SPC_RANAP_RABParametersList_Value_specs_1 /* Additional specs */ +}; + diff --git a/src/ranap/RANAP_RABParametersList.c b/src/ranap/RANAP_RABParametersList.c index 89fe75b..a942a0a 100644 --- a/src/ranap/RANAP_RABParametersList.c +++ b/src/ranap/RANAP_RABParametersList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RABParametersList.h> @@ -11,107 +12,11 @@ static asn_per_constraints_t asn_PER_type_RANAP_RABParametersList_constr_1 GCC_N { APC_CONSTRAINED, 8, 8, 1l, 256l } /* (SIZE(1..256)) */, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_MemberB_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct MemberB, rab_Id), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_RAB_ID, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "rab-Id" - }, - { ATF_NOFLAGS, 0, offsetof(struct MemberB, cn_domain), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_CN_DomainIndicator, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "cn-domain" - }, - { ATF_POINTER, 3, offsetof(struct MemberB, rabDataVolumeReport), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_RABDataVolumeReport, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "rabDataVolumeReport" - }, - { ATF_POINTER, 2, offsetof(struct MemberB, upInformation), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_UPInformation, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "upInformation" - }, - { ATF_POINTER, 1, offsetof(struct MemberB, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (4 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_MemberB_oms_2[] = { 2, 3, 4 }; -static const ber_tlv_tag_t asn_DEF_MemberB_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MemberB_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* rab-Id */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cn-domain */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* rabDataVolumeReport */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* upInformation */ - { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_MemberB_specs_2 = { - sizeof(struct MemberB), - offsetof(struct MemberB, _asn_ctx), - asn_MAP_MemberB_tag2el_2, - 5, /* Count of tags in the map */ - asn_MAP_MemberB_oms_2, /* Optional members */ - 3, 0, /* Root/Additions */ - 4, /* Start extensions */ - 6 /* Stop extensions */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_MemberB_2 = { - "SEQUENCE", - "SEQUENCE", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_MemberB_tags_2, - sizeof(asn_DEF_MemberB_tags_2) - /sizeof(asn_DEF_MemberB_tags_2[0]), /* 1 */ - asn_DEF_MemberB_tags_2, /* Same as above */ - sizeof(asn_DEF_MemberB_tags_2) - /sizeof(asn_DEF_MemberB_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_MemberB_2, - 5, /* Elements count */ - &asn_SPC_MemberB_specs_2 /* Additional specs */ -}; - static asn_TYPE_member_t asn_MBR_RANAP_RABParametersList_1[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_MemberB_2, + &asn_DEF_RANAP_RABParametersList_Value, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, diff --git a/src/ranap/RANAP_RABased.c b/src/ranap/RANAP_RABased.c index 5a85b8f..bfb0541 100644 --- a/src/ranap/RANAP_RABased.c +++ b/src/ranap/RANAP_RABased.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RABased.h> diff --git a/src/ranap/RANAP_RABs-ContextFailedtoTransferItem.c b/src/ranap/RANAP_RABs-ContextFailedtoTransferItem.c index 5381685..786930b 100644 --- a/src/ranap/RANAP_RABs-ContextFailedtoTransferItem.c +++ b/src/ranap/RANAP_RABs-ContextFailedtoTransferItem.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RABs-ContextFailedtoTransferItem.h> diff --git a/src/ranap/RANAP_RABs-ContextFailedtoTransferList.c b/src/ranap/RANAP_RABs-ContextFailedtoTransferList.c index c1c9472..27ea7d1 100644 --- a/src/ranap/RANAP_RABs-ContextFailedtoTransferList.c +++ b/src/ranap/RANAP_RABs-ContextFailedtoTransferList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RABs-ContextFailedtoTransferList.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raBs_ContextFailedtoTransferList_ies_tags_2[] (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raBs_ContextFailedtoTransferList_ies_specs_2 = { - sizeof(struct raBs_ContextFailedtoTransferList_ies), - offsetof(struct raBs_ContextFailedtoTransferList_ies, _asn_ctx), + sizeof(struct RANAP_RABs_ContextFailedtoTransferList__raBs_ContextFailedtoTransferList_ies), + offsetof(struct RANAP_RABs_ContextFailedtoTransferList__raBs_ContextFailedtoTransferList_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RABs-failed-to-reportItem.c b/src/ranap/RANAP_RABs-failed-to-reportItem.c index 6b797c6..970b6cd 100644 --- a/src/ranap/RANAP_RABs-failed-to-reportItem.c +++ b/src/ranap/RANAP_RABs-failed-to-reportItem.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RABs-failed-to-reportItem.h> diff --git a/src/ranap/RANAP_RABs-failed-to-reportList.c b/src/ranap/RANAP_RABs-failed-to-reportList.c index 7d3107e..a9238df 100644 --- a/src/ranap/RANAP_RABs-failed-to-reportList.c +++ b/src/ranap/RANAP_RABs-failed-to-reportList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RABs-failed-to-reportList.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_raBs_failed_to_reportList_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_raBs_failed_to_reportList_ies_specs_2 = { - sizeof(struct raBs_failed_to_reportList_ies), - offsetof(struct raBs_failed_to_reportList_ies, _asn_ctx), + sizeof(struct RANAP_RABs_failed_to_reportList__raBs_failed_to_reportList_ies), + offsetof(struct RANAP_RABs_failed_to_reportList__raBs_failed_to_reportList_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAC.c b/src/ranap/RANAP_RAC.c index 8a4cb02..03d22cc 100644 --- a/src/ranap/RANAP_RAC.c +++ b/src/ranap/RANAP_RAC.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAC.h> diff --git a/src/ranap/RANAP_RAI-List.c b/src/ranap/RANAP_RAI-List.c index a39ae97..73751ff 100644 --- a/src/ranap/RANAP_RAI-List.c +++ b/src/ranap/RANAP_RAI-List.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAI-List.h> diff --git a/src/ranap/RANAP_RAI.c b/src/ranap/RANAP_RAI.c index 58d02f7..b357f51 100644 --- a/src/ranap/RANAP_RAI.c +++ b/src/ranap/RANAP_RAI.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAI.h> diff --git a/src/ranap/RANAP_RAListofIdleModeUEs.c b/src/ranap/RANAP_RAListofIdleModeUEs.c index 23ff016..a74f0c6 100644 --- a/src/ranap/RANAP_RAListofIdleModeUEs.c +++ b/src/ranap/RANAP_RAListofIdleModeUEs.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAListofIdleModeUEs.h> diff --git a/src/ranap/RANAP_RAListwithNoIdleModeUEsAnyMore.c b/src/ranap/RANAP_RAListwithNoIdleModeUEsAnyMore.c index b59401a..0636f4c 100644 --- a/src/ranap/RANAP_RAListwithNoIdleModeUEsAnyMore.c +++ b/src/ranap/RANAP_RAListwithNoIdleModeUEsAnyMore.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAListwithNoIdleModeUEsAnyMore.h> diff --git a/src/ranap/RANAP_RANAP-EnhancedRelocationInformationRequest.c b/src/ranap/RANAP_RANAP-EnhancedRelocationInformationRequest.c index a2b50fe..d2e146d 100644 --- a/src/ranap/RANAP_RANAP-EnhancedRelocationInformationRequest.c +++ b/src/ranap/RANAP_RANAP-EnhancedRelocationInformationRequest.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RANAP-EnhancedRelocationInformationRequest.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_ranaP_EnhancedRelocationInformationRequest_ie (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_ranaP_EnhancedRelocationInformationRequest_ies_specs_2 = { - sizeof(struct ranaP_EnhancedRelocationInformationRequest_ies), - offsetof(struct ranaP_EnhancedRelocationInformationRequest_ies, _asn_ctx), + sizeof(struct RANAP_RANAP_EnhancedRelocationInformationRequest__ranaP_EnhancedRelocationInformationRequest_ies), + offsetof(struct RANAP_RANAP_EnhancedRelocationInformationRequest__ranaP_EnhancedRelocationInformationRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RANAP-EnhancedRelocationInformationResponse.c b/src/ranap/RANAP_RANAP-EnhancedRelocationInformationResponse.c index a92b060..45c53d0 100644 --- a/src/ranap/RANAP_RANAP-EnhancedRelocationInformationResponse.c +++ b/src/ranap/RANAP_RANAP-EnhancedRelocationInformationResponse.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RANAP-EnhancedRelocationInformationResponse.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_ranaP_EnhancedRelocationInformationResponse_i (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_ranaP_EnhancedRelocationInformationResponse_ies_specs_2 = { - sizeof(struct ranaP_EnhancedRelocationInformationResponse_ies), - offsetof(struct ranaP_EnhancedRelocationInformationResponse_ies, _asn_ctx), + sizeof(struct RANAP_RANAP_EnhancedRelocationInformationResponse__ranaP_EnhancedRelocationInformationResponse_ies), + offsetof(struct RANAP_RANAP_EnhancedRelocationInformationResponse__ranaP_EnhancedRelocationInformationResponse_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RANAP-PDU.c b/src/ranap/RANAP_RANAP-PDU.c index 16e3aa7..c9c04f6 100644 --- a/src/ranap/RANAP_RANAP-PDU.c +++ b/src/ranap/RANAP_RANAP-PDU.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RANAP-PDU.h> diff --git a/src/ranap/RANAP_RANAP-RelocationInformation.c b/src/ranap/RANAP_RANAP-RelocationInformation.c index 898222d..9ed5cba 100644 --- a/src/ranap/RANAP_RANAP-RelocationInformation.c +++ b/src/ranap/RANAP_RANAP-RelocationInformation.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RANAP-RelocationInformation.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_ranaP_RelocationInformation_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_ranaP_RelocationInformation_ies_specs_2 = { - sizeof(struct ranaP_RelocationInformation_ies), - offsetof(struct ranaP_RelocationInformation_ies, _asn_ctx), + sizeof(struct RANAP_RANAP_RelocationInformation__ranaP_RelocationInformation_ies), + offsetof(struct RANAP_RANAP_RelocationInformation__ranaP_RelocationInformation_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RAT-Type.c b/src/ranap/RANAP_RAT-Type.c index b507ae9..0bd91fb 100644 --- a/src/ranap/RANAP_RAT-Type.c +++ b/src/ranap/RANAP_RAT-Type.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAT-Type.h> diff --git a/src/ranap/RANAP_RAofIdleModeUEs.c b/src/ranap/RANAP_RAofIdleModeUEs.c index a9a30ef..456d7eb 100644 --- a/src/ranap/RANAP_RAofIdleModeUEs.c +++ b/src/ranap/RANAP_RAofIdleModeUEs.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RAofIdleModeUEs.h> diff --git a/src/ranap/RANAP_RIM-Transfer.c b/src/ranap/RANAP_RIM-Transfer.c index 0a69898..5dec309 100644 --- a/src/ranap/RANAP_RIM-Transfer.c +++ b/src/ranap/RANAP_RIM-Transfer.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RIM-Transfer.h> diff --git a/src/ranap/RANAP_RIMInformation.c b/src/ranap/RANAP_RIMInformation.c index 32f8d8e..95d5c98 100644 --- a/src/ranap/RANAP_RIMInformation.c +++ b/src/ranap/RANAP_RIMInformation.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RIMInformation.h> diff --git a/src/ranap/RANAP_RIMRoutingAddress.c b/src/ranap/RANAP_RIMRoutingAddress.c index bc5908c..5031299 100644 --- a/src/ranap/RANAP_RIMRoutingAddress.c +++ b/src/ranap/RANAP_RIMRoutingAddress.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RIMRoutingAddress.h> diff --git a/src/ranap/RANAP_RNC-ID.c b/src/ranap/RANAP_RNC-ID.c index da7ee36..f8645b0 100644 --- a/src/ranap/RANAP_RNC-ID.c +++ b/src/ranap/RANAP_RNC-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RNC-ID.h> diff --git a/src/ranap/RANAP_RNCTraceInformation.c b/src/ranap/RANAP_RNCTraceInformation.c index fc286ae..19e7c75 100644 --- a/src/ranap/RANAP_RNCTraceInformation.c +++ b/src/ranap/RANAP_RNCTraceInformation.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RNCTraceInformation.h> diff --git a/src/ranap/RANAP_RNSAPRelocationParameters.c b/src/ranap/RANAP_RNSAPRelocationParameters.c index 36f860d..e42259c 100644 --- a/src/ranap/RANAP_RNSAPRelocationParameters.c +++ b/src/ranap/RANAP_RNSAPRelocationParameters.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RNSAPRelocationParameters.h> diff --git a/src/ranap/RANAP_RRC-Container.c b/src/ranap/RANAP_RRC-Container.c index f994c1f..fb5f9fa 100644 --- a/src/ranap/RANAP_RRC-Container.c +++ b/src/ranap/RANAP_RRC-Container.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RRC-Container.h> diff --git a/src/ranap/RANAP_RSRQ-Extension.c b/src/ranap/RANAP_RSRQ-Extension.c index 0cc3591..77b9aa9 100644 --- a/src/ranap/RANAP_RSRQ-Extension.c +++ b/src/ranap/RANAP_RSRQ-Extension.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RSRQ-Extension.h> diff --git a/src/ranap/RANAP_RSRQ-Type.c b/src/ranap/RANAP_RSRQ-Type.c index 592c19b..bb60e3c 100644 --- a/src/ranap/RANAP_RSRQ-Type.c +++ b/src/ranap/RANAP_RSRQ-Type.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RSRQ-Type.h> diff --git a/src/ranap/RANAP_RSRVCC-HO-Indication.c b/src/ranap/RANAP_RSRVCC-HO-Indication.c index 0e6784d..cc7e7ee 100644 --- a/src/ranap/RANAP_RSRVCC-HO-Indication.c +++ b/src/ranap/RANAP_RSRVCC-HO-Indication.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RSRVCC-HO-Indication.h> diff --git a/src/ranap/RANAP_RSRVCC-Information.c b/src/ranap/RANAP_RSRVCC-Information.c index 9993bcd..7d97c54 100644 --- a/src/ranap/RANAP_RSRVCC-Information.c +++ b/src/ranap/RANAP_RSRVCC-Information.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RSRVCC-Information.h> diff --git a/src/ranap/RANAP_RSRVCC-Operation-Possible.c b/src/ranap/RANAP_RSRVCC-Operation-Possible.c index b29659f..efe3f21 100644 --- a/src/ranap/RANAP_RSRVCC-Operation-Possible.c +++ b/src/ranap/RANAP_RSRVCC-Operation-Possible.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RSRVCC-Operation-Possible.h> diff --git a/src/ranap/RANAP_RTLoadValue.c b/src/ranap/RANAP_RTLoadValue.c index 607d645..b7ea70d 100644 --- a/src/ranap/RANAP_RTLoadValue.c +++ b/src/ranap/RANAP_RTLoadValue.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RTLoadValue.h> diff --git a/src/ranap/RANAP_RateControlAllowed.c b/src/ranap/RANAP_RateControlAllowed.c index d6b04d9..6ac778f 100644 --- a/src/ranap/RANAP_RateControlAllowed.c +++ b/src/ranap/RANAP_RateControlAllowed.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RateControlAllowed.h> diff --git a/src/ranap/RANAP_RedirectAttemptFlag.c b/src/ranap/RANAP_RedirectAttemptFlag.c index 0a822ff..c71c7cd 100644 --- a/src/ranap/RANAP_RedirectAttemptFlag.c +++ b/src/ranap/RANAP_RedirectAttemptFlag.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RedirectAttemptFlag.h> diff --git a/src/ranap/RANAP_RedirectionCompleted.c b/src/ranap/RANAP_RedirectionCompleted.c index e3d370a..edd7be8 100644 --- a/src/ranap/RANAP_RedirectionCompleted.c +++ b/src/ranap/RANAP_RedirectionCompleted.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RedirectionCompleted.h> diff --git a/src/ranap/RANAP_RedirectionIndication.c b/src/ranap/RANAP_RedirectionIndication.c index f3f7999..47945ca 100644 --- a/src/ranap/RANAP_RedirectionIndication.c +++ b/src/ranap/RANAP_RedirectionIndication.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RedirectionIndication.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_redirectionIndication_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_redirectionIndication_ies_specs_2 = { - sizeof(struct redirectionIndication_ies), - offsetof(struct redirectionIndication_ies, _asn_ctx), + sizeof(struct RANAP_RedirectionIndication__redirectionIndication_ies), + offsetof(struct RANAP_RedirectionIndication__redirectionIndication_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RejectCauseValue.c b/src/ranap/RANAP_RejectCauseValue.c index a2c23be..8344325 100644 --- a/src/ranap/RANAP_RejectCauseValue.c +++ b/src/ranap/RANAP_RejectCauseValue.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RejectCauseValue.h> diff --git a/src/ranap/RANAP_RelocationCancel.c b/src/ranap/RANAP_RelocationCancel.c index 974d023..99eaeb1 100644 --- a/src/ranap/RANAP_RelocationCancel.c +++ b/src/ranap/RANAP_RelocationCancel.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RelocationCancel.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_relocationCancel_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_relocationCancel_ies_specs_2 = { - sizeof(struct relocationCancel_ies), - offsetof(struct relocationCancel_ies, _asn_ctx), + sizeof(struct RANAP_RelocationCancel__relocationCancel_ies), + offsetof(struct RANAP_RelocationCancel__relocationCancel_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RelocationCancelAcknowledge.c b/src/ranap/RANAP_RelocationCancelAcknowledge.c index 9df08cf..5b43be6 100644 --- a/src/ranap/RANAP_RelocationCancelAcknowledge.c +++ b/src/ranap/RANAP_RelocationCancelAcknowledge.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RelocationCancelAcknowledge.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_relocationCancelAcknowledge_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_relocationCancelAcknowledge_ies_specs_2 = { - sizeof(struct relocationCancelAcknowledge_ies), - offsetof(struct relocationCancelAcknowledge_ies, _asn_ctx), + sizeof(struct RANAP_RelocationCancelAcknowledge__relocationCancelAcknowledge_ies), + offsetof(struct RANAP_RelocationCancelAcknowledge__relocationCancelAcknowledge_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RelocationCommand.c b/src/ranap/RANAP_RelocationCommand.c index 69d0d02..2c0fccb 100644 --- a/src/ranap/RANAP_RelocationCommand.c +++ b/src/ranap/RANAP_RelocationCommand.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RelocationCommand.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_relocationCommand_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_relocationCommand_ies_specs_2 = { - sizeof(struct relocationCommand_ies), - offsetof(struct relocationCommand_ies, _asn_ctx), + sizeof(struct RANAP_RelocationCommand__relocationCommand_ies), + offsetof(struct RANAP_RelocationCommand__relocationCommand_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RelocationComplete.c b/src/ranap/RANAP_RelocationComplete.c index a854c0f..2669e42 100644 --- a/src/ranap/RANAP_RelocationComplete.c +++ b/src/ranap/RANAP_RelocationComplete.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RelocationComplete.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_relocationComplete_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_relocationComplete_ies_specs_2 = { - sizeof(struct relocationComplete_ies), - offsetof(struct relocationComplete_ies, _asn_ctx), + sizeof(struct RANAP_RelocationComplete__relocationComplete_ies), + offsetof(struct RANAP_RelocationComplete__relocationComplete_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RelocationDetect.c b/src/ranap/RANAP_RelocationDetect.c index 0c51fd7..edc9abb 100644 --- a/src/ranap/RANAP_RelocationDetect.c +++ b/src/ranap/RANAP_RelocationDetect.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RelocationDetect.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_relocationDetect_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_relocationDetect_ies_specs_2 = { - sizeof(struct relocationDetect_ies), - offsetof(struct relocationDetect_ies, _asn_ctx), + sizeof(struct RANAP_RelocationDetect__relocationDetect_ies), + offsetof(struct RANAP_RelocationDetect__relocationDetect_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RelocationFailure.c b/src/ranap/RANAP_RelocationFailure.c index 7bed97e..4973e18 100644 --- a/src/ranap/RANAP_RelocationFailure.c +++ b/src/ranap/RANAP_RelocationFailure.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RelocationFailure.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_relocationFailure_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_relocationFailure_ies_specs_2 = { - sizeof(struct relocationFailure_ies), - offsetof(struct relocationFailure_ies, _asn_ctx), + sizeof(struct RANAP_RelocationFailure__relocationFailure_ies), + offsetof(struct RANAP_RelocationFailure__relocationFailure_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RelocationPreparationFailure.c b/src/ranap/RANAP_RelocationPreparationFailure.c index 17431ab..b50273d 100644 --- a/src/ranap/RANAP_RelocationPreparationFailure.c +++ b/src/ranap/RANAP_RelocationPreparationFailure.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RelocationPreparationFailure.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_relocationPreparationFailure_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_relocationPreparationFailure_ies_specs_2 = { - sizeof(struct relocationPreparationFailure_ies), - offsetof(struct relocationPreparationFailure_ies, _asn_ctx), + sizeof(struct RANAP_RelocationPreparationFailure__relocationPreparationFailure_ies), + offsetof(struct RANAP_RelocationPreparationFailure__relocationPreparationFailure_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RelocationRequest.c b/src/ranap/RANAP_RelocationRequest.c index 2218e44..5085273 100644 --- a/src/ranap/RANAP_RelocationRequest.c +++ b/src/ranap/RANAP_RelocationRequest.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RelocationRequest.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_relocationRequest_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_relocationRequest_ies_specs_2 = { - sizeof(struct relocationRequest_ies), - offsetof(struct relocationRequest_ies, _asn_ctx), + sizeof(struct RANAP_RelocationRequest__relocationRequest_ies), + offsetof(struct RANAP_RelocationRequest__relocationRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RelocationRequestAcknowledge.c b/src/ranap/RANAP_RelocationRequestAcknowledge.c index 383981e..2ca555e 100644 --- a/src/ranap/RANAP_RelocationRequestAcknowledge.c +++ b/src/ranap/RANAP_RelocationRequestAcknowledge.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RelocationRequestAcknowledge.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_relocationRequestAcknowledge_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_relocationRequestAcknowledge_ies_specs_2 = { - sizeof(struct relocationRequestAcknowledge_ies), - offsetof(struct relocationRequestAcknowledge_ies, _asn_ctx), + sizeof(struct RANAP_RelocationRequestAcknowledge__relocationRequestAcknowledge_ies), + offsetof(struct RANAP_RelocationRequestAcknowledge__relocationRequestAcknowledge_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RelocationRequired.c b/src/ranap/RANAP_RelocationRequired.c index ec351f5..b90a86a 100644 --- a/src/ranap/RANAP_RelocationRequired.c +++ b/src/ranap/RANAP_RelocationRequired.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RelocationRequired.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_relocationRequired_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_relocationRequired_ies_specs_2 = { - sizeof(struct relocationRequired_ies), - offsetof(struct relocationRequired_ies, _asn_ctx), + sizeof(struct RANAP_RelocationRequired__relocationRequired_ies), + offsetof(struct RANAP_RelocationRequired__relocationRequired_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_RelocationRequirement.c b/src/ranap/RANAP_RelocationRequirement.c index 95b6bbf..5624ea2 100644 --- a/src/ranap/RANAP_RelocationRequirement.c +++ b/src/ranap/RANAP_RelocationRequirement.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RelocationRequirement.h> diff --git a/src/ranap/RANAP_RelocationType.c b/src/ranap/RANAP_RelocationType.c index bfb9d8d..e672cdb 100644 --- a/src/ranap/RANAP_RelocationType.c +++ b/src/ranap/RANAP_RelocationType.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RelocationType.h> diff --git a/src/ranap/RANAP_RepetitionNumber0.c b/src/ranap/RANAP_RepetitionNumber0.c index c42b055..4f6aae6 100644 --- a/src/ranap/RANAP_RepetitionNumber0.c +++ b/src/ranap/RANAP_RepetitionNumber0.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RepetitionNumber0.h> diff --git a/src/ranap/RANAP_RepetitionNumber1.c b/src/ranap/RANAP_RepetitionNumber1.c index 01269f1..3f98e6d 100644 --- a/src/ranap/RANAP_RepetitionNumber1.c +++ b/src/ranap/RANAP_RepetitionNumber1.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RepetitionNumber1.h> diff --git a/src/ranap/RANAP_ReportAmount.c b/src/ranap/RANAP_ReportAmount.c index ce6c411..8c5c339 100644 --- a/src/ranap/RANAP_ReportAmount.c +++ b/src/ranap/RANAP_ReportAmount.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ReportAmount.h> diff --git a/src/ranap/RANAP_ReportArea.c b/src/ranap/RANAP_ReportArea.c index d5a293c..71a9815 100644 --- a/src/ranap/RANAP_ReportArea.c +++ b/src/ranap/RANAP_ReportArea.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ReportArea.h> diff --git a/src/ranap/RANAP_ReportChangeOfSAI.c b/src/ranap/RANAP_ReportChangeOfSAI.c index f169890..d6e7699 100644 --- a/src/ranap/RANAP_ReportChangeOfSAI.c +++ b/src/ranap/RANAP_ReportChangeOfSAI.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ReportChangeOfSAI.h> diff --git a/src/ranap/RANAP_ReportInterval.c b/src/ranap/RANAP_ReportInterval.c index 1bee993..5528110 100644 --- a/src/ranap/RANAP_ReportInterval.c +++ b/src/ranap/RANAP_ReportInterval.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ReportInterval.h> diff --git a/src/ranap/RANAP_RequestType.c b/src/ranap/RANAP_RequestType.c index ba6e1a8..3acac66 100644 --- a/src/ranap/RANAP_RequestType.c +++ b/src/ranap/RANAP_RequestType.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RequestType.h> diff --git a/src/ranap/RANAP_Requested-RAB-Parameter-ExtendedGuaranteedBitrateList.c b/src/ranap/RANAP_Requested-RAB-Parameter-ExtendedGuaranteedBitrateList.c index 4c65e68..f547d6f 100644 --- a/src/ranap/RANAP_Requested-RAB-Parameter-ExtendedGuaranteedBitrateList.c +++ b/src/ranap/RANAP_Requested-RAB-Parameter-ExtendedGuaranteedBitrateList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Requested-RAB-Parameter-ExtendedGuaranteedBitrateList.h> diff --git a/src/ranap/RANAP_Requested-RAB-Parameter-ExtendedMaxBitrateList.c b/src/ranap/RANAP_Requested-RAB-Parameter-ExtendedMaxBitrateList.c index 1150e5b..3299dc7 100644 --- a/src/ranap/RANAP_Requested-RAB-Parameter-ExtendedMaxBitrateList.c +++ b/src/ranap/RANAP_Requested-RAB-Parameter-ExtendedMaxBitrateList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Requested-RAB-Parameter-ExtendedMaxBitrateList.h> diff --git a/src/ranap/RANAP_Requested-RAB-Parameter-GuaranteedBitrateList.c b/src/ranap/RANAP_Requested-RAB-Parameter-GuaranteedBitrateList.c index ad2b9ba..5380372 100644 --- a/src/ranap/RANAP_Requested-RAB-Parameter-GuaranteedBitrateList.c +++ b/src/ranap/RANAP_Requested-RAB-Parameter-GuaranteedBitrateList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Requested-RAB-Parameter-GuaranteedBitrateList.h> diff --git a/src/ranap/RANAP_Requested-RAB-Parameter-MaxBitrateList.c b/src/ranap/RANAP_Requested-RAB-Parameter-MaxBitrateList.c index 2aad1ad..f190a2a 100644 --- a/src/ranap/RANAP_Requested-RAB-Parameter-MaxBitrateList.c +++ b/src/ranap/RANAP_Requested-RAB-Parameter-MaxBitrateList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Requested-RAB-Parameter-MaxBitrateList.h> diff --git a/src/ranap/RANAP_Requested-RAB-Parameter-Values.c b/src/ranap/RANAP_Requested-RAB-Parameter-Values.c index 0279887..490de37 100644 --- a/src/ranap/RANAP_Requested-RAB-Parameter-Values.c +++ b/src/ranap/RANAP_Requested-RAB-Parameter-Values.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Requested-RAB-Parameter-Values.h> diff --git a/src/ranap/RANAP_RequestedGANSSAssistanceData.c b/src/ranap/RANAP_RequestedGANSSAssistanceData.c index e18a3bd..e96904d 100644 --- a/src/ranap/RANAP_RequestedGANSSAssistanceData.c +++ b/src/ranap/RANAP_RequestedGANSSAssistanceData.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RequestedGANSSAssistanceData.h> diff --git a/src/ranap/RANAP_RequestedGPSAssistanceData.c b/src/ranap/RANAP_RequestedGPSAssistanceData.c index 139e0b9..7e88e39 100644 --- a/src/ranap/RANAP_RequestedGPSAssistanceData.c +++ b/src/ranap/RANAP_RequestedGPSAssistanceData.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RequestedGPSAssistanceData.h> diff --git a/src/ranap/RANAP_RequestedLocationRelatedDataType.c b/src/ranap/RANAP_RequestedLocationRelatedDataType.c index ca84208..6075d06 100644 --- a/src/ranap/RANAP_RequestedLocationRelatedDataType.c +++ b/src/ranap/RANAP_RequestedLocationRelatedDataType.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RequestedLocationRelatedDataType.h> diff --git a/src/ranap/RANAP_RequestedMBMSIPMulticastAddressandAPNRequest.c b/src/ranap/RANAP_RequestedMBMSIPMulticastAddressandAPNRequest.c index 23262f9..1bdbce2 100644 --- a/src/ranap/RANAP_RequestedMBMSIPMulticastAddressandAPNRequest.c +++ b/src/ranap/RANAP_RequestedMBMSIPMulticastAddressandAPNRequest.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RequestedMBMSIPMulticastAddressandAPNRequest.h> diff --git a/src/ranap/RANAP_RequestedMulticastServiceList.c b/src/ranap/RANAP_RequestedMulticastServiceList.c index 398b14d..9d913ae 100644 --- a/src/ranap/RANAP_RequestedMulticastServiceList.c +++ b/src/ranap/RANAP_RequestedMulticastServiceList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_RequestedMulticastServiceList.h> diff --git a/src/ranap/RANAP_Reset.c b/src/ranap/RANAP_Reset.c index c8e20d8..7bdd4df 100644 --- a/src/ranap/RANAP_Reset.c +++ b/src/ranap/RANAP_Reset.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Reset.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_reset_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_reset_ies_specs_2 = { - sizeof(struct reset_ies), - offsetof(struct reset_ies, _asn_ctx), + sizeof(struct RANAP_Reset__reset_ies), + offsetof(struct RANAP_Reset__reset_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_ResetAcknowledge.c b/src/ranap/RANAP_ResetAcknowledge.c index e266309..62adfa6 100644 --- a/src/ranap/RANAP_ResetAcknowledge.c +++ b/src/ranap/RANAP_ResetAcknowledge.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ResetAcknowledge.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_resetAcknowledge_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_resetAcknowledge_ies_specs_2 = { - sizeof(struct resetAcknowledge_ies), - offsetof(struct resetAcknowledge_ies, _asn_ctx), + sizeof(struct RANAP_ResetAcknowledge__resetAcknowledge_ies), + offsetof(struct RANAP_ResetAcknowledge__resetAcknowledge_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_ResetResource.c b/src/ranap/RANAP_ResetResource.c index 68cd027..209d428 100644 --- a/src/ranap/RANAP_ResetResource.c +++ b/src/ranap/RANAP_ResetResource.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ResetResource.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_resetResource_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_resetResource_ies_specs_2 = { - sizeof(struct resetResource_ies), - offsetof(struct resetResource_ies, _asn_ctx), + sizeof(struct RANAP_ResetResource__resetResource_ies), + offsetof(struct RANAP_ResetResource__resetResource_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_ResetResourceAckItem.c b/src/ranap/RANAP_ResetResourceAckItem.c index db1a117..abd76e0 100644 --- a/src/ranap/RANAP_ResetResourceAckItem.c +++ b/src/ranap/RANAP_ResetResourceAckItem.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ResetResourceAckItem.h> diff --git a/src/ranap/RANAP_ResetResourceAckList.c b/src/ranap/RANAP_ResetResourceAckList.c index 6a47218..cb7a852 100644 --- a/src/ranap/RANAP_ResetResourceAckList.c +++ b/src/ranap/RANAP_ResetResourceAckList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <constr_CHOICE.h> @@ -59,8 +60,8 @@ static const ber_tlv_tag_t asn_DEF_resetResourceAckList_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_resetResourceAckList_ies_specs_2 = { - sizeof(struct resetResourceAckList_ies), - offsetof(struct resetResourceAckList_ies, _asn_ctx), + sizeof(struct RANAP_ResetResourceAckList__resetResourceAckList_ies), + offsetof(struct RANAP_ResetResourceAckList__resetResourceAckList_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_ResetResourceAcknowledge.c b/src/ranap/RANAP_ResetResourceAcknowledge.c index 116abb1..d80bd32 100644 --- a/src/ranap/RANAP_ResetResourceAcknowledge.c +++ b/src/ranap/RANAP_ResetResourceAcknowledge.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ResetResourceAcknowledge.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_resetResourceAcknowledge_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_resetResourceAcknowledge_ies_specs_2 = { - sizeof(struct resetResourceAcknowledge_ies), - offsetof(struct resetResourceAcknowledge_ies, _asn_ctx), + sizeof(struct RANAP_ResetResourceAcknowledge__resetResourceAcknowledge_ies), + offsetof(struct RANAP_ResetResourceAcknowledge__resetResourceAcknowledge_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_ResetResourceItem.c b/src/ranap/RANAP_ResetResourceItem.c index f541b5b..5b7fde4 100644 --- a/src/ranap/RANAP_ResetResourceItem.c +++ b/src/ranap/RANAP_ResetResourceItem.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ResetResourceItem.h> diff --git a/src/ranap/RANAP_ResetResourceList.c b/src/ranap/RANAP_ResetResourceList.c index 6d1faf8..98447fb 100644 --- a/src/ranap/RANAP_ResetResourceList.c +++ b/src/ranap/RANAP_ResetResourceList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <constr_CHOICE.h> @@ -59,8 +60,8 @@ static const ber_tlv_tag_t asn_DEF_resetResourceList_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_resetResourceList_ies_specs_2 = { - sizeof(struct resetResourceList_ies), - offsetof(struct resetResourceList_ies, _asn_ctx), + sizeof(struct RANAP_ResetResourceList__resetResourceList_ies), + offsetof(struct RANAP_ResetResourceList__resetResourceList_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_ResidualBitErrorRatio.c b/src/ranap/RANAP_ResidualBitErrorRatio.c index ae010ab..085c211 100644 --- a/src/ranap/RANAP_ResidualBitErrorRatio.c +++ b/src/ranap/RANAP_ResidualBitErrorRatio.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ResidualBitErrorRatio.h> diff --git a/src/ranap/RANAP_ResponseTime.c b/src/ranap/RANAP_ResponseTime.c index 4b1f270..3b483e0 100644 --- a/src/ranap/RANAP_ResponseTime.c +++ b/src/ranap/RANAP_ResponseTime.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_ResponseTime.h> diff --git a/src/ranap/RANAP_SAC.c b/src/ranap/RANAP_SAC.c index 70ae666..44a0689 100644 --- a/src/ranap/RANAP_SAC.c +++ b/src/ranap/RANAP_SAC.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SAC.h> diff --git a/src/ranap/RANAP_SAI.c b/src/ranap/RANAP_SAI.c index 786c4ed..5082de6 100644 --- a/src/ranap/RANAP_SAI.c +++ b/src/ranap/RANAP_SAI.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SAI.h> diff --git a/src/ranap/RANAP_SAPI.c b/src/ranap/RANAP_SAPI.c index 10761b3..ad992be 100644 --- a/src/ranap/RANAP_SAPI.c +++ b/src/ranap/RANAP_SAPI.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SAPI.h> diff --git a/src/ranap/RANAP_SDU-ErrorRatio.c b/src/ranap/RANAP_SDU-ErrorRatio.c index 84ebb05..771534b 100644 --- a/src/ranap/RANAP_SDU-ErrorRatio.c +++ b/src/ranap/RANAP_SDU-ErrorRatio.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SDU-ErrorRatio.h> diff --git a/src/ranap/RANAP_SDU-FormatInformationParameterItem.c b/src/ranap/RANAP_SDU-FormatInformationParameterItem.c index 99a2ca6..34d56d7 100644 --- a/src/ranap/RANAP_SDU-FormatInformationParameterItem.c +++ b/src/ranap/RANAP_SDU-FormatInformationParameterItem.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SDU-FormatInformationParameterItem.h> diff --git a/src/ranap/RANAP_SDU-FormatInformationParameters.c b/src/ranap/RANAP_SDU-FormatInformationParameters.c index 01248c6..4c33f54 100644 --- a/src/ranap/RANAP_SDU-FormatInformationParameters.c +++ b/src/ranap/RANAP_SDU-FormatInformationParameters.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SDU-FormatInformationParameters.h> diff --git a/src/ranap/RANAP_SDU-ParameterItem.c b/src/ranap/RANAP_SDU-ParameterItem.c index cba8fbe..8afc164 100644 --- a/src/ranap/RANAP_SDU-ParameterItem.c +++ b/src/ranap/RANAP_SDU-ParameterItem.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SDU-ParameterItem.h> diff --git a/src/ranap/RANAP_SDU-Parameters.c b/src/ranap/RANAP_SDU-Parameters.c index c8f27da..9959e6d 100644 --- a/src/ranap/RANAP_SDU-Parameters.c +++ b/src/ranap/RANAP_SDU-Parameters.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SDU-Parameters.h> diff --git a/src/ranap/RANAP_SNA-Access-Information.c b/src/ranap/RANAP_SNA-Access-Information.c index f6867f0..b15353e 100644 --- a/src/ranap/RANAP_SNA-Access-Information.c +++ b/src/ranap/RANAP_SNA-Access-Information.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SNA-Access-Information.h> diff --git a/src/ranap/RANAP_SNAC.c b/src/ranap/RANAP_SNAC.c index 0bb1399..a73ea7c 100644 --- a/src/ranap/RANAP_SNAC.c +++ b/src/ranap/RANAP_SNAC.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SNAC.h> diff --git a/src/ranap/RANAP_SRB-ID.c b/src/ranap/RANAP_SRB-ID.c index 777b117..f5ed78e 100644 --- a/src/ranap/RANAP_SRB-ID.c +++ b/src/ranap/RANAP_SRB-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SRB-ID.h> diff --git a/src/ranap/RANAP_SRB-TrCH-Mapping.c b/src/ranap/RANAP_SRB-TrCH-Mapping.c index 3ff0d0f..6b906b1 100644 --- a/src/ranap/RANAP_SRB-TrCH-Mapping.c +++ b/src/ranap/RANAP_SRB-TrCH-Mapping.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SRB-TrCH-Mapping.h> diff --git a/src/ranap/RANAP_SRB-TrCH-MappingItem.c b/src/ranap/RANAP_SRB-TrCH-MappingItem.c index 5de2fea..0c0e4d0 100644 --- a/src/ranap/RANAP_SRB-TrCH-MappingItem.c +++ b/src/ranap/RANAP_SRB-TrCH-MappingItem.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SRB-TrCH-MappingItem.h> diff --git a/src/ranap/RANAP_SRNS-ContextRequest.c b/src/ranap/RANAP_SRNS-ContextRequest.c index b701e34..345f854 100644 --- a/src/ranap/RANAP_SRNS-ContextRequest.c +++ b/src/ranap/RANAP_SRNS-ContextRequest.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SRNS-ContextRequest.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_srnS_ContextRequest_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_srnS_ContextRequest_ies_specs_2 = { - sizeof(struct srnS_ContextRequest_ies), - offsetof(struct srnS_ContextRequest_ies, _asn_ctx), + sizeof(struct RANAP_SRNS_ContextRequest__srnS_ContextRequest_ies), + offsetof(struct RANAP_SRNS_ContextRequest__srnS_ContextRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_SRNS-ContextResponse.c b/src/ranap/RANAP_SRNS-ContextResponse.c index 392ff04..3446a1e 100644 --- a/src/ranap/RANAP_SRNS-ContextResponse.c +++ b/src/ranap/RANAP_SRNS-ContextResponse.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SRNS-ContextResponse.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_srnS_ContextResponse_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_srnS_ContextResponse_ies_specs_2 = { - sizeof(struct srnS_ContextResponse_ies), - offsetof(struct srnS_ContextResponse_ies, _asn_ctx), + sizeof(struct RANAP_SRNS_ContextResponse__srnS_ContextResponse_ies), + offsetof(struct RANAP_SRNS_ContextResponse__srnS_ContextResponse_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_SRNS-DataForwardCommand.c b/src/ranap/RANAP_SRNS-DataForwardCommand.c index 8044a32..93ee613 100644 --- a/src/ranap/RANAP_SRNS-DataForwardCommand.c +++ b/src/ranap/RANAP_SRNS-DataForwardCommand.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SRNS-DataForwardCommand.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_srnS_DataForwardCommand_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_srnS_DataForwardCommand_ies_specs_2 = { - sizeof(struct srnS_DataForwardCommand_ies), - offsetof(struct srnS_DataForwardCommand_ies, _asn_ctx), + sizeof(struct RANAP_SRNS_DataForwardCommand__srnS_DataForwardCommand_ies), + offsetof(struct RANAP_SRNS_DataForwardCommand__srnS_DataForwardCommand_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_SRVCC-CSKeysRequest.c b/src/ranap/RANAP_SRVCC-CSKeysRequest.c index e7a6c14..7853596 100644 --- a/src/ranap/RANAP_SRVCC-CSKeysRequest.c +++ b/src/ranap/RANAP_SRVCC-CSKeysRequest.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SRVCC-CSKeysRequest.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_srvcC_CSKeysRequest_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_srvcC_CSKeysRequest_ies_specs_2 = { - sizeof(struct srvcC_CSKeysRequest_ies), - offsetof(struct srvcC_CSKeysRequest_ies, _asn_ctx), + sizeof(struct RANAP_SRVCC_CSKeysRequest__srvcC_CSKeysRequest_ies), + offsetof(struct RANAP_SRVCC_CSKeysRequest__srvcC_CSKeysRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_SRVCC-CSKeysResponse.c b/src/ranap/RANAP_SRVCC-CSKeysResponse.c index c484f32..3188776 100644 --- a/src/ranap/RANAP_SRVCC-CSKeysResponse.c +++ b/src/ranap/RANAP_SRVCC-CSKeysResponse.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SRVCC-CSKeysResponse.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_srvcC_CSKeysResponse_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_srvcC_CSKeysResponse_ies_specs_2 = { - sizeof(struct srvcC_CSKeysResponse_ies), - offsetof(struct srvcC_CSKeysResponse_ies, _asn_ctx), + sizeof(struct RANAP_SRVCC_CSKeysResponse__srvcC_CSKeysResponse_ies), + offsetof(struct RANAP_SRVCC_CSKeysResponse__srvcC_CSKeysResponse_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_SRVCC-HO-Indication.c b/src/ranap/RANAP_SRVCC-HO-Indication.c index 7c77cb7..ec8d591 100644 --- a/src/ranap/RANAP_SRVCC-HO-Indication.c +++ b/src/ranap/RANAP_SRVCC-HO-Indication.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SRVCC-HO-Indication.h> diff --git a/src/ranap/RANAP_SRVCC-Information.c b/src/ranap/RANAP_SRVCC-Information.c index bd781e0..93db5c9 100644 --- a/src/ranap/RANAP_SRVCC-Information.c +++ b/src/ranap/RANAP_SRVCC-Information.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SRVCC-Information.h> diff --git a/src/ranap/RANAP_SRVCC-Operation-Possible.c b/src/ranap/RANAP_SRVCC-Operation-Possible.c index 6473456..9d833f3 100644 --- a/src/ranap/RANAP_SRVCC-Operation-Possible.c +++ b/src/ranap/RANAP_SRVCC-Operation-Possible.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SRVCC-Operation-Possible.h> diff --git a/src/ranap/RANAP_SecurityModeCommand.c b/src/ranap/RANAP_SecurityModeCommand.c index b4eb8b1..3310263 100644 --- a/src/ranap/RANAP_SecurityModeCommand.c +++ b/src/ranap/RANAP_SecurityModeCommand.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SecurityModeCommand.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_securityModeCommand_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_securityModeCommand_ies_specs_2 = { - sizeof(struct securityModeCommand_ies), - offsetof(struct securityModeCommand_ies, _asn_ctx), + sizeof(struct RANAP_SecurityModeCommand__securityModeCommand_ies), + offsetof(struct RANAP_SecurityModeCommand__securityModeCommand_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_SecurityModeComplete.c b/src/ranap/RANAP_SecurityModeComplete.c index 36cf2bd..6037e06 100644 --- a/src/ranap/RANAP_SecurityModeComplete.c +++ b/src/ranap/RANAP_SecurityModeComplete.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SecurityModeComplete.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_securityModeComplete_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_securityModeComplete_ies_specs_2 = { - sizeof(struct securityModeComplete_ies), - offsetof(struct securityModeComplete_ies, _asn_ctx), + sizeof(struct RANAP_SecurityModeComplete__securityModeComplete_ies), + offsetof(struct RANAP_SecurityModeComplete__securityModeComplete_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_SecurityModeReject.c b/src/ranap/RANAP_SecurityModeReject.c index 778d327..a2e735a 100644 --- a/src/ranap/RANAP_SecurityModeReject.c +++ b/src/ranap/RANAP_SecurityModeReject.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SecurityModeReject.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_securityModeReject_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_securityModeReject_ies_specs_2 = { - sizeof(struct securityModeReject_ies), - offsetof(struct securityModeReject_ies, _asn_ctx), + sizeof(struct RANAP_SecurityModeReject__securityModeReject_ies), + offsetof(struct RANAP_SecurityModeReject__securityModeReject_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_Service-Handover.c b/src/ranap/RANAP_Service-Handover.c index 2acae33..df500f2 100644 --- a/src/ranap/RANAP_Service-Handover.c +++ b/src/ranap/RANAP_Service-Handover.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Service-Handover.h> diff --git a/src/ranap/RANAP_Session-Re-establishment-Indicator.c b/src/ranap/RANAP_Session-Re-establishment-Indicator.c index 1223002..bce1543 100644 --- a/src/ranap/RANAP_Session-Re-establishment-Indicator.c +++ b/src/ranap/RANAP_Session-Re-establishment-Indicator.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Session-Re-establishment-Indicator.h> diff --git a/src/ranap/RANAP_SessionUpdateID.c b/src/ranap/RANAP_SessionUpdateID.c index 2c5ade2..9c9a742 100644 --- a/src/ranap/RANAP_SessionUpdateID.c +++ b/src/ranap/RANAP_SessionUpdateID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SessionUpdateID.h> diff --git a/src/ranap/RANAP_Shared-Network-Information.c b/src/ranap/RANAP_Shared-Network-Information.c index 66ef42d..80108f1 100644 --- a/src/ranap/RANAP_Shared-Network-Information.c +++ b/src/ranap/RANAP_Shared-Network-Information.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Shared-Network-Information.h> diff --git a/src/ranap/RANAP_SignallingIndication.c b/src/ranap/RANAP_SignallingIndication.c index 4f494a6..5f09138 100644 --- a/src/ranap/RANAP_SignallingIndication.c +++ b/src/ranap/RANAP_SignallingIndication.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SignallingIndication.h> diff --git a/src/ranap/RANAP_Source-ToTarget-TransparentContainer.c b/src/ranap/RANAP_Source-ToTarget-TransparentContainer.c index 8831b93..ff4f33b 100644 --- a/src/ranap/RANAP_Source-ToTarget-TransparentContainer.c +++ b/src/ranap/RANAP_Source-ToTarget-TransparentContainer.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Source-ToTarget-TransparentContainer.h> diff --git a/src/ranap/RANAP_SourceBSS-ToTargetBSS-TransparentContainer.c b/src/ranap/RANAP_SourceBSS-ToTargetBSS-TransparentContainer.c index 5f45db0..1bb11a4 100644 --- a/src/ranap/RANAP_SourceBSS-ToTargetBSS-TransparentContainer.c +++ b/src/ranap/RANAP_SourceBSS-ToTargetBSS-TransparentContainer.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SourceBSS-ToTargetBSS-TransparentContainer.h> diff --git a/src/ranap/RANAP_SourceCellID.c b/src/ranap/RANAP_SourceCellID.c index 888c8ee..ae01ae1 100644 --- a/src/ranap/RANAP_SourceCellID.c +++ b/src/ranap/RANAP_SourceCellID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SourceCellID.h> diff --git a/src/ranap/RANAP_SourceID.c b/src/ranap/RANAP_SourceID.c index 71b6232..80a0049 100644 --- a/src/ranap/RANAP_SourceID.c +++ b/src/ranap/RANAP_SourceID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SourceID.h> diff --git a/src/ranap/RANAP_SourceRNC-ID.c b/src/ranap/RANAP_SourceRNC-ID.c index 759ec62..f7b97e3 100644 --- a/src/ranap/RANAP_SourceRNC-ID.c +++ b/src/ranap/RANAP_SourceRNC-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SourceRNC-ID.h> diff --git a/src/ranap/RANAP_SourceRNC-ToTargetRNC-TransparentContainer.c b/src/ranap/RANAP_SourceRNC-ToTargetRNC-TransparentContainer.c index c3b3bac..50d1afc 100644 --- a/src/ranap/RANAP_SourceRNC-ToTargetRNC-TransparentContainer.c +++ b/src/ranap/RANAP_SourceRNC-ToTargetRNC-TransparentContainer.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SourceRNC-ToTargetRNC-TransparentContainer.h> diff --git a/src/ranap/RANAP_SourceStatisticsDescriptor.c b/src/ranap/RANAP_SourceStatisticsDescriptor.c index d9a33f9..41f2f82 100644 --- a/src/ranap/RANAP_SourceStatisticsDescriptor.c +++ b/src/ranap/RANAP_SourceStatisticsDescriptor.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SourceStatisticsDescriptor.h> diff --git a/src/ranap/RANAP_SourceUTRANCellID.c b/src/ranap/RANAP_SourceUTRANCellID.c index f4eee8f..6ac59f8 100644 --- a/src/ranap/RANAP_SourceUTRANCellID.c +++ b/src/ranap/RANAP_SourceUTRANCellID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SourceUTRANCellID.h> diff --git a/src/ranap/RANAP_SourceeNodeB-ToTargeteNodeB-TransparentContainer.c b/src/ranap/RANAP_SourceeNodeB-ToTargeteNodeB-TransparentContainer.c index 1da35fe..a7662d8 100644 --- a/src/ranap/RANAP_SourceeNodeB-ToTargeteNodeB-TransparentContainer.c +++ b/src/ranap/RANAP_SourceeNodeB-ToTargeteNodeB-TransparentContainer.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SourceeNodeB-ToTargeteNodeB-TransparentContainer.h> diff --git a/src/ranap/RANAP_SubflowSDU-Size.c b/src/ranap/RANAP_SubflowSDU-Size.c index 36282df..6e444be 100644 --- a/src/ranap/RANAP_SubflowSDU-Size.c +++ b/src/ranap/RANAP_SubflowSDU-Size.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SubflowSDU-Size.h> diff --git a/src/ranap/RANAP_SubscriberProfileIDforRFP.c b/src/ranap/RANAP_SubscriberProfileIDforRFP.c index afda7a5..741c2bb 100644 --- a/src/ranap/RANAP_SubscriberProfileIDforRFP.c +++ b/src/ranap/RANAP_SubscriberProfileIDforRFP.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SubscriberProfileIDforRFP.h> diff --git a/src/ranap/RANAP_SuccessfulOutcome.c b/src/ranap/RANAP_SuccessfulOutcome.c index 4becadb..4716289 100644 --- a/src/ranap/RANAP_SuccessfulOutcome.c +++ b/src/ranap/RANAP_SuccessfulOutcome.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SuccessfulOutcome.h> diff --git a/src/ranap/RANAP_SupportedBitrate.c b/src/ranap/RANAP_SupportedBitrate.c index 8e7ae21..d4f1454 100644 --- a/src/ranap/RANAP_SupportedBitrate.c +++ b/src/ranap/RANAP_SupportedBitrate.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SupportedBitrate.h> diff --git a/src/ranap/RANAP_SupportedRAB-ParameterBitrateList.c b/src/ranap/RANAP_SupportedRAB-ParameterBitrateList.c index f2056d9..a2686b3 100644 --- a/src/ranap/RANAP_SupportedRAB-ParameterBitrateList.c +++ b/src/ranap/RANAP_SupportedRAB-ParameterBitrateList.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_SupportedRAB-ParameterBitrateList.h> diff --git a/src/ranap/RANAP_TAC.c b/src/ranap/RANAP_TAC.c index 0987350..45732be 100644 --- a/src/ranap/RANAP_TAC.c +++ b/src/ranap/RANAP_TAC.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TAC.h> diff --git a/src/ranap/RANAP_TAI.c b/src/ranap/RANAP_TAI.c index f1e62ba..70b1184 100644 --- a/src/ranap/RANAP_TAI.c +++ b/src/ranap/RANAP_TAI.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TAI.h> diff --git a/src/ranap/RANAP_TBCD-STRING.c b/src/ranap/RANAP_TBCD-STRING.c index 2a42138..26ff6b2 100644 --- a/src/ranap/RANAP_TBCD-STRING.c +++ b/src/ranap/RANAP_TBCD-STRING.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TBCD-STRING.h> diff --git a/src/ranap/RANAP_TMGI.c b/src/ranap/RANAP_TMGI.c index 07d1d68..c07e169 100644 --- a/src/ranap/RANAP_TMGI.c +++ b/src/ranap/RANAP_TMGI.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TMGI.h> diff --git a/src/ranap/RANAP_TMSI.c b/src/ranap/RANAP_TMSI.c index 57b02cf..d1fc432 100644 --- a/src/ranap/RANAP_TMSI.c +++ b/src/ranap/RANAP_TMSI.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TMSI.h> diff --git a/src/ranap/RANAP_TNLInformationEnhRelInfoReq.c b/src/ranap/RANAP_TNLInformationEnhRelInfoReq.c index 1a62c74..0b6ad09 100644 --- a/src/ranap/RANAP_TNLInformationEnhRelInfoReq.c +++ b/src/ranap/RANAP_TNLInformationEnhRelInfoReq.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TNLInformationEnhRelInfoReq.h> diff --git a/src/ranap/RANAP_TNLInformationEnhRelInfoRes.c b/src/ranap/RANAP_TNLInformationEnhRelInfoRes.c index ab09d87..61b3412 100644 --- a/src/ranap/RANAP_TNLInformationEnhRelInfoRes.c +++ b/src/ranap/RANAP_TNLInformationEnhRelInfoRes.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TNLInformationEnhRelInfoRes.h> diff --git a/src/ranap/RANAP_Target-ToSource-TransparentContainer.c b/src/ranap/RANAP_Target-ToSource-TransparentContainer.c index f3964cd..51e397d 100644 --- a/src/ranap/RANAP_Target-ToSource-TransparentContainer.c +++ b/src/ranap/RANAP_Target-ToSource-TransparentContainer.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Target-ToSource-TransparentContainer.h> diff --git a/src/ranap/RANAP_TargetBSS-ToSourceBSS-TransparentContainer.c b/src/ranap/RANAP_TargetBSS-ToSourceBSS-TransparentContainer.c index a0fc0b7..8aaeb79 100644 --- a/src/ranap/RANAP_TargetBSS-ToSourceBSS-TransparentContainer.c +++ b/src/ranap/RANAP_TargetBSS-ToSourceBSS-TransparentContainer.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TargetBSS-ToSourceBSS-TransparentContainer.h> diff --git a/src/ranap/RANAP_TargetCellId.c b/src/ranap/RANAP_TargetCellId.c index 9f8bcb1..739e78d 100644 --- a/src/ranap/RANAP_TargetCellId.c +++ b/src/ranap/RANAP_TargetCellId.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TargetCellId.h> diff --git a/src/ranap/RANAP_TargetENB-ID.c b/src/ranap/RANAP_TargetENB-ID.c index 7df701f..3aed0ac 100644 --- a/src/ranap/RANAP_TargetENB-ID.c +++ b/src/ranap/RANAP_TargetENB-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TargetENB-ID.h> diff --git a/src/ranap/RANAP_TargetID.c b/src/ranap/RANAP_TargetID.c index 5d27376..94e00d8 100644 --- a/src/ranap/RANAP_TargetID.c +++ b/src/ranap/RANAP_TargetID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TargetID.h> diff --git a/src/ranap/RANAP_TargetRNC-ID.c b/src/ranap/RANAP_TargetRNC-ID.c index ef48c54..78d1ce4 100644 --- a/src/ranap/RANAP_TargetRNC-ID.c +++ b/src/ranap/RANAP_TargetRNC-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TargetRNC-ID.h> diff --git a/src/ranap/RANAP_TargetRNC-ToSourceRNC-TransparentContainer.c b/src/ranap/RANAP_TargetRNC-ToSourceRNC-TransparentContainer.c index c192beb..aaeb8e7 100644 --- a/src/ranap/RANAP_TargetRNC-ToSourceRNC-TransparentContainer.c +++ b/src/ranap/RANAP_TargetRNC-ToSourceRNC-TransparentContainer.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TargetRNC-ToSourceRNC-TransparentContainer.h> diff --git a/src/ranap/RANAP_TargeteNodeB-ToSourceeNodeB-TransparentContainer.c b/src/ranap/RANAP_TargeteNodeB-ToSourceeNodeB-TransparentContainer.c index 715b992..3a6c41d 100644 --- a/src/ranap/RANAP_TargeteNodeB-ToSourceeNodeB-TransparentContainer.c +++ b/src/ranap/RANAP_TargeteNodeB-ToSourceeNodeB-TransparentContainer.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TargeteNodeB-ToSourceeNodeB-TransparentContainer.h> diff --git a/src/ranap/RANAP_TemporaryUE-ID.c b/src/ranap/RANAP_TemporaryUE-ID.c index 9cde280..1ea5a67 100644 --- a/src/ranap/RANAP_TemporaryUE-ID.c +++ b/src/ranap/RANAP_TemporaryUE-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TemporaryUE-ID.h> diff --git a/src/ranap/RANAP_Time-UE-StayedInCell-EnhancedGranularity.c b/src/ranap/RANAP_Time-UE-StayedInCell-EnhancedGranularity.c index 1291b93..511da63 100644 --- a/src/ranap/RANAP_Time-UE-StayedInCell-EnhancedGranularity.c +++ b/src/ranap/RANAP_Time-UE-StayedInCell-EnhancedGranularity.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Time-UE-StayedInCell-EnhancedGranularity.h> diff --git a/src/ranap/RANAP_Time-UE-StayedInCell.c b/src/ranap/RANAP_Time-UE-StayedInCell.c index 1ac324f..a9ed9aa 100644 --- a/src/ranap/RANAP_Time-UE-StayedInCell.c +++ b/src/ranap/RANAP_Time-UE-StayedInCell.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_Time-UE-StayedInCell.h> diff --git a/src/ranap/RANAP_TimeToMBMSDataTransfer.c b/src/ranap/RANAP_TimeToMBMSDataTransfer.c index 7108dbd..cb552f0 100644 --- a/src/ranap/RANAP_TimeToMBMSDataTransfer.c +++ b/src/ranap/RANAP_TimeToMBMSDataTransfer.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TimeToMBMSDataTransfer.h> diff --git a/src/ranap/RANAP_TimingDifferenceULDL.c b/src/ranap/RANAP_TimingDifferenceULDL.c index 226c23a..62e083b 100644 --- a/src/ranap/RANAP_TimingDifferenceULDL.c +++ b/src/ranap/RANAP_TimingDifferenceULDL.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TimingDifferenceULDL.h> diff --git a/src/ranap/RANAP_TrCH-ID-List.c b/src/ranap/RANAP_TrCH-ID-List.c index 1a4219c..382c319 100644 --- a/src/ranap/RANAP_TrCH-ID-List.c +++ b/src/ranap/RANAP_TrCH-ID-List.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TrCH-ID-List.h> diff --git a/src/ranap/RANAP_TrCH-ID.c b/src/ranap/RANAP_TrCH-ID.c index b55ab2b..f21b8d5 100644 --- a/src/ranap/RANAP_TrCH-ID.c +++ b/src/ranap/RANAP_TrCH-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TrCH-ID.h> diff --git a/src/ranap/RANAP_TraceDepth.c b/src/ranap/RANAP_TraceDepth.c index 0a8e152..68e3854 100644 --- a/src/ranap/RANAP_TraceDepth.c +++ b/src/ranap/RANAP_TraceDepth.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TraceDepth.h> diff --git a/src/ranap/RANAP_TraceInformation.c b/src/ranap/RANAP_TraceInformation.c index 7bce26b..c8ad57b 100644 --- a/src/ranap/RANAP_TraceInformation.c +++ b/src/ranap/RANAP_TraceInformation.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TraceInformation.h> diff --git a/src/ranap/RANAP_TracePropagationParameters.c b/src/ranap/RANAP_TracePropagationParameters.c index 2caf614..a38a719 100644 --- a/src/ranap/RANAP_TracePropagationParameters.c +++ b/src/ranap/RANAP_TracePropagationParameters.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TracePropagationParameters.h> diff --git a/src/ranap/RANAP_TraceRecordingSessionInformation.c b/src/ranap/RANAP_TraceRecordingSessionInformation.c index ba88e32..a00888a 100644 --- a/src/ranap/RANAP_TraceRecordingSessionInformation.c +++ b/src/ranap/RANAP_TraceRecordingSessionInformation.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TraceRecordingSessionInformation.h> diff --git a/src/ranap/RANAP_TraceRecordingSessionReference.c b/src/ranap/RANAP_TraceRecordingSessionReference.c index 86b167f..a90d9f2 100644 --- a/src/ranap/RANAP_TraceRecordingSessionReference.c +++ b/src/ranap/RANAP_TraceRecordingSessionReference.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TraceRecordingSessionReference.h> diff --git a/src/ranap/RANAP_TraceReference.c b/src/ranap/RANAP_TraceReference.c index 6e9b057..16a4aa6 100644 --- a/src/ranap/RANAP_TraceReference.c +++ b/src/ranap/RANAP_TraceReference.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TraceReference.h> diff --git a/src/ranap/RANAP_TraceType.c b/src/ranap/RANAP_TraceType.c index 0bae3d4..20fd812 100644 --- a/src/ranap/RANAP_TraceType.c +++ b/src/ranap/RANAP_TraceType.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TraceType.h> diff --git a/src/ranap/RANAP_TrafficClass.c b/src/ranap/RANAP_TrafficClass.c index 725adc5..3cf4c6e 100644 --- a/src/ranap/RANAP_TrafficClass.c +++ b/src/ranap/RANAP_TrafficClass.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TrafficClass.h> diff --git a/src/ranap/RANAP_TrafficHandlingPriority.c b/src/ranap/RANAP_TrafficHandlingPriority.c index 504be51..5c8cf2d 100644 --- a/src/ranap/RANAP_TrafficHandlingPriority.c +++ b/src/ranap/RANAP_TrafficHandlingPriority.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TrafficHandlingPriority.h> diff --git a/src/ranap/RANAP_TransferDelay.c b/src/ranap/RANAP_TransferDelay.c index 8d7c75a..8e32231 100644 --- a/src/ranap/RANAP_TransferDelay.c +++ b/src/ranap/RANAP_TransferDelay.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TransferDelay.h> diff --git a/src/ranap/RANAP_TransportLayerAddress.c b/src/ranap/RANAP_TransportLayerAddress.c index 19d7ed5..920e223 100644 --- a/src/ranap/RANAP_TransportLayerAddress.c +++ b/src/ranap/RANAP_TransportLayerAddress.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TransportLayerAddress.h> diff --git a/src/ranap/RANAP_TransportLayerInformation.c b/src/ranap/RANAP_TransportLayerInformation.c index 56a2ac4..ee1cfe3 100644 --- a/src/ranap/RANAP_TransportLayerInformation.c +++ b/src/ranap/RANAP_TransportLayerInformation.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TransportLayerInformation.h> diff --git a/src/ranap/RANAP_TriggerID.c b/src/ranap/RANAP_TriggerID.c index a4a4da4..196cd04 100644 --- a/src/ranap/RANAP_TriggerID.c +++ b/src/ranap/RANAP_TriggerID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TriggerID.h> diff --git a/src/ranap/RANAP_TriggeringMessage.c b/src/ranap/RANAP_TriggeringMessage.c index 27a6b8a..f8532a7 100644 --- a/src/ranap/RANAP_TriggeringMessage.c +++ b/src/ranap/RANAP_TriggeringMessage.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-CommonDataTypes" * found in "../../asn1/ranap/RANAP-CommonDataTypes.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TriggeringMessage.h> diff --git a/src/ranap/RANAP_TunnelInformation.c b/src/ranap/RANAP_TunnelInformation.c index ee69543..f3656f5 100644 --- a/src/ranap/RANAP_TunnelInformation.c +++ b/src/ranap/RANAP_TunnelInformation.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TunnelInformation.h> diff --git a/src/ranap/RANAP_TypeOfError.c b/src/ranap/RANAP_TypeOfError.c index be7417e..4830adb 100644 --- a/src/ranap/RANAP_TypeOfError.c +++ b/src/ranap/RANAP_TypeOfError.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_TypeOfError.h> diff --git a/src/ranap/RANAP_UE-AggregateMaximumBitRate.c b/src/ranap/RANAP_UE-AggregateMaximumBitRate.c index 1ee0840..ea5911c 100644 --- a/src/ranap/RANAP_UE-AggregateMaximumBitRate.c +++ b/src/ranap/RANAP_UE-AggregateMaximumBitRate.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UE-AggregateMaximumBitRate.h> diff --git a/src/ranap/RANAP_UE-AggregateMaximumBitRateDownlink.c b/src/ranap/RANAP_UE-AggregateMaximumBitRateDownlink.c index 800682e..870396b 100644 --- a/src/ranap/RANAP_UE-AggregateMaximumBitRateDownlink.c +++ b/src/ranap/RANAP_UE-AggregateMaximumBitRateDownlink.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UE-AggregateMaximumBitRateDownlink.h> diff --git a/src/ranap/RANAP_UE-AggregateMaximumBitRateUplink.c b/src/ranap/RANAP_UE-AggregateMaximumBitRateUplink.c index 970f30b..ecebbab 100644 --- a/src/ranap/RANAP_UE-AggregateMaximumBitRateUplink.c +++ b/src/ranap/RANAP_UE-AggregateMaximumBitRateUplink.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UE-AggregateMaximumBitRateUplink.h> diff --git a/src/ranap/RANAP_UE-History-Information.c b/src/ranap/RANAP_UE-History-Information.c index fd82b33..33971a1 100644 --- a/src/ranap/RANAP_UE-History-Information.c +++ b/src/ranap/RANAP_UE-History-Information.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UE-History-Information.h> diff --git a/src/ranap/RANAP_UE-ID.c b/src/ranap/RANAP_UE-ID.c index 7ef0d0c..63cebf6 100644 --- a/src/ranap/RANAP_UE-ID.c +++ b/src/ranap/RANAP_UE-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UE-ID.h> diff --git a/src/ranap/RANAP_UESBI-Iu.c b/src/ranap/RANAP_UESBI-Iu.c index 360e8d9..3e53b1f 100644 --- a/src/ranap/RANAP_UESBI-Iu.c +++ b/src/ranap/RANAP_UESBI-Iu.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UESBI-Iu.h> diff --git a/src/ranap/RANAP_UESBI-IuA.c b/src/ranap/RANAP_UESBI-IuA.c index 80d876f..970c277 100644 --- a/src/ranap/RANAP_UESBI-IuA.c +++ b/src/ranap/RANAP_UESBI-IuA.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UESBI-IuA.h> diff --git a/src/ranap/RANAP_UESBI-IuB.c b/src/ranap/RANAP_UESBI-IuB.c index b9b5fa7..fd2e3fe 100644 --- a/src/ranap/RANAP_UESBI-IuB.c +++ b/src/ranap/RANAP_UESBI-IuB.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UESBI-IuB.h> diff --git a/src/ranap/RANAP_UESpecificInformationIndication.c b/src/ranap/RANAP_UESpecificInformationIndication.c index 8a4b986..7b318db 100644 --- a/src/ranap/RANAP_UESpecificInformationIndication.c +++ b/src/ranap/RANAP_UESpecificInformationIndication.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UESpecificInformationIndication.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_ueSpecificInformationIndication_ies_tags_2[] (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_ueSpecificInformationIndication_ies_specs_2 = { - sizeof(struct ueSpecificInformationIndication_ies), - offsetof(struct ueSpecificInformationIndication_ies, _asn_ctx), + sizeof(struct RANAP_UESpecificInformationIndication__ueSpecificInformationIndication_ies), + offsetof(struct RANAP_UESpecificInformationIndication__ueSpecificInformationIndication_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_UL-GTP-PDU-SequenceNumber.c b/src/ranap/RANAP_UL-GTP-PDU-SequenceNumber.c index 213fe1a..96b7a06 100644 --- a/src/ranap/RANAP_UL-GTP-PDU-SequenceNumber.c +++ b/src/ranap/RANAP_UL-GTP-PDU-SequenceNumber.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UL-GTP-PDU-SequenceNumber.h> diff --git a/src/ranap/RANAP_UL-N-PDU-SequenceNumber.c b/src/ranap/RANAP_UL-N-PDU-SequenceNumber.c index dd49cc9..8d94d89 100644 --- a/src/ranap/RANAP_UL-N-PDU-SequenceNumber.c +++ b/src/ranap/RANAP_UL-N-PDU-SequenceNumber.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UL-N-PDU-SequenceNumber.h> diff --git a/src/ranap/RANAP_UP-ModeVersions.c b/src/ranap/RANAP_UP-ModeVersions.c index 4345da9..a3f0825 100644 --- a/src/ranap/RANAP_UP-ModeVersions.c +++ b/src/ranap/RANAP_UP-ModeVersions.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UP-ModeVersions.h> diff --git a/src/ranap/RANAP_UPInformation.c b/src/ranap/RANAP_UPInformation.c index a997ae6..367d238 100644 --- a/src/ranap/RANAP_UPInformation.c +++ b/src/ranap/RANAP_UPInformation.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UPInformation.h> diff --git a/src/ranap/RANAP_UPInitialisationFrame.c b/src/ranap/RANAP_UPInitialisationFrame.c index 7ff360c..82b5109 100644 --- a/src/ranap/RANAP_UPInitialisationFrame.c +++ b/src/ranap/RANAP_UPInitialisationFrame.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UPInitialisationFrame.h> diff --git a/src/ranap/RANAP_USCH-ID.c b/src/ranap/RANAP_USCH-ID.c index 4784926..c229bd1 100644 --- a/src/ranap/RANAP_USCH-ID.c +++ b/src/ranap/RANAP_USCH-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_USCH-ID.h> diff --git a/src/ranap/RANAP_UTRAN-CellID.c b/src/ranap/RANAP_UTRAN-CellID.c index 8735f20..5ed1fa4 100644 --- a/src/ranap/RANAP_UTRAN-CellID.c +++ b/src/ranap/RANAP_UTRAN-CellID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UTRAN-CellID.h> diff --git a/src/ranap/RANAP_UeRadioCapabilityMatchRequest.c b/src/ranap/RANAP_UeRadioCapabilityMatchRequest.c index d2b179b..508286e 100644 --- a/src/ranap/RANAP_UeRadioCapabilityMatchRequest.c +++ b/src/ranap/RANAP_UeRadioCapabilityMatchRequest.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UeRadioCapabilityMatchRequest.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_ueRadioCapabilityMatchRequest_ies_tags_2[] = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_ueRadioCapabilityMatchRequest_ies_specs_2 = { - sizeof(struct ueRadioCapabilityMatchRequest_ies), - offsetof(struct ueRadioCapabilityMatchRequest_ies, _asn_ctx), + sizeof(struct RANAP_UeRadioCapabilityMatchRequest__ueRadioCapabilityMatchRequest_ies), + offsetof(struct RANAP_UeRadioCapabilityMatchRequest__ueRadioCapabilityMatchRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_UeRadioCapabilityMatchResponse.c b/src/ranap/RANAP_UeRadioCapabilityMatchResponse.c index 50be895..a81ef80 100644 --- a/src/ranap/RANAP_UeRadioCapabilityMatchResponse.c +++ b/src/ranap/RANAP_UeRadioCapabilityMatchResponse.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UeRadioCapabilityMatchResponse.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_ueRadioCapabilityMatchResponse_ies_tags_2[] = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_ueRadioCapabilityMatchResponse_ies_specs_2 = { - sizeof(struct ueRadioCapabilityMatchResponse_ies), - offsetof(struct ueRadioCapabilityMatchResponse_ies, _asn_ctx), + sizeof(struct RANAP_UeRadioCapabilityMatchResponse__ueRadioCapabilityMatchResponse_ies), + offsetof(struct RANAP_UeRadioCapabilityMatchResponse__ueRadioCapabilityMatchResponse_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_UnsuccessfulLinking-IEs-Value.c b/src/ranap/RANAP_UnsuccessfulLinking-IEs-Value.c new file mode 100644 index 0000000..d69d753 --- /dev/null +++ b/src/ranap/RANAP_UnsuccessfulLinking-IEs-Value.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RANAP-PDU" + * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` + */ + +#include <osmocom/ranap/RANAP_UnsuccessfulLinking-IEs-Value.h> + +static asn_TYPE_member_t asn_MBR_RANAP_UnsuccessfulLinking_IEs_Value_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RANAP_UnsuccessfulLinking_IEs_Value, tMGI), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_TMGI, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "tMGI" + }, + { ATF_NOFLAGS, 0, offsetof(struct RANAP_UnsuccessfulLinking_IEs_Value, cause), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + +1, /* EXPLICIT tag at current level */ + &asn_DEF_RANAP_Cause, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "cause" + }, + { ATF_POINTER, 1, offsetof(struct RANAP_UnsuccessfulLinking_IEs_Value, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RANAP_ProtocolExtensionContainer, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_RANAP_UnsuccessfulLinking_IEs_Value_oms_1[] = { 2 }; +static const ber_tlv_tag_t asn_DEF_RANAP_UnsuccessfulLinking_IEs_Value_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RANAP_UnsuccessfulLinking_IEs_Value_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tMGI */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cause */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_RANAP_UnsuccessfulLinking_IEs_Value_specs_1 = { + sizeof(struct RANAP_UnsuccessfulLinking_IEs_Value), + offsetof(struct RANAP_UnsuccessfulLinking_IEs_Value, _asn_ctx), + asn_MAP_RANAP_UnsuccessfulLinking_IEs_Value_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_RANAP_UnsuccessfulLinking_IEs_Value_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 2, /* Start extensions */ + 4 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_RANAP_UnsuccessfulLinking_IEs_Value = { + "RANAP_UnsuccessfulLinking-IEs-Value", + "RANAP_UnsuccessfulLinking-IEs-Value", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_RANAP_UnsuccessfulLinking_IEs_Value_tags_1, + sizeof(asn_DEF_RANAP_UnsuccessfulLinking_IEs_Value_tags_1) + /sizeof(asn_DEF_RANAP_UnsuccessfulLinking_IEs_Value_tags_1[0]), /* 1 */ + asn_DEF_RANAP_UnsuccessfulLinking_IEs_Value_tags_1, /* Same as above */ + sizeof(asn_DEF_RANAP_UnsuccessfulLinking_IEs_Value_tags_1) + /sizeof(asn_DEF_RANAP_UnsuccessfulLinking_IEs_Value_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_RANAP_UnsuccessfulLinking_IEs_Value_1, + 3, /* Elements count */ + &asn_SPC_RANAP_UnsuccessfulLinking_IEs_Value_specs_1 /* Additional specs */ +}; + diff --git a/src/ranap/RANAP_UnsuccessfulLinking-IEs.c b/src/ranap/RANAP_UnsuccessfulLinking-IEs.c index 9b18171..7652f8d 100644 --- a/src/ranap/RANAP_UnsuccessfulLinking-IEs.c +++ b/src/ranap/RANAP_UnsuccessfulLinking-IEs.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UnsuccessfulLinking-IEs.h> @@ -11,87 +12,11 @@ static asn_per_constraints_t asn_PER_type_RANAP_UnsuccessfulLinking_IEs_constr_1 { APC_CONSTRAINED, 7, 7, 1l, 128l } /* (SIZE(1..128)) */, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_MemberD_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct MemberD, tMGI), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_TMGI, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "tMGI" - }, - { ATF_NOFLAGS, 0, offsetof(struct MemberD, cause), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - +1, /* EXPLICIT tag at current level */ - &asn_DEF_RANAP_Cause, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "cause" - }, - { ATF_POINTER, 1, offsetof(struct MemberD, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RANAP_ProtocolExtensionContainer, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_MemberD_oms_2[] = { 2 }; -static const ber_tlv_tag_t asn_DEF_MemberD_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MemberD_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* tMGI */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cause */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_MemberD_specs_2 = { - sizeof(struct MemberD), - offsetof(struct MemberD, _asn_ctx), - asn_MAP_MemberD_tag2el_2, - 3, /* Count of tags in the map */ - asn_MAP_MemberD_oms_2, /* Optional members */ - 1, 0, /* Root/Additions */ - 2, /* Start extensions */ - 4 /* Stop extensions */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_MemberD_2 = { - "SEQUENCE", - "SEQUENCE", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_MemberD_tags_2, - sizeof(asn_DEF_MemberD_tags_2) - /sizeof(asn_DEF_MemberD_tags_2[0]), /* 1 */ - asn_DEF_MemberD_tags_2, /* Same as above */ - sizeof(asn_DEF_MemberD_tags_2) - /sizeof(asn_DEF_MemberD_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_MemberD_2, - 3, /* Elements count */ - &asn_SPC_MemberD_specs_2 /* Additional specs */ -}; - static asn_TYPE_member_t asn_MBR_RANAP_UnsuccessfulLinking_IEs_1[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_MemberD_2, + &asn_DEF_RANAP_UnsuccessfulLinking_IEs_Value, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, diff --git a/src/ranap/RANAP_UnsuccessfulOutcome.c b/src/ranap/RANAP_UnsuccessfulOutcome.c index 897d1af..377aab2 100644 --- a/src/ranap/RANAP_UnsuccessfulOutcome.c +++ b/src/ranap/RANAP_UnsuccessfulOutcome.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UnsuccessfulOutcome.h> diff --git a/src/ranap/RANAP_UnsuccessfullyTransmittedDataVolume.c b/src/ranap/RANAP_UnsuccessfullyTransmittedDataVolume.c index 164712b..a14c2bf 100644 --- a/src/ranap/RANAP_UnsuccessfullyTransmittedDataVolume.c +++ b/src/ranap/RANAP_UnsuccessfullyTransmittedDataVolume.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UnsuccessfullyTransmittedDataVolume.h> diff --git a/src/ranap/RANAP_UplinkInformationExchangeFailure.c b/src/ranap/RANAP_UplinkInformationExchangeFailure.c index ce7253a..e27bc7b 100644 --- a/src/ranap/RANAP_UplinkInformationExchangeFailure.c +++ b/src/ranap/RANAP_UplinkInformationExchangeFailure.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UplinkInformationExchangeFailure.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_uplinkInformationExchangeFailure_ies_tags_2[] (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_uplinkInformationExchangeFailure_ies_specs_2 = { - sizeof(struct uplinkInformationExchangeFailure_ies), - offsetof(struct uplinkInformationExchangeFailure_ies, _asn_ctx), + sizeof(struct RANAP_UplinkInformationExchangeFailure__uplinkInformationExchangeFailure_ies), + offsetof(struct RANAP_UplinkInformationExchangeFailure__uplinkInformationExchangeFailure_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_UplinkInformationExchangeRequest.c b/src/ranap/RANAP_UplinkInformationExchangeRequest.c index 1be1464..fc10752 100644 --- a/src/ranap/RANAP_UplinkInformationExchangeRequest.c +++ b/src/ranap/RANAP_UplinkInformationExchangeRequest.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UplinkInformationExchangeRequest.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_uplinkInformationExchangeRequest_ies_tags_2[] (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_uplinkInformationExchangeRequest_ies_specs_2 = { - sizeof(struct uplinkInformationExchangeRequest_ies), - offsetof(struct uplinkInformationExchangeRequest_ies, _asn_ctx), + sizeof(struct RANAP_UplinkInformationExchangeRequest__uplinkInformationExchangeRequest_ies), + offsetof(struct RANAP_UplinkInformationExchangeRequest__uplinkInformationExchangeRequest_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_UplinkInformationExchangeResponse.c b/src/ranap/RANAP_UplinkInformationExchangeResponse.c index 638a9d3..462afcd 100644 --- a/src/ranap/RANAP_UplinkInformationExchangeResponse.c +++ b/src/ranap/RANAP_UplinkInformationExchangeResponse.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UplinkInformationExchangeResponse.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_uplinkInformationExchangeResponse_ies_tags_2[ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_uplinkInformationExchangeResponse_ies_specs_2 = { - sizeof(struct uplinkInformationExchangeResponse_ies), - offsetof(struct uplinkInformationExchangeResponse_ies, _asn_ctx), + sizeof(struct RANAP_UplinkInformationExchangeResponse__uplinkInformationExchangeResponse_ies), + offsetof(struct RANAP_UplinkInformationExchangeResponse__uplinkInformationExchangeResponse_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/ranap/RANAP_UserPlaneInformation.c b/src/ranap/RANAP_UserPlaneInformation.c index cf47b4a..d341dda 100644 --- a/src/ranap/RANAP_UserPlaneInformation.c +++ b/src/ranap/RANAP_UserPlaneInformation.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-PDU" * found in "../../asn1/ranap/RANAP-PDU.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UserPlaneInformation.h> diff --git a/src/ranap/RANAP_UserPlaneMode.c b/src/ranap/RANAP_UserPlaneMode.c index 2e6205a..22d5bdb 100644 --- a/src/ranap/RANAP_UserPlaneMode.c +++ b/src/ranap/RANAP_UserPlaneMode.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_UserPlaneMode.h> diff --git a/src/ranap/RANAP_VelocityEstimate.c b/src/ranap/RANAP_VelocityEstimate.c index 14d7ad4..cecd9ed 100644 --- a/src/ranap/RANAP_VelocityEstimate.c +++ b/src/ranap/RANAP_VelocityEstimate.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_VelocityEstimate.h> diff --git a/src/ranap/RANAP_VerticalAccuracyCode.c b/src/ranap/RANAP_VerticalAccuracyCode.c index 0843c05..933bd5f 100644 --- a/src/ranap/RANAP_VerticalAccuracyCode.c +++ b/src/ranap/RANAP_VerticalAccuracyCode.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_VerticalAccuracyCode.h> diff --git a/src/ranap/RANAP_VerticalSpeedDirection.c b/src/ranap/RANAP_VerticalSpeedDirection.c index 6806f9d..cdc6012 100644 --- a/src/ranap/RANAP_VerticalSpeedDirection.c +++ b/src/ranap/RANAP_VerticalSpeedDirection.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_VerticalSpeedDirection.h> diff --git a/src/ranap/RANAP_VerticalVelocity.c b/src/ranap/RANAP_VerticalVelocity.c index c35778a..2bdbc74 100644 --- a/src/ranap/RANAP_VerticalVelocity.c +++ b/src/ranap/RANAP_VerticalVelocity.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_VerticalVelocity.h> diff --git a/src/ranap/RANAP_VoiceSupportMatchIndicator.c b/src/ranap/RANAP_VoiceSupportMatchIndicator.c index 2ad7a29..d58ebc8 100644 --- a/src/ranap/RANAP_VoiceSupportMatchIndicator.c +++ b/src/ranap/RANAP_VoiceSupportMatchIndicator.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RANAP-IEs" * found in "../../asn1/ranap/RANAP-IEs.asn" + * `asn1c -fcompound-names -R` */ #include <osmocom/ranap/RANAP_VoiceSupportMatchIndicator.h> diff --git a/src/ranap_common.c b/src/ranap_common.c index 4ada7ff..68c3d2d 100644 --- a/src/ranap_common.c +++ b/src/ranap_common.c @@ -562,7 +562,8 @@ int ranap_decode_rab_setupormodifieditemies_fromlist( ANY_t *any_p) { RANAP_RAB_SetupOrModifiedItem_t *ranaP_RABSetupOrModifiedItem_p = NULL; - int decoded = 0; + int decoded; + assert(any_p != NULL); assert(raB_SetupOrModifiedItemIEs != NULL); @@ -570,7 +571,7 @@ int ranap_decode_rab_setupormodifieditemies_fromlist( RANAP_DEBUG("Decoding message RANAP_RAB_SetupOrModifiedItemIEs (%s:%d)\n", __FILE__, __LINE__); decoded = ANY_to_type_aper(any_p, &asn_DEF_RANAP_RAB_SetupOrModifiedItem, (void**)&ranaP_RABSetupOrModifiedItem_p); if (decoded < 0) { - RANAP_DEBUG("Decoding of IE raB_SetupOrModifiedItem failed\n"); + LOGP(DRANAP, LOGL_ERROR, "Decoding of IE raB_SetupOrModifiedItem failed\n"); return -1; } if (asn1_xer_print) @@ -581,3 +582,97 @@ int ranap_decode_rab_setupormodifieditemies_fromlist( return decoded; } +int ranap_decode_rab_faileditemies_fromlist(RANAP_RAB_FailedItemIEs_t *raB_FailedItemIEs, ANY_t *any_p) +{ + RANAP_RAB_FailedItem_t *ranaP_RABFailedItem_p = NULL; + int decoded; + + assert(any_p != NULL); + assert(raB_FailedItemIEs != NULL); + + memset(raB_FailedItemIEs, 0, sizeof(RANAP_RAB_FailedItemIEs_t)); + RANAP_DEBUG("Decoding message RANAP_RAB_FailedItemIEs (%s:%d)\n", __FILE__, __LINE__); + decoded = ANY_to_type_aper(any_p, &asn_DEF_RANAP_RAB_FailedItem, (void **)&ranaP_RABFailedItem_p); + if (decoded < 0) { + LOGP(DRANAP, LOGL_ERROR, "Decoding of IE raB_FailedItem failed\n"); + return -1; + } + if (asn1_xer_print) + xer_fprint(stdout, &asn_DEF_RANAP_RAB_FailedItem, ranaP_RABFailedItem_p); + memcpy(&raB_FailedItemIEs->raB_FailedItem, ranaP_RABFailedItem_p, sizeof(RANAP_RAB_FailedItem_t)); + FREEMEM(ranaP_RABFailedItem_p); + + return decoded; +} + +int ranap_decode_rab_releaseitemies_fromlist(RANAP_RAB_ReleaseItemIEs_t *raB_ReleaseItemIEs, ANY_t *any_p) +{ + RANAP_RAB_ReleaseItem_t *ranaP_RABReleaseItem_p = NULL; + int decoded; + + assert(any_p != NULL); + assert(raB_ReleaseItemIEs != NULL); + + memset(raB_ReleaseItemIEs, 0, sizeof(RANAP_RAB_ReleaseItemIEs_t)); + RANAP_DEBUG("Decoding message RANAP_RAB_ReleaseItemIEs (%s:%d)\n", __FILE__, __LINE__); + decoded = ANY_to_type_aper(any_p, &asn_DEF_RANAP_RAB_ReleaseItem, (void **)&ranaP_RABReleaseItem_p); + if (decoded < 0) { + LOGP(DRANAP, LOGL_ERROR, "Decoding of IE raB_ReleaseItem failed\n"); + return -1; + } + if (asn1_xer_print) + xer_fprint(stdout, &asn_DEF_RANAP_RAB_ReleaseItem, ranaP_RABReleaseItem_p); + memcpy(&raB_ReleaseItemIEs->raB_ReleaseItem, ranaP_RABReleaseItem_p, sizeof(RANAP_RAB_ReleaseItem_t)); + FREEMEM(ranaP_RABReleaseItem_p); + + return decoded; +} + +int ranap_decode_rab_releaseditemies_fromlist(RANAP_RAB_ReleasedItemIEs_t *raB_ReleasedItemIEs, ANY_t *any_p) +{ + RANAP_RAB_ReleasedItem_t *ranaP_RABReleasedItem_p = NULL; + int decoded; + + assert(any_p != NULL); + assert(raB_ReleasedItemIEs != NULL); + + memset(raB_ReleasedItemIEs, 0, sizeof(RANAP_RAB_ReleasedItemIEs_t)); + RANAP_DEBUG("Decoding message RANAP_RAB_ReleasedItemIEs (%s:%d)\n", __FILE__, __LINE__); + decoded = ANY_to_type_aper(any_p, &asn_DEF_RANAP_RAB_ReleasedItem, (void **)&ranaP_RABReleasedItem_p); + if (decoded < 0) { + LOGP(DRANAP, LOGL_ERROR, "Decoding of IE raB_ReleasedItem failed\n"); + return -1; + } + if (asn1_xer_print) + xer_fprint(stdout, &asn_DEF_RANAP_RAB_ReleasedItem, ranaP_RABReleasedItem_p); + memcpy(&raB_ReleasedItemIEs->raB_ReleasedItem, ranaP_RABReleasedItem_p, sizeof(RANAP_RAB_ReleasedItem_t)); + FREEMEM(ranaP_RABReleasedItem_p); + + return decoded; +} + +int ranap_decode_rab_setupormodifyitemfirst( + RANAP_RAB_SetupOrModifyItemFirst_t *raB_SetupOrModifyItemFirst, + ANY_t *any_p) +{ + RANAP_RAB_SetupOrModifyItemFirst_t *ranaP_RABSetupOrModifyItemFirst_p = NULL; + int decoded; + + assert(any_p != NULL); + assert(raB_SetupOrModifyItemFirst != NULL); + + memset(raB_SetupOrModifyItemFirst, 0, sizeof(RANAP_RAB_SetupOrModifyItemFirst_t)); + RANAP_DEBUG("Decoding message RANAP_RAB_SetupOrModifyItemFirst_t (%s:%d)\n", __FILE__, __LINE__); + decoded = ANY_to_type_aper(any_p, &asn_DEF_RANAP_RAB_SetupOrModifyItemFirst, + (void **)&ranaP_RABSetupOrModifyItemFirst_p); + if (decoded < 0) { + LOGP(DRANAP, LOGL_ERROR, "Decoding of RANAP_RAB_SetupOrModifyItemFirst_t failed\n"); + return -1; + } + if (asn1_xer_print) + xer_fprint(stdout, &asn_DEF_RANAP_RAB_SetupOrModifyItemFirst, ranaP_RABSetupOrModifyItemFirst_p); + memcpy(raB_SetupOrModifyItemFirst, ranaP_RABSetupOrModifyItemFirst_p, sizeof(RANAP_RAB_SetupOrModifyItemFirst_t)); + FREEMEM(ranaP_RABSetupOrModifyItemFirst_p); + + return decoded; +} diff --git a/src/ranap_common_cn.c b/src/ranap_common_cn.c index d2c875e..56ac4e8 100644 --- a/src/ranap_common_cn.c +++ b/src/ranap_common_cn.c @@ -29,10 +29,9 @@ #include <osmocom/ranap/ranap_common_cn.h> #include <osmocom/ranap/ranap_ies_defs.h> -#include <osmocom/iuh/hnbgw.h> +#define DRANAP _ranap_DRANAP -static int cn_ranap_rx_initiating_msg_co(void *ctx, RANAP_InitiatingMessage_t *imsg, - ranap_message *message) +static int cn_ranap_rx_initiating_msg_co(RANAP_InitiatingMessage_t *imsg, ranap_message *message) { int rc = 0; @@ -74,8 +73,8 @@ static int cn_ranap_rx_initiating_msg_co(void *ctx, RANAP_InitiatingMessage_t *i rc = ranap_decode_iu_releasecommandies(&message->msg.iu_ReleaseCommandIEs, &imsg->value); break; default: - LOGP(DRANAP, LOGL_NOTICE, "Received suspicious RANAP " - "Procedure %s (CO, IM) from RNC, ignoring\n", + LOGP(DRANAP, LOGL_INFO, + "Received RANAP Procedure %s (CO, IM) from RNC. Decode not implemented\n", get_value_string(ranap_procedure_code_vals, imsg->procedureCode)); rc = -1; break; @@ -118,15 +117,14 @@ static void cn_ranap_free_initiating_msg_co(ranap_message *message) ranap_free_iu_releasecommandies(&message->msg.iu_ReleaseCommandIEs); break; default: - LOGP(DRANAP, LOGL_NOTICE, "Not freeing suspicious RANAP " - "Procedure %s (CO, IM) from RNC\n", + LOGP(DRANAP, LOGL_INFO, + "Freeing RANAP Procedure %s (CO, IM) from RNC not implemented\n", get_value_string(ranap_procedure_code_vals, message->procedureCode)); break; } } -static int cn_ranap_rx_successful_msg_co(void *ctx, RANAP_SuccessfulOutcome_t *imsg, - ranap_message *message) +static int cn_ranap_rx_successful_msg_co(RANAP_SuccessfulOutcome_t *imsg, ranap_message *message) { int rc = 0; @@ -150,8 +148,8 @@ static int cn_ranap_rx_successful_msg_co(void *ctx, RANAP_SuccessfulOutcome_t *i rc = ranap_decode_iu_releasecompleteies(&message->msg.iu_ReleaseCompleteIEs, &imsg->value); break; default: - LOGP(DRANAP, LOGL_NOTICE, "Received suspicious RANAP " - "Procedure %s (SO) from RNC, ignoring\n", + LOGP(DRANAP, LOGL_INFO, + "Received RANAP Procedure %s (SO) from RNC. Decode not implemented\n", get_value_string(ranap_procedure_code_vals, imsg->procedureCode)); rc = -1; break; @@ -176,15 +174,14 @@ static void cn_ranap_free_successful_msg_co(ranap_message *message) ranap_free_iu_releasecompleteies(&message->msg.iu_ReleaseCompleteIEs); break; default: - LOGP(DRANAP, LOGL_NOTICE, "Not freeing suspicious RANAP " - "Procedure %s (SO) from RNC\n", + LOGP(DRANAP, LOGL_INFO, + "Freeing RANAP Procedure %s (SO) from RNC not implemented\n", get_value_string(ranap_procedure_code_vals, message->procedureCode)); break; } } -static int cn_ranap_rx_outcome_msg_co(void *ctx, RANAP_Outcome_t *imsg, - ranap_message *message) +static int cn_ranap_rx_outcome_msg_co(RANAP_Outcome_t *imsg, ranap_message *message) { int rc = 0; @@ -200,8 +197,8 @@ static int cn_ranap_rx_outcome_msg_co(void *ctx, RANAP_Outcome_t *imsg, rc = ranap_decode_rab_assignmentresponseies(&message->msg.raB_AssignmentResponseIEs, &imsg->value); break; default: - LOGP(DRANAP, LOGL_NOTICE, "Received suspicious RANAP " - "Procedure %s (O) from RNC, ignoring\n", + LOGP(DRANAP, LOGL_INFO, + "Received RANAP Procedure %s (O) from RNC. Decode not implemented\n", get_value_string(ranap_procedure_code_vals, imsg->procedureCode)); rc = -1; break; @@ -218,23 +215,23 @@ static void cn_ranap_free_outcome_msg_co(ranap_message *message) ranap_free_rab_assignmentresponseies(&message->msg.raB_AssignmentResponseIEs); break; default: - LOGP(DRANAP, LOGL_NOTICE, "Not freeing suspicious RANAP " - "Procedure %s (O) from RNC\n", + LOGP(DRANAP, LOGL_INFO, + "Freeing RANAP Procedure %s (O) from RNC not implemented\n", get_value_string(ranap_procedure_code_vals, message->procedureCode)); break; } } -static int _cn_ranap_rx_co(void *ctx, RANAP_RANAP_PDU_t *pdu, ranap_message *message) +static int _cn_ranap_rx_co(RANAP_RANAP_PDU_t *pdu, ranap_message *message) { int rc = 0; switch (pdu->present) { case RANAP_RANAP_PDU_PR_initiatingMessage: - rc = cn_ranap_rx_initiating_msg_co(ctx, &pdu->choice.initiatingMessage, message); + rc = cn_ranap_rx_initiating_msg_co(&pdu->choice.initiatingMessage, message); break; case RANAP_RANAP_PDU_PR_successfulOutcome: - rc = cn_ranap_rx_successful_msg_co(ctx, &pdu->choice.successfulOutcome, message); + rc = cn_ranap_rx_successful_msg_co(&pdu->choice.successfulOutcome, message); break; case RANAP_RANAP_PDU_PR_unsuccessfulOutcome: LOGP(DRANAP, LOGL_NOTICE, "Received unsupported RANAP " @@ -244,11 +241,11 @@ static int _cn_ranap_rx_co(void *ctx, RANAP_RANAP_PDU_t *pdu, ranap_message *mes rc = -1; break; case RANAP_RANAP_PDU_PR_outcome: - rc = cn_ranap_rx_outcome_msg_co(ctx, &pdu->choice.outcome, message); + rc = cn_ranap_rx_outcome_msg_co(&pdu->choice.outcome, message); break; default: - LOGP(DRANAP, LOGL_NOTICE, "Received suspicious RANAP " - "presence %s (CO) from RNC, ignoring\n", + LOGP(DRANAP, LOGL_INFO, + "Received RANAP Procedure %s (CO) from RNC. Decode not implemented\n", get_value_string(ranap_presence_vals, pdu->present)); rc = -1; break; @@ -257,7 +254,8 @@ static int _cn_ranap_rx_co(void *ctx, RANAP_RANAP_PDU_t *pdu, ranap_message *mes return rc; } -static void _cn_ranap_free_co(ranap_message *message) +/* free a decoded connection-oriented RANAP message */ +void ranap_cn_rx_co_free(ranap_message *message) { switch (message->direction) { case RANAP_RANAP_PDU_PR_initiatingMessage: @@ -267,57 +265,70 @@ static void _cn_ranap_free_co(ranap_message *message) cn_ranap_free_successful_msg_co(message); break; case RANAP_RANAP_PDU_PR_unsuccessfulOutcome: - LOGP(DRANAP, LOGL_NOTICE, "Not freeing unsupported RANAP " - "unsuccessful outcome procedure (CO) from RNC\n"); + LOGP(DRANAP, LOGL_INFO, + "Freeing RANAP unsuccessful outcome procedure (CO) from RNC not implemented\n"); break; case RANAP_RANAP_PDU_PR_outcome: cn_ranap_free_outcome_msg_co(message); break; default: - LOGP(DRANAP, LOGL_NOTICE, "Received suspicious RANAP " - "presence %s (CO) from RNC, ignoring\n", + LOGP(DRANAP, LOGL_INFO, + "Freeing RANAP Procedure %s (CO) from RNC not implemented\n", get_value_string(ranap_presence_vals, message->direction)); break; } } -/* receive a connection-oriented RANAP message and call - * cn_ranap_handle_co() with the resulting ranap_message struct */ -int ranap_cn_rx_co(ranap_handle_cb cb, void *ctx, uint8_t *data, size_t len) +/* decode a connection-oriented RANAP message */ +int ranap_cn_rx_co_decode2(ranap_message *message, uint8_t *data, size_t len) { RANAP_RANAP_PDU_t *pdu = NULL; - ranap_message message; asn_dec_rval_t dec_ret; int rc; - memset(&message, 0, sizeof(message)); + memset(message, 0, sizeof(*message)); - dec_ret = aper_decode(NULL,&asn_DEF_RANAP_RANAP_PDU, (void **) &pdu, - data, len, 0, 0); + dec_ret = aper_decode(NULL, &asn_DEF_RANAP_RANAP_PDU, (void **)&pdu, data, len, 0, 0); if (dec_ret.code != RC_OK) { LOGP(DRANAP, LOGL_ERROR, "Error in RANAP ASN.1 decode\n"); return -1; } - message.direction = pdu->present; + message->direction = pdu->present; + + rc = _cn_ranap_rx_co(pdu, message); + + ASN_STRUCT_FREE(asn_DEF_RANAP_RANAP_PDU, pdu); + + return rc; +} + +int ranap_cn_rx_co_decode(void *unused, ranap_message *message, uint8_t *data, size_t len) +{ + return ranap_cn_rx_co_decode2(message, data, len); +} + +/* receive a connection-oriented RANAP message and call + * cn_ranap_handle_co() with the resulting ranap_message struct */ +int ranap_cn_rx_co(ranap_handle_cb cb, void *priv, uint8_t *data, size_t len) +{ + ranap_message message; + int rc; - rc = _cn_ranap_rx_co(ctx, pdu, &message); + rc = ranap_cn_rx_co_decode2(&message, data, len); if (rc == 0) - (*cb)(ctx, &message); + (*cb)(priv, &message); else LOGP(DRANAP, LOGL_ERROR, "Not calling cn_ranap_handle_co() due to rc=%d\n", rc); /* Free the asn1 structs in message */ - _cn_ranap_free_co(&message); - - ASN_STRUCT_FREE(asn_DEF_RANAP_RANAP_PDU, pdu); + ranap_cn_rx_co_free(&message); return rc; } -static int cn_ranap_rx_initiating_msg_cl(void *ctx, RANAP_InitiatingMessage_t *imsg, - ranap_message *message) +static int cn_ranap_rx_initiating_msg_cl(RANAP_InitiatingMessage_t *imsg, ranap_message *message) { int rc = 0; @@ -355,8 +366,8 @@ static int cn_ranap_rx_initiating_msg_cl(void *ctx, RANAP_InitiatingMessage_t *i rc = ranap_decode_pagingies(&message->msg.pagingIEs, &imsg->value); break; default: - LOGP(DRANAP, LOGL_NOTICE, "Received suspicious RANAP " - "Procedure %s (CL, IM) from RNC, ignoring\n", + LOGP(DRANAP, LOGL_INFO, + "Received RANAP Procedure %s (CL, IM) from RNC. Decode not implemented\n", get_value_string(ranap_procedure_code_vals, imsg->procedureCode)); break; } @@ -395,15 +406,14 @@ static void cn_ranap_free_initiating_msg_cl(ranap_message *message) ranap_free_pagingies(&message->msg.pagingIEs); break; default: - LOGP(DRANAP, LOGL_NOTICE, "Not freeing suspicious RANAP " - "Procedure %s (CL, IM)\n", + LOGP(DRANAP, LOGL_INFO, + "Freeing RANAP Procedure %s (CL, IM) not implemented\n", get_value_string(ranap_procedure_code_vals, message->procedureCode)); break; } } -static int cn_ranap_rx_successful_msg_cl(void *ctx, RANAP_SuccessfulOutcome_t *imsg, - ranap_message *message) +static int cn_ranap_rx_successful_msg_cl(RANAP_SuccessfulOutcome_t *imsg, ranap_message *message) { int rc = 0; @@ -430,8 +440,8 @@ static int cn_ranap_rx_successful_msg_cl(void *ctx, RANAP_SuccessfulOutcome_t *i rc = ranap_decode_uplinkinformationexchangeresponseies(&message->msg.uplinkInformationExchangeResponseIEs, &imsg->value); break; default: - LOGP(DRANAP, LOGL_NOTICE, "Received suspicious RANAP " - "Procedure %s (CL, SO) from RNC, ignoring\n", + LOGP(DRANAP, LOGL_INFO, + "Received RANAP Procedure %s (CL, SO) from RNC. Decode not implemented\n", get_value_string(ranap_procedure_code_vals, imsg->procedureCode)); break; } @@ -458,14 +468,14 @@ static void cn_ranap_free_successful_msg_cl(ranap_message *message) ranap_free_uplinkinformationexchangeresponseies(&message->msg.uplinkInformationExchangeResponseIEs); break; default: - LOGP(DRANAP, LOGL_NOTICE, "Not freeing suspicious RANAP " - "Procedure %s (CL, SO)\n", + LOGP(DRANAP, LOGL_INFO, + "Freeing RANAP Procedure %s (CL, SO) from RNC not implemented\n", get_value_string(ranap_procedure_code_vals, message->procedureCode)); break; } } -static int _cn_ranap_rx_cl(void *ctx, RANAP_RANAP_PDU_t *pdu, ranap_message *message) +static int _cn_ranap_rx_cl(RANAP_RANAP_PDU_t *pdu, ranap_message *message) { int rc = 0; @@ -473,12 +483,10 @@ static int _cn_ranap_rx_cl(void *ctx, RANAP_RANAP_PDU_t *pdu, ranap_message *mes switch (pdu->present) { case RANAP_RANAP_PDU_PR_initiatingMessage: - rc = cn_ranap_rx_initiating_msg_cl(ctx, &pdu->choice.initiatingMessage, - message); + rc = cn_ranap_rx_initiating_msg_cl(&pdu->choice.initiatingMessage, message); break; case RANAP_RANAP_PDU_PR_successfulOutcome: - rc = cn_ranap_rx_successful_msg_cl(ctx, &pdu->choice.successfulOutcome, - message); + rc = cn_ranap_rx_successful_msg_cl(&pdu->choice.successfulOutcome, message); break; case RANAP_RANAP_PDU_PR_unsuccessfulOutcome: LOGP(DRANAP, LOGL_NOTICE, "Received unsupported RANAP " @@ -487,8 +495,8 @@ static int _cn_ranap_rx_cl(void *ctx, RANAP_RANAP_PDU_t *pdu, ranap_message *mes pdu->choice.unsuccessfulOutcome.procedureCode)); break; default: - LOGP(DRANAP, LOGL_NOTICE, "Received suspicious RANAP " - "presence %s (CL) from RNC, ignoring\n", + LOGP(DRANAP, LOGL_INFO, + "Received RANAP Procedure %s (CL) from RNC. Decode not implemented\n", get_value_string(ranap_presence_vals, pdu->present)); break; } @@ -496,7 +504,8 @@ static int _cn_ranap_rx_cl(void *ctx, RANAP_RANAP_PDU_t *pdu, ranap_message *mes return rc; } -static void _cn_ranap_free_cl(ranap_message *message) +/* free a decoded connection-less RANAP message */ +void ranap_cn_rx_cl_free(ranap_message *message) { switch (message->direction) { case RANAP_RANAP_PDU_PR_initiatingMessage: @@ -506,8 +515,8 @@ static void _cn_ranap_free_cl(ranap_message *message) cn_ranap_free_successful_msg_cl(message); break; case RANAP_RANAP_PDU_PR_unsuccessfulOutcome: - LOGP(DRANAP, LOGL_NOTICE, "Not freeing unsupported RANAP " - "unsuccessful outcome procedure from RNC\n"); + LOGP(DRANAP, LOGL_INFO, + "Freeing RANAP unsuccessful outcome procedure from RNC not implemented\n"); break; default: LOGP(DRANAP, LOGL_NOTICE, "Suspicious RANAP " @@ -516,37 +525,51 @@ static void _cn_ranap_free_cl(ranap_message *message) } } -/* receive a connection-less RANAP message and call - * cn_ranap_handle_co() with the resulting ranap_message struct */ -int ranap_cn_rx_cl(ranap_handle_cb cb, void *ctx, uint8_t *data, size_t len) +/* decode a connection-less RANAP message */ +int ranap_cn_rx_cl_decode2(ranap_message *message, uint8_t *data, size_t len) { RANAP_RANAP_PDU_t *pdu = NULL; - ranap_message message; asn_dec_rval_t dec_ret; int rc; - memset(&message, 0, sizeof(message)); + memset(message, 0, sizeof(*message)); - dec_ret = aper_decode(NULL,&asn_DEF_RANAP_RANAP_PDU, (void **) &pdu, - data, len, 0, 0); + dec_ret = aper_decode(NULL, &asn_DEF_RANAP_RANAP_PDU, (void **)&pdu, data, len, 0, 0); if (dec_ret.code != RC_OK) { LOGP(DRANAP, LOGL_ERROR, "Error in RANAP ASN.1 decode\n"); return -1; } - message.direction = pdu->present; + message->direction = pdu->present; + + rc = _cn_ranap_rx_cl(pdu, message); + + ASN_STRUCT_FREE(asn_DEF_RANAP_RANAP_PDU, pdu); + + return rc; +} + +int ranap_cn_rx_cl_decode(void *unused, ranap_message *message, uint8_t *data, size_t len) +{ + return ranap_cn_rx_cl_decode2(message, data, len); +} + +/* receive a connection-less RANAP message and call + * cn_ranap_handle_co() with the resulting ranap_message struct */ +int ranap_cn_rx_cl(ranap_handle_cb cb, void *priv, uint8_t *data, size_t len) +{ + ranap_message message; + int rc; - rc = _cn_ranap_rx_cl(ctx, pdu, &message); + rc = ranap_cn_rx_cl_decode2(&message, data, len); if (rc == 0) - (*cb)(ctx, &message); + (*cb)(priv, &message); else LOGP(DRANAP, LOGL_ERROR, "Not calling cn_ranap_handle_cl() due to rc=%d\n", rc); /* Free the asn1 structs in message */ - _cn_ranap_free_cl(&message); - - ASN_STRUCT_FREE(asn_DEF_RANAP_RANAP_PDU, pdu); + ranap_cn_rx_cl_free(&message); return rc; } diff --git a/src/ranap_common_ran.c b/src/ranap_common_ran.c new file mode 100644 index 0000000..0bf3796 --- /dev/null +++ b/src/ranap_common_ran.c @@ -0,0 +1,186 @@ +/* RANAP interface for a ran-network node */ + +/* (C) 2021 by sysmocom s.f.m.c. GmbH <info@sysmocom.de> + * All Rights Reserved + * + * Author: Philipp Maier + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +#include <unistd.h> +#include <errno.h> +#include <string.h> + +#include <osmocom/core/utils.h> +#include <osmocom/core/logging.h> + +#include <osmocom/ranap/ranap_common.h> +#include <osmocom/ranap/ranap_common_ran.h> +#include <osmocom/ranap/ranap_ies_defs.h> + +#define DRANAP _ranap_DRANAP + +static int ran_ranap_rx_initiating_msg_co(void *ctx, RANAP_InitiatingMessage_t *imsg, ranap_message *message) +{ + int rc = 0; + + message->procedureCode = imsg->procedureCode; + message->criticality = imsg->criticality; + + DEBUGP(DRANAP, "Rx CO IM (%s)\n", get_value_string(ranap_procedure_code_vals, imsg->procedureCode)); + + switch (imsg->procedureCode) { + case RANAP_ProcedureCode_id_RAB_Assignment: + rc = ranap_decode_rab_assignmentrequesties(&message->msg.raB_AssignmentRequestIEs, &imsg->value); + break; + case RANAP_ProcedureCode_id_Iu_Release: + rc = ranap_decode_iu_releasecommandies(&message->msg.iu_ReleaseCommandIEs, &imsg->value); + break; + default: + LOGP(DRANAP, LOGL_INFO, + "Received RANAP Procedure %s (CO, IM) from CN. Decode not implemented\n", + get_value_string(ranap_procedure_code_vals, imsg->procedureCode)); + rc = -1; + break; + } + + return rc; +} + +static void ran_ranap_free_initiating_msg_co(ranap_message *message) +{ + switch (message->procedureCode) { + case RANAP_ProcedureCode_id_RAB_Assignment: + ranap_free_rab_assignmentrequesties(&message->msg.raB_AssignmentRequestIEs); + break; + case RANAP_ProcedureCode_id_Iu_Release: + ranap_free_iu_releasecommandies(&message->msg.iu_ReleaseCommandIEs); + break; + default: + LOGP(DRANAP, LOGL_INFO, + "Freeing RANAP Procedure %s (CO, IM) from CN not implemented\n", + get_value_string(ranap_procedure_code_vals, message->procedureCode)); + break; + } +} + +static int _ran_ranap_rx_co(void *ctx, RANAP_RANAP_PDU_t *pdu, ranap_message *message) +{ + int rc = 0; + + switch (pdu->present) { + case RANAP_RANAP_PDU_PR_initiatingMessage: + rc = ran_ranap_rx_initiating_msg_co(ctx, &pdu->choice.initiatingMessage, message); + break; + case RANAP_RANAP_PDU_PR_successfulOutcome: + LOGP(DRANAP, LOGL_NOTICE, "Received unsupported RANAP " + "successful outcome procedure %s (CO) from CN, ignoring\n", + get_value_string(ranap_procedure_code_vals, pdu->choice.successfulOutcome.procedureCode)); + rc = -1; + break; + case RANAP_RANAP_PDU_PR_unsuccessfulOutcome: + LOGP(DRANAP, LOGL_NOTICE, "Received unsupported RANAP " + "unsuccessful outcome procedure %s (CO) from CN, ignoring\n", + get_value_string(ranap_procedure_code_vals, pdu->choice.unsuccessfulOutcome.procedureCode)); + rc = -1; + break; + case RANAP_RANAP_PDU_PR_outcome: + LOGP(DRANAP, LOGL_NOTICE, "Received unsupported RANAP " + "outcome procedure %s (CO) from CN, ignoring\n", + get_value_string(ranap_procedure_code_vals, pdu->choice.outcome.procedureCode)); + rc = -1; + break; + default: + LOGP(DRANAP, LOGL_INFO, + "Received RANAP Procedure %s (CO) from CN. Decode not implemented\n", + get_value_string(ranap_presence_vals, pdu->present)); + rc = -1; + break; + } + + return rc; +} + +/* free a decoded connection-oriented RANAP message */ +void ranap_ran_rx_co_free(ranap_message *message) +{ + switch (message->direction) { + case RANAP_RANAP_PDU_PR_initiatingMessage: + ran_ranap_free_initiating_msg_co(message); + break; + case RANAP_RANAP_PDU_PR_successfulOutcome: + LOGP(DRANAP, LOGL_NOTICE, "Not freeing unsupported RANAP " + "successful outcome procedure (CO) from CN\n"); + break; + case RANAP_RANAP_PDU_PR_unsuccessfulOutcome: + LOGP(DRANAP, LOGL_NOTICE, "Not freeing unsupported RANAP " + "unsuccessful outcome procedure (CO) from CN\n"); + break; + case RANAP_RANAP_PDU_PR_outcome: + LOGP(DRANAP, LOGL_NOTICE, "Not freeing unsupported RANAP " + "outcome procedure (CO) from CN\n"); + break; + default: + LOGP(DRANAP, LOGL_INFO, + "Freeing RANAP Procedure %s (CO) from CN not implemented\n", + get_value_string(ranap_presence_vals, message->direction)); + break; + } +} + +/* decode a connection-oriented RANAP message */ +int ranap_ran_rx_co_decode(void *ctx, ranap_message *message, uint8_t *data, size_t len) +{ + RANAP_RANAP_PDU_t *pdu = NULL; + asn_dec_rval_t dec_ret; + int rc; + + memset(message, 0, sizeof(*message)); + + dec_ret = aper_decode(NULL, &asn_DEF_RANAP_RANAP_PDU, (void **)&pdu, data, len, 0, 0); + if (dec_ret.code != RC_OK) { + LOGP(DRANAP, LOGL_ERROR, "Error in RANAP ASN.1 decode\n"); + return -1; + } + + message->direction = pdu->present; + + rc = _ran_ranap_rx_co(ctx, pdu, message); + + ASN_STRUCT_FREE(asn_DEF_RANAP_RANAP_PDU, pdu); + + return rc; +} + +/* receive a connection-oriented RANAP message and call + * cn_ranap_handle_co() with the resulting ranap_message struct */ +int ranap_ran_rx_co(ranap_handle_cb cb, void *ctx, uint8_t *data, size_t len) +{ + ranap_message message; + int rc; + + rc = ranap_ran_rx_co_decode(ctx, &message, data, len); + + if (rc == 0) + (*cb) (ctx, &message); + else + LOGP(DRANAP, LOGL_ERROR, "Not calling ran_ranap_handle_co() due to rc=%d\n", rc); + + /* Free the asn1 structs in message */ + ranap_ran_rx_co_free(&message); + + return rc; +} diff --git a/src/ranap_msg_factory.c b/src/ranap_msg_factory.c index 2ae2dbf..44b879f 100644 --- a/src/ranap_msg_factory.c +++ b/src/ranap_msg_factory.c @@ -20,6 +20,7 @@ #include <osmocom/core/utils.h> #include <osmocom/core/msgb.h> +#include <osmocom/core/socket.h> #include "asn1helpers.h" #include <osmocom/ranap/iu_helpers.h> @@ -42,6 +43,14 @@ static long *new_long(long in) struct msgb *ranap_new_msg_reset(RANAP_CN_DomainIndicator_t domain, const RANAP_Cause_t *cause) { + return ranap_new_msg_reset2(domain, cause, NULL); +} + +/*! generate RANAP RESET message. Like ranap_new_msg_reset(), but allows passing a Global-RNC-ID. */ +struct msgb *ranap_new_msg_reset2(RANAP_CN_DomainIndicator_t domain, + const RANAP_Cause_t *cause, + RANAP_GlobalRNC_ID_t *rnc_id) +{ RANAP_ResetIEs_t ies; RANAP_Reset_t out; struct msgb *msg; @@ -52,6 +61,14 @@ struct msgb *ranap_new_msg_reset(RANAP_CN_DomainIndicator_t domain, if (cause) memcpy(&ies.cause, cause, sizeof(ies.cause)); + if (rnc_id) { + ies.presenceMask = RESETIES_RANAP_GLOBALRNC_ID_PRESENT; + OCTET_STRING_noalloc(&ies.globalRNC_ID.pLMNidentity, + rnc_id->pLMNidentity.buf, + rnc_id->pLMNidentity.size); + ies.globalRNC_ID.rNC_ID = rnc_id->rNC_ID; + } + memset(&out, 0, sizeof(out)); rc = ranap_encode_reseties(&out, &ies); if (rc < 0) { @@ -202,18 +219,15 @@ struct msgb *ranap_new_msg_dt(uint8_t sapi, const uint8_t *nas, unsigned int nas return msg; } -static const enum RANAP_IntegrityProtectionAlgorithm ip_alg[2] = { - RANAP_IntegrityProtectionAlgorithm_standard_UMTS_integrity_algorithm_UIA1, - RANAP_IntegrityProtectionAlgorithm_standard_UMTS_integrity_algorithm_UIA2, -}; - -static const RANAP_EncryptionAlgorithm_t enc_alg[2] = { - RANAP_EncryptionAlgorithm_standard_UMTS_encryption_algorith_UEA1, - RANAP_EncryptionAlgorithm_standard_UMTS_encryption_algorithm_UEA2, -}; - -/*! \brief generate RANAP SECURITY MODE COMMAND message */ -struct msgb *ranap_new_msg_sec_mod_cmd(const uint8_t *ik, const uint8_t *ck, enum RANAP_KeyStatus status) +/*! \brief generate RANAP SECURITY MODE COMMAND message. + * \param[in] ik 128bit integrity protection key (mandatory) + * \param[in] ck 128bit ciphering key (optional) + * \param[in] status key status + * \param[in] uia_bitmask bit-mask of UIA algorithms; Bit0 = UIA0 .. Bit2 = UIA2 + * \param[in] uea_bitmask bit-mask of UEA algorithms; Bit0 = UEA0 .. Bit2 = UEA2; ck required + * \returns message buffer with encoded command message */ +struct msgb *ranap_new_msg_sec_mod_cmd2(const uint8_t *ik, const uint8_t *ck, enum RANAP_KeyStatus status, + uint8_t uia_bitmask, uint8_t uea_bitmask) { RANAP_SecurityModeCommandIEs_t ies; RANAP_SecurityModeCommand_t out; @@ -223,11 +237,26 @@ struct msgb *ranap_new_msg_sec_mod_cmd(const uint8_t *ik, const uint8_t *ck, enu memset(&ies, 0, sizeof(ies)); memset(&out, 0, sizeof(out)); - for (i = 0; i < ARRAY_SIZE(ip_alg); i++) { + for (i = 0; i < 8; i++) { + RANAP_IntegrityProtectionAlgorithm_t ialg; + if (!(uia_bitmask & (1 << i))) + continue; + switch (i) { + case 1: + ialg = RANAP_IntegrityProtectionAlgorithm_standard_UMTS_integrity_algorithm_UIA1; + break; + case 2: + ialg = RANAP_IntegrityProtectionAlgorithm_standard_UMTS_integrity_algorithm_UIA2; + break; + default: + LOGP(DRANAP, LOGL_ERROR, "Unsupported UIA algorithm UIA%d specified\n", i); + return NULL; + } + /* needs to be dynamically allocated, as * SET_OF_free() will call FREEMEM() on it */ RANAP_IntegrityProtectionAlgorithm_t *alg = CALLOC(1, sizeof(*alg)); - *alg = ip_alg[i]; + *alg = ialg; ASN_SEQUENCE_ADD(&ies.integrityProtectionInformation.permittedAlgorithms, alg); } @@ -235,11 +264,27 @@ struct msgb *ranap_new_msg_sec_mod_cmd(const uint8_t *ik, const uint8_t *ck, enu if (ck) { ies.presenceMask = SECURITYMODECOMMANDIES_RANAP_ENCRYPTIONINFORMATION_PRESENT; - for (i = 0; i < ARRAY_SIZE(ip_alg); i++) { + for (i = 0; i < 8; i++) { + RANAP_EncryptionAlgorithm_t ealg; + if (!(uea_bitmask & (1 << i))) + continue; + switch (i) { + case 1: + ealg = RANAP_EncryptionAlgorithm_standard_UMTS_encryption_algorith_UEA1; + break; + case 2: + ealg = RANAP_EncryptionAlgorithm_standard_UMTS_encryption_algorithm_UEA2; + break; + default: + LOGP(DRANAP, LOGL_ERROR, "Unsupported UEA algorithm UEA%d specified\n", i); + asn_set_empty(&ies.integrityProtectionInformation.permittedAlgorithms); + return NULL; + } + /* needs to be dynamically allocated, as * SET_OF_free() will call FREEMEM() on it */ RANAP_EncryptionAlgorithm_t *alg = CALLOC(1, sizeof(*alg)); - *alg = enc_alg[i]; + *alg = ealg; ASN_SEQUENCE_ADD(&ies.encryptionInformation.permittedAlgorithms, alg); } BIT_STRING_fromBuf(&ies.encryptionInformation.key, ck, 16*8); @@ -271,6 +316,10 @@ struct msgb *ranap_new_msg_sec_mod_cmd(const uint8_t *ik, const uint8_t *ck, enu return msg; } +struct msgb *ranap_new_msg_sec_mod_cmd(const uint8_t *ik, const uint8_t *ck, enum RANAP_KeyStatus status) +{ + return ranap_new_msg_sec_mod_cmd2(ik, ck, status, 0x06, 0x06); +} /*! \brief generate RANAP SECURITY MODE COMPLETE message */ struct msgb *ranap_new_msg_sec_mod_compl( @@ -659,61 +708,6 @@ static RANAP_RAB_Parameters_t *new_rab_par_data(uint32_t dl_max_bitrate, uint32_ return rab; } -static void new_transp_layer_addr(BIT_STRING_t *out, uint32_t ip, bool use_x213_nsap) -{ - uint8_t *buf; - unsigned int len; - uint32_t ip_h = ntohl(ip); - - if (use_x213_nsap) { - len = 160/8; - buf = CALLOC(len, sizeof(uint8_t)); - buf[0] = 0x35; /* AFI For IANA ICP */ - buf[1] = 0x00; /* See A.5.2.1.2.7 of X.213 */ - buf[2] = 0x01; - memcpy(&buf[3], &ip_h, sizeof(ip_h)); - } else { - len = sizeof(ip_h); - buf = CALLOC(len, sizeof(uint8_t)); - memcpy(buf, &ip_h, sizeof(ip_h)); - } - out->buf = buf; - out->size = len; - out->bits_unused = 0; -} - -static RANAP_TransportLayerInformation_t *new_transp_info_rtp(uint32_t ip, uint16_t port, - bool use_x213_nsap) -{ - RANAP_TransportLayerInformation_t *tli = CALLOC(1, sizeof(*tli)); - uint8_t binding_id[4]; - - binding_id[0] = port >> 8; - binding_id[1] = port & 0xff; - binding_id[2] = binding_id[3] = 0; - - new_transp_layer_addr(&tli->transportLayerAddress, ip, use_x213_nsap); - tli->iuTransportAssociation.present = RANAP_IuTransportAssociation_PR_bindingID; - OCTET_STRING_fromBuf(&tli->iuTransportAssociation.choice.bindingID, - (const char *) binding_id, sizeof(binding_id)); - - return tli; -} - -static RANAP_TransportLayerInformation_t *new_transp_info_gtp(uint32_t ip, uint32_t tei, - bool use_x213_nsap) -{ - RANAP_TransportLayerInformation_t *tli = CALLOC(1, sizeof(*tli)); - uint32_t binding_buf = htonl(tei); - - new_transp_layer_addr(&tli->transportLayerAddress, ip, use_x213_nsap); - tli->iuTransportAssociation.present = RANAP_IuTransportAssociation_PR_gTP_TEI; - OCTET_STRING_fromBuf(&tli->iuTransportAssociation.choice.gTP_TEI, - (const char *) &binding_buf, sizeof(binding_buf)); - - return tli; -} - static RANAP_UserPlaneInformation_t *new_upi(long mode, uint8_t mode_versions) { RANAP_UserPlaneInformation_t *upi = CALLOC(1, sizeof(*upi)); @@ -754,6 +748,7 @@ struct msgb *ranap_new_msg_rab_assign_voice(uint8_t rab_id, uint32_t rtp_ip, RANAP_RAB_AssignmentRequest_t out; struct msgb *msg; int rc; + struct osmo_sockaddr rtp_addr; memset(&ies, 0, sizeof(ies)); memset(&out, 0, sizeof(out)); @@ -768,8 +763,11 @@ struct msgb *ranap_new_msg_rab_assign_voice(uint8_t rab_id, uint32_t rtp_ip, first.nAS_SynchronisationIndicator = new_rab_nas_sync_ind(60); first.rAB_Parameters = new_rab_par_voice(6700, 12200); first.userPlaneInformation = new_upi(RANAP_UserPlaneMode_support_mode_for_predefined_SDU_sizes, 1); /* 2? */ - first.transportLayerInformation = new_transp_info_rtp(rtp_ip, rtp_port, - use_x213_nsap); + + rtp_addr.u.sin.sin_family = AF_INET; + rtp_addr.u.sin.sin_port = htons(rtp_port); + rtp_addr.u.sin.sin_addr.s_addr = htonl(rtp_ip); + first.transportLayerInformation = ranap_new_transp_info_rtp(&rtp_addr, use_x213_nsap); /* put together the 'Second' part */ RANAP_RAB_SetupOrModifyItemSecond_t second; @@ -823,6 +821,7 @@ struct msgb *ranap_new_msg_rab_assign_data(uint8_t rab_id, uint32_t gtp_ip, RANAP_DataVolumeReportingIndication_t *dat_vol_ind; struct msgb *msg; int rc; + struct osmo_sockaddr gtp_addr; memset(&ies, 0, sizeof(ies)); memset(&out, 0, sizeof(out)); @@ -838,8 +837,10 @@ struct msgb *ranap_new_msg_rab_assign_data(uint8_t rab_id, uint32_t gtp_ip, first.rAB_Parameters = new_rab_par_data(1600000, 800000); first.userPlaneInformation = new_upi(RANAP_UserPlaneMode_transparent_mode, 1); - first.transportLayerInformation = new_transp_info_gtp(gtp_ip, gtp_tei, - use_x213_nsap); + + gtp_addr.u.sin.sin_family = AF_INET; + gtp_addr.u.sin.sin_addr.s_addr = htonl(gtp_ip); + first.transportLayerInformation = ranap_new_transp_info_gtp(>p_addr, gtp_tei, use_x213_nsap); /* put together the 'Second' part */ RANAP_RAB_SetupOrModifyItemSecond_t second; @@ -891,6 +892,7 @@ struct msgb *ranap_new_msg_rab_assign_data(uint8_t rab_id, uint32_t gtp_ip, return msg; } +/*! \brief generate RANAP IU RELEASE REQUEST message */ struct msgb *ranap_new_msg_iu_rel_req(const RANAP_Cause_t *cause) { RANAP_Iu_ReleaseRequestIEs_t ies; @@ -920,6 +922,7 @@ struct msgb *ranap_new_msg_iu_rel_req(const RANAP_Cause_t *cause) return msg; } +/*! \brief generate RANAP RAB RELEASE REQUEST message */ struct msgb *ranap_new_msg_rab_rel_req(uint8_t rab_id, const RANAP_Cause_t *cause) { RANAP_RAB_ReleaseItemIEs_t item_ies; diff --git a/src/rua/Makefile.am b/src/rua/Makefile.am index d8fb042..9b3ccd3 100644 --- a/src/rua/Makefile.am +++ b/src/rua/Makefile.am @@ -22,6 +22,7 @@ ASN_MODULE_SOURCES= \ RUA_CauseMisc.c \ RUA_CriticalityDiagnostics.c \ RUA_CriticalityDiagnostics-IE-List.c \ + RUA_CriticalityDiagnostics-IE-List-Value.c \ RUA_TypeOfError.c \ RUA_RUA-PDU.c \ RUA_InitiatingMessage.c \ @@ -59,6 +60,7 @@ ASN_MODULE_INC= \ RUA_CauseMisc.h \ RUA_CriticalityDiagnostics.h \ RUA_CriticalityDiagnostics-IE-List.h \ + RUA_CriticalityDiagnostics-IE-List-Value.h \ RUA_TypeOfError.h \ RUA_RUA-PDU.h \ RUA_InitiatingMessage.h \ @@ -74,16 +76,24 @@ ASN_MODULE_INC= \ AM_CFLAGS = -I$(top_srcdir)/include $(ASN1C_CFLAGS) $(OSMOCORE_CFLAGS) -noinst_LIBRARIES=libosmo-asn1-rua.a -libosmo_asn1_rua_a_SOURCES=$(ASN_MODULE_SOURCES) -libosmo_asn1_rua_a_LIBADD=$(ASN1C_LDADD) +noinst_LTLIBRARIES=libosmo-asn1-rua.la +libosmo_asn1_rua_la_SOURCES=$(ASN_MODULE_SOURCES) +libosmo_asn1_rua_la_LIBADD=$(ASN1C_LDADD) regen: regenerate-from-asn1-source regenerate-from-asn1-source: - ASN1C_PREFIX="RUA_" asn1c -gen-PER $(top_srcdir)/asn1/rua/RUA-CommonDataTypes.asn $(top_srcdir)/asn1/rua/RUA-Constants.asn $(top_srcdir)/asn1/rua/RUA-IEs.asn $(top_srcdir)/asn1/rua/RUA-PDU.asn -# remove the local copy of the runtime code - @rm ANY.* BOOLEAN.* INTEGER.* NativeEnumerated.* NativeInteger.* OBJECT_IDENTIFIER.* asn_* OCTET_STRING.* converter-sample.c per_* xer_* constr* der_* ber_* BIT_STRING.* + ASN1C_PREFIX="RUA_" asn1c \ + -R \ + -fcompound-names \ + -gen-PER \ + $(top_srcdir)/asn1/rua/RUA-CommonDataTypes.asn \ + $(top_srcdir)/asn1/rua/RUA-Constants.asn \ + $(top_srcdir)/asn1/rua/RUA-IEs.asn \ + $(top_srcdir)/asn1/rua/RUA-PDU.asn # change include style to `#include <dir/foo.h>' $(top_srcdir)/move-asn1-header-files.sh osmocom/rua $(ASN_MODULE_INC) - +# Finally copy *.c from buildir to srcdir: + if test "$(realpath $(CURDIR))" != "$(realpath $(top_srcdir)/src/rua)"; then \ + cp *.c $(top_srcdir)/src/rua/; \ + fi diff --git a/src/rua/RUA_Ansi-41-IDNNS.c b/src/rua/RUA_Ansi-41-IDNNS.c index 3895632..a43f85d 100644 --- a/src/rua/RUA_Ansi-41-IDNNS.c +++ b/src/rua/RUA_Ansi-41-IDNNS.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_Ansi-41-IDNNS.h> diff --git a/src/rua/RUA_CN-DomainIndicator.c b/src/rua/RUA_CN-DomainIndicator.c index e7e137e..f690d14 100644 --- a/src/rua/RUA_CN-DomainIndicator.c +++ b/src/rua/RUA_CN-DomainIndicator.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_CN-DomainIndicator.h> diff --git a/src/rua/RUA_CSGMembershipStatus.c b/src/rua/RUA_CSGMembershipStatus.c index 718bd76..8a32372 100644 --- a/src/rua/RUA_CSGMembershipStatus.c +++ b/src/rua/RUA_CSGMembershipStatus.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_CSGMembershipStatus.h> diff --git a/src/rua/RUA_Cause.c b/src/rua/RUA_Cause.c index abd2b40..ac5548f 100644 --- a/src/rua/RUA_Cause.c +++ b/src/rua/RUA_Cause.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_Cause.h> diff --git a/src/rua/RUA_CauseMisc.c b/src/rua/RUA_CauseMisc.c index ab68490..8d66fae 100644 --- a/src/rua/RUA_CauseMisc.c +++ b/src/rua/RUA_CauseMisc.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_CauseMisc.h> diff --git a/src/rua/RUA_CauseProtocol.c b/src/rua/RUA_CauseProtocol.c index 0c03177..e824c4e 100644 --- a/src/rua/RUA_CauseProtocol.c +++ b/src/rua/RUA_CauseProtocol.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_CauseProtocol.h> diff --git a/src/rua/RUA_CauseRadioNetwork.c b/src/rua/RUA_CauseRadioNetwork.c index b098555..aa1bd56 100644 --- a/src/rua/RUA_CauseRadioNetwork.c +++ b/src/rua/RUA_CauseRadioNetwork.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_CauseRadioNetwork.h> diff --git a/src/rua/RUA_CauseTransport.c b/src/rua/RUA_CauseTransport.c index 95ccbcc..b47a014 100644 --- a/src/rua/RUA_CauseTransport.c +++ b/src/rua/RUA_CauseTransport.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_CauseTransport.h> diff --git a/src/rua/RUA_Connect.c b/src/rua/RUA_Connect.c index 19d56a1..94b0a09 100644 --- a/src/rua/RUA_Connect.c +++ b/src/rua/RUA_Connect.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_Connect.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_connect_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_connect_ies_specs_2 = { - sizeof(struct connect_ies), - offsetof(struct connect_ies, _asn_ctx), + sizeof(struct RUA_Connect__connect_ies), + offsetof(struct RUA_Connect__connect_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/rua/RUA_ConnectionlessTransfer.c b/src/rua/RUA_ConnectionlessTransfer.c index 086a240..32b8ff1 100644 --- a/src/rua/RUA_ConnectionlessTransfer.c +++ b/src/rua/RUA_ConnectionlessTransfer.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_ConnectionlessTransfer.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_connectionlessTransfer_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_connectionlessTransfer_ies_specs_2 = { - sizeof(struct connectionlessTransfer_ies), - offsetof(struct connectionlessTransfer_ies, _asn_ctx), + sizeof(struct RUA_ConnectionlessTransfer__connectionlessTransfer_ies), + offsetof(struct RUA_ConnectionlessTransfer__connectionlessTransfer_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/rua/RUA_Context-ID.c b/src/rua/RUA_Context-ID.c index e6d7780..b542bdb 100644 --- a/src/rua/RUA_Context-ID.c +++ b/src/rua/RUA_Context-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_Context-ID.h> diff --git a/src/rua/RUA_Criticality.c b/src/rua/RUA_Criticality.c index 9e3a1f2..8b292f5 100644 --- a/src/rua/RUA_Criticality.c +++ b/src/rua/RUA_Criticality.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-CommonDataTypes" * found in "../../asn1/rua/RUA-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_Criticality.h> diff --git a/src/rua/RUA_CriticalityDiagnostics-IE-List-Value.c b/src/rua/RUA_CriticalityDiagnostics-IE-List-Value.c new file mode 100644 index 0000000..69ce770 --- /dev/null +++ b/src/rua/RUA_CriticalityDiagnostics-IE-List-Value.c @@ -0,0 +1,94 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "RUA-IEs" + * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/rua/RUA_CriticalityDiagnostics-IE-List-Value.h> + +static asn_TYPE_member_t asn_MBR_RUA_CriticalityDiagnostics_IE_List_Value_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct RUA_CriticalityDiagnostics_IE_List_Value, iECriticality), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RUA_Criticality, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iECriticality" + }, + { ATF_NOFLAGS, 0, offsetof(struct RUA_CriticalityDiagnostics_IE_List_Value, iE_ID), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RUA_ProtocolIE_ID, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-ID" + }, + { ATF_NOFLAGS, 0, offsetof(struct RUA_CriticalityDiagnostics_IE_List_Value, typeOfError), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RUA_TypeOfError, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "typeOfError" + }, + { ATF_POINTER, 1, offsetof(struct RUA_CriticalityDiagnostics_IE_List_Value, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_RUA_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_RUA_CriticalityDiagnostics_IE_List_Value_oms_1[] = { 3 }; +static const ber_tlv_tag_t asn_DEF_RUA_CriticalityDiagnostics_IE_List_Value_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_RUA_CriticalityDiagnostics_IE_List_Value_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* iECriticality */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* iE-ID */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* typeOfError */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_RUA_CriticalityDiagnostics_IE_List_Value_specs_1 = { + sizeof(struct RUA_CriticalityDiagnostics_IE_List_Value), + offsetof(struct RUA_CriticalityDiagnostics_IE_List_Value, _asn_ctx), + asn_MAP_RUA_CriticalityDiagnostics_IE_List_Value_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_RUA_CriticalityDiagnostics_IE_List_Value_oms_1, /* Optional members */ + 1, 0, /* Root/Additions */ + 3, /* Start extensions */ + 5 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_RUA_CriticalityDiagnostics_IE_List_Value = { + "RUA_CriticalityDiagnostics-IE-List-Value", + "RUA_CriticalityDiagnostics-IE-List-Value", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_RUA_CriticalityDiagnostics_IE_List_Value_tags_1, + sizeof(asn_DEF_RUA_CriticalityDiagnostics_IE_List_Value_tags_1) + /sizeof(asn_DEF_RUA_CriticalityDiagnostics_IE_List_Value_tags_1[0]), /* 1 */ + asn_DEF_RUA_CriticalityDiagnostics_IE_List_Value_tags_1, /* Same as above */ + sizeof(asn_DEF_RUA_CriticalityDiagnostics_IE_List_Value_tags_1) + /sizeof(asn_DEF_RUA_CriticalityDiagnostics_IE_List_Value_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_RUA_CriticalityDiagnostics_IE_List_Value_1, + 4, /* Elements count */ + &asn_SPC_RUA_CriticalityDiagnostics_IE_List_Value_specs_1 /* Additional specs */ +}; + diff --git a/src/rua/RUA_CriticalityDiagnostics-IE-List.c b/src/rua/RUA_CriticalityDiagnostics-IE-List.c index 55e4657..983756c 100644 --- a/src/rua/RUA_CriticalityDiagnostics-IE-List.c +++ b/src/rua/RUA_CriticalityDiagnostics-IE-List.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_CriticalityDiagnostics-IE-List.h> @@ -11,97 +12,11 @@ static asn_per_constraints_t asn_PER_type_RUA_CriticalityDiagnostics_IE_List_con { APC_CONSTRAINED, 8, 8, 1l, 256l } /* (SIZE(1..256)) */, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_Member_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct Member, iECriticality), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RUA_Criticality, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iECriticality" - }, - { ATF_NOFLAGS, 0, offsetof(struct Member, iE_ID), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RUA_ProtocolIE_ID, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-ID" - }, - { ATF_NOFLAGS, 0, offsetof(struct Member, typeOfError), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RUA_TypeOfError, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "typeOfError" - }, - { ATF_POINTER, 1, offsetof(struct Member, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_RUA_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_Member_oms_2[] = { 3 }; -static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* iECriticality */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* iE-ID */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* typeOfError */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = { - sizeof(struct Member), - offsetof(struct Member, _asn_ctx), - asn_MAP_Member_tag2el_2, - 4, /* Count of tags in the map */ - asn_MAP_Member_oms_2, /* Optional members */ - 1, 0, /* Root/Additions */ - 3, /* Start extensions */ - 5 /* Stop extensions */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_Member_2 = { - "SEQUENCE", - "SEQUENCE", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_Member_tags_2, - sizeof(asn_DEF_Member_tags_2) - /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ - asn_DEF_Member_tags_2, /* Same as above */ - sizeof(asn_DEF_Member_tags_2) - /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_Member_2, - 4, /* Elements count */ - &asn_SPC_Member_specs_2 /* Additional specs */ -}; - static asn_TYPE_member_t asn_MBR_RUA_CriticalityDiagnostics_IE_List_1[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_Member_2, + &asn_DEF_RUA_CriticalityDiagnostics_IE_List_Value, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, diff --git a/src/rua/RUA_CriticalityDiagnostics.c b/src/rua/RUA_CriticalityDiagnostics.c index a279f5a..dae8096 100644 --- a/src/rua/RUA_CriticalityDiagnostics.c +++ b/src/rua/RUA_CriticalityDiagnostics.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_CriticalityDiagnostics.h> diff --git a/src/rua/RUA_DirectTransfer.c b/src/rua/RUA_DirectTransfer.c index 8036517..a9c8de1 100644 --- a/src/rua/RUA_DirectTransfer.c +++ b/src/rua/RUA_DirectTransfer.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_DirectTransfer.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_directTransfer_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_directTransfer_ies_specs_2 = { - sizeof(struct directTransfer_ies), - offsetof(struct directTransfer_ies, _asn_ctx), + sizeof(struct RUA_DirectTransfer__directTransfer_ies), + offsetof(struct RUA_DirectTransfer__directTransfer_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/rua/RUA_Disconnect.c b/src/rua/RUA_Disconnect.c index 898bd90..6dd5be1 100644 --- a/src/rua/RUA_Disconnect.c +++ b/src/rua/RUA_Disconnect.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_Disconnect.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_disconnect_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_disconnect_ies_specs_2 = { - sizeof(struct disconnect_ies), - offsetof(struct disconnect_ies, _asn_ctx), + sizeof(struct RUA_Disconnect__disconnect_ies), + offsetof(struct RUA_Disconnect__disconnect_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/rua/RUA_ErrorIndication.c b/src/rua/RUA_ErrorIndication.c index d95ff32..564a1fd 100644 --- a/src/rua/RUA_ErrorIndication.c +++ b/src/rua/RUA_ErrorIndication.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_ErrorIndication.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_errorIndication_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_errorIndication_ies_specs_2 = { - sizeof(struct errorIndication_ies), - offsetof(struct errorIndication_ies, _asn_ctx), + sizeof(struct RUA_ErrorIndication__errorIndication_ies), + offsetof(struct RUA_ErrorIndication__errorIndication_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/rua/RUA_Establishment-Cause.c b/src/rua/RUA_Establishment-Cause.c index 2bdace5..1f27b56 100644 --- a/src/rua/RUA_Establishment-Cause.c +++ b/src/rua/RUA_Establishment-Cause.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_Establishment-Cause.h> diff --git a/src/rua/RUA_Gsm-map-IDNNS.c b/src/rua/RUA_Gsm-map-IDNNS.c index 75bdb96..7cdbebb 100644 --- a/src/rua/RUA_Gsm-map-IDNNS.c +++ b/src/rua/RUA_Gsm-map-IDNNS.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_Gsm-map-IDNNS.h> @@ -12,7 +13,7 @@ static asn_per_constraints_t asn_PER_type_routingbasis_constr_2 GCC_NOTUSED = { 0, 0 /* No PER value map */ }; static asn_TYPE_member_t asn_MBR_localPTMSI_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct localPTMSI, routingparameter), + { ATF_NOFLAGS, 0, offsetof(struct RUA_Gsm_map_IDNNS__routingbasis__localPTMSI, routingparameter), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_RUA_RoutingParameter, @@ -30,8 +31,8 @@ static const asn_TYPE_tag2member_t asn_MAP_localPTMSI_tag2el_3[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* routingparameter */ }; static asn_SEQUENCE_specifics_t asn_SPC_localPTMSI_specs_3 = { - sizeof(struct localPTMSI), - offsetof(struct localPTMSI, _asn_ctx), + sizeof(struct RUA_Gsm_map_IDNNS__routingbasis__localPTMSI), + offsetof(struct RUA_Gsm_map_IDNNS__routingbasis__localPTMSI, _asn_ctx), asn_MAP_localPTMSI_tag2el_3, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ @@ -67,7 +68,7 @@ asn_TYPE_descriptor_t asn_DEF_localPTMSI_3 = { }; static asn_TYPE_member_t asn_MBR_tMSIofsamePLMN_5[] = { - { ATF_NOFLAGS, 0, offsetof(struct tMSIofsamePLMN, routingparameter), + { ATF_NOFLAGS, 0, offsetof(struct RUA_Gsm_map_IDNNS__routingbasis__tMSIofsamePLMN, routingparameter), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_RUA_RoutingParameter, @@ -85,8 +86,8 @@ static const asn_TYPE_tag2member_t asn_MAP_tMSIofsamePLMN_tag2el_5[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* routingparameter */ }; static asn_SEQUENCE_specifics_t asn_SPC_tMSIofsamePLMN_specs_5 = { - sizeof(struct tMSIofsamePLMN), - offsetof(struct tMSIofsamePLMN, _asn_ctx), + sizeof(struct RUA_Gsm_map_IDNNS__routingbasis__tMSIofsamePLMN), + offsetof(struct RUA_Gsm_map_IDNNS__routingbasis__tMSIofsamePLMN, _asn_ctx), asn_MAP_tMSIofsamePLMN_tag2el_5, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ @@ -122,7 +123,7 @@ asn_TYPE_descriptor_t asn_DEF_tMSIofsamePLMN_5 = { }; static asn_TYPE_member_t asn_MBR_tMSIofdifferentPLMN_7[] = { - { ATF_NOFLAGS, 0, offsetof(struct tMSIofdifferentPLMN, routingparameter), + { ATF_NOFLAGS, 0, offsetof(struct RUA_Gsm_map_IDNNS__routingbasis__tMSIofdifferentPLMN, routingparameter), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_RUA_RoutingParameter, @@ -140,8 +141,8 @@ static const asn_TYPE_tag2member_t asn_MAP_tMSIofdifferentPLMN_tag2el_7[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* routingparameter */ }; static asn_SEQUENCE_specifics_t asn_SPC_tMSIofdifferentPLMN_specs_7 = { - sizeof(struct tMSIofdifferentPLMN), - offsetof(struct tMSIofdifferentPLMN, _asn_ctx), + sizeof(struct RUA_Gsm_map_IDNNS__routingbasis__tMSIofdifferentPLMN), + offsetof(struct RUA_Gsm_map_IDNNS__routingbasis__tMSIofdifferentPLMN, _asn_ctx), asn_MAP_tMSIofdifferentPLMN_tag2el_7, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ @@ -177,7 +178,7 @@ asn_TYPE_descriptor_t asn_DEF_tMSIofdifferentPLMN_7 = { }; static asn_TYPE_member_t asn_MBR_iMSIresponsetopaging_9[] = { - { ATF_NOFLAGS, 0, offsetof(struct iMSIresponsetopaging, routingparameter), + { ATF_NOFLAGS, 0, offsetof(struct RUA_Gsm_map_IDNNS__routingbasis__iMSIresponsetopaging, routingparameter), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_RUA_RoutingParameter, @@ -195,8 +196,8 @@ static const asn_TYPE_tag2member_t asn_MAP_iMSIresponsetopaging_tag2el_9[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* routingparameter */ }; static asn_SEQUENCE_specifics_t asn_SPC_iMSIresponsetopaging_specs_9 = { - sizeof(struct iMSIresponsetopaging), - offsetof(struct iMSIresponsetopaging, _asn_ctx), + sizeof(struct RUA_Gsm_map_IDNNS__routingbasis__iMSIresponsetopaging), + offsetof(struct RUA_Gsm_map_IDNNS__routingbasis__iMSIresponsetopaging, _asn_ctx), asn_MAP_iMSIresponsetopaging_tag2el_9, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ @@ -232,7 +233,7 @@ asn_TYPE_descriptor_t asn_DEF_iMSIresponsetopaging_9 = { }; static asn_TYPE_member_t asn_MBR_iMSIcauseUEinitiatedEvent_11[] = { - { ATF_NOFLAGS, 0, offsetof(struct iMSIcauseUEinitiatedEvent, routingparameter), + { ATF_NOFLAGS, 0, offsetof(struct RUA_Gsm_map_IDNNS__routingbasis__iMSIcauseUEinitiatedEvent, routingparameter), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_RUA_RoutingParameter, @@ -250,8 +251,8 @@ static const asn_TYPE_tag2member_t asn_MAP_iMSIcauseUEinitiatedEvent_tag2el_11[] { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* routingparameter */ }; static asn_SEQUENCE_specifics_t asn_SPC_iMSIcauseUEinitiatedEvent_specs_11 = { - sizeof(struct iMSIcauseUEinitiatedEvent), - offsetof(struct iMSIcauseUEinitiatedEvent, _asn_ctx), + sizeof(struct RUA_Gsm_map_IDNNS__routingbasis__iMSIcauseUEinitiatedEvent), + offsetof(struct RUA_Gsm_map_IDNNS__routingbasis__iMSIcauseUEinitiatedEvent, _asn_ctx), asn_MAP_iMSIcauseUEinitiatedEvent_tag2el_11, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ @@ -287,7 +288,7 @@ asn_TYPE_descriptor_t asn_DEF_iMSIcauseUEinitiatedEvent_11 = { }; static asn_TYPE_member_t asn_MBR_iMEI_13[] = { - { ATF_NOFLAGS, 0, offsetof(struct iMEI, routingparameter), + { ATF_NOFLAGS, 0, offsetof(struct RUA_Gsm_map_IDNNS__routingbasis__iMEI, routingparameter), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_RUA_RoutingParameter, @@ -305,8 +306,8 @@ static const asn_TYPE_tag2member_t asn_MAP_iMEI_tag2el_13[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* routingparameter */ }; static asn_SEQUENCE_specifics_t asn_SPC_iMEI_specs_13 = { - sizeof(struct iMEI), - offsetof(struct iMEI, _asn_ctx), + sizeof(struct RUA_Gsm_map_IDNNS__routingbasis__iMEI), + offsetof(struct RUA_Gsm_map_IDNNS__routingbasis__iMEI, _asn_ctx), asn_MAP_iMEI_tag2el_13, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ @@ -342,7 +343,7 @@ asn_TYPE_descriptor_t asn_DEF_iMEI_13 = { }; static asn_TYPE_member_t asn_MBR_spare2_15[] = { - { ATF_NOFLAGS, 0, offsetof(struct spare2, routingparameter), + { ATF_NOFLAGS, 0, offsetof(struct RUA_Gsm_map_IDNNS__routingbasis__spare2, routingparameter), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_RUA_RoutingParameter, @@ -360,8 +361,8 @@ static const asn_TYPE_tag2member_t asn_MAP_spare2_tag2el_15[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* routingparameter */ }; static asn_SEQUENCE_specifics_t asn_SPC_spare2_specs_15 = { - sizeof(struct spare2), - offsetof(struct spare2, _asn_ctx), + sizeof(struct RUA_Gsm_map_IDNNS__routingbasis__spare2), + offsetof(struct RUA_Gsm_map_IDNNS__routingbasis__spare2, _asn_ctx), asn_MAP_spare2_tag2el_15, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ @@ -397,7 +398,7 @@ asn_TYPE_descriptor_t asn_DEF_spare2_15 = { }; static asn_TYPE_member_t asn_MBR_spare1_17[] = { - { ATF_NOFLAGS, 0, offsetof(struct spare1, routingparameter), + { ATF_NOFLAGS, 0, offsetof(struct RUA_Gsm_map_IDNNS__routingbasis__spare1, routingparameter), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_RUA_RoutingParameter, @@ -415,8 +416,8 @@ static const asn_TYPE_tag2member_t asn_MAP_spare1_tag2el_17[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* routingparameter */ }; static asn_SEQUENCE_specifics_t asn_SPC_spare1_specs_17 = { - sizeof(struct spare1), - offsetof(struct spare1, _asn_ctx), + sizeof(struct RUA_Gsm_map_IDNNS__routingbasis__spare1), + offsetof(struct RUA_Gsm_map_IDNNS__routingbasis__spare1, _asn_ctx), asn_MAP_spare1_tag2el_17, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ @@ -452,7 +453,7 @@ asn_TYPE_descriptor_t asn_DEF_spare1_17 = { }; static asn_TYPE_member_t asn_MBR_routingbasis_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct routingbasis, choice.localPTMSI), + { ATF_NOFLAGS, 0, offsetof(struct RUA_Gsm_map_IDNNS__routingbasis, choice.localPTMSI), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_localPTMSI_3, @@ -461,7 +462,7 @@ static asn_TYPE_member_t asn_MBR_routingbasis_2[] = { 0, "localPTMSI" }, - { ATF_NOFLAGS, 0, offsetof(struct routingbasis, choice.tMSIofsamePLMN), + { ATF_NOFLAGS, 0, offsetof(struct RUA_Gsm_map_IDNNS__routingbasis, choice.tMSIofsamePLMN), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, &asn_DEF_tMSIofsamePLMN_5, @@ -470,7 +471,7 @@ static asn_TYPE_member_t asn_MBR_routingbasis_2[] = { 0, "tMSIofsamePLMN" }, - { ATF_NOFLAGS, 0, offsetof(struct routingbasis, choice.tMSIofdifferentPLMN), + { ATF_NOFLAGS, 0, offsetof(struct RUA_Gsm_map_IDNNS__routingbasis, choice.tMSIofdifferentPLMN), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 0, &asn_DEF_tMSIofdifferentPLMN_7, @@ -479,7 +480,7 @@ static asn_TYPE_member_t asn_MBR_routingbasis_2[] = { 0, "tMSIofdifferentPLMN" }, - { ATF_NOFLAGS, 0, offsetof(struct routingbasis, choice.iMSIresponsetopaging), + { ATF_NOFLAGS, 0, offsetof(struct RUA_Gsm_map_IDNNS__routingbasis, choice.iMSIresponsetopaging), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 0, &asn_DEF_iMSIresponsetopaging_9, @@ -488,7 +489,7 @@ static asn_TYPE_member_t asn_MBR_routingbasis_2[] = { 0, "iMSIresponsetopaging" }, - { ATF_NOFLAGS, 0, offsetof(struct routingbasis, choice.iMSIcauseUEinitiatedEvent), + { ATF_NOFLAGS, 0, offsetof(struct RUA_Gsm_map_IDNNS__routingbasis, choice.iMSIcauseUEinitiatedEvent), (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 0, &asn_DEF_iMSIcauseUEinitiatedEvent_11, @@ -497,7 +498,7 @@ static asn_TYPE_member_t asn_MBR_routingbasis_2[] = { 0, "iMSIcauseUEinitiatedEvent" }, - { ATF_NOFLAGS, 0, offsetof(struct routingbasis, choice.iMEI), + { ATF_NOFLAGS, 0, offsetof(struct RUA_Gsm_map_IDNNS__routingbasis, choice.iMEI), (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 0, &asn_DEF_iMEI_13, @@ -506,7 +507,7 @@ static asn_TYPE_member_t asn_MBR_routingbasis_2[] = { 0, "iMEI" }, - { ATF_NOFLAGS, 0, offsetof(struct routingbasis, choice.spare2), + { ATF_NOFLAGS, 0, offsetof(struct RUA_Gsm_map_IDNNS__routingbasis, choice.spare2), (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 0, &asn_DEF_spare2_15, @@ -515,7 +516,7 @@ static asn_TYPE_member_t asn_MBR_routingbasis_2[] = { 0, "spare2" }, - { ATF_NOFLAGS, 0, offsetof(struct routingbasis, choice.spare1), + { ATF_NOFLAGS, 0, offsetof(struct RUA_Gsm_map_IDNNS__routingbasis, choice.spare1), (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 0, &asn_DEF_spare1_17, @@ -536,10 +537,10 @@ static const asn_TYPE_tag2member_t asn_MAP_routingbasis_tag2el_2[] = { { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 } /* spare1 */ }; static asn_CHOICE_specifics_t asn_SPC_routingbasis_specs_2 = { - sizeof(struct routingbasis), - offsetof(struct routingbasis, _asn_ctx), - offsetof(struct routingbasis, present), - sizeof(((struct routingbasis *)0)->present), + sizeof(struct RUA_Gsm_map_IDNNS__routingbasis), + offsetof(struct RUA_Gsm_map_IDNNS__routingbasis, _asn_ctx), + offsetof(struct RUA_Gsm_map_IDNNS__routingbasis, present), + sizeof(((struct RUA_Gsm_map_IDNNS__routingbasis *)0)->present), asn_MAP_routingbasis_tag2el_2, 8, /* Count of tags in the map */ 0, diff --git a/src/rua/RUA_IE-Extensions.c b/src/rua/RUA_IE-Extensions.c index 80fa907..a90056f 100644 --- a/src/rua/RUA_IE-Extensions.c +++ b/src/rua/RUA_IE-Extensions.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_IE-Extensions.h> diff --git a/src/rua/RUA_IE.c b/src/rua/RUA_IE.c index 77378f4..086787f 100644 --- a/src/rua/RUA_IE.c +++ b/src/rua/RUA_IE.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_IE.h> diff --git a/src/rua/RUA_InitiatingMessage.c b/src/rua/RUA_InitiatingMessage.c index bcadd0f..1c6f2e4 100644 --- a/src/rua/RUA_InitiatingMessage.c +++ b/src/rua/RUA_InitiatingMessage.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_InitiatingMessage.h> diff --git a/src/rua/RUA_IntraDomainNasNodeSelector.c b/src/rua/RUA_IntraDomainNasNodeSelector.c index b266c6f..fef8f2a 100644 --- a/src/rua/RUA_IntraDomainNasNodeSelector.c +++ b/src/rua/RUA_IntraDomainNasNodeSelector.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_IntraDomainNasNodeSelector.h> @@ -53,7 +54,7 @@ static asn_per_constraints_t asn_PER_type_version_constr_2 GCC_NOTUSED = { 0, 0 /* No PER value map */ }; static asn_TYPE_member_t asn_MBR_cn_Type_4[] = { - { ATF_NOFLAGS, 0, offsetof(struct cn_Type, choice.gsm_Map_IDNNS), + { ATF_NOFLAGS, 0, offsetof(struct RUA_IntraDomainNasNodeSelector__version__release99__cn_Type, choice.gsm_Map_IDNNS), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_RUA_Gsm_map_IDNNS, @@ -62,7 +63,7 @@ static asn_TYPE_member_t asn_MBR_cn_Type_4[] = { 0, "gsm-Map-IDNNS" }, - { ATF_NOFLAGS, 0, offsetof(struct cn_Type, choice.ansi_41_IDNNS), + { ATF_NOFLAGS, 0, offsetof(struct RUA_IntraDomainNasNodeSelector__version__release99__cn_Type, choice.ansi_41_IDNNS), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_RUA_Ansi_41_IDNNS, @@ -77,10 +78,10 @@ static const asn_TYPE_tag2member_t asn_MAP_cn_Type_tag2el_4[] = { { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* ansi-41-IDNNS */ }; static asn_CHOICE_specifics_t asn_SPC_cn_Type_specs_4 = { - sizeof(struct cn_Type), - offsetof(struct cn_Type, _asn_ctx), - offsetof(struct cn_Type, present), - sizeof(((struct cn_Type *)0)->present), + sizeof(struct RUA_IntraDomainNasNodeSelector__version__release99__cn_Type), + offsetof(struct RUA_IntraDomainNasNodeSelector__version__release99__cn_Type, _asn_ctx), + offsetof(struct RUA_IntraDomainNasNodeSelector__version__release99__cn_Type, present), + sizeof(((struct RUA_IntraDomainNasNodeSelector__version__release99__cn_Type *)0)->present), asn_MAP_cn_Type_tag2el_4, 2, /* Count of tags in the map */ 0, @@ -113,7 +114,7 @@ asn_TYPE_descriptor_t asn_DEF_cn_Type_4 = { }; static asn_TYPE_member_t asn_MBR_release99_3[] = { - { ATF_NOFLAGS, 0, offsetof(struct release99, cn_Type), + { ATF_NOFLAGS, 0, offsetof(struct RUA_IntraDomainNasNodeSelector__version__release99, cn_Type), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), +1, /* EXPLICIT tag at current level */ &asn_DEF_cn_Type_4, @@ -131,8 +132,8 @@ static const asn_TYPE_tag2member_t asn_MAP_release99_tag2el_3[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* cn-Type */ }; static asn_SEQUENCE_specifics_t asn_SPC_release99_specs_3 = { - sizeof(struct release99), - offsetof(struct release99, _asn_ctx), + sizeof(struct RUA_IntraDomainNasNodeSelector__version__release99), + offsetof(struct RUA_IntraDomainNasNodeSelector__version__release99, _asn_ctx), asn_MAP_release99_tag2el_3, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ @@ -168,7 +169,7 @@ asn_TYPE_descriptor_t asn_DEF_release99_3 = { }; static asn_TYPE_member_t asn_MBR_later_7[] = { - { ATF_NOFLAGS, 0, offsetof(struct later, futurecoding), + { ATF_NOFLAGS, 0, offsetof(struct RUA_IntraDomainNasNodeSelector__version__later, futurecoding), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_BIT_STRING, @@ -186,8 +187,8 @@ static const asn_TYPE_tag2member_t asn_MAP_later_tag2el_7[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* futurecoding */ }; static asn_SEQUENCE_specifics_t asn_SPC_later_specs_7 = { - sizeof(struct later), - offsetof(struct later, _asn_ctx), + sizeof(struct RUA_IntraDomainNasNodeSelector__version__later), + offsetof(struct RUA_IntraDomainNasNodeSelector__version__later, _asn_ctx), asn_MAP_later_tag2el_7, 1, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ @@ -223,7 +224,7 @@ asn_TYPE_descriptor_t asn_DEF_later_7 = { }; static asn_TYPE_member_t asn_MBR_version_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct version, choice.release99), + { ATF_NOFLAGS, 0, offsetof(struct RUA_IntraDomainNasNodeSelector__version, choice.release99), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, &asn_DEF_release99_3, @@ -232,7 +233,7 @@ static asn_TYPE_member_t asn_MBR_version_2[] = { 0, "release99" }, - { ATF_NOFLAGS, 0, offsetof(struct version, choice.later), + { ATF_NOFLAGS, 0, offsetof(struct RUA_IntraDomainNasNodeSelector__version, choice.later), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, &asn_DEF_later_7, @@ -247,10 +248,10 @@ static const asn_TYPE_tag2member_t asn_MAP_version_tag2el_2[] = { { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* later */ }; static asn_CHOICE_specifics_t asn_SPC_version_specs_2 = { - sizeof(struct version), - offsetof(struct version, _asn_ctx), - offsetof(struct version, present), - sizeof(((struct version *)0)->present), + sizeof(struct RUA_IntraDomainNasNodeSelector__version), + offsetof(struct RUA_IntraDomainNasNodeSelector__version, _asn_ctx), + offsetof(struct RUA_IntraDomainNasNodeSelector__version, present), + sizeof(((struct RUA_IntraDomainNasNodeSelector__version *)0)->present), asn_MAP_version_tag2el_2, 2, /* Count of tags in the map */ 0, diff --git a/src/rua/RUA_Presence.c b/src/rua/RUA_Presence.c index 6da824c..6dd6c87 100644 --- a/src/rua/RUA_Presence.c +++ b/src/rua/RUA_Presence.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-CommonDataTypes" * found in "../../asn1/rua/RUA-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_Presence.h> diff --git a/src/rua/RUA_PrivateIE-ID.c b/src/rua/RUA_PrivateIE-ID.c index 729333e..acc4b2a 100644 --- a/src/rua/RUA_PrivateIE-ID.c +++ b/src/rua/RUA_PrivateIE-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-CommonDataTypes" * found in "../../asn1/rua/RUA-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_PrivateIE-ID.h> diff --git a/src/rua/RUA_PrivateMessage.c b/src/rua/RUA_PrivateMessage.c index c549409..dbe38b3 100644 --- a/src/rua/RUA_PrivateMessage.c +++ b/src/rua/RUA_PrivateMessage.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_PrivateMessage.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_privateMessage_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_privateMessage_ies_specs_2 = { - sizeof(struct privateMessage_ies), - offsetof(struct privateMessage_ies, _asn_ctx), + sizeof(struct RUA_PrivateMessage__privateMessage_ies), + offsetof(struct RUA_PrivateMessage__privateMessage_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/rua/RUA_ProcedureCode.c b/src/rua/RUA_ProcedureCode.c index 61b31ff..b597e51 100644 --- a/src/rua/RUA_ProcedureCode.c +++ b/src/rua/RUA_ProcedureCode.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-CommonDataTypes" * found in "../../asn1/rua/RUA-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_ProcedureCode.h> diff --git a/src/rua/RUA_ProtocolIE-ID.c b/src/rua/RUA_ProtocolIE-ID.c index 5260eed..3947767 100644 --- a/src/rua/RUA_ProtocolIE-ID.c +++ b/src/rua/RUA_ProtocolIE-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-CommonDataTypes" * found in "../../asn1/rua/RUA-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_ProtocolIE-ID.h> diff --git a/src/rua/RUA_RANAP-Message.c b/src/rua/RUA_RANAP-Message.c index 28911c6..978d829 100644 --- a/src/rua/RUA_RANAP-Message.c +++ b/src/rua/RUA_RANAP-Message.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_RANAP-Message.h> diff --git a/src/rua/RUA_RUA-PDU.c b/src/rua/RUA_RUA-PDU.c index 92215f6..a026497 100644 --- a/src/rua/RUA_RUA-PDU.c +++ b/src/rua/RUA_RUA-PDU.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_RUA-PDU.h> diff --git a/src/rua/RUA_RoutingParameter.c b/src/rua/RUA_RoutingParameter.c index be2e102..f96a5f0 100644 --- a/src/rua/RUA_RoutingParameter.c +++ b/src/rua/RUA_RoutingParameter.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_RoutingParameter.h> diff --git a/src/rua/RUA_SuccessfulOutcome.c b/src/rua/RUA_SuccessfulOutcome.c index f446ec8..3bf39c5 100644 --- a/src/rua/RUA_SuccessfulOutcome.c +++ b/src/rua/RUA_SuccessfulOutcome.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_SuccessfulOutcome.h> diff --git a/src/rua/RUA_TriggeringMessage.c b/src/rua/RUA_TriggeringMessage.c index 8b2de60..4cfae4c 100644 --- a/src/rua/RUA_TriggeringMessage.c +++ b/src/rua/RUA_TriggeringMessage.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-CommonDataTypes" * found in "../../asn1/rua/RUA-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_TriggeringMessage.h> diff --git a/src/rua/RUA_TypeOfError.c b/src/rua/RUA_TypeOfError.c index c48d852..84018b3 100644 --- a/src/rua/RUA_TypeOfError.c +++ b/src/rua/RUA_TypeOfError.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-IEs" * found in "../../asn1/rua/RUA-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_TypeOfError.h> diff --git a/src/rua/RUA_UnsuccessfulOutcome.c b/src/rua/RUA_UnsuccessfulOutcome.c index 95e6dd5..2e2cca7 100644 --- a/src/rua/RUA_UnsuccessfulOutcome.c +++ b/src/rua/RUA_UnsuccessfulOutcome.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "RUA-PDU" * found in "../../asn1/rua/RUA-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/rua/RUA_UnsuccessfulOutcome.h> diff --git a/src/rua_common.c b/src/rua_common.c index 77ac591..0cb8426 100644 --- a/src/rua_common.c +++ b/src/rua_common.c @@ -24,10 +24,12 @@ #include <osmocom/core/msgb.h> #include <osmocom/rua/rua_common.h> -#include <osmocom/iuh/hnbgw.h> extern int asn1_xer_print; +int _rua_DRUA = 0; +#define DRUA _rua_DRUA + static const struct value_string rua_cause_radio_vals[] = { { RUA_CauseRadioNetwork_normal, "normal" }, { RUA_CauseRadioNetwork_connect_failed, "connect failed" }, @@ -65,7 +67,7 @@ static const struct value_string rua_cause_misc_vals[] = { { 0, NULL } }; -char *rua_cause_str(RUA_Cause_t *cause) +char *rua_cause_str(const RUA_Cause_t *cause) { static char buf[32]; @@ -132,6 +134,7 @@ struct msgb *rua_generate_initiating_message( { RUA_RUA_PDU_t pdu; int rc; + struct msgb *msg; memset(&pdu, 0, sizeof(pdu)); @@ -144,7 +147,9 @@ struct msgb *rua_generate_initiating_message( return NULL; } - return _rua_gen_msg(&pdu); + msg = _rua_gen_msg(&pdu); + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_RUA_RUA_PDU, &pdu); + return msg; } struct msgb *rua_generate_successful_outcome( @@ -155,6 +160,7 @@ struct msgb *rua_generate_successful_outcome( { RUA_RUA_PDU_t pdu; int rc; + struct msgb *msg; memset(&pdu, 0, sizeof(pdu)); @@ -167,7 +173,9 @@ struct msgb *rua_generate_successful_outcome( return NULL; } - return _rua_gen_msg(&pdu); + msg = _rua_gen_msg(&pdu); + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_RUA_RUA_PDU, &pdu); + return msg; } struct msgb *rua_generate_unsuccessful_outcome( @@ -178,6 +186,7 @@ struct msgb *rua_generate_unsuccessful_outcome( { RUA_RUA_PDU_t pdu; int rc; + struct msgb *msg; memset(&pdu, 0, sizeof(pdu)); @@ -190,7 +199,9 @@ struct msgb *rua_generate_unsuccessful_outcome( return NULL; } - return _rua_gen_msg(&pdu); + msg = _rua_gen_msg(&pdu); + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_RUA_RUA_PDU, &pdu); + return msg; } RUA_IE_t *rua_new_ie(RUA_ProtocolIE_ID_t id, @@ -224,3 +235,8 @@ RUA_IE_t *rua_new_ie(RUA_ProtocolIE_ID_t id, return buff; } + +void rua_set_log_area(int log_area) +{ + _rua_DRUA = log_area; +} diff --git a/src/rua_msg_factory.c b/src/rua_msg_factory.c index 7a6bebd..e974793 100644 --- a/src/rua_msg_factory.c +++ b/src/rua_msg_factory.c @@ -5,8 +5,10 @@ #include <osmocom/rua/rua_ies_defs.h> #include <osmocom/rua/rua_msg_factory.h> #include "asn1helpers.h" -#include <osmocom/iuh/hnbgw.h> +#define DRUA _rua_DRUA + +#define IUH_PPI_RUA 19 struct msgb *rua_new_udt(struct msgb *inmsg) { @@ -31,7 +33,7 @@ struct msgb *rua_new_udt(struct msgb *inmsg) ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_RUA_ConnectionlessTransfer, &out); - DEBUGP(DMAIN, "transmitting RUA payload of %u bytes\n", msgb_length(msg)); + DEBUGP(DRUA, "transmitting RUA payload of %u bytes\n", msgb_length(msg)); msgb_sctp_ppid(msg) = IUH_PPI_RUA; @@ -68,7 +70,7 @@ struct msgb *rua_new_conn(int is_ps, uint32_t context_id, struct msgb *inmsg) ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_RUA_Connect, &out); - DEBUGP(DMAIN, "transmitting RUA payload of %u bytes\n", msgb_length(msg)); + DEBUGP(DRUA, "transmitting RUA payload of %u bytes\n", msgb_length(msg)); msgb_sctp_ppid(msg) = IUH_PPI_RUA; @@ -104,7 +106,7 @@ struct msgb *rua_new_dt(int is_ps, uint32_t context_id, struct msgb *inmsg) ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_RUA_DirectTransfer, &out); - DEBUGP(DMAIN, "transmitting RUA payload of %u bytes\n", msgb_length(msg)); + DEBUGP(DRUA, "transmitting RUA payload of %u bytes\n", msgb_length(msg)); msgb_sctp_ppid(msg) = IUH_PPI_RUA; @@ -146,7 +148,7 @@ struct msgb *rua_new_disc(int is_ps, uint32_t context_id, struct msgb *inmsg) ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_RUA_Disconnect, &out); - DEBUGP(DMAIN, "transmitting RUA payload of %u bytes\n", msgb_length(msg)); + DEBUGP(DRUA, "transmitting RUA payload of %u bytes\n", msgb_length(msg)); msgb_sctp_ppid(msg) = IUH_PPI_RUA; diff --git a/src/sabp/Makefile.am b/src/sabp/Makefile.am index a30674c..f97b5ca 100644 --- a/src/sabp/Makefile.am +++ b/src/sabp/Makefile.am @@ -17,7 +17,9 @@ ASN_MODULE_SRC= \ SABP_Cause.c \ SABP_Criticality-Diagnostics.c \ SABP_CriticalityDiagnostics-IE-List.c \ + SABP_CriticalityDiagnostics-IE-List-Value.c \ SABP_MessageStructure.c \ + SABP_MessageStructure-Value.c \ SABP_Data-Coding-Scheme.c \ SABP_Failure-List.c \ SABP_Failure-List-Item.c \ @@ -81,7 +83,9 @@ ASN_MODULE_INC= \ SABP_Cause.h \ SABP_Criticality-Diagnostics.h \ SABP_CriticalityDiagnostics-IE-List.h \ + SABP_CriticalityDiagnostics-IE-List-Value.h \ SABP_MessageStructure.h \ + SABP_MessageStructure-Value.h \ SABP_Data-Coding-Scheme.h \ SABP_Failure-List.h \ SABP_Failure-List-Item.h \ @@ -135,14 +139,19 @@ libosmo_asn1_sabp_la_LIBADD=$(ASN1C_LDADD) regen: regenerate-from-asn1-source regenerate-from-asn1-source: - ASN1C_PREFIX="SABP_" asn1c -gen-PER $(top_srcdir)/asn1/sabp/SABP-CommonDataTypes.asn $(top_srcdir)/asn1/sabp/SABP-Constants.asn $(top_srcdir)/asn1/sabp/SABP-IEs.asn $(top_srcdir)/asn1/sabp/SABP-PDU.asn -# remove the local copy of the runtime code - @rm ANY.* INTEGER.* NativeEnumerated.* NativeInteger.* asn_* OCTET_STRING.* converter-sample.c per_* xer_* constr* der_* ber_* BIT_STRING.* -# change include style to `#include <dir/foo.h>' - sed -i 's/Member/MemberA/' SABP_MessageStructure.[ch] - sed -i 's/Member/MemberB/' SABP_Criticality-Diagnostics.[ch] + ASN1C_PREFIX="SABP_" asn1c \ + -R \ + -fcompound-names \ + -gen-PER \ + $(top_srcdir)/asn1/sabp/SABP-CommonDataTypes.asn \ + $(top_srcdir)/asn1/sabp/SABP-Constants.asn \ + $(top_srcdir)/asn1/sabp/SABP-IEs.asn \ + $(top_srcdir)/asn1/sabp/SABP-PDU.asn # add missing includes sed -i '/#include "SABP_Serial-Number.h"/a #include <constr_CHOICE.h>' SABP_Old-Serial-Number.h SABP_New-Serial-Number.h # change include style to `#include <dir/foo.h>' $(top_srcdir)/move-asn1-header-files.sh osmocom/sabp $(ASN_MODULE_INC) - +# Finally copy *.c from buildir to srcdir: + if test "$(realpath $(CURDIR))" != "$(realpath $(top_srcdir)/src/sabp)"; then \ + cp *.c $(top_srcdir)/src/sabp/; \ + fi diff --git a/src/sabp/SABP_Available-Bandwidth.c b/src/sabp/SABP_Available-Bandwidth.c index 491c69b..8fb6bc4 100644 --- a/src/sabp/SABP_Available-Bandwidth.c +++ b/src/sabp/SABP_Available-Bandwidth.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Available-Bandwidth.h> diff --git a/src/sabp/SABP_Broadcast-Message-Content-Validity-Indicator.c b/src/sabp/SABP_Broadcast-Message-Content-Validity-Indicator.c index 698863b..1573bbc 100644 --- a/src/sabp/SABP_Broadcast-Message-Content-Validity-Indicator.c +++ b/src/sabp/SABP_Broadcast-Message-Content-Validity-Indicator.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Broadcast-Message-Content-Validity-Indicator.h> diff --git a/src/sabp/SABP_Broadcast-Message-Content.c b/src/sabp/SABP_Broadcast-Message-Content.c index 8c21f26..56f18aa 100644 --- a/src/sabp/SABP_Broadcast-Message-Content.c +++ b/src/sabp/SABP_Broadcast-Message-Content.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Broadcast-Message-Content.h> diff --git a/src/sabp/SABP_Category.c b/src/sabp/SABP_Category.c index 4bb9d82..b683cea 100644 --- a/src/sabp/SABP_Category.c +++ b/src/sabp/SABP_Category.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Category.h> diff --git a/src/sabp/SABP_Cause.c b/src/sabp/SABP_Cause.c index 389c47f..97e5391 100644 --- a/src/sabp/SABP_Cause.c +++ b/src/sabp/SABP_Cause.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Cause.h> diff --git a/src/sabp/SABP_Criticality-Diagnostics.c b/src/sabp/SABP_Criticality-Diagnostics.c index 76ef94f..bb29c4d 100644 --- a/src/sabp/SABP_Criticality-Diagnostics.c +++ b/src/sabp/SABP_Criticality-Diagnostics.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Criticality-Diagnostics.h> diff --git a/src/sabp/SABP_Criticality.c b/src/sabp/SABP_Criticality.c index 15a7b26..d4d61e8 100644 --- a/src/sabp/SABP_Criticality.c +++ b/src/sabp/SABP_Criticality.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-CommonDataTypes" * found in "../../asn1/sabp/SABP-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Criticality.h> diff --git a/src/sabp/SABP_CriticalityDiagnostics-IE-List-Value.c b/src/sabp/SABP_CriticalityDiagnostics-IE-List-Value.c new file mode 100644 index 0000000..47a4022 --- /dev/null +++ b/src/sabp/SABP_CriticalityDiagnostics-IE-List-Value.c @@ -0,0 +1,94 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "SABP-IEs" + * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/sabp/SABP_CriticalityDiagnostics-IE-List-Value.h> + +static asn_TYPE_member_t asn_MBR_SABP_CriticalityDiagnostics_IE_List_Value_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SABP_CriticalityDiagnostics_IE_List_Value, iECriticality), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SABP_Criticality, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iECriticality" + }, + { ATF_NOFLAGS, 0, offsetof(struct SABP_CriticalityDiagnostics_IE_List_Value, iE_ID), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SABP_ProtocolIE_ID, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-ID" + }, + { ATF_POINTER, 2, offsetof(struct SABP_CriticalityDiagnostics_IE_List_Value, repetitionNumber), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SABP_RepetitionNumber0, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "repetitionNumber" + }, + { ATF_POINTER, 1, offsetof(struct SABP_CriticalityDiagnostics_IE_List_Value, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (3 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SABP_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_SABP_CriticalityDiagnostics_IE_List_Value_oms_1[] = { 2, 3 }; +static const ber_tlv_tag_t asn_DEF_SABP_CriticalityDiagnostics_IE_List_Value_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SABP_CriticalityDiagnostics_IE_List_Value_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* iECriticality */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* iE-ID */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* repetitionNumber */ + { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_SABP_CriticalityDiagnostics_IE_List_Value_specs_1 = { + sizeof(struct SABP_CriticalityDiagnostics_IE_List_Value), + offsetof(struct SABP_CriticalityDiagnostics_IE_List_Value, _asn_ctx), + asn_MAP_SABP_CriticalityDiagnostics_IE_List_Value_tag2el_1, + 4, /* Count of tags in the map */ + asn_MAP_SABP_CriticalityDiagnostics_IE_List_Value_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 3, /* Start extensions */ + 5 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_SABP_CriticalityDiagnostics_IE_List_Value = { + "SABP_CriticalityDiagnostics-IE-List-Value", + "SABP_CriticalityDiagnostics-IE-List-Value", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_SABP_CriticalityDiagnostics_IE_List_Value_tags_1, + sizeof(asn_DEF_SABP_CriticalityDiagnostics_IE_List_Value_tags_1) + /sizeof(asn_DEF_SABP_CriticalityDiagnostics_IE_List_Value_tags_1[0]), /* 1 */ + asn_DEF_SABP_CriticalityDiagnostics_IE_List_Value_tags_1, /* Same as above */ + sizeof(asn_DEF_SABP_CriticalityDiagnostics_IE_List_Value_tags_1) + /sizeof(asn_DEF_SABP_CriticalityDiagnostics_IE_List_Value_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_SABP_CriticalityDiagnostics_IE_List_Value_1, + 4, /* Elements count */ + &asn_SPC_SABP_CriticalityDiagnostics_IE_List_Value_specs_1 /* Additional specs */ +}; + diff --git a/src/sabp/SABP_CriticalityDiagnostics-IE-List.c b/src/sabp/SABP_CriticalityDiagnostics-IE-List.c index 8d5c403..1d214cf 100644 --- a/src/sabp/SABP_CriticalityDiagnostics-IE-List.c +++ b/src/sabp/SABP_CriticalityDiagnostics-IE-List.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_CriticalityDiagnostics-IE-List.h> @@ -11,97 +12,11 @@ static asn_per_constraints_t asn_PER_type_SABP_CriticalityDiagnostics_IE_List_co { APC_CONSTRAINED, 8, 8, 1l, 256l } /* (SIZE(1..256)) */, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_Member_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct Member, iECriticality), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SABP_Criticality, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iECriticality" - }, - { ATF_NOFLAGS, 0, offsetof(struct Member, iE_ID), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SABP_ProtocolIE_ID, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-ID" - }, - { ATF_POINTER, 2, offsetof(struct Member, repetitionNumber), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SABP_RepetitionNumber0, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "repetitionNumber" - }, - { ATF_POINTER, 1, offsetof(struct Member, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (3 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SABP_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_Member_oms_2[] = { 2, 3 }; -static const ber_tlv_tag_t asn_DEF_Member_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_Member_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* iECriticality */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* iE-ID */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* repetitionNumber */ - { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_Member_specs_2 = { - sizeof(struct Member), - offsetof(struct Member, _asn_ctx), - asn_MAP_Member_tag2el_2, - 4, /* Count of tags in the map */ - asn_MAP_Member_oms_2, /* Optional members */ - 2, 0, /* Root/Additions */ - 3, /* Start extensions */ - 5 /* Stop extensions */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_Member_2 = { - "SEQUENCE", - "SEQUENCE", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_Member_tags_2, - sizeof(asn_DEF_Member_tags_2) - /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ - asn_DEF_Member_tags_2, /* Same as above */ - sizeof(asn_DEF_Member_tags_2) - /sizeof(asn_DEF_Member_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_Member_2, - 4, /* Elements count */ - &asn_SPC_Member_specs_2 /* Additional specs */ -}; - static asn_TYPE_member_t asn_MBR_SABP_CriticalityDiagnostics_IE_List_1[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_Member_2, + &asn_DEF_SABP_CriticalityDiagnostics_IE_List_Value, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, diff --git a/src/sabp/SABP_Data-Coding-Scheme.c b/src/sabp/SABP_Data-Coding-Scheme.c index e04f69d..d03ae62 100644 --- a/src/sabp/SABP_Data-Coding-Scheme.c +++ b/src/sabp/SABP_Data-Coding-Scheme.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Data-Coding-Scheme.h> diff --git a/src/sabp/SABP_Error-Indication.c b/src/sabp/SABP_Error-Indication.c index 78e62ad..8ffb00b 100644 --- a/src/sabp/SABP_Error-Indication.c +++ b/src/sabp/SABP_Error-Indication.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Error-Indication.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_error_Indication_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_error_Indication_ies_specs_2 = { - sizeof(struct error_Indication_ies), - offsetof(struct error_Indication_ies, _asn_ctx), + sizeof(struct SABP_Error_Indication__error_Indication_ies), + offsetof(struct SABP_Error_Indication__error_Indication_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/sabp/SABP_Failure-List-Item.c b/src/sabp/SABP_Failure-List-Item.c index 0891016..eb22f59 100644 --- a/src/sabp/SABP_Failure-List-Item.c +++ b/src/sabp/SABP_Failure-List-Item.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Failure-List-Item.h> diff --git a/src/sabp/SABP_Failure-List.c b/src/sabp/SABP_Failure-List.c index 1b2bc16..d9a1707 100644 --- a/src/sabp/SABP_Failure-List.c +++ b/src/sabp/SABP_Failure-List.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Failure-List.h> diff --git a/src/sabp/SABP_Failure.c b/src/sabp/SABP_Failure.c index 685fe44..a35d8c1 100644 --- a/src/sabp/SABP_Failure.c +++ b/src/sabp/SABP_Failure.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Failure.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_failure_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_failure_ies_specs_2 = { - sizeof(struct failure_ies), - offsetof(struct failure_ies, _asn_ctx), + sizeof(struct SABP_Failure__failure_ies), + offsetof(struct SABP_Failure__failure_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/sabp/SABP_IE-Extensions.c b/src/sabp/SABP_IE-Extensions.c index f462546..8ba550a 100644 --- a/src/sabp/SABP_IE-Extensions.c +++ b/src/sabp/SABP_IE-Extensions.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_IE-Extensions.h> diff --git a/src/sabp/SABP_IE.c b/src/sabp/SABP_IE.c index 2259b88..dfe7a5e 100644 --- a/src/sabp/SABP_IE.c +++ b/src/sabp/SABP_IE.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_IE.h> diff --git a/src/sabp/SABP_InitiatingMessage.c b/src/sabp/SABP_InitiatingMessage.c index b31ddae..33f89ce 100644 --- a/src/sabp/SABP_InitiatingMessage.c +++ b/src/sabp/SABP_InitiatingMessage.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_InitiatingMessage.h> diff --git a/src/sabp/SABP_Kill-Complete.c b/src/sabp/SABP_Kill-Complete.c index f7b1a85..991f40a 100644 --- a/src/sabp/SABP_Kill-Complete.c +++ b/src/sabp/SABP_Kill-Complete.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Kill-Complete.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_kill_Complete_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_kill_Complete_ies_specs_2 = { - sizeof(struct kill_Complete_ies), - offsetof(struct kill_Complete_ies, _asn_ctx), + sizeof(struct SABP_Kill_Complete__kill_Complete_ies), + offsetof(struct SABP_Kill_Complete__kill_Complete_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/sabp/SABP_Kill-Failure.c b/src/sabp/SABP_Kill-Failure.c index 730d403..ada7122 100644 --- a/src/sabp/SABP_Kill-Failure.c +++ b/src/sabp/SABP_Kill-Failure.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Kill-Failure.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_kill_Failure_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_kill_Failure_ies_specs_2 = { - sizeof(struct kill_Failure_ies), - offsetof(struct kill_Failure_ies, _asn_ctx), + sizeof(struct SABP_Kill_Failure__kill_Failure_ies), + offsetof(struct SABP_Kill_Failure__kill_Failure_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/sabp/SABP_Kill.c b/src/sabp/SABP_Kill.c index 0210a19..e9d5874 100644 --- a/src/sabp/SABP_Kill.c +++ b/src/sabp/SABP_Kill.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Kill.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_kill_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_kill_ies_specs_2 = { - sizeof(struct kill_ies), - offsetof(struct kill_ies, _asn_ctx), + sizeof(struct SABP_Kill__kill_ies), + offsetof(struct SABP_Kill__kill_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/sabp/SABP_Load-Query-Complete.c b/src/sabp/SABP_Load-Query-Complete.c index d633890..4b03553 100644 --- a/src/sabp/SABP_Load-Query-Complete.c +++ b/src/sabp/SABP_Load-Query-Complete.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Load-Query-Complete.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_load_Query_Complete_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_load_Query_Complete_ies_specs_2 = { - sizeof(struct load_Query_Complete_ies), - offsetof(struct load_Query_Complete_ies, _asn_ctx), + sizeof(struct SABP_Load_Query_Complete__load_Query_Complete_ies), + offsetof(struct SABP_Load_Query_Complete__load_Query_Complete_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/sabp/SABP_Load-Query-Failure.c b/src/sabp/SABP_Load-Query-Failure.c index 948e4ad..ad04a30 100644 --- a/src/sabp/SABP_Load-Query-Failure.c +++ b/src/sabp/SABP_Load-Query-Failure.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Load-Query-Failure.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_load_Query_Failure_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_load_Query_Failure_ies_specs_2 = { - sizeof(struct load_Query_Failure_ies), - offsetof(struct load_Query_Failure_ies, _asn_ctx), + sizeof(struct SABP_Load_Query_Failure__load_Query_Failure_ies), + offsetof(struct SABP_Load_Query_Failure__load_Query_Failure_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/sabp/SABP_Load-Query.c b/src/sabp/SABP_Load-Query.c index 2283840..483d988 100644 --- a/src/sabp/SABP_Load-Query.c +++ b/src/sabp/SABP_Load-Query.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Load-Query.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_load_Query_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_load_Query_ies_specs_2 = { - sizeof(struct load_Query_ies), - offsetof(struct load_Query_ies, _asn_ctx), + sizeof(struct SABP_Load_Query__load_Query_ies), + offsetof(struct SABP_Load_Query__load_Query_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/sabp/SABP_Message-Identifier.c b/src/sabp/SABP_Message-Identifier.c index 2789dcc..0d2432d 100644 --- a/src/sabp/SABP_Message-Identifier.c +++ b/src/sabp/SABP_Message-Identifier.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Message-Identifier.h> diff --git a/src/sabp/SABP_Message-Status-Query-Complete.c b/src/sabp/SABP_Message-Status-Query-Complete.c index dd222e0..6483ed1 100644 --- a/src/sabp/SABP_Message-Status-Query-Complete.c +++ b/src/sabp/SABP_Message-Status-Query-Complete.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Message-Status-Query-Complete.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_message_Status_Query_Complete_ies_tags_2[] = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_message_Status_Query_Complete_ies_specs_2 = { - sizeof(struct message_Status_Query_Complete_ies), - offsetof(struct message_Status_Query_Complete_ies, _asn_ctx), + sizeof(struct SABP_Message_Status_Query_Complete__message_Status_Query_Complete_ies), + offsetof(struct SABP_Message_Status_Query_Complete__message_Status_Query_Complete_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/sabp/SABP_Message-Status-Query-Failure.c b/src/sabp/SABP_Message-Status-Query-Failure.c index 4a42757..3308a27 100644 --- a/src/sabp/SABP_Message-Status-Query-Failure.c +++ b/src/sabp/SABP_Message-Status-Query-Failure.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Message-Status-Query-Failure.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_message_Status_Query_Failure_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_message_Status_Query_Failure_ies_specs_2 = { - sizeof(struct message_Status_Query_Failure_ies), - offsetof(struct message_Status_Query_Failure_ies, _asn_ctx), + sizeof(struct SABP_Message_Status_Query_Failure__message_Status_Query_Failure_ies), + offsetof(struct SABP_Message_Status_Query_Failure__message_Status_Query_Failure_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/sabp/SABP_Message-Status-Query.c b/src/sabp/SABP_Message-Status-Query.c index 8055733..5a0b5ac 100644 --- a/src/sabp/SABP_Message-Status-Query.c +++ b/src/sabp/SABP_Message-Status-Query.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Message-Status-Query.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_message_Status_Query_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_message_Status_Query_ies_specs_2 = { - sizeof(struct message_Status_Query_ies), - offsetof(struct message_Status_Query_ies, _asn_ctx), + sizeof(struct SABP_Message_Status_Query__message_Status_Query_ies), + offsetof(struct SABP_Message_Status_Query__message_Status_Query_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/sabp/SABP_MessageStructure-Value.c b/src/sabp/SABP_MessageStructure-Value.c new file mode 100644 index 0000000..5206f65 --- /dev/null +++ b/src/sabp/SABP_MessageStructure-Value.c @@ -0,0 +1,84 @@ +/* + * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) + * From ASN.1 module "SABP-IEs" + * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` + */ + +#include <osmocom/sabp/SABP_MessageStructure-Value.h> + +static asn_TYPE_member_t asn_MBR_SABP_MessageStructure_Value_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SABP_MessageStructure_Value, iE_ID), + (ASN_TAG_CLASS_CONTEXT | (0 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SABP_ProtocolIE_ID, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-ID" + }, + { ATF_POINTER, 2, offsetof(struct SABP_MessageStructure_Value, repetitionNumber), + (ASN_TAG_CLASS_CONTEXT | (1 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SABP_RepetitionNumber1, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "repetitionNumber" + }, + { ATF_POINTER, 1, offsetof(struct SABP_MessageStructure_Value, iE_Extensions), + (ASN_TAG_CLASS_CONTEXT | (2 << 2)), + -1, /* IMPLICIT tag at current level */ + &asn_DEF_SABP_IE_Extensions, + 0, /* Defer constraints checking to the member type */ + 0, /* No PER visible constraints */ + 0, + "iE-Extensions" + }, +}; +static const int asn_MAP_SABP_MessageStructure_Value_oms_1[] = { 1, 2 }; +static const ber_tlv_tag_t asn_DEF_SABP_MessageStructure_Value_tags_1[] = { + (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) +}; +static const asn_TYPE_tag2member_t asn_MAP_SABP_MessageStructure_Value_tag2el_1[] = { + { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* iE-ID */ + { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* repetitionNumber */ + { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ +}; +static asn_SEQUENCE_specifics_t asn_SPC_SABP_MessageStructure_Value_specs_1 = { + sizeof(struct SABP_MessageStructure_Value), + offsetof(struct SABP_MessageStructure_Value, _asn_ctx), + asn_MAP_SABP_MessageStructure_Value_tag2el_1, + 3, /* Count of tags in the map */ + asn_MAP_SABP_MessageStructure_Value_oms_1, /* Optional members */ + 2, 0, /* Root/Additions */ + 2, /* Start extensions */ + 4 /* Stop extensions */ +}; +asn_TYPE_descriptor_t asn_DEF_SABP_MessageStructure_Value = { + "SABP_MessageStructure-Value", + "SABP_MessageStructure-Value", + SEQUENCE_free, + SEQUENCE_print, + SEQUENCE_constraint, + SEQUENCE_decode_ber, + SEQUENCE_encode_der, + SEQUENCE_decode_xer, + SEQUENCE_encode_xer, + SEQUENCE_decode_uper, + SEQUENCE_encode_uper, + SEQUENCE_decode_aper, + SEQUENCE_encode_aper, + 0, /* Use generic outmost tag fetcher */ + asn_DEF_SABP_MessageStructure_Value_tags_1, + sizeof(asn_DEF_SABP_MessageStructure_Value_tags_1) + /sizeof(asn_DEF_SABP_MessageStructure_Value_tags_1[0]), /* 1 */ + asn_DEF_SABP_MessageStructure_Value_tags_1, /* Same as above */ + sizeof(asn_DEF_SABP_MessageStructure_Value_tags_1) + /sizeof(asn_DEF_SABP_MessageStructure_Value_tags_1[0]), /* 1 */ + 0, /* No PER visible constraints */ + asn_MBR_SABP_MessageStructure_Value_1, + 3, /* Elements count */ + &asn_SPC_SABP_MessageStructure_Value_specs_1 /* Additional specs */ +}; + diff --git a/src/sabp/SABP_MessageStructure.c b/src/sabp/SABP_MessageStructure.c index db4c0d6..03ad242 100644 --- a/src/sabp/SABP_MessageStructure.c +++ b/src/sabp/SABP_MessageStructure.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_MessageStructure.h> @@ -11,87 +12,11 @@ static asn_per_constraints_t asn_PER_type_SABP_MessageStructure_constr_1 GCC_NOT { APC_CONSTRAINED, 8, 8, 1l, 256l } /* (SIZE(1..256)) */, 0, 0 /* No PER value map */ }; -static asn_TYPE_member_t asn_MBR_MemberA_2[] = { - { ATF_NOFLAGS, 0, offsetof(struct MemberA, iE_ID), - (ASN_TAG_CLASS_CONTEXT | (0 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SABP_ProtocolIE_ID, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-ID" - }, - { ATF_POINTER, 2, offsetof(struct MemberA, repetitionNumber), - (ASN_TAG_CLASS_CONTEXT | (1 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SABP_RepetitionNumber1, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "repetitionNumber" - }, - { ATF_POINTER, 1, offsetof(struct MemberA, iE_Extensions), - (ASN_TAG_CLASS_CONTEXT | (2 << 2)), - -1, /* IMPLICIT tag at current level */ - &asn_DEF_SABP_IE_Extensions, - 0, /* Defer constraints checking to the member type */ - 0, /* No PER visible constraints */ - 0, - "iE-Extensions" - }, -}; -static const int asn_MAP_MemberA_oms_2[] = { 1, 2 }; -static const ber_tlv_tag_t asn_DEF_MemberA_tags_2[] = { - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) -}; -static const asn_TYPE_tag2member_t asn_MAP_MemberA_tag2el_2[] = { - { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* iE-ID */ - { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* repetitionNumber */ - { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */ -}; -static asn_SEQUENCE_specifics_t asn_SPC_MemberA_specs_2 = { - sizeof(struct MemberA), - offsetof(struct MemberA, _asn_ctx), - asn_MAP_MemberA_tag2el_2, - 3, /* Count of tags in the map */ - asn_MAP_MemberA_oms_2, /* Optional members */ - 2, 0, /* Root/Additions */ - 2, /* Start extensions */ - 4 /* Stop extensions */ -}; -static /* Use -fall-defs-global to expose */ -asn_TYPE_descriptor_t asn_DEF_MemberA_2 = { - "SEQUENCE", - "SEQUENCE", - SEQUENCE_free, - SEQUENCE_print, - SEQUENCE_constraint, - SEQUENCE_decode_ber, - SEQUENCE_encode_der, - SEQUENCE_decode_xer, - SEQUENCE_encode_xer, - SEQUENCE_decode_uper, - SEQUENCE_encode_uper, - SEQUENCE_decode_aper, - SEQUENCE_encode_aper, - 0, /* Use generic outmost tag fetcher */ - asn_DEF_MemberA_tags_2, - sizeof(asn_DEF_MemberA_tags_2) - /sizeof(asn_DEF_MemberA_tags_2[0]), /* 1 */ - asn_DEF_MemberA_tags_2, /* Same as above */ - sizeof(asn_DEF_MemberA_tags_2) - /sizeof(asn_DEF_MemberA_tags_2[0]), /* 1 */ - 0, /* No PER visible constraints */ - asn_MBR_MemberA_2, - 3, /* Elements count */ - &asn_SPC_MemberA_specs_2 /* Additional specs */ -}; - static asn_TYPE_member_t asn_MBR_SABP_MessageStructure_1[] = { { ATF_POINTER, 0, 0, - (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), + -1 /* Ambiguous tag (CHOICE?) */, 0, - &asn_DEF_MemberA_2, + &asn_DEF_SABP_MessageStructure_Value, 0, /* Defer constraints checking to the member type */ 0, /* No PER visible constraints */ 0, diff --git a/src/sabp/SABP_New-Serial-Number.c b/src/sabp/SABP_New-Serial-Number.c index e279250..f4ffd1d 100644 --- a/src/sabp/SABP_New-Serial-Number.c +++ b/src/sabp/SABP_New-Serial-Number.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_New-Serial-Number.h> diff --git a/src/sabp/SABP_Number-Of-Broadcasts-Completed-Info.c b/src/sabp/SABP_Number-Of-Broadcasts-Completed-Info.c index 19dab85..239bfc9 100644 --- a/src/sabp/SABP_Number-Of-Broadcasts-Completed-Info.c +++ b/src/sabp/SABP_Number-Of-Broadcasts-Completed-Info.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Number-Of-Broadcasts-Completed-Info.h> diff --git a/src/sabp/SABP_Number-of-Broadcasts-Completed-List-Item.c b/src/sabp/SABP_Number-of-Broadcasts-Completed-List-Item.c index 77075e3..11693c0 100644 --- a/src/sabp/SABP_Number-of-Broadcasts-Completed-List-Item.c +++ b/src/sabp/SABP_Number-of-Broadcasts-Completed-List-Item.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Number-of-Broadcasts-Completed-List-Item.h> diff --git a/src/sabp/SABP_Number-of-Broadcasts-Completed-List.c b/src/sabp/SABP_Number-of-Broadcasts-Completed-List.c index 56ea92a..26a42f0 100644 --- a/src/sabp/SABP_Number-of-Broadcasts-Completed-List.c +++ b/src/sabp/SABP_Number-of-Broadcasts-Completed-List.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Number-of-Broadcasts-Completed-List.h> diff --git a/src/sabp/SABP_Number-of-Broadcasts-Requested.c b/src/sabp/SABP_Number-of-Broadcasts-Requested.c index 10654a0..ce72ab7 100644 --- a/src/sabp/SABP_Number-of-Broadcasts-Requested.c +++ b/src/sabp/SABP_Number-of-Broadcasts-Requested.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Number-of-Broadcasts-Requested.h> diff --git a/src/sabp/SABP_Old-Serial-Number.c b/src/sabp/SABP_Old-Serial-Number.c index 53766aa..d40c297 100644 --- a/src/sabp/SABP_Old-Serial-Number.c +++ b/src/sabp/SABP_Old-Serial-Number.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Old-Serial-Number.h> diff --git a/src/sabp/SABP_Paging-ETWS-Indicator.c b/src/sabp/SABP_Paging-ETWS-Indicator.c index 056ec17..1d8c847 100644 --- a/src/sabp/SABP_Paging-ETWS-Indicator.c +++ b/src/sabp/SABP_Paging-ETWS-Indicator.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Paging-ETWS-Indicator.h> diff --git a/src/sabp/SABP_Presence.c b/src/sabp/SABP_Presence.c index c63bdd9..3706a4b 100644 --- a/src/sabp/SABP_Presence.c +++ b/src/sabp/SABP_Presence.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-CommonDataTypes" * found in "../../asn1/sabp/SABP-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Presence.h> diff --git a/src/sabp/SABP_ProcedureCode.c b/src/sabp/SABP_ProcedureCode.c index 50b962d..98df07b 100644 --- a/src/sabp/SABP_ProcedureCode.c +++ b/src/sabp/SABP_ProcedureCode.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-CommonDataTypes" * found in "../../asn1/sabp/SABP-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_ProcedureCode.h> diff --git a/src/sabp/SABP_ProtocolExtensionID.c b/src/sabp/SABP_ProtocolExtensionID.c index f4d6752..9ac99a9 100644 --- a/src/sabp/SABP_ProtocolExtensionID.c +++ b/src/sabp/SABP_ProtocolExtensionID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-CommonDataTypes" * found in "../../asn1/sabp/SABP-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_ProtocolExtensionID.h> diff --git a/src/sabp/SABP_ProtocolIE-ID.c b/src/sabp/SABP_ProtocolIE-ID.c index a3b013a..2f2f704 100644 --- a/src/sabp/SABP_ProtocolIE-ID.c +++ b/src/sabp/SABP_ProtocolIE-ID.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-CommonDataTypes" * found in "../../asn1/sabp/SABP-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_ProtocolIE-ID.h> diff --git a/src/sabp/SABP_Radio-Resource-Loading-List-Item.c b/src/sabp/SABP_Radio-Resource-Loading-List-Item.c index a7837f2..3abf2d7 100644 --- a/src/sabp/SABP_Radio-Resource-Loading-List-Item.c +++ b/src/sabp/SABP_Radio-Resource-Loading-List-Item.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Radio-Resource-Loading-List-Item.h> diff --git a/src/sabp/SABP_Radio-Resource-Loading-List.c b/src/sabp/SABP_Radio-Resource-Loading-List.c index 6adbfc7..9e1a208 100644 --- a/src/sabp/SABP_Radio-Resource-Loading-List.c +++ b/src/sabp/SABP_Radio-Resource-Loading-List.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Radio-Resource-Loading-List.h> diff --git a/src/sabp/SABP_Recovery-Indication.c b/src/sabp/SABP_Recovery-Indication.c index e4c07e4..4d84bcb 100644 --- a/src/sabp/SABP_Recovery-Indication.c +++ b/src/sabp/SABP_Recovery-Indication.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Recovery-Indication.h> diff --git a/src/sabp/SABP_Repetition-Period.c b/src/sabp/SABP_Repetition-Period.c index 2286dfc..9cceab6 100644 --- a/src/sabp/SABP_Repetition-Period.c +++ b/src/sabp/SABP_Repetition-Period.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Repetition-Period.h> diff --git a/src/sabp/SABP_RepetitionNumber0.c b/src/sabp/SABP_RepetitionNumber0.c index affee21..9a1b172 100644 --- a/src/sabp/SABP_RepetitionNumber0.c +++ b/src/sabp/SABP_RepetitionNumber0.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_RepetitionNumber0.h> diff --git a/src/sabp/SABP_RepetitionNumber1.c b/src/sabp/SABP_RepetitionNumber1.c index d4209dd..f4befd1 100644 --- a/src/sabp/SABP_RepetitionNumber1.c +++ b/src/sabp/SABP_RepetitionNumber1.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_RepetitionNumber1.h> diff --git a/src/sabp/SABP_Reset-Complete.c b/src/sabp/SABP_Reset-Complete.c index 849d3e2..3ccf9d5 100644 --- a/src/sabp/SABP_Reset-Complete.c +++ b/src/sabp/SABP_Reset-Complete.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Reset-Complete.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_reset_Complete_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_reset_Complete_ies_specs_2 = { - sizeof(struct reset_Complete_ies), - offsetof(struct reset_Complete_ies, _asn_ctx), + sizeof(struct SABP_Reset_Complete__reset_Complete_ies), + offsetof(struct SABP_Reset_Complete__reset_Complete_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/sabp/SABP_Reset-Failure.c b/src/sabp/SABP_Reset-Failure.c index c4ef4de..08b07c8 100644 --- a/src/sabp/SABP_Reset-Failure.c +++ b/src/sabp/SABP_Reset-Failure.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Reset-Failure.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_reset_Failure_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_reset_Failure_ies_specs_2 = { - sizeof(struct reset_Failure_ies), - offsetof(struct reset_Failure_ies, _asn_ctx), + sizeof(struct SABP_Reset_Failure__reset_Failure_ies), + offsetof(struct SABP_Reset_Failure__reset_Failure_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/sabp/SABP_Reset.c b/src/sabp/SABP_Reset.c index 0f18f90..89e661f 100644 --- a/src/sabp/SABP_Reset.c +++ b/src/sabp/SABP_Reset.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Reset.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_reset_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_reset_ies_specs_2 = { - sizeof(struct reset_ies), - offsetof(struct reset_ies, _asn_ctx), + sizeof(struct SABP_Reset__reset_ies), + offsetof(struct SABP_Reset__reset_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/sabp/SABP_Restart.c b/src/sabp/SABP_Restart.c index a77bca7..dad513b 100644 --- a/src/sabp/SABP_Restart.c +++ b/src/sabp/SABP_Restart.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Restart.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_restart_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_restart_ies_specs_2 = { - sizeof(struct restart_ies), - offsetof(struct restart_ies, _asn_ctx), + sizeof(struct SABP_Restart__restart_ies), + offsetof(struct SABP_Restart__restart_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/sabp/SABP_SABP-PDU.c b/src/sabp/SABP_SABP-PDU.c index a11315c..c1e7f57 100644 --- a/src/sabp/SABP_SABP-PDU.c +++ b/src/sabp/SABP_SABP-PDU.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_SABP-PDU.h> diff --git a/src/sabp/SABP_Serial-Number.c b/src/sabp/SABP_Serial-Number.c index b0308ed..36dc3ed 100644 --- a/src/sabp/SABP_Serial-Number.c +++ b/src/sabp/SABP_Serial-Number.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Serial-Number.h> diff --git a/src/sabp/SABP_Service-Area-Identifier.c b/src/sabp/SABP_Service-Area-Identifier.c index 7c98288..495c3d5 100644 --- a/src/sabp/SABP_Service-Area-Identifier.c +++ b/src/sabp/SABP_Service-Area-Identifier.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Service-Area-Identifier.h> diff --git a/src/sabp/SABP_Service-Areas-List.c b/src/sabp/SABP_Service-Areas-List.c index b055363..3a6b9ee 100644 --- a/src/sabp/SABP_Service-Areas-List.c +++ b/src/sabp/SABP_Service-Areas-List.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Service-Areas-List.h> diff --git a/src/sabp/SABP_SuccessfulOutcome.c b/src/sabp/SABP_SuccessfulOutcome.c index f1f9996..7fd444c 100644 --- a/src/sabp/SABP_SuccessfulOutcome.c +++ b/src/sabp/SABP_SuccessfulOutcome.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_SuccessfulOutcome.h> diff --git a/src/sabp/SABP_TriggeringMessage.c b/src/sabp/SABP_TriggeringMessage.c index ec0c4b5..5ec0087 100644 --- a/src/sabp/SABP_TriggeringMessage.c +++ b/src/sabp/SABP_TriggeringMessage.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-CommonDataTypes" * found in "../../asn1/sabp/SABP-CommonDataTypes.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_TriggeringMessage.h> diff --git a/src/sabp/SABP_TypeOfError.c b/src/sabp/SABP_TypeOfError.c index e6ec48c..1273b67 100644 --- a/src/sabp/SABP_TypeOfError.c +++ b/src/sabp/SABP_TypeOfError.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_TypeOfError.h> diff --git a/src/sabp/SABP_UnsuccessfulOutcome.c b/src/sabp/SABP_UnsuccessfulOutcome.c index 423e8dc..bd869f9 100644 --- a/src/sabp/SABP_UnsuccessfulOutcome.c +++ b/src/sabp/SABP_UnsuccessfulOutcome.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_UnsuccessfulOutcome.h> diff --git a/src/sabp/SABP_Warning-Type.c b/src/sabp/SABP_Warning-Type.c index 4792b6c..9e958a2 100644 --- a/src/sabp/SABP_Warning-Type.c +++ b/src/sabp/SABP_Warning-Type.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Warning-Type.h> diff --git a/src/sabp/SABP_WarningSecurityInfo.c b/src/sabp/SABP_WarningSecurityInfo.c index 21eda36..70859e3 100644 --- a/src/sabp/SABP_WarningSecurityInfo.c +++ b/src/sabp/SABP_WarningSecurityInfo.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-IEs" * found in "../../asn1/sabp/SABP-IEs.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_WarningSecurityInfo.h> diff --git a/src/sabp/SABP_Write-Replace-Complete.c b/src/sabp/SABP_Write-Replace-Complete.c index a3365a4..56f44d4 100644 --- a/src/sabp/SABP_Write-Replace-Complete.c +++ b/src/sabp/SABP_Write-Replace-Complete.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Write-Replace-Complete.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_write_Replace_Complete_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_write_Replace_Complete_ies_specs_2 = { - sizeof(struct write_Replace_Complete_ies), - offsetof(struct write_Replace_Complete_ies, _asn_ctx), + sizeof(struct SABP_Write_Replace_Complete__write_Replace_Complete_ies), + offsetof(struct SABP_Write_Replace_Complete__write_Replace_Complete_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/sabp/SABP_Write-Replace-Failure.c b/src/sabp/SABP_Write-Replace-Failure.c index b36baeb..9d1fad3 100644 --- a/src/sabp/SABP_Write-Replace-Failure.c +++ b/src/sabp/SABP_Write-Replace-Failure.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Write-Replace-Failure.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_write_Replace_Failure_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_write_Replace_Failure_ies_specs_2 = { - sizeof(struct write_Replace_Failure_ies), - offsetof(struct write_Replace_Failure_ies, _asn_ctx), + sizeof(struct SABP_Write_Replace_Failure__write_Replace_Failure_ies), + offsetof(struct SABP_Write_Replace_Failure__write_Replace_Failure_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/sabp/SABP_Write-Replace.c b/src/sabp/SABP_Write-Replace.c index 11a2bb4..994e145 100644 --- a/src/sabp/SABP_Write-Replace.c +++ b/src/sabp/SABP_Write-Replace.c @@ -2,6 +2,7 @@ * Generated by asn1c-0.9.28 (http://lionet.info/asn1c) * From ASN.1 module "SABP-PDU" * found in "../../asn1/sabp/SABP-PDU.asn" + * `asn1c -R -fcompound-names` */ #include <osmocom/sabp/SABP_Write-Replace.h> @@ -58,8 +59,8 @@ static const ber_tlv_tag_t asn_DEF_write_Replace_ies_tags_2[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static asn_SET_OF_specifics_t asn_SPC_write_Replace_ies_specs_2 = { - sizeof(struct write_Replace_ies), - offsetof(struct write_Replace_ies, _asn_ctx), + sizeof(struct SABP_Write_Replace__write_Replace_ies), + offsetof(struct SABP_Write_Replace__write_Replace_ies, _asn_ctx), 0, /* XER encoding is XMLDelimitedItemList */ }; static /* Use -fall-defs-global to expose */ diff --git a/src/tests/test-helpers.c b/src/tests/test-helpers.c deleted file mode 100644 index cfe2140..0000000 --- a/src/tests/test-helpers.c +++ /dev/null @@ -1,219 +0,0 @@ -/* some humble start of unit testing */ - -/* (C) 2015 by Harald Welte <laforge@gnumonks.org> - * All Rights Reserved - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - */ - -#include "test_common.h" - -#include <osmocom/ranap/iu_helpers.h> -#include <osmocom/ranap/ranap_common.h> -#include "asn1helpers.h" - -#include <assert.h> -#define ASSERT(x) assert(x) - -#include <osmocom/core/utils.h> -#include <osmocom/gsm/gsm48.h> - -#include <osmocom/ranap/RANAP_LAI.h> - -extern void *talloc_asn1_ctx; - -/* use odd number of digits */ -const uint8_t imsi_encoded[] = { 0x10, 0x32, 0x54, 0x76, 0xF8 }; -const char imsi_decoded[] = "012345678"; - -void test_iu_helpers(void) -{ - char outstr[32]; - uint8_t outbuf[16]; - int rc; - - printf("Testing Iu helper functions\n"); - - printf("pre-encoded: %s\n", osmo_hexdump_nospc(imsi_encoded, - sizeof(imsi_encoded))); - rc = ranap_bcd_decode(outstr, sizeof(outstr), imsi_encoded, - sizeof(imsi_encoded)); - ASSERT(rc >= 0); - printf("decoded: %s\n", outstr); - ASSERT(!strcmp(outstr, imsi_decoded)); - - rc = ranap_imsi_encode(outbuf, sizeof(outbuf), imsi_decoded); - ASSERT(rc >= 0); - printf("re-encoded: %s\n", osmo_hexdump_nospc(outbuf, rc)); - ASSERT(!memcmp(outbuf, imsi_encoded, sizeof(imsi_encoded))); -} - -const uint32_t val1 = 0xdeadbeef; - -const OCTET_STRING_t text1 = { - .buf = (uint8_t *) "0123456789012345", - .size = 16, -}; - -const OCTET_STRING_t text2 = { - .buf = (uint8_t *) "01234567890123456789012345678901234567890", - .size = 40, -}; - -void test_asn1_helpers(void) -{ - int rc; - - void *buffer; - BIT_STRING_t enc; - uint32_t res, tmpval; - char text[32]; - - printf("Testing asn.1 helper functions\n"); - - printf("Encoding 0x%x to asn.1 bitstring\n", val1); - asn1_u32_to_bitstring(&enc, &tmpval, val1); - - ASSERT(enc.size == sizeof(uint32_t)); - ASSERT(enc.bits_unused == 0); - - rc = aper_encode_to_new_buffer(&asn_DEF_BIT_STRING, 0, &enc, (void **) &buffer); - printf("Encoded: %s\n", osmo_hexdump_nospc(buffer, rc)); - - res = asn1bitstr_to_u32(&enc); - - printf("Decoding back to uint32_t: 0x%x\n", res); - ASSERT(res == val1); - - printf("Encoding 0x%x to 24-bit asn.1 bitstring\n", val1); - asn1_u24_to_bitstring(&enc, &tmpval, val1); - - ASSERT(enc.size == 24/8); - ASSERT(enc.bits_unused == 0); - - talloc_free(buffer); - - rc = aper_encode_to_new_buffer(&asn_DEF_BIT_STRING, 0, &enc, (void **) &buffer); - printf("Encoded: %s\n", osmo_hexdump_nospc(buffer, rc)); - - rc = asn1_strncpy(text, &text1, sizeof(text)); - printf("Decoding string from asn.1: %s\n", text); - - ASSERT(rc == 16); - ASSERT(!strcmp(text, (char *)text1.buf)); - - rc = asn1_strncpy(text, &text2, sizeof(text)); - printf("Decoding large string from asn1: %s\n", text); - ASSERT(rc == 31); - - talloc_free(buffer); -} - -void test_ranap_common(void) -{ - uint8_t plmnid_buf[] = { 0x21, 0xf3, 0x54 }; - uint8_t lac_buf[] = { 0xab, 0xcd }; - - struct gprs_ra_id ra_id = {0}; - - int rc; - - RANAP_LAI_t lai = { - .pLMNidentity = { - .buf = plmnid_buf, - .size = 3 - }, - .lAC = { - .buf = lac_buf, - .size = 2 - } - }; - - printf("Testing ranap common functions\n"); - - printf("PLMN-Id [ %s]", osmo_hexdump(lai.pLMNidentity.buf, - lai.pLMNidentity.size)); - printf(", LAC [ %s]\n", osmo_hexdump(lai.lAC.buf, - lai.lAC.size)); - - rc = ranap_parse_lai(&ra_id, &lai); - printf(" rc == %d\n", rc); - OSMO_ASSERT(rc == 0); - printf(" mcc == %d mnc == %d\n", ra_id.mcc, ra_id.mnc); - OSMO_ASSERT(ra_id.mcc == 123); - OSMO_ASSERT(ra_id.mnc == 45); - printf(" lac == 0x%x\n", ra_id.lac); - OSMO_ASSERT(ra_id.lac == 0xabcd); - - - /* three digit MNC */ - uint8_t plmnid_buf_mnc3[] = { 0x21, 0x43, 0x65 }; - lai.pLMNidentity.buf = plmnid_buf_mnc3; - - printf("PLMN-Id [ %s]", osmo_hexdump(lai.pLMNidentity.buf, - lai.pLMNidentity.size)); - printf(", LAC [ %s]\n", osmo_hexdump(lai.lAC.buf, - lai.lAC.size)); - - rc = ranap_parse_lai(&ra_id, &lai); - printf(" rc == %d\n", rc); - OSMO_ASSERT(rc == 0); - printf(" mcc == %d mnc == %d\n", ra_id.mcc, ra_id.mnc); - OSMO_ASSERT(ra_id.mcc == 123); - OSMO_ASSERT(ra_id.mnc == 456); - printf(" lac == 0x%x\n", ra_id.lac); - OSMO_ASSERT(ra_id.lac == 0xabcd); - - - /* wrong PLMN-Id size */ - lai.pLMNidentity.size = 2; - - printf("PLMN-Id [ %s]", osmo_hexdump(lai.pLMNidentity.buf, - lai.pLMNidentity.size)); - printf(", LAC [ %s]\n", osmo_hexdump(lai.lAC.buf, - lai.lAC.size)); - - rc = ranap_parse_lai(&ra_id, &lai); - printf(" rc == %d\n", rc); - OSMO_ASSERT(rc == -1); - - - /* wrong LAC size */ - lai.pLMNidentity.size = 3; - lai.lAC.size = 1; - - printf("PLMN-Id [ %s]", osmo_hexdump(lai.pLMNidentity.buf, - lai.pLMNidentity.size)); - printf(", LAC [ %s]\n", osmo_hexdump(lai.lAC.buf, - lai.lAC.size)); - - rc = ranap_parse_lai(&ra_id, &lai); - printf(" rc == %d\n", rc); - OSMO_ASSERT(rc == -1); -} - -int main(int argc, char **argv) -{ - asn1_xer_print = 0; - - test_common_init(); - - test_iu_helpers(); - test_asn1_helpers(); - test_ranap_common(); - - test_common_cleanup(); - return 0; -} diff --git a/src/tests/test-helpers.ok b/src/tests/test-helpers.ok deleted file mode 100644 index f2e466f..0000000 --- a/src/tests/test-helpers.ok +++ /dev/null @@ -1,25 +0,0 @@ -Testing Iu helper functions -pre-encoded: 10325476f8 -decoded: 012345678 -re-encoded: 10325476f8 -Testing asn.1 helper functions -Encoding 0xdeadbeef to asn.1 bitstring -Encoded: 20deadbeef -Decoding back to uint32_t: 0xdeadbeef -Encoding 0xdeadbeef to 24-bit asn.1 bitstring -Encoded: 18adbeef -Decoding string from asn.1: 0123456789012345 -Decoding large string from asn1: 0123456789012345678901234567890 -Testing ranap common functions -PLMN-Id [ 21 f3 54 ], LAC [ ab cd ] - rc == 0 - mcc == 123 mnc == 45 - lac == 0xabcd -PLMN-Id [ 21 43 65 ], LAC [ ab cd ] - rc == 0 - mcc == 123 mnc == 456 - lac == 0xabcd -PLMN-Id [ 21 43 ], LAC [ ab cd ] - rc == -1 -PLMN-Id [ 21 43 65 ], LAC [ ab ] - rc == -1 diff --git a/src/tests/Makefile.am b/tests/Makefile.am index 72a3300..c08c6d1 100644 --- a/src/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,4 +1,4 @@ -AM_CFLAGS = -g -Wall -I$(top_srcdir)/src/tests \ +AM_CFLAGS = -g -Wall -I$(top_srcdir)/tests \ -I$(top_srcdir)/include -I$(top_builddir)/include \ $(OSMOVTY_CFLAGS) $(OSMOCORE_CFLAGS) $(OSMOGSM_CFLAGS) \ $(OSMONETIF_CFLAGS) $(ASN1C_CFLAGS) $(OSMOSIGTRAN_CFLAGS) @@ -11,25 +11,28 @@ check_PROGRAMS = test-ranap test-helpers test-hnbap hnb-test #dummy-cn noinst_HEADERS = test_common.h hnb-test.h hnb-test-layers.h -HNBAP_FILES = $(top_srcdir)/src/hnbap_common.c $(top_builddir)/src/hnbap_decoder.c $(top_builddir)/src/hnbap_encoder.c -RUA_FILES = $(top_srcdir)/src/rua_common.c $(top_builddir)/src/rua_decoder.c $(top_builddir)/src/rua_encoder.c $(top_srcdir)/src/rua_msg_factory.c - test_helpers_SOURCES = test-helpers.c test_common.c test_helpers_LDADD = $(COMMON_LIBS) $(top_builddir)/src/libosmo-ranap.la -test_hnbap_SOURCES = $(top_srcdir)/src/hnbap_common.c $(top_builddir)/src/hnbap_decoder.c test-hnbap.c test_common.c -test_hnbap_LDADD = $(COMMON_LIBS) $(top_builddir)/src/hnbap/libosmo-asn1-hnbap.a $(top_builddir)/src/libosmo-ranap.la +test_hnbap_SOURCES = test-hnbap.c test_common.c +test_hnbap_LDADD = $(COMMON_LIBS) $(top_builddir)/src/libosmo-hnbap.la $(top_builddir)/src/libosmo-ranap.la -hnb_test_SOURCES = $(HNBAP_FILES) $(RUA_FILES) hnb-test.c test_common.c hnb-test-ranap.c hnb-test-rua.c -hnb_test_LDADD = $(COMMON_LIBS) $(top_builddir)/src/hnbap/libosmo-asn1-hnbap.a $(top_builddir)/src/rua/libosmo-asn1-rua.a $(top_builddir)/src/libosmo-ranap.la +hnb_test_SOURCES = hnb-test.c test_common.c hnb-test-ranap.c hnb-test-rua.c +hnb_test_LDADD = $(COMMON_LIBS) $(top_builddir)/src/libosmo-hnbap.la $(top_builddir)/src/libosmo-rua.la $(top_builddir)/src/libosmo-ranap.la -test_ranap_SOURCES = $(RANAP_FILES) test-ranap.c test_common.c +test_ranap_SOURCES = test-ranap.c test_common.c test_ranap_LDADD = $(COMMON_LIBS) $(top_builddir)/src/libosmo-ranap.la # TODO: re-add using SCCP? -#dummy_cn_SOURCES = $(RANAP_FILES) test_common.c dummy_cn_sua.c +#dummy_cn_SOURCES = test_common.c dummy_cn_sua.c #dummy_cn_LDADD = $(COMMON_LIBS) $(top_builddir)/src/libosmo-ranap.la +$(top_builddir)/src/libosmo-hnbap.la: + $(MAKE) -C $(top_builddir)/src libosmo-hnbap.la + +$(top_builddir)/src/libosmo-rua.la: + $(MAKE) -C $(top_builddir)/src libosmo-rua.la + $(top_builddir)/src/libosmo-ranap.la: $(MAKE) -C $(top_builddir)/src libosmo-ranap.la @@ -74,4 +77,3 @@ AUTOTEST = $(AUTOM4TE) --language=autotest $(TESTSUITE): $(srcdir)/testsuite.at $(srcdir)/package.m4 $(AUTOTEST) -I '$(top_srcdir)/include' -I '$(srcdir)' -o $@.tmp $@.at mv $@.tmp $@ - diff --git a/src/tests/dummy_cn_sua.c b/tests/dummy_cn_sua.c index 6e14562..cf71608 100644 --- a/src/tests/dummy_cn_sua.c +++ b/tests/dummy_cn_sua.c @@ -24,7 +24,6 @@ #include <osmocom/ranap/ranap_ies_defs.h> #include <osmocom/ranap/ranap_common_cn.h> #include <osmocom/ranap/ranap_msg_factory.h> -#include <osmocom/iuh/hnbgw.h> const char *cmdline_bind_addr = "127.0.0.1"; diff --git a/src/tests/hnb-test-layers.h b/tests/hnb-test-layers.h index 62369f3..6211661 100644 --- a/src/tests/hnb-test-layers.h +++ b/tests/hnb-test-layers.h @@ -9,10 +9,8 @@ void hnb_test_rua_dt_handle(struct hnb_test *hnb, struct ANY *in); void hnb_test_rua_cl_handle(struct hnb_test *hnb, struct ANY *in); /* RUA calls RANAP */ -void hnb_test_rua_dt_handle_ranap(struct hnb_test *hnb, - struct ranap_message_s *ranap_msg); -void hnb_test_rua_cl_handle_ranap(struct hnb_test *hnb, - struct ranap_message_s *ranap_msg); +void hnb_test_rua_dt_handle_ranap(void *priv, struct ranap_message_s *ranap_msg); +void hnb_test_rua_cl_handle_ranap(void *priv, struct ranap_message_s *ranap_msg); /* RANAP calls main with actual payload*/ void hnb_test_nas_rx_dtap(struct hnb_test *hnb, void *data, int len); diff --git a/src/tests/hnb-test-ranap.c b/tests/hnb-test-ranap.c index 517e1a3..fad5b8f 100644 --- a/src/tests/hnb-test-ranap.c +++ b/tests/hnb-test-ranap.c @@ -1,24 +1,25 @@ #include <osmocom/core/msgb.h> #include <osmocom/ranap/ranap_ies_defs.h> +#include <osmocom/ranap/iu_helpers.h> #include "hnb-test-layers.h" static const char *printstr(OCTET_STRING_t *s) { - return osmo_hexdump((char*)s->buf, s->size); + return osmo_hexdump((const unsigned char*)s->buf, s->size); } #define PP(octet_string_t) \ printf(#octet_string_t " = %s\n",\ printstr(&octet_string_t)) -void hnb_test_rua_dt_handle_ranap(struct hnb_test *hnb, - struct ranap_message_s *ranap_msg) +void hnb_test_rua_dt_handle_ranap(void *priv, struct ranap_message_s *ranap_msg) { int len; - char *data; + uint8_t *data; RANAP_PermittedIntegrityProtectionAlgorithms_t *algs; RANAP_IntegrityProtectionAlgorithm_t *first_alg; + struct hnb_test *hnb = priv; printf("rx ranap_msg->procedureCode %d\n", ranap_msg->procedureCode); @@ -57,10 +58,10 @@ void hnb_test_rua_dt_handle_ranap(struct hnb_test *hnb, } } -void hnb_test_rua_cl_handle_ranap(struct hnb_test *hnb, - struct ranap_message_s *ranap_msg) +void hnb_test_rua_cl_handle_ranap(void *priv, struct ranap_message_s *ranap_msg) { char imsi[16]; + struct hnb_test *hnb = priv; printf("rx ranap_msg->procedureCode %d\n", ranap_msg->procedureCode); diff --git a/src/tests/hnb-test-rua.c b/tests/hnb-test-rua.c index a218852..0882515 100644 --- a/src/tests/hnb-test-rua.c +++ b/tests/hnb-test-rua.c @@ -1,5 +1,6 @@ #include <asn1c/ANY.h> +#include <osmocom/ranap/ranap_common_cn.h> #include <osmocom/rua/rua_ies_defs.h> #include "hnb-test-layers.h" diff --git a/src/tests/hnb-test.c b/tests/hnb-test.c index 27959ec..bfccf5a 100644 --- a/src/tests/hnb-test.c +++ b/tests/hnb-test.c @@ -78,10 +78,11 @@ struct hnb_test g_hnb_test = { struct msgb *rua_new_udt(struct msgb *inmsg); +#if 0 static int hnb_test_ue_de_register_tx(struct hnb_test *hnb_test) { struct msgb *msg; - int rc, imsi_len; + int rc; uint32_t ctx_id; UEDe_Register_t dereg; @@ -94,6 +95,7 @@ static int hnb_test_ue_de_register_tx(struct hnb_test *hnb_test) memset(&dereg, 0, sizeof(dereg)); rc = hnbap_encode_uede_registeries(&dereg, &dereg_ies); + OSMO_ASSERT(rc == 0); msg = hnbap_generate_initiating_message(ProcedureCode_id_UEDe_Register, Criticality_ignore, @@ -106,36 +108,38 @@ static int hnb_test_ue_de_register_tx(struct hnb_test *hnb_test) return osmo_wqueue_enqueue(&hnb_test->wqueue, msg); } +#endif static int hnb_test_ue_register_tx(struct hnb_test *hnb_test, const char *imsi_str) { struct msgb *msg; int rc, imsi_len; - char imsi_buf[16]; + uint8_t imsi_buf[16]; - UERegisterRequest_t request_out; - UERegisterRequestIEs_t request; + HNBAP_UERegisterRequest_t request_out; + HNBAP_UERegisterRequestIEs_t request; memset(&request, 0, sizeof(request)); - request.uE_Identity.present = UE_Identity_PR_iMSI; + request.uE_Identity.present = HNBAP_UE_Identity_PR_iMSI; imsi_len = ranap_imsi_encode(imsi_buf, sizeof(imsi_buf), imsi_str); - OCTET_STRING_fromBuf(&request.uE_Identity.choice.iMSI, imsi_buf, imsi_len); + OCTET_STRING_fromBuf(&request.uE_Identity.choice.iMSI, (const char*)imsi_buf, imsi_len); - request.registration_Cause = Registration_Cause_normal; - request.uE_Capabilities.access_stratum_release_indicator = Access_stratum_release_indicator_rel_6; - request.uE_Capabilities.csg_capability = CSG_Capability_not_csg_capable; + request.registration_Cause = HNBAP_Registration_Cause_normal; + request.uE_Capabilities.access_stratum_release_indicator = HNBAP_Access_stratum_release_indicator_rel_6; + request.uE_Capabilities.csg_capability = HNBAP_CSG_Capability_not_csg_capable; memset(&request_out, 0, sizeof(request_out)); rc = hnbap_encode_ueregisterrequesties(&request_out, &request); + OSMO_ASSERT(rc == 0); - msg = hnbap_generate_initiating_message(ProcedureCode_id_UERegister, - Criticality_reject, - &asn_DEF_UERegisterRequest, + msg = hnbap_generate_initiating_message(HNBAP_ProcedureCode_id_UERegister, + HNBAP_Criticality_reject, + &asn_DEF_HNBAP_UERegisterRequest, &request_out); - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_UERegisterRequest, &request_out); + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_HNBAP_UERegisterRequest, &request_out); msgb_sctp_ppid(msg) = IUH_PPI_HNBAP; @@ -145,7 +149,7 @@ static int hnb_test_ue_register_tx(struct hnb_test *hnb_test, const char *imsi_s static int hnb_test_rx_hnb_register_acc(struct hnb_test *hnb, ANY_t *in) { int rc; - HNBRegisterAcceptIEs_t accept; + HNBAP_HNBRegisterAcceptIEs_t accept; rc = hnbap_decode_hnbregisteraccepties(&accept, in); if (rc < 0) { @@ -162,7 +166,7 @@ static int hnb_test_rx_ue_register_acc(struct hnb_test *hnb, ANY_t *in) { int rc; uint32_t ctx_id; - UERegisterAcceptIEs_t accept; + HNBAP_UERegisterAcceptIEs_t accept; char imsi[16]; rc = hnbap_decode_ueregisteraccepties(&accept, in); @@ -170,7 +174,7 @@ static int hnb_test_rx_ue_register_acc(struct hnb_test *hnb, ANY_t *in) return rc; } - if (accept.uE_Identity.present != UE_Identity_PR_iMSI) { + if (accept.uE_Identity.present != HNBAP_UE_Identity_PR_iMSI) { printf("Wrong type in UE register accept\n"); return -1; } @@ -320,7 +324,6 @@ static int hnb_test_nas_rx_auth_req(struct hnb_test *hnb, struct gsm48_hdr *gh, int len) { struct gsm48_auth_req *ar; - int parse_res; len -= (const char *)&gh->data[0] - (const char *)gh; @@ -337,7 +340,7 @@ static int hnb_test_nas_rx_auth_req(struct hnb_test *hnb, struct gsm48_hdr *gh, /* Generate SRES from *HARDCODED* Ki for Iuh testing */ struct osmo_auth_vector vec; /* Ki 000102030405060708090a0b0c0d0e0f */ - struct osmo_sub_auth_data auth = { + struct osmo_sub_auth_data2 auth = { .type = OSMO_AUTH_TYPE_GSM, .algo = OSMO_AUTH_ALG_COMP128v1, .u.gsm.ki = { @@ -348,7 +351,7 @@ static int hnb_test_nas_rx_auth_req(struct hnb_test *hnb, struct gsm48_hdr *gh, }; memset(&vec, 0, sizeof(vec)); - osmo_auth_gen_vec(&vec, &auth, ar->rand); + osmo_auth_gen_vec2(&vec, &auth, ar->rand); printf("seq %d rand %s", seq, osmo_hexdump(ar->rand, sizeof(ar->rand))); @@ -468,31 +471,32 @@ void hnb_test_rx_paging(struct hnb_test *hnb, const char *imsi) int hnb_test_hnbap_rx(struct hnb_test *hnb, struct msgb *msg) { - HNBAP_PDU_t _pdu, *pdu = &_pdu; + HNBAP_HNBAP_PDU_t _pdu, *pdu = &_pdu; asn_dec_rval_t dec_ret; int rc; memset(pdu, 0, sizeof(*pdu)); - dec_ret = aper_decode(NULL, &asn_DEF_HNBAP_PDU, (void **) &pdu, + dec_ret = aper_decode(NULL, &asn_DEF_HNBAP_HNBAP_PDU, (void **) &pdu, msg->data, msgb_length(msg), 0, 0); if (dec_ret.code != RC_OK) { LOGP(DMAIN, LOGL_ERROR, "Error in ASN.1 decode\n"); - return rc; + return -EINVAL; } - if (pdu->present != HNBAP_PDU_PR_successfulOutcome) { + if (pdu->present != HNBAP_HNBAP_PDU_PR_successfulOutcome) { printf("Unexpected HNBAP message received\n"); } switch (pdu->choice.successfulOutcome.procedureCode) { - case ProcedureCode_id_HNBRegister: + case HNBAP_ProcedureCode_id_HNBRegister: /* Get HNB id and send UE Register request */ rc = hnb_test_rx_hnb_register_acc(hnb, &pdu->choice.successfulOutcome.value); break; - case ProcedureCode_id_UERegister: + case HNBAP_ProcedureCode_id_UERegister: rc = hnb_test_rx_ue_register_acc(hnb, &pdu->choice.successfulOutcome.value); break; default: + rc = -ENOSPC; break; } @@ -505,14 +509,13 @@ int hnb_test_rua_rx(struct hnb_test *hnb, struct msgb *msg) { RUA_RUA_PDU_t _pdu, *pdu = &_pdu; asn_dec_rval_t dec_ret; - int rc; memset(pdu, 0, sizeof(*pdu)); dec_ret = aper_decode(NULL, &asn_DEF_RUA_RUA_PDU, (void **) &pdu, msg->data, msgb_length(msg), 0, 0); if (dec_ret.code != RC_OK) { LOGP(DMAIN, LOGL_ERROR, "Error in ASN.1 decode\n"); - return rc; + return -EINVAL; } switch (pdu->present) { @@ -559,7 +562,7 @@ int hnb_test_rua_rx(struct hnb_test *hnb, struct msgb *msg) break; } - return rc; + return 0; } static int hnb_read_cb(struct osmo_fd *fd) @@ -580,22 +583,22 @@ static int hnb_read_cb(struct osmo_fd *fd) /* FIXME: clean up after disappeared HNB */ close(fd->fd); osmo_fd_unregister(fd); - return rc; + goto free_ret; } else if (rc == 0) { LOGP(DMAIN, LOGL_INFO, "Connection to HNB closed\n"); close(fd->fd); osmo_fd_unregister(fd); fd->fd = -1; - - return -1; + rc = -1; + goto free_ret; } else { msgb_put(msg, rc); } if (flags & MSG_NOTIFICATION) { LOGP(DMAIN, LOGL_DEBUG, "Ignoring SCTP notification\n"); - msgb_free(msg); - return 0; + rc = 0; + goto free_ret; } sinfo.sinfo_ppid = ntohl(sinfo.sinfo_ppid); @@ -623,13 +626,14 @@ static int hnb_read_cb(struct osmo_fd *fd) break; } +free_ret: msgb_free(msg); return rc; } static int hnb_write_cb(struct osmo_fd *fd, struct msgb *msg) { - struct hnb_test *ctx = fd->data; + /* struct hnb_test *ctx = fd->data; */ struct sctp_sndrcvinfo sinfo = { .sinfo_ppid = htonl(msgb_sctp_ppid(msg)), .sinfo_stream = 0, @@ -645,7 +649,7 @@ static int hnb_write_cb(struct osmo_fd *fd, struct msgb *msg) static void hnb_send_register_req(struct hnb_test *hnb_test) { - HNBRegisterRequest_t request_out; + HNBAP_HNBRegisterRequest_t request_out; struct msgb *msg; int rc; uint16_t lac, sac; @@ -654,7 +658,7 @@ static void hnb_send_register_req(struct hnb_test *hnb_test) uint8_t plmn[] = {0x09, 0xf1, 0x99}; char identity[50] = "ATestHNB@"; - HNBRegisterRequestIEs_t request; + HNBAP_HNBRegisterRequestIEs_t request; memset(&request, 0, sizeof(request)); lac = 0xc0fe; @@ -667,7 +671,7 @@ static void hnb_send_register_req(struct hnb_test *hnb_test) asn1_u8_to_str(&request.rac, &rac, rac); asn1_u28_to_bitstring(&request.cellIdentity, &cid, cid); - request.hnB_Identity.hNB_Identity_Info.buf = identity; + request.hnB_Identity.hNB_Identity_Info.buf = (uint8_t*) identity; request.hnB_Identity.hNB_Identity_Info.size = strlen(identity); request.plmNidentity.buf = plmn; @@ -681,9 +685,9 @@ static void hnb_send_register_req(struct hnb_test *hnb_test) printf("Could not encode HNB register request IEs\n"); } - msg = hnbap_generate_initiating_message(ProcedureCode_id_HNBRegister, - Criticality_reject, - &asn_DEF_HNBRegisterRequest, + msg = hnbap_generate_initiating_message(HNBAP_ProcedureCode_id_HNBRegister, + HNBAP_Criticality_reject, + &asn_DEF_HNBAP_HNBRegisterRequest, &request_out); @@ -697,22 +701,22 @@ static void hnb_send_deregister_req(struct hnb_test *hnb_test) struct msgb *msg; int rc; - HNBDe_RegisterIEs_t request; + HNBAP_HNBDe_RegisterIEs_t request; memset(&request, 0, sizeof(request)); - request.cause.present = Cause_PR_misc; - request.cause.choice.misc = CauseMisc_o_and_m_intervention; + request.cause.present = HNBAP_Cause_PR_misc; + request.cause.choice.misc = HNBAP_CauseMisc_o_and_m_intervention; - HNBDe_Register_t request_out; + HNBAP_HNBDe_Register_t request_out; memset(&request_out, 0, sizeof(request_out)); rc = hnbap_encode_hnbde_registeries(&request_out, &request); if (rc < 0) { printf("Could not encode HNB deregister request IEs\n"); } - msg = hnbap_generate_initiating_message(ProcedureCode_id_HNBDe_Register, - Criticality_reject, - &asn_DEF_HNBDe_Register, + msg = hnbap_generate_initiating_message(HNBAP_ProcedureCode_id_HNBDe_Register, + HNBAP_Criticality_reject, + &asn_DEF_HNBAP_HNBDe_Register, &request_out); msgb_sctp_ppid(msg) = IUH_PPI_HNBAP; @@ -788,7 +792,7 @@ DEFUN(ue_register, ue_register_cmd, } DEFUN(asn_dbg, asn_dbg_cmd, - "asn-debug (1|0)", "Enable or disabel libasn1c debugging") + "asn-debug (1|0)", "Enable or disable libasn1c debugging") { asn_debug = atoi(argv[0]); @@ -941,10 +945,12 @@ int main(int argc, char **argv) tall_hnb_ctx = talloc_named_const(NULL, 0, "hnb_context"); + osmo_init_logging2(tall_hnb_ctx, &hnb_test_log_info); + vty_init(&vty_info); hnbtest_vty_init(); - rc = telnet_init_dynif(NULL, NULL, vty_get_bind_addr(), 2324); + rc = telnet_init_default(NULL, NULL, 2324); if (rc < 0) { perror("Error binding VTY port"); exit(1); diff --git a/src/tests/hnb-test.h b/tests/hnb-test.h index 4af50a7..02efce0 100644 --- a/src/tests/hnb-test.h +++ b/tests/hnb-test.h @@ -7,10 +7,7 @@ #define DEBUG #include <osmocom/core/logging.h> -enum { - DMAIN, - DHNBAP, -}; +#include "test_common.h" /* 25.467 Section 7.1 */ diff --git a/tests/test-helpers.c b/tests/test-helpers.c new file mode 100644 index 0000000..42e8b26 --- /dev/null +++ b/tests/test-helpers.c @@ -0,0 +1,427 @@ +/* some humble start of unit testing */ + +/* (C) 2015 by Harald Welte <laforge@gnumonks.org> + * All Rights Reserved + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +#include "test_common.h" + +#include <osmocom/ranap/iu_helpers.h> +#include <osmocom/ranap/ranap_common.h> +#include "asn1helpers.h" + +#include <assert.h> +#define ASSERT(x) assert(x) + +#include <osmocom/core/utils.h> +#include <osmocom/core/socket.h> +#include <osmocom/core/sockaddr_str.h> +#include <osmocom/gsm/gsm48.h> + +#include <osmocom/ranap/RANAP_LAI.h> + +extern void *talloc_asn1_ctx; + +/* use odd number of digits */ +const uint8_t imsi_encoded[] = { 0x10, 0x32, 0x54, 0x76, 0xF8 }; +const char imsi_decoded[] = "012345678"; + +void test_iu_helpers(void) +{ + char outstr[32]; + uint8_t outbuf[16]; + int rc; + + printf("Testing Iu helper functions\n"); + + printf("pre-encoded: %s\n", osmo_hexdump_nospc(imsi_encoded, + sizeof(imsi_encoded))); + rc = ranap_bcd_decode(outstr, sizeof(outstr), imsi_encoded, + sizeof(imsi_encoded)); + ASSERT(rc >= 0); + printf("decoded: %s\n", outstr); + ASSERT(!strcmp(outstr, imsi_decoded)); + + rc = ranap_imsi_encode(outbuf, sizeof(outbuf), imsi_decoded); + ASSERT(rc >= 0); + printf("re-encoded: %s\n", osmo_hexdump_nospc(outbuf, rc)); + ASSERT(!memcmp(outbuf, imsi_encoded, sizeof(imsi_encoded))); +} + +const uint32_t val1 = 0xdeadbeef; + +const OCTET_STRING_t text1 = { + .buf = (uint8_t *) "0123456789012345", + .size = 16, +}; + +const OCTET_STRING_t text2 = { + .buf = (uint8_t *) "01234567890123456789012345678901234567890", + .size = 40, +}; + +void test_asn1_helpers(void) +{ + int rc; + + void *buffer; + BIT_STRING_t enc; + uint32_t res, tmpval; + char text[32]; + + printf("Testing asn.1 helper functions\n"); + + printf("Encoding 0x%x to asn.1 bitstring\n", val1); + asn1_u32_to_bitstring(&enc, &tmpval, val1); + + ASSERT(enc.size == sizeof(uint32_t)); + ASSERT(enc.bits_unused == 0); + + rc = aper_encode_to_new_buffer(&asn_DEF_BIT_STRING, 0, &enc, (void **) &buffer); + printf("Encoded: %s\n", osmo_hexdump_nospc(buffer, rc)); + + res = asn1bitstr_to_u32(&enc); + + printf("Decoding back to uint32_t: 0x%x\n", res); + ASSERT(res == val1); + + printf("Encoding 0x%x to 24-bit asn.1 bitstring\n", val1); + asn1_u24_to_bitstring(&enc, &tmpval, val1); + + ASSERT(enc.size == 24/8); + ASSERT(enc.bits_unused == 0); + + talloc_free(buffer); + + rc = aper_encode_to_new_buffer(&asn_DEF_BIT_STRING, 0, &enc, (void **) &buffer); + printf("Encoded: %s\n", osmo_hexdump_nospc(buffer, rc)); + + rc = asn1_strncpy(text, &text1, sizeof(text)); + printf("Decoding string from asn.1: %s\n", text); + + ASSERT(rc == 16); + ASSERT(!strcmp(text, (char *)text1.buf)); + + rc = asn1_strncpy(text, &text2, sizeof(text)); + printf("Decoding large string from asn1: %s\n", text); + ASSERT(rc == 31); + + talloc_free(buffer); +} + +void test_ranap_common(void) +{ + uint8_t plmnid_buf[] = { 0x21, 0xf3, 0x54 }; + uint8_t lac_buf[] = { 0xab, 0xcd }; + + struct gprs_ra_id ra_id = {0}; + + int rc; + + RANAP_LAI_t lai = { + .pLMNidentity = { + .buf = plmnid_buf, + .size = 3 + }, + .lAC = { + .buf = lac_buf, + .size = 2 + } + }; + + printf("Testing ranap common functions\n"); + + printf("PLMN-Id [ %s]", osmo_hexdump(lai.pLMNidentity.buf, + lai.pLMNidentity.size)); + printf(", LAC [ %s]\n", osmo_hexdump(lai.lAC.buf, + lai.lAC.size)); + + rc = ranap_parse_lai(&ra_id, &lai); + printf(" rc == %d\n", rc); + OSMO_ASSERT(rc == 0); + printf(" mcc == %d mnc == %d\n", ra_id.mcc, ra_id.mnc); + OSMO_ASSERT(ra_id.mcc == 123); + OSMO_ASSERT(ra_id.mnc == 45); + printf(" lac == 0x%x\n", ra_id.lac); + OSMO_ASSERT(ra_id.lac == 0xabcd); + + + /* three digit MNC */ + uint8_t plmnid_buf_mnc3[] = { 0x21, 0x43, 0x65 }; + lai.pLMNidentity.buf = plmnid_buf_mnc3; + + printf("PLMN-Id [ %s]", osmo_hexdump(lai.pLMNidentity.buf, + lai.pLMNidentity.size)); + printf(", LAC [ %s]\n", osmo_hexdump(lai.lAC.buf, + lai.lAC.size)); + + rc = ranap_parse_lai(&ra_id, &lai); + printf(" rc == %d\n", rc); + OSMO_ASSERT(rc == 0); + printf(" mcc == %d mnc == %d\n", ra_id.mcc, ra_id.mnc); + OSMO_ASSERT(ra_id.mcc == 123); + OSMO_ASSERT(ra_id.mnc == 456); + printf(" lac == 0x%x\n", ra_id.lac); + OSMO_ASSERT(ra_id.lac == 0xabcd); + + + /* wrong PLMN-Id size */ + lai.pLMNidentity.size = 2; + + printf("PLMN-Id [ %s]", osmo_hexdump(lai.pLMNidentity.buf, + lai.pLMNidentity.size)); + printf(", LAC [ %s]\n", osmo_hexdump(lai.lAC.buf, + lai.lAC.size)); + + rc = ranap_parse_lai(&ra_id, &lai); + printf(" rc == %d\n", rc); + OSMO_ASSERT(rc == -1); + + + /* wrong LAC size */ + lai.pLMNidentity.size = 3; + lai.lAC.size = 1; + + printf("PLMN-Id [ %s]", osmo_hexdump(lai.pLMNidentity.buf, + lai.pLMNidentity.size)); + printf(", LAC [ %s]\n", osmo_hexdump(lai.lAC.buf, + lai.lAC.size)); + + rc = ranap_parse_lai(&ra_id, &lai); + printf(" rc == %d\n", rc); + OSMO_ASSERT(rc == -1); +} + +void test_ranap_new_transp_info_rtp(void) +{ + RANAP_TransportLayerInformation_t *tli; + + printf("Testing function ranap_new_transp_info_rtp()\n"); + + struct osmo_sockaddr addr; + + addr.u.sin.sin_family = AF_INET; + addr.u.sin.sin_port = htons(0x1122); + inet_pton(AF_INET, "1.2.3.4", &addr.u.sin.sin_addr); + + printf(" ipv4, x213_nsap\n"); + tli = ranap_new_transp_info_rtp(&addr, true); + printf(" transportLayerAddress = %s\n", + osmo_hexdump_nospc(tli->transportLayerAddress.buf, tli->transportLayerAddress.size)); + printf(" bindingID = %s\n", + osmo_hexdump_nospc(tli->iuTransportAssociation.choice.bindingID.buf, + tli->iuTransportAssociation.choice.bindingID.size)); + ASN_STRUCT_FREE(asn_DEF_RANAP_TransportLayerInformation, tli); + + printf(" ipv4\n"); + tli = ranap_new_transp_info_rtp(&addr, false); + printf(" transportLayerAddress = %s\n", + osmo_hexdump_nospc(tli->transportLayerAddress.buf, tli->transportLayerAddress.size)); + printf(" bindingID = %s\n", + osmo_hexdump_nospc(tli->iuTransportAssociation.choice.bindingID.buf, + tli->iuTransportAssociation.choice.bindingID.size)); + ASN_STRUCT_FREE(asn_DEF_RANAP_TransportLayerInformation, tli); + + addr.u.sin.sin_family = AF_INET6; + addr.u.sin.sin_port = htons(0x1122); + inet_pton(AF_INET6, "f11f:f22f:f33f:f44f:f55f:f66f:f77f:f88f", &addr.u.sin6.sin6_addr); + + printf(" ipv6, x213_nsap\n"); + tli = ranap_new_transp_info_rtp(&addr, true); + printf(" transportLayerAddress = %s\n", + osmo_hexdump_nospc(tli->transportLayerAddress.buf, tli->transportLayerAddress.size)); + printf(" bindingID = %s\n", + osmo_hexdump_nospc(tli->iuTransportAssociation.choice.bindingID.buf, + tli->iuTransportAssociation.choice.bindingID.size)); + ASN_STRUCT_FREE(asn_DEF_RANAP_TransportLayerInformation, tli); + + printf(" ipv6\n"); + tli = ranap_new_transp_info_rtp(&addr, false); + printf(" transportLayerAddress = %s\n", + osmo_hexdump_nospc(tli->transportLayerAddress.buf, tli->transportLayerAddress.size)); + printf(" bindingID = %s\n", + osmo_hexdump_nospc(tli->iuTransportAssociation.choice.bindingID.buf, + tli->iuTransportAssociation.choice.bindingID.size)); + ASN_STRUCT_FREE(asn_DEF_RANAP_TransportLayerInformation, tli); + + addr.u.sin.sin_family = AF_X25; + printf(" unsupported address family\n"); + tli = ranap_new_transp_info_rtp(&addr, false); + OSMO_ASSERT(tli == NULL); +} + +void test_ranap_new_transp_info_gtp(void) +{ + RANAP_TransportLayerInformation_t *tli; + + printf("Testing function ranap_new_transp_info_gtp()\n"); + + struct osmo_sockaddr addr; + + addr.u.sin.sin_family = AF_INET; + inet_pton(AF_INET, "1.2.3.4", &addr.u.sin.sin_addr); + + printf(" ipv4, x213_nsap\n"); + tli = ranap_new_transp_info_gtp(&addr, 0x11223344, true); + printf(" transportLayerAddress = %s\n", + osmo_hexdump_nospc(tli->transportLayerAddress.buf, tli->transportLayerAddress.size)); + printf(" gTP_TEI = %s\n", + osmo_hexdump_nospc(tli->iuTransportAssociation.choice.gTP_TEI.buf, + tli->iuTransportAssociation.choice.gTP_TEI.size)); + ASN_STRUCT_FREE(asn_DEF_RANAP_TransportLayerInformation, tli); + + printf(" ipv4\n"); + tli = ranap_new_transp_info_gtp(&addr, 0x11223344, false); + printf(" transportLayerAddress = %s\n", + osmo_hexdump_nospc(tli->transportLayerAddress.buf, tli->transportLayerAddress.size)); + printf(" gTP_TEI = %s\n", + osmo_hexdump_nospc(tli->iuTransportAssociation.choice.gTP_TEI.buf, + tli->iuTransportAssociation.choice.gTP_TEI.size)); + ASN_STRUCT_FREE(asn_DEF_RANAP_TransportLayerInformation, tli); + + addr.u.sin.sin_family = AF_INET6; + inet_pton(AF_INET6, "f11f:f22f:f33f:f44f:f55f:f66f:f77f:f88f", &addr.u.sin6.sin6_addr); + + printf(" ipv6, x213_nsap\n"); + tli = ranap_new_transp_info_gtp(&addr, 0x11223344, true); + printf(" transportLayerAddress = %s\n", + osmo_hexdump_nospc(tli->transportLayerAddress.buf, tli->transportLayerAddress.size)); + printf(" gTP_TEI = %s\n", + osmo_hexdump_nospc(tli->iuTransportAssociation.choice.gTP_TEI.buf, + tli->iuTransportAssociation.choice.gTP_TEI.size)); + ASN_STRUCT_FREE(asn_DEF_RANAP_TransportLayerInformation, tli); + + printf(" ipv6\n"); + tli = ranap_new_transp_info_gtp(&addr, 0x11223344, false); + printf(" transportLayerAddress = %s\n", + osmo_hexdump_nospc(tli->transportLayerAddress.buf, tli->transportLayerAddress.size)); + printf(" gTP_TEI = %s\n", + osmo_hexdump_nospc(tli->iuTransportAssociation.choice.gTP_TEI.buf, + tli->iuTransportAssociation.choice.gTP_TEI.size)); + ASN_STRUCT_FREE(asn_DEF_RANAP_TransportLayerInformation, tli); + + addr.u.sin.sin_family = AF_X25; + printf(" unsupported address family\n"); + tli = ranap_new_transp_info_gtp(&addr, 0x11223344, false); + OSMO_ASSERT(tli == NULL); +} + +void test_ranap_transp_layer_addr_decode(void) +{ + int rc; + char addr[100]; + RANAP_TransportLayerAddress_t trasp_layer_addr = { 0 }; + uint8_t encoded_addr_x213_nsap[] = { + 0x35, 0x00, 0x01, 0x01, 0x02, 0x03, 0x04, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00 }; + uint8_t encoded_addr[] = { 0x01, 0x02, 0x03, 0x04 }; + + printf("Testing function ranap_transp_layer_addr_decode()\n"); + + printf(" ipv4, x213_nsap\n"); + trasp_layer_addr.buf = encoded_addr_x213_nsap; + trasp_layer_addr.size = sizeof(encoded_addr_x213_nsap); + rc = ranap_transp_layer_addr_decode(addr, sizeof(addr), &trasp_layer_addr); + printf(" addr=%s\n", addr); + OSMO_ASSERT(rc == 0); + + printf(" ipv4\n"); + trasp_layer_addr.buf = encoded_addr; + trasp_layer_addr.size = sizeof(encoded_addr); + rc = ranap_transp_layer_addr_decode(addr, sizeof(addr), &trasp_layer_addr); + printf(" addr=%s\n", addr); + OSMO_ASSERT(rc == 0); +} + +void test_ranap_transp_layer_addr_decode2(void) +{ + int rc; + struct osmo_sockaddr addr; + struct osmo_sockaddr_str sockaddr_str; + bool uses_x213_nsap; + RANAP_TransportLayerAddress_t trasp_layer_addr = { 0 }; + uint8_t encoded_ipv4_addr_x213_nsap[] = { + 0x35, 0x00, 0x01, 0x01, 0x02, 0x03, 0x04, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00 }; + uint8_t encoded_ipv4_addr[] = { 0x01, 0x02, 0x03, 0x04 }; + uint8_t encoded_ipv6_addr_x213_nsap[] = { + 0x35, 0x00, 0x00, 0xf1, 0x1f, 0xf2, 0x2f, 0xf3, + 0x3f, 0xf4, 0x4f, 0xf5, 0x5f, 0xf6, 0x6f, 0xf7, + 0x7f, 0xf8, 0x8f, 0x00 }; + uint8_t encoded_ipv6_addr[] = { + 0xf1, 0x1f, 0xf2, 0x2f, 0xf3, 0x3f, 0xf4, 0x4f, + 0xf5, 0x5f, 0xf6, 0x6f, 0xf7, 0x7f, 0xf8, 0x8f }; + + printf("Testing function ranap_transp_layer_addr_decode2()\n"); + + printf(" ipv4, x213_nsap\n"); + trasp_layer_addr.buf = encoded_ipv4_addr_x213_nsap; + trasp_layer_addr.size = sizeof(encoded_ipv4_addr_x213_nsap); + rc = ranap_transp_layer_addr_decode2(&addr, &uses_x213_nsap, &trasp_layer_addr); + OSMO_ASSERT(rc == 0); + memset(&sockaddr_str, 0, sizeof(sockaddr_str)); + osmo_sockaddr_str_from_sockaddr_in(&sockaddr_str, &addr.u.sin); + printf(" addr=%s, af=%d, x213_nsap=%u\n", sockaddr_str.ip, sockaddr_str.af, uses_x213_nsap); + + printf(" ipv4\n"); + trasp_layer_addr.buf = encoded_ipv4_addr; + trasp_layer_addr.size = sizeof(encoded_ipv4_addr); + rc = ranap_transp_layer_addr_decode2(&addr, &uses_x213_nsap, &trasp_layer_addr); + OSMO_ASSERT(rc == 0); + memset(&sockaddr_str, 0, sizeof(sockaddr_str)); + osmo_sockaddr_str_from_sockaddr_in(&sockaddr_str, &addr.u.sin); + printf(" addr=%s, af=%d, x213_nsap=%u\n", sockaddr_str.ip, sockaddr_str.af, uses_x213_nsap); + + printf(" ipv6, x213_nsap\n"); + trasp_layer_addr.buf = encoded_ipv6_addr_x213_nsap; + trasp_layer_addr.size = sizeof(encoded_ipv6_addr_x213_nsap); + rc = ranap_transp_layer_addr_decode2(&addr, &uses_x213_nsap, &trasp_layer_addr); + OSMO_ASSERT(rc == 0); + memset(&sockaddr_str, 0, sizeof(sockaddr_str)); + osmo_sockaddr_str_from_sockaddr_in6(&sockaddr_str, &addr.u.sin6); + printf(" addr=%s, af=%d, x213_nsap=%u\n", sockaddr_str.ip, sockaddr_str.af, uses_x213_nsap); + + printf(" ipv6\n"); + trasp_layer_addr.buf = encoded_ipv6_addr; + trasp_layer_addr.size = sizeof(encoded_ipv6_addr); + rc = ranap_transp_layer_addr_decode2(&addr, &uses_x213_nsap, &trasp_layer_addr); + OSMO_ASSERT(rc == 0); + memset(&sockaddr_str, 0, sizeof(sockaddr_str)); + osmo_sockaddr_str_from_sockaddr_in6(&sockaddr_str, &addr.u.sin6); + printf(" addr=%s, af=%d, x213_nsap=%u\n", sockaddr_str.ip, sockaddr_str.af, uses_x213_nsap); +} + +int main(int argc, char **argv) +{ + asn1_xer_print = 0; + + test_common_init(); + ranap_set_log_area(DRANAP); + + test_iu_helpers(); + test_asn1_helpers(); + test_ranap_common(); + test_ranap_new_transp_info_gtp(); + test_ranap_new_transp_info_rtp(); + test_ranap_transp_layer_addr_decode(); + test_ranap_transp_layer_addr_decode2(); + + test_common_cleanup(); + return 0; +} diff --git a/src/tests/test-helpers.err b/tests/test-helpers.err index 891094a..891094a 100644 --- a/src/tests/test-helpers.err +++ b/tests/test-helpers.err diff --git a/tests/test-helpers.ok b/tests/test-helpers.ok new file mode 100644 index 0000000..0626413 --- /dev/null +++ b/tests/test-helpers.ok @@ -0,0 +1,67 @@ +Testing Iu helper functions +pre-encoded: 10325476f8 +decoded: 012345678 +re-encoded: 10325476f8 +Testing asn.1 helper functions +Encoding 0xdeadbeef to asn.1 bitstring +Encoded: 20deadbeef +Decoding back to uint32_t: 0xdeadbeef +Encoding 0xdeadbeef to 24-bit asn.1 bitstring +Encoded: 18adbeef +Decoding string from asn.1: 0123456789012345 +Decoding large string from asn1: 0123456789012345678901234567890 +Testing ranap common functions +PLMN-Id [ 21 f3 54 ], LAC [ ab cd ] + rc == 0 + mcc == 123 mnc == 45 + lac == 0xabcd +PLMN-Id [ 21 43 65 ], LAC [ ab cd ] + rc == 0 + mcc == 123 mnc == 456 + lac == 0xabcd +PLMN-Id [ 21 43 ], LAC [ ab cd ] + rc == -1 +PLMN-Id [ 21 43 65 ], LAC [ ab ] + rc == -1 +Testing function ranap_new_transp_info_gtp() + ipv4, x213_nsap + transportLayerAddress = 3500010102030400000000000000000000000000 + gTP_TEI = 11223344 + ipv4 + transportLayerAddress = 01020304 + gTP_TEI = 11223344 + ipv6, x213_nsap + transportLayerAddress = 350000f11ff22ff33ff44ff55ff66ff77ff88f00 + gTP_TEI = 11223344 + ipv6 + transportLayerAddress = f11ff22ff33ff44ff55ff66ff77ff88f + gTP_TEI = 11223344 + unsupported address family +Testing function ranap_new_transp_info_rtp() + ipv4, x213_nsap + transportLayerAddress = 3500010102030400000000000000000000000000 + bindingID = 11220000 + ipv4 + transportLayerAddress = 01020304 + bindingID = 11220000 + ipv6, x213_nsap + transportLayerAddress = 350000f11ff22ff33ff44ff55ff66ff77ff88f00 + bindingID = 11220000 + ipv6 + transportLayerAddress = f11ff22ff33ff44ff55ff66ff77ff88f + bindingID = 11220000 + unsupported address family +Testing function ranap_transp_layer_addr_decode() + ipv4, x213_nsap + addr=1.2.3.4 + ipv4 + addr=1.2.3.4 +Testing function ranap_transp_layer_addr_decode2() + ipv4, x213_nsap + addr=1.2.3.4, af=2, x213_nsap=1 + ipv4 + addr=1.2.3.4, af=2, x213_nsap=0 + ipv6, x213_nsap + addr=f11f:f22f:f33f:f44f:f55f:f66f:f77f:f88f, af=10, x213_nsap=1 + ipv6 + addr=f11f:f22f:f33f:f44f:f55f:f66f:f77f:f88f, af=10, x213_nsap=0 diff --git a/src/tests/test-hnbap.c b/tests/test-hnbap.c index dfd5ae9..835a331 100644 --- a/src/tests/test-hnbap.c +++ b/tests/test-hnbap.c @@ -24,6 +24,7 @@ #include <osmocom/hnbap/hnbap_common.h> #include <osmocom/hnbap/hnbap_ies_defs.h> +#include <osmocom/ranap/ranap_common.h> #include "test_common.h" #include <assert.h> @@ -49,12 +50,6 @@ static const unsigned char hnbap_reg_req[] = { 0x01 }; -static const unsigned char hnbap_reg_acc[] = { -0x20, 0x01, -0x00, 0x09, 0x00, 0x00, 0x01, 0x00, 0x0e, 0x00, -0x02, 0x00, 0x00 -}; - static const unsigned char hnbap_ue_reg_req[] = { 0x00, 0x03, 0x00, 0x1a, 0x00, 0x00, 0x03, 0x00, 0x05, 0x00, @@ -75,12 +70,12 @@ void test_asn1_decoding(void) { int rc; - HNBAP_PDU_t _pdu, *pdu = &_pdu; - InitiatingMessage_t *im; - SuccessfulOutcome_t *so; - UERegisterRequestIEs_t ue_req_ies; - UERegisterAcceptIEs_t ue_acc_ies; - HNBRegisterRequestIEs_t hnb_ies; + HNBAP_HNBAP_PDU_t _pdu, *pdu = &_pdu; + HNBAP_InitiatingMessage_t *im; + HNBAP_SuccessfulOutcome_t *so; + HNBAP_UERegisterRequestIEs_t ue_req_ies; + HNBAP_UERegisterAcceptIEs_t ue_acc_ies; + HNBAP_HNBRegisterRequestIEs_t hnb_ies; char imsi[16]; @@ -89,16 +84,16 @@ void test_asn1_decoding(void) memset(pdu, 0, sizeof(*pdu)); printf("Testing asn.1 HNBAP decoding\n"); - dec_ret = aper_decode(NULL, &asn_DEF_HNBAP_PDU, (void **) &pdu, + dec_ret = aper_decode(NULL, &asn_DEF_HNBAP_HNBAP_PDU, (void **) &pdu, hnbap_reg_req, sizeof(hnbap_reg_req), 0, 0); ASSERT(dec_ret.code == RC_OK); - ASSERT(pdu->present == HNBAP_PDU_PR_initiatingMessage); + ASSERT(pdu->present == HNBAP_HNBAP_PDU_PR_initiatingMessage); im = &pdu->choice.initiatingMessage; - ASSERT(im->procedureCode == ProcedureCode_id_HNBRegister); + ASSERT(im->procedureCode == HNBAP_ProcedureCode_id_HNBRegister); rc = hnbap_decode_hnbregisterrequesties(&hnb_ies, &im->value); ASSERT(rc >= 0); @@ -122,63 +117,61 @@ void test_asn1_decoding(void) printf("HNBAP register request for HNB %s\n", (char *) hnb_ies.hnB_Identity.hNB_Identity_Info.buf); hnbap_free_hnbregisterrequesties(&hnb_ies); - dec_ret = aper_decode(NULL, &asn_DEF_HNBAP_PDU, (void **) &pdu, + dec_ret = aper_decode(NULL, &asn_DEF_HNBAP_HNBAP_PDU, (void **) &pdu, hnbap_ue_reg_req, sizeof(hnbap_ue_reg_req), 0, 0); ASSERT(dec_ret.code == RC_OK); - ASSERT(pdu->present == HNBAP_PDU_PR_initiatingMessage); + ASSERT(pdu->present == HNBAP_HNBAP_PDU_PR_initiatingMessage); im = &pdu->choice.initiatingMessage; - ASSERT(im->procedureCode == ProcedureCode_id_UERegister); + ASSERT(im->procedureCode == HNBAP_ProcedureCode_id_UERegister); rc = hnbap_decode_ueregisterrequesties(&ue_req_ies, &im->value); ASSERT(rc >= 0); - ASSERT(ue_req_ies.uE_Identity.present == UE_Identity_PR_iMSI); + ASSERT(ue_req_ies.uE_Identity.present == HNBAP_UE_Identity_PR_iMSI); ranap_bcd_decode(imsi, sizeof(imsi), ue_req_ies.uE_Identity.choice.iMSI.buf, ue_req_ies.uE_Identity.choice.iMSI.size); printf("HNBAP UE Register request from IMSI %s\n", imsi); hnbap_free_ueregisterrequesties(&ue_req_ies); - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_HNBAP_PDU, pdu); + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_HNBAP_HNBAP_PDU, pdu); memset(pdu, 0, sizeof(*pdu)); - dec_ret = aper_decode(NULL, &asn_DEF_HNBAP_PDU, (void **) &pdu, + dec_ret = aper_decode(NULL, &asn_DEF_HNBAP_HNBAP_PDU, (void **) &pdu, hnbap_ue_reg_acc, sizeof(hnbap_ue_reg_acc), 0, 0); ASSERT(dec_ret.code == RC_OK); - ASSERT(pdu->present == HNBAP_PDU_PR_successfulOutcome); + ASSERT(pdu->present == HNBAP_HNBAP_PDU_PR_successfulOutcome); so = &pdu->choice.successfulOutcome; - ASSERT(so->procedureCode == ProcedureCode_id_UERegister); + ASSERT(so->procedureCode == HNBAP_ProcedureCode_id_UERegister); rc = hnbap_decode_ueregisteraccepties(&ue_acc_ies, &so->value); ASSERT(rc >= 0); - ASSERT(ue_acc_ies.uE_Identity.present == UE_Identity_PR_iMSI); + ASSERT(ue_acc_ies.uE_Identity.present == HNBAP_UE_Identity_PR_iMSI); ranap_bcd_decode(imsi, sizeof(imsi), ue_acc_ies.uE_Identity.choice.iMSI.buf, ue_acc_ies.uE_Identity.choice.iMSI.size); printf("HNBAP UE Register accept to IMSI %s\n", imsi); hnbap_free_ueregisteraccepties(&ue_acc_ies); - ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_HNBAP_PDU, pdu); + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_HNBAP_HNBAP_PDU, pdu); } int main(int argc, char **argv) { - int rc; - test_common_init(); + ranap_set_log_area(DRANAP); + hnbap_set_log_area(DHNBAP); log_set_log_level(osmo_stderr_target, LOGL_INFO); - test_asn1_decoding(); - test_common_cleanup(); + return 0; } - diff --git a/src/tests/test-hnbap.ok b/tests/test-hnbap.ok index 03331c4..03331c4 100644 --- a/src/tests/test-hnbap.ok +++ b/tests/test-hnbap.ok diff --git a/src/tests/test-ranap.c b/tests/test-ranap.c index a6df186..e593bd9 100644 --- a/src/tests/test-ranap.c +++ b/tests/test-ranap.c @@ -32,9 +32,7 @@ #include "test_common.h" -#include <osmocom/iuh/hnbgw.h> - -extern void *tall_msgb_ctx; +extern void *msgb_ctx; static void test_aper_int(uint32_t inp) { @@ -72,14 +70,14 @@ static void test_aper_causemisc(uint32_t inp, uint8_t exp_enc) OSMO_ASSERT(rv.encoded == 8); /* test re-decoding */ - aper_decode(NULL, &asn_DEF_RANAP_Cause, &c_dec, buf, 1, 0, 0); + aper_decode(NULL, &asn_DEF_RANAP_Cause, (void **)&c_dec, buf, 1, 0, 0); printf("Decoded Cause Misc=%ld\n", c_dec->choice.misc); OSMO_ASSERT(c_dec->present == RANAP_Cause_PR_misc); OSMO_ASSERT(c_dec->choice.misc == inp); ASN_STRUCT_FREE(asn_DEF_RANAP_Cause, c_dec); } -int main(int argc, char **argv) +static void test_ranap_messages(void) { uint8_t nas_buf[] = { 0xaa, 0xbb, 0xcc }; struct msgb *msg; @@ -93,25 +91,6 @@ int main(int argc, char **argv) uint8_t ck[16] = { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 }; int i; - asn1_xer_print = 1; - - //asn_debug = 1; - - test_common_init(); - - test_aper_int(1); - test_aper_int(2); - test_aper_int(3); - test_aper_int(255); - test_aper_int(256); - test_aper_int(257); - test_aper_int(64000); - test_aper_int(0xffff); - test_aper_int(0xffff+1); - test_aper_int(0xffff+2); - test_aper_int(16000000); - test_aper_causemisc(RANAP_CauseMisc_unspecified_failure, 0x42); - for (i = 0; i < 1; i++) { printf("\n==> DIRECT TRANSFER\n"); msg = ranap_new_msg_dt(0, nas_buf, sizeof(nas_buf)); @@ -192,10 +171,34 @@ int main(int argc, char **argv) printf("%s\n", msgb_hexdump(msg)); msgb_free(msg); } +} + +int main(int argc, char **argv) +{ + asn1_xer_print = 1; + + //asn_debug = 1; + + test_common_init(); + ranap_set_log_area(DRANAP); + + test_aper_int(1); + test_aper_int(2); + test_aper_int(3); + test_aper_int(255); + test_aper_int(256); + test_aper_int(257); + test_aper_int(64000); + test_aper_int(0xffff); + test_aper_int(0xffff+1); + test_aper_int(0xffff+2); + test_aper_int(16000000); + test_aper_causemisc(RANAP_CauseMisc_unspecified_failure, 0x42); + test_ranap_messages(); printf("report\n"); talloc_report(talloc_asn1_ctx, stdout); - talloc_report(tall_msgb_ctx, stdout); + talloc_report(msgb_ctx, stdout); //talloc_report(NULL, stdout); test_common_cleanup(); diff --git a/src/tests/test-ranap.ok b/tests/test-ranap.ok index a0ea521..a0ea521 100644 --- a/src/tests/test-ranap.ok +++ b/tests/test-ranap.ok diff --git a/src/tests/test_common.c b/tests/test_common.c index 7c6f62a..36d9954 100644 --- a/src/tests/test_common.c +++ b/tests/test_common.c @@ -33,13 +33,14 @@ #include <netinet/sctp.h> #include <arpa/inet.h> +#include <asn1c/asn_internal.h> + #include <osmocom/core/application.h> #include <osmocom/core/talloc.h> #include <osmocom/core/logging.h> +#include <osmocom/core/msgb.h> -#include <osmocom/ranap/ranap_common.h> - -#include <osmocom/iuh/hnbgw.h> +#include "test_common.h" static const struct log_info_cat log_cat[] = { [DMAIN] = { @@ -69,23 +70,25 @@ static const struct log_info test_log_info = { .num_cat = ARRAY_SIZE(log_cat), }; -static void *msgb_ctx; +static void *tall_hnb_ctx; +void *msgb_ctx; int test_common_init(void) { int rc; + tall_hnb_ctx = talloc_named_const(NULL, 0, "hnb_context"); msgb_ctx = msgb_talloc_ctx_init(NULL, 0); talloc_asn1_ctx = talloc_named_const(NULL, 0, "asn1_context"); - rc = osmo_init_logging(&test_log_info); + rc = osmo_init_logging2(tall_hnb_ctx, &test_log_info); if (rc < 0) exit(1); - ranap_set_log_area(DRANAP); - - log_set_print_filename(osmo_stderr_target, 0); + log_set_print_filename2(osmo_stderr_target, LOG_FILENAME_NONE); log_set_use_color(osmo_stderr_target, 0); + log_set_print_category(osmo_stderr_target, 0); + log_set_print_category_hex(osmo_stderr_target, 0); return rc; } diff --git a/src/tests/test_common.h b/tests/test_common.h index 836d999..fdcac05 100644 --- a/src/tests/test_common.h +++ b/tests/test_common.h @@ -1,4 +1,11 @@ #pragma once +enum { + DMAIN, + DHNBAP, + DRUA, + DRANAP, +}; + int test_common_init(void); void test_common_cleanup(void); diff --git a/src/tests/testsuite.at b/tests/testsuite.at index 9378f18..b0bd68f 100644 --- a/src/tests/testsuite.at +++ b/tests/testsuite.at @@ -6,17 +6,17 @@ AT_SETUP([helpers]) AT_KEYWORDS([helpers]) cat $abs_srcdir/test-helpers.ok > expout cat $abs_srcdir/test-helpers.err > experr -AT_CHECK([$abs_top_builddir/src/tests/test-helpers], [0], [expout], [experr]) +AT_CHECK([$abs_top_builddir/tests/test-helpers], [0], [expout], [experr]) AT_CLEANUP AT_SETUP([hnbap]) AT_KEYWORDS([hnbap]) cat $abs_srcdir/test-hnbap.ok > expout -AT_CHECK([$abs_top_builddir/src/tests/test-hnbap], [0], [expout]) +AT_CHECK([$abs_top_builddir/tests/test-hnbap], [0], [expout]) AT_CLEANUP AT_SETUP([ranap]) AT_KEYWORDS([ranap]) cat $abs_srcdir/test-ranap.ok > expout -AT_CHECK([$abs_top_builddir/src/tests/test-ranap], [0], [expout]) +AT_CHECK([$abs_top_builddir/tests/test-ranap], [0], [expout]) AT_CLEANUP |