aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-05-09 11:38:30 +0200
committerHarald Welte <laforge@gnumonks.org>2019-05-09 11:38:30 +0200
commit54e05104cb68e96e06261e5f2da856308bb3415a (patch)
tree79fdb945319935b7996a3a52c39549b7b525c37c
parent09592099b3419864bcd6944bb19584799f1b3905 (diff)
WIP SABPlaforge/sabp
-rw-r--r--asn1/sabp/SABP-IEs.asn9
-rw-r--r--asn1/sabp/SABP-PDU.asn124
-rw-r--r--src/sabp/Makefile.am2
3 files changed, 129 insertions, 6 deletions
diff --git a/asn1/sabp/SABP-IEs.asn b/asn1/sabp/SABP-IEs.asn
index e21e007..06c7fa7 100644
--- a/asn1/sabp/SABP-IEs.asn
+++ b/asn1/sabp/SABP-IEs.asn
@@ -20,9 +20,8 @@ FROM SABP-Constants
TriggeringMessage,
ProtocolIE-ID
FROM SABP-CommonDataTypes
- ProtocolExtensionContainer{},
- SABP-PROTOCOL-EXTENSION
-FROM SABP-Containers;
+ ProtocolExtensionContainer
+FROM SABP-PDU;
-- A
Available-Bandwidth ::= INTEGER (0..20480)
-- bits/sec
@@ -81,8 +80,8 @@ CriticalityDiagnostics-IE-List ::= SEQUENCE (SIZE (1..maxNrOfErrors)) OF
...
}
CriticalityDiagnostics-IE-List-ExtIEs SABP-PROTOCOL-EXTENSION ::= {
- { ID id-MessageStructure CRITICALITY ignore EXTENSION MessageStructure PRESENCE optional }|
- { ID id-TypeOfError CRITICALITY ignore EXTENSION TypeOfError PRESENCE mandatory },
+ -- { ID id-MessageStructure CRITICALITY ignore EXTENSION MessageStructure PRESENCE optional }|
+ -- { ID id-TypeOfError CRITICALITY ignore EXTENSION TypeOfError PRESENCE mandatory },
...
}
MessageStructure ::= SEQUENCE (SIZE (1..maxNrOfLevels)) OF
diff --git a/asn1/sabp/SABP-PDU.asn b/asn1/sabp/SABP-PDU.asn
new file mode 100644
index 0000000..b09917e
--- /dev/null
+++ b/asn1/sabp/SABP-PDU.asn
@@ -0,0 +1,124 @@
+SABP-PDU {
+itu-t (0) identified-organization (4) etsi (0) mobileDomain (0)
+umts-Access (20) modules (3) sabp(3) version1 (1) sabp-PDU (255) }
+
+DEFINITIONS AUTOMATIC TAGS ::=
+
+BEGIN
+
+IMPORTS
+ maxProtocolIEs,
+ Criticality,
+ ProcedureCode,
+ ProtocolIE-ID
+
+FROM SABP-CommonDataTypes;
+
+
+Write-Replace ::= SEQUENCE {
+ write-Replace-ies SEQUENCE (SIZE (0..maxProtocolIEs)) OF IE,
+ ...
+}
+
+Write-Replace-Complete ::= SEQUENCE {
+ write-Replace-Complete-ies SEQUENCE (SIZE (0..maxProtocolIEs)) OF IE,
+ ...
+}
+
+Write-Replace-Failure ::= SEQUENCE {
+ write-Replace-Failure-ies SEQUENCE (SIZE (0..maxProtocolIEs)) OF IE,
+ ...
+}
+
+Kill ::= SEQUENCE {
+ kill-ies SEQUENCE (SIZE (0..maxProtocolIEs)) OF IE,
+ ...
+}
+
+Kill-Complete ::= SEQUENCE {
+ kill-Complete-ies SEQUENCE (SIZE (0..maxProtocolIEs)) OF IE,
+ ...
+}
+
+Kill-Failure ::= SEQUENCE {
+ kill-Failure-ies SEQUENCE (SIZE (0..maxProtocolIEs)) OF IE,
+ ...
+}
+
+Load-Query ::= SEQUENCE {
+ load-Query-ies SEQUENCE (SIZE (0..maxProtocolIEs)) OF IE,
+ ...
+}
+
+Load-Query-Complete ::= SEQUENCE {
+ load-Query-Complete-ies SEQUENCE (SIZE (0..maxProtocolIEs)) OF IE,
+ ...
+}
+
+Load-Query-Failure ::= SEQUENCE {
+ load-Query-Failure-ies SEQUENCE (SIZE (0..maxProtocolIEs)) OF IE,
+ ...
+}
+
+Message-Status-Query ::= SEQUENCE {
+ message-Status-Query-ies SEQUENCE (SIZE (0..maxProtocolIEs)) OF IE,
+ ...
+}
+
+Message-Status-Query-Complete ::= SEQUENCE {
+ message-Status-Query-Complete-ies SEQUENCE (SIZE (0..maxProtocolIEs)) OF IE,
+ ...
+}
+
+Message-Status-Query-Failure ::= SEQUENCE {
+ message-Status-Query-Failure-ies SEQUENCE (SIZE (0..maxProtocolIEs)) OF IE,
+ ...
+}
+
+Reset ::= SEQUENCE {
+ reset-ies SEQUENCE (SIZE (0..maxProtocolIEs)) OF IE,
+ ...
+}
+
+Reset-Complete ::= SEQUENCE {
+ reset-Complete-ies SEQUENCE (SIZE (0..maxProtocolIEs)) OF IE,
+ ...
+}
+
+Reset-Failure ::= SEQUENCE {
+ reset-Failure-ies SEQUENCE (SIZE (0..maxProtocolIEs)) OF IE,
+ ...
+}
+
+Restart ::= SEQUENCE {
+ restart-ies SEQUENCE (SIZE (0..maxProtocolIEs)) OF IE,
+ ...
+}
+
+Failure ::= SEQUENCE {
+ failure-ies SEQUENCE (SIZE (0..maxProtocolIEs)) OF IE,
+ ...
+}
+
+Error-Indication ::= SEQUENCE {
+ error-Indication-ies SEQUENCE (SIZE (0..maxProtocolIEs)) OF IE,
+ ...
+}
+
+ProtocolExtensionContainer ::= SEQUENCE (SIZE (1..maxProtocolExtensions)) OF ProtocolExtensionField
+
+ProtocolExtensionField ::= SEQUENCE {
+ id ProtocolIE-ID,
+ criticality Criticality,
+ value ANY
+}
+
+IE ::= SEQUENCE {
+ id ProtocolIE-ID,
+ criticality Criticality,
+ value ANY
+}
+
+ProtocolIE-Container ::= SEQUENCE (SIZE (0..maxProtocolIEs)) OF IE
+
+END
diff --git a/src/sabp/Makefile.am b/src/sabp/Makefile.am
index 9fcc4dd..21e657c 100644
--- a/src/sabp/Makefile.am
+++ b/src/sabp/Makefile.am
@@ -13,7 +13,7 @@ libosmo_asn1_sabp_a_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-Contents.asn $(top_srcdir)/asn1/sabp/SABP-PDU-Descriptions.asn
+ 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.* BOOLEAN.* INTEGER.* NativeEnumerated.* NativeInteger.* OBJECT_IDENTIFIER.* asn_* OCTET_STRING.* converter-sample.c per_* xer_* constr* der_* ber_* BIT_STRING.*
# change include style to `#include <dir/foo.h>'