lynxis lazus has uploaded this change for review.

View Change

Radical reduce the asn1 code to the essential parts

Previous it would try to parse the whole message including
the dialog and component.
But the tcap asn1 decode only needs to decode the otid, dtid
and the message type.

Currently the only user is osmo-stp, which doens't need
any other information.

Change-Id: Ib8afe0dbe8d4436b80c71048f3b572fcda6cd33e
---
D asn/DialoguePDUs.asn
D asn/TC-Notation-Extensions.asn
D asn/TCAPMessages.asn
D asn/UnidialoguePDUs.asn
M asn/tcap.asn
M include/osmocom/tcap/Makefile.am
D include/osmocom/tcap/NULL.h
D include/osmocom/tcap/TCAP_AARE-apdu.h
D include/osmocom/tcap/TCAP_AARQ-apdu.h
D include/osmocom/tcap/TCAP_ABRT-apdu.h
D include/osmocom/tcap/TCAP_ABRT-source.h
D include/osmocom/tcap/TCAP_AUDT-apdu.h
M include/osmocom/tcap/TCAP_Abort.h
D include/osmocom/tcap/TCAP_Associate-result.h
D include/osmocom/tcap/TCAP_Associate-source-diagnostic.h
M include/osmocom/tcap/TCAP_Begin.h
D include/osmocom/tcap/TCAP_Component.h
D include/osmocom/tcap/TCAP_ComponentPortion.h
M include/osmocom/tcap/TCAP_Continue.h
D include/osmocom/tcap/TCAP_Dialog1.h
D include/osmocom/tcap/TCAP_DialoguePDU.h
D include/osmocom/tcap/TCAP_DialoguePortion.h
D include/osmocom/tcap/TCAP_ERROR.h
M include/osmocom/tcap/TCAP_EXTERNAL.h
M include/osmocom/tcap/TCAP_End.h
D include/osmocom/tcap/TCAP_ErrorCode.h
D include/osmocom/tcap/TCAP_ExternalPDU.h
D include/osmocom/tcap/TCAP_GeneralProblem.h
D include/osmocom/tcap/TCAP_Invoke.h
D include/osmocom/tcap/TCAP_InvokeIdType.h
D include/osmocom/tcap/TCAP_InvokeProblem.h
D include/osmocom/tcap/TCAP_OPERATION.h
D include/osmocom/tcap/TCAP_P-AbortCause.h
D include/osmocom/tcap/TCAP_Parameter.h
D include/osmocom/tcap/TCAP_RLRE-apdu.h
D include/osmocom/tcap/TCAP_RLRQ-apdu.h
D include/osmocom/tcap/TCAP_Reason.h
D include/osmocom/tcap/TCAP_Reject.h
D include/osmocom/tcap/TCAP_Release-request-reason.h
D include/osmocom/tcap/TCAP_Release-response-reason.h
D include/osmocom/tcap/TCAP_ReturnError.h
D include/osmocom/tcap/TCAP_ReturnErrorProblem.h
D include/osmocom/tcap/TCAP_ReturnResult.h
D include/osmocom/tcap/TCAP_ReturnResultProblem.h
D include/osmocom/tcap/TCAP_UniDialoguePDU.h
M include/osmocom/tcap/TCAP_Unidirectional.h
D include/osmocom/tcap/TCAP_asn_constant.h
D include/osmocom/tcap/asn_SEQUENCE_OF.h
D include/osmocom/tcap/asn_SET_OF.h
D include/osmocom/tcap/constr_SEQUENCE_OF.h
D include/osmocom/tcap/constr_SET_OF.h
M src/Makefile.am
D src/gen/TCAP_AARE-apdu.c
D src/gen/TCAP_AARQ-apdu.c
D src/gen/TCAP_ABRT-apdu.c
D src/gen/TCAP_ABRT-source.c
D src/gen/TCAP_AUDT-apdu.c
M src/gen/TCAP_Abort.c
D src/gen/TCAP_Associate-result.c
D src/gen/TCAP_Associate-source-diagnostic.c
M src/gen/TCAP_Begin.c
D src/gen/TCAP_Component.c
D src/gen/TCAP_ComponentPortion.c
M src/gen/TCAP_Continue.c
D src/gen/TCAP_Dialog1.c
D src/gen/TCAP_DialoguePDU.c
D src/gen/TCAP_DialoguePortion.c
D src/gen/TCAP_ERROR.c
M src/gen/TCAP_EXTERNAL.c
M src/gen/TCAP_End.c
D src/gen/TCAP_ErrorCode.c
D src/gen/TCAP_ExternalPDU.c
D src/gen/TCAP_GeneralProblem.c
D src/gen/TCAP_Invoke.c
D src/gen/TCAP_InvokeIdType.c
D src/gen/TCAP_InvokeProblem.c
D src/gen/TCAP_OPERATION.c
D src/gen/TCAP_P-AbortCause.c
D src/gen/TCAP_Parameter.c
D src/gen/TCAP_RLRE-apdu.c
D src/gen/TCAP_RLRQ-apdu.c
D src/gen/TCAP_Reason.c
D src/gen/TCAP_Reject.c
D src/gen/TCAP_Release-request-reason.c
D src/gen/TCAP_Release-response-reason.c
D src/gen/TCAP_ReturnError.c
D src/gen/TCAP_ReturnErrorProblem.c
D src/gen/TCAP_ReturnResult.c
D src/gen/TCAP_ReturnResultProblem.c
D src/gen/TCAP_UniDialoguePDU.c
M src/gen/TCAP_Unidirectional.c
D src/skel/NULL.c
D src/skel/NULL_ber.c
D src/skel/NULL_print.c
D src/skel/NULL_rfill.c
D src/skel/asn_SEQUENCE_OF.c
D src/skel/asn_SET_OF.c
D src/skel/constr_SEQUENCE_OF.c
D src/skel/constr_SEQUENCE_OF_ber.c
D src/skel/constr_SET_OF.c
D src/skel/constr_SET_OF_ber.c
D src/skel/constr_SET_OF_print.c
D src/skel/constr_SET_OF_rfill.c
103 files changed, 51 insertions(+), 7,611 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/libosmo-asn1-tcap refs/changes/46/42746/1
diff --git a/asn/DialoguePDUs.asn b/asn/DialoguePDUs.asn
deleted file mode 100644
index 532d81d..0000000
--- a/asn/DialoguePDUs.asn
+++ /dev/null
@@ -1,80 +0,0 @@
--- $Id: DialoguePDUs.asn 26186 2008-09-13 11:44:33Z etxrab $
--- Generated by Asnp, the pretty-printer of France Telecom R&D (http://asn1.elibel.tm.fr/asnp/)
-DialoguePDUs {itu-t recommendation q 773 modules(2) dialoguePDUs(2) version1(1)
- } DEFINITIONS ::=
-BEGIN
-
-EXPORTS dialogue-as-id, DialoguePDU;
-
--- abstract syntax name for structured dialogue APDUs
-dialogue-as-id OBJECT IDENTIFIER ::=
- {itu-t recommendation q 773 as(1) dialogue-as(1) version1(1)}
-
-DialoguePDU ::= CHOICE {
- dialogueRequest AARQ-apdu,
- dialogueResponse AARE-apdu,
- dialogueAbort ABRT-apdu
-}
-
-AARQ-apdu ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- protocol-version
- [0] IMPLICIT BIT STRING {version1(0)} DEFAULT {version1},
- application-context-name [1] OBJECT IDENTIFIER,
- user-information [30] IMPLICIT SEQUENCE OF EXTERNAL OPTIONAL
-}
-
-AARE-apdu ::= [APPLICATION 1] IMPLICIT SEQUENCE {
- protocol-version
- [0] IMPLICIT BIT STRING {version1(0)} DEFAULT {version1},
- application-context-name [1] OBJECT IDENTIFIER,
- result [2] Associate-result,
- result-source-diagnostic [3] Associate-source-diagnostic,
- user-information [30] IMPLICIT SEQUENCE OF EXTERNAL OPTIONAL
-}
-
--- RLRQ PDU is currently not used.
--- It is included for completeness only.
-RLRQ-apdu ::= [APPLICATION 2] IMPLICIT SEQUENCE {
- reason [0] IMPLICIT Release-request-reason OPTIONAL,
- user-information [30] IMPLICIT SEQUENCE OF EXTERNAL OPTIONAL
-}
-
--- RLRE PDU is currently not used.
--- It is included for completeness only
-RLRE-apdu ::= [APPLICATION 3] IMPLICIT SEQUENCE {
- reason [0] IMPLICIT Release-response-reason OPTIONAL,
- user-information [30] IMPLICIT SEQUENCE OF EXTERNAL OPTIONAL
-}
-
-ABRT-apdu ::= [APPLICATION 4] IMPLICIT SEQUENCE {
- abort-source [0] IMPLICIT ABRT-source,
- user-information [30] IMPLICIT SEQUENCE OF EXTERNAL OPTIONAL
-}
-
-ABRT-source ::= INTEGER {dialogue-service-user(0), dialogue-service-provider(1)
-}
-
-Associate-result ::= INTEGER {accepted(0), reject-permanent(1)}
-
-Associate-source-diagnostic ::= CHOICE {
- dialogue-service-user
- [1] INTEGER {null(0), no-reason-given(1),
- application-context-name-not-supported(2)},
- dialogue-service-provider
- [2] INTEGER {null(0), no-reason-given(1), no-common-dialogue-portion(2)}
-}
-
--- Release-request-reason is currently not used.
--- It is included for completeness only.
-Release-request-reason ::= INTEGER {normal(0), urgent(1), user-defined(30)
-}
-
--- Release-response-reason is currently not used.
--- It is included for completeness only.
-Release-response-reason ::= INTEGER {
- normal(0), not-finished(1), user-defined(30)}
-
-END -- DialoguePDUs
-
--- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
-
diff --git a/asn/TC-Notation-Extensions.asn b/asn/TC-Notation-Extensions.asn
deleted file mode 100644
index f389cae..0000000
--- a/asn/TC-Notation-Extensions.asn
+++ /dev/null
@@ -1,87 +0,0 @@
--- Module TC-Notation-Extensions (Q.775:06/1997)
-
-TC-Notation-Extensions {itu-t recommendation q 775 modules(2)
- notation-extension(4) version1(1)} DEFINITIONS ::=
-BEGIN
-
-IMPORTS
- TCMessage{}
- FROM TCAPMessages {itu-t recommendation q 773 modules(2) messages(1)
- version3(3)}
- Bind{}, Unbind{}
- FROM Remote-Operations-Generic-ROS-PDUs {joint-iso-itu-t
- remote-operations(4) generic-ROS-PDUs(6) version1(0)}
- AllOperations{}, ConsumerPerforms{}, SupplierPerforms{}, combine{}
- FROM Remote-Operations-Useful-Definitions {joint-iso-itu-t
- remote-operations(4) useful-definitions(7) version1(0)}
- CONTRACT, OPERATION-PACKAGE
- FROM Remote-Operations-Information-Objects {joint-iso-itu-t
- remote-operations(4) informationObjects(5) version1(0)}
- UniDialoguePDU, uniDialogue-as-id
- FROM UnidialoguePDUs {itu-t recommendation q 773 modules(2)
- unidialoguePDUs(3) version1(1)}
- DialoguePDU, dialogue-as-id
- FROM DialoguePDUs {itu-t recommendation q 773 modules(2) dialoguePDUs(2)
- version1(1)};
-
-APPLICATION-CONTEXT ::= CLASS {
- &associationContract CONTRACT,
- &dialogueMode DialogueMode,
- &termination Termination OPTIONAL,
- &componentGrouping BOOLEAN DEFAULT TRUE,
- &dialogueAndComponentGrouping BOOLEAN DEFAULT TRUE,
- &AdditionalASEs OBJECT IDENTIFIER OPTIONAL,
- &AbstractSyntaxes ABSTRACT-SYNTAX,
- &applicationContextName OBJECT IDENTIFIER UNIQUE
-}
-WITH SYNTAX {
- CONTRACT &associationContract
- DIALOGUE MODE &dialogueMode
- [TERMINATION &termination]
- [COMPONENT GROUPING ALLOWED &componentGrouping]
- [DIALOGUE WITH COMPONENTS ALLOWED &dialogueAndComponentGrouping]
- [ADDITIONAL ASES &AdditionalASEs]
- ABSTRACT SYNTAXES &AbstractSyntaxes
- APPLICATION CONTEXT NAME &applicationContextName
-}
-
-DialogueMode ::= ENUMERATED {structured(1), unstructured(2)}
-
-Termination ::= ENUMERATED {basic(1), prearranged(2)}
-
-dialogue-abstract-syntax ABSTRACT-SYNTAX ::= {
- DialoguePDU
- IDENTIFIED BY dialogue-as-id
-}
-
-uniDialogue-abstract-syntax ABSTRACT-SYNTAX ::= {
- UniDialoguePDU
- IDENTIFIED BY uniDialogue-as-id
-}
-
-TCSingleAS{OPERATION-PACKAGE:package} ::=
- TCMessage{{AllOperations {package}}, {AllOperations {package}}}
-
-TCConsumerAS{OPERATION-PACKAGE:package} ::=
- TCMessage{{ConsumerPerforms {package}}, {ConsumerPerforms {package}}}
-
-TCSupplierAS{OPERATION-PACKAGE:package} ::=
- TCMessage{{SupplierPerforms {package}}, {SupplierPerforms {package}}}
-
-AllPackagesAS{APPLICATION-CONTEXT:ac} ::=
- TCSingleAS
- {combine{{ac.&associationContract.&OperationsOf |
- ac.&associationContract.&InitiatorConsumerOf |
- ac.&associationContract.&InitiatorSupplierOf},
- {...}, --was illegaly empty, needs to be changed
- { -- Information Object of class OPERATION-PACKAGE to be defined --}}}
-
-ConnectionAS{APPLICATION-CONTEXT:ac} ::= CHOICE {
- bind Bind{ac.&associationContract.&connection.&bind},
- unbind Unbind{ac.&associationContract.&connection.&unbind}
-}
-
-END
-
--- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
-
diff --git a/asn/TCAPMessages.asn b/asn/TCAPMessages.asn
deleted file mode 100644
index cccec04..0000000
--- a/asn/TCAPMessages.asn
+++ /dev/null
@@ -1,96 +0,0 @@
--- Generated by Asnp, the pretty-printer of France Telecom R&D (http://asn1.elibel.tm.fr/asnp/)
-TCAPMessages {itu-t recommendation q 773 modules(2) messages(1) version3(3)}
-DEFINITIONS IMPLICIT TAGS ::=
-BEGIN
-
--- EXPORTS everything
--- Transaction Portion fields.
-IMPORTS
- ROS{}, InvokeId
- FROM Remote-Operations-Generic-ROS-PDUs {joint-iso-itu-t
- remote-operations(4) generic-ROS-PDUs(6) version1(0)}
- OPERATION
- FROM Remote-Operations-Information-Objects {joint-iso-itu-t
- remote-operations(4) informationObjects(5) version1(0)};
-
-TCMessage{OPERATION:Invokable, OPERATION:Returnable} ::= CHOICE {
- unidirectional [APPLICATION 1] Unidirectional{{Invokable}, {Returnable}},
- begin [APPLICATION 2] Begin{{Invokable}, {Returnable}},
- end [APPLICATION 4] End{{Invokable}, {Returnable}},
- continue [APPLICATION 5] Continue{{Invokable}, {Returnable}},
- abort [APPLICATION 7] Abort
-}
-
-Unidirectional{OPERATION:Invokable, OPERATION:Returnable} ::= SEQUENCE {
- dialoguePortion DialoguePortion OPTIONAL,
- components ComponentPortion{{Invokable}, {Returnable}}
-}
-
-Begin{OPERATION:Invokable, OPERATION:Returnable} ::= SEQUENCE {
- otid OrigTransactionID,
- dialoguePortion DialoguePortion OPTIONAL,
- components ComponentPortion{{Invokable}, {Returnable}} OPTIONAL
-}
-
-End{OPERATION:Invokable, OPERATION:Returnable} ::= SEQUENCE {
- dtid DestTransactionID,
- dialoguePortion DialoguePortion OPTIONAL,
- components ComponentPortion{{Invokable}, {Returnable}} OPTIONAL
-}
-
-Continue{OPERATION:Invokable, OPERATION:Returnable} ::= SEQUENCE {
- otid OrigTransactionID,
- dtid DestTransactionID,
- dialoguePortion DialoguePortion OPTIONAL,
- components ComponentPortion{{Invokable}, {Returnable}} OPTIONAL
-}
-
-Abort ::= SEQUENCE {
- dtid DestTransactionID,
- reason CHOICE {p-abortCause P-AbortCause,
- u-abortCause DialoguePortion} OPTIONAL
-}
-
--- NOTE - When the Abort Message is generated by the Transaction sublayer, a p-Abort Cause may be
--- present. The u-abortCause may be generated by the component sublayer in which case it is an ABRT
--- APDU, or by the TC-User in which case it could be either an ABRT APDU or data in some user-defined
--- abstract syntax.
-DialoguePortion ::= [APPLICATION 11] EXPLICIT EXTERNAL
-
--- The dialogue portion carries the dialogue control PDUs as value of the external data type. The direct
--- reference should be set to {itu-t recommendation q 773 as(1) dialogue-as(1) version1(1)} if structured
--- dialogue is used and to {itu-t recommendation q 773 as(1) unidialogue-as(2) version1(1)} if unstructured
--- dialogue is used.
-OrigTransactionID ::= [APPLICATION 8] OCTET STRING(SIZE (1..4))
-
-DestTransactionID ::= [APPLICATION 9] OCTET STRING(SIZE (1..4))
-
-P-AbortCause ::= [APPLICATION 10] INTEGER {
- unrecognizedMessageType(0), unrecognizedTransactionID(1),
- badlyFormattedTransactionPortion(2), incorrectTransactionPortion(3),
- resourceLimitation(4)}(0..127)
-
--- COMPONENT PORTION. The last field in the transaction portion of the TCAP message is the
--- component portion. The component portion may be absent.
-ComponentPortion{OPERATION:Invokable, OPERATION:Returnable} ::=
- [APPLICATION 12]
- SEQUENCE SIZE (1..MAX) OF Component{{Invokable}, {Returnable}}
-
--- Component Portion fields
--- Recommendation X.880 defines four Application Protocol Data Units (APDUs) for invoking
--- operations, returning results or error, and for the rejection of invalid PDUs.
--- TCAP adds returnResultNotLast to allow for the segmentation of a result.
-Component{OPERATION:Invokable, OPERATION:Returnable} ::= CHOICE {
- basicROS ROS{{TCInvokeIdSet}, {Invokable}, {Returnable}},
- returnResultNotLast
- [7] returnResult < ROS{{TCInvokeIdSet}, {Invokable}, {Returnable}}
-}
-
-TCInvokeIdSet ::= InvokeId(WITH COMPONENTS {
- present (-128..127)
- })
-
-END -- TCAPMessages
-
--- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
-
diff --git a/asn/UnidialoguePDUs.asn b/asn/UnidialoguePDUs.asn
deleted file mode 100644
index 4f7c6c3..0000000
--- a/asn/UnidialoguePDUs.asn
+++ /dev/null
@@ -1,25 +0,0 @@
--- Generated by Asnp, the pretty-printer of France Telecom R&D (http://asn1.elibel.tm.fr/asnp/)
-UnidialoguePDUs {itu-t recommendation q 773 modules(2) unidialoguePDUs(3)
- version1(1)} DEFINITIONS ::=
-BEGIN
-
-EXPORTS uniDialogue-as-id, UniDialoguePDU;
-
--- Abstract syntax name for unstructured dialogue APDUs
-uniDialogue-as-id OBJECT IDENTIFIER ::=
- {itu-t recommendation q 773 as(1) unidialogue-as(2) version1(1)}
-
-UniDialoguePDU ::= CHOICE {unidialoguePDU AUDT-apdu
-}
-
-AUDT-apdu ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- protocol-version
- [0] IMPLICIT BIT STRING {version1(0)} DEFAULT {version1},
- application-context-name [1] OBJECT IDENTIFIER,
- user-information [30] IMPLICIT SEQUENCE OF EXTERNAL OPTIONAL
-}
-
-END -- UNIDialoguePDU
-
--- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
-
diff --git a/asn/tcap.asn b/asn/tcap.asn
index 2b967cd..dda37f6 100644
--- a/asn/tcap.asn
+++ b/asn/tcap.asn
@@ -5,19 +5,7 @@

BEGIN

---EXPORTS OPERATION, ERROR, Component, InvokeId Type;
--- WS stuff
-ExternalPDU ::= [UNIVERSAL 8] IMPLICIT SEQUENCE
- {
- oid OBJECT IDENTIFIER,
- dialog [0] IMPLICIT Dialog1
- }
-
-
-Dialog1 ::= OCTET STRING
--- End WS
-- Transaction Portion fields
-
TCMessage ::= CHOICE {
unidirectional [APPLICATION 1] IMPLICIT Unidirectional,
begin [APPLICATION 2] IMPLICIT Begin,
@@ -27,38 +15,29 @@
}

Unidirectional ::= SEQUENCE{
- dialoguePortion DialoguePortion OPTIONAL,
- components ComponentPortion
+ ...
}

Begin ::= SEQUENCE{
otid OrigTransactionID,
- dialoguePortion DialoguePortion OPTIONAL,
- components ComponentPortion OPTIONAL
+ ...
}

End ::= SEQUENCE{
dtid DestTransactionID,
- dialoguePortion DialoguePortion OPTIONAL,
- components ComponentPortion OPTIONAL
+ ...
}


Continue ::= SEQUENCE {
otid OrigTransactionID,
dtid DestTransactionID,
- dialoguePortion DialoguePortion OPTIONAL,
- components ComponentPortion OPTIONAL
+ ...
}

Abort ::= SEQUENCE{
dtid DestTransactionID,
- reason Reason OPTIONAL
- }
-
-Reason ::= CHOICE{
- p-abortCause P-AbortCause,
- u-abortCause DialoguePortion
+ ...
}

-- NOTE - When the Abort Message is generated by the Transaction sublayer, a p-Abort Cause may be
@@ -66,12 +45,6 @@
-- APDU, or by the TC-User in which case it could be either an ABRT APDU or data in some user-defined
-- abstract syntax.

-DialoguePortion ::= [APPLICATION 11] EXPLICIT EXTERNAL
-
--- WS adaptation
---DialoguePortion ::= [APPLICATION 11] IMPLICIT DialogueOC
---DialogueOC ::= OCTET STRING
-
-- The dialogue portion carries the dialogue control PDUs as value of the external data type.
-- The direct reference should be set to { ccitt recommendation q 773 as (1) dialogue-as (1) version (1) }
-- if structured dialogue is used and to { ccitt recommendation q 773 as (1) unidialogue-as (2) version (1) }
@@ -82,166 +55,4 @@

DestTransactionID ::=[APPLICATION 9] IMPLICIT OCTET STRING (SIZE (1..4) )

-P-AbortCause ::= [APPLICATION 10] IMPLICIT INTEGER {
- unrecognizedMessageType (0),
- unrecognizedTransactionID (1),
- badlyFormattedTransactionPortion (2),
- incorrectTransactionPortion (3),
- resourceLimitation (4)}(0..127)
-
--- COMPONENT PORTION. The last field in the transaction portion of the TCAP message is the Component Portion.
--- The Component Portion may be absent.
-
-ComponentPortion ::= [APPLICATION 12] IMPLICIT SEQUENCE SIZE (1..MAX) OF Component
-
--- Component Portion fields
--- Recommendation X.880 defines four Application Protocol Data Units (APDUs) for invoking
--- operations, returning results or error, and for the rejection of invalid PDUs.
--- TCAP adds returnResultNotLast to allow for the segmentation of a result.
-
-Component ::= CHOICE {
- invoke [1] IMPLICIT Invoke,
- returnResultLast [2] IMPLICIT ReturnResult,
- returnError [3] IMPLICIT ReturnError,
- reject [4] IMPLICIT Reject,
- returnResultNotLast [7] IMPLICIT ReturnResult
- }
-
--- The Components are sequences of data elements.
-
-Invoke ::= SEQUENCE {
- invokeID InvokeIdType,
- linkedID [0] IMPLICIT InvokeIdType OPTIONAL,
- opCode OPERATION,
- parameter Parameter OPTIONAL }
-
-Parameter ::= ANY
-
--- ANY is filled by the single ASN.1 data type following the keyword PARAMETER or the keyword ARGUMENT
--- in the type definition of a particular operation.
-
-ReturnResult ::= SEQUENCE {
- invokeID InvokeIdType,
- resultretres SEQUENCE {
- opCode OPERATION,
- parameter Parameter OPTIONAL
- } OPTIONAL
- }
-
--- ANY is filled by the single ASN.1 data type following the keyword RESULT in the type definition
--- of a particular operation.
-
-ReturnError ::= SEQUENCE {
- invokeID InvokeIdType,
- errorCode ErrorCode,
- parameter Parameter OPTIONAL }
-
--- ANY is filled by the single ASN.1 data type following the keyword PARAMETER in the type definition
--- of a particular error.
-
-Reject ::= SEQUENCE {
- invokeIDRej CHOICE {
- derivable InvokeIdType,
- not-derivable NULL },
- problem CHOICE {
- generalProblem [0] IMPLICIT GeneralProblem,
- invokeProblem [1] IMPLICIT InvokeProblem,
- returnResultProblem [2] IMPLICIT ReturnResultProblem,
- returnErrorProblem [3] IMPLICIT ReturnErrorProblem } }
-
-InvokeIdType ::= INTEGER (-128..127)
-
-
-OPERATION ::= CHOICE {
- localValue INTEGER,
- globalValue OBJECT IDENTIFIER }
-
-ERROR ::= CHOICE {
- localValue INTEGER,
- globalValue OBJECT IDENTIFIER }
-
--- OPERATIONS
-
--- Operations are specified with the OPERATION MACRO.
--- When an operation is specified, the valid parameter set, results, and errors for that operation are indicated.
--- Default values and optional parameters are permitted.
-
---OPERATION MACRO ::=
-
---BEGIN
--- TYPE NOTATION ::= Parameter Result Errors LinkedOperations
--- VALUE NOTATION ::= value (VALUE CHOICE {
--- localValue INTEGER,
--- globalValue OBJECT IDENTIFIER } )
--- Parameter ::= ArgKeyword NamedType | empty
--- ArgKeyword ::= "ARGUMENT" | "PARAMETER"
--- Result ::= "RESULT" ResultType | empty
--- Errors ::= "ERRORS" "{"ErrorNames"}" | empty
--- LinkedOperations ::= "LINKED" "{"LinkedOperationNames"}" | empty
--- ResultType ::= NamedType | empty
--- ErrorNames ::= ErrorList | empty
--- ErrorList ::= Error | ErrorList "," Error
--- Error ::= value (ERROR)
- -- shall reference an error value
- --| type shall reference an error type
- -- if no error value is specified
-
--- LinkedOperationNames ::= OperationList | empty
--- OperationList ::= Operation | OperationList "," Operation
--- Operation ::= value (OPERATION)
- -- shall reference an operation value
--- | type shall reference an operation type if
- -- no operation value is specified
--- NamedType ::= identifier type | type
---END
-
--- ERRORS
-
--- Errors are specified with the ERROR MACRO.
--- When an error is specified, the valid parameters for that error are indicated.
--- Default values and optional parameters are permitted.
-
---ERROR MACRO ::=
---
---BEGIN
--- TYPE NOTATION ::= Parameter
--- VALUE NOTATION ::= value (VALUE CHOICE {
--- localValue INTEGER,
--- globalValue OBJECT IDENTIFIER } )
--- Parameter ::= "PARAMETER" NamedType | empty
--- NamedType ::= identifier type | type
---END
-
--- PROBLEMS
-
-GeneralProblem ::= INTEGER { unrecognizedComponent (0),
- mistypedComponent (1),
- badlyStructuredComponent (2) }
-
-InvokeProblem ::= INTEGER { duplicateInvokeID (0),
- unrecognizedOperation (1),
- mistypedParameter (2),
- resourceLimitation (3),
- initiatingRelease (4),
- unrecognizedLinkedID (5),
- linkedResponseUnexpected (6),
- unexpectedLinkedOperation (7) }
-
-ReturnResultProblem ::= INTEGER { unrecognizedInvokeID (0),
- returnResultUnexpected (1),
- mistypedParameter (2) }
-
-ReturnErrorProblem ::= INTEGER { unrecognizedInvokeID (0),
- returnErrorUnexpected (1),
- unrecognizedError (2),
- unexpectedError (3),
- mistypedParameter (4) }
-
-
-ErrorCode ::= CHOICE
- {
- nationaler [PRIVATE 19] IMPLICIT INTEGER (-32768..32767),
- privateer [PRIVATE 20] IMPLICIT INTEGER
- }
-
END -- end of the TCAP Package Module
diff --git a/include/osmocom/tcap/Makefile.am b/include/osmocom/tcap/Makefile.am
index 304958b..b92b64c 100644
--- a/include/osmocom/tcap/Makefile.am
+++ b/include/osmocom/tcap/Makefile.am
@@ -3,14 +3,11 @@
BIT_STRING.h \
GraphicString.h \
INTEGER.h \
- NULL.h \
NativeInteger.h \
OBJECT_IDENTIFIER.h \
OCTET_STRING.h \
OPEN_TYPE.h \
ObjectDescriptor.h \
- asn_SEQUENCE_OF.h \
- asn_SET_OF.h \
asn_application.h \
asn_bit_data.h \
asn_codecs.h \
@@ -26,56 +23,20 @@
constraints.h \
constr_CHOICE.h \
constr_SEQUENCE.h \
- constr_SEQUENCE_OF.h \
- constr_SET_OF.h \
constr_TYPE.h \
der_encoder.h \
$(NULL)

GEN_HEADER_FILES = \
- TCAP_AARE-apdu.h \
- TCAP_AARQ-apdu.h \
- TCAP_ABRT-apdu.h \
- TCAP_ABRT-source.h \
- TCAP_AUDT-apdu.h \
TCAP_Abort.h \
- TCAP_Associate-result.h \
- TCAP_Associate-source-diagnostic.h \
TCAP_Begin.h \
- TCAP_Component.h \
- TCAP_ComponentPortion.h \
TCAP_Continue.h \
TCAP_DestTransactionID.h \
- TCAP_Dialog1.h \
- TCAP_DialoguePDU.h \
- TCAP_DialoguePortion.h \
- TCAP_ERROR.h \
TCAP_EXTERNAL.h \
TCAP_End.h \
- TCAP_ErrorCode.h \
- TCAP_ExternalPDU.h \
- TCAP_GeneralProblem.h \
- TCAP_Invoke.h \
- TCAP_InvokeIdType.h \
- TCAP_InvokeProblem.h \
- TCAP_OPERATION.h \
TCAP_OrigTransactionID.h \
- TCAP_Parameter.h \
- TCAP_P-AbortCause.h \
- TCAP_RLRE-apdu.h \
- TCAP_RLRQ-apdu.h \
- TCAP_Reason.h \
- TCAP_Reject.h \
- TCAP_Release-request-reason.h \
- TCAP_Release-response-reason.h \
- TCAP_ReturnError.h \
- TCAP_ReturnErrorProblem.h \
- TCAP_ReturnResult.h \
- TCAP_ReturnResultProblem.h \
TCAP_TCMessage.h \
- TCAP_UniDialoguePDU.h \
TCAP_Unidirectional.h \
- TCAP_asn_constant.h \
$(NULL)

version.h: version.h.tpl
diff --git a/include/osmocom/tcap/NULL.h b/include/osmocom/tcap/NULL.h
deleted file mode 100644
index a838cb6..0000000
--- a/include/osmocom/tcap/NULL.h
+++ /dev/null
@@ -1,71 +0,0 @@
-/*-
- * Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
- * Redistribution and modifications are permitted subject to BSD license.
- */
-#ifndef ASN_TYPE_NULL_H
-#define ASN_TYPE_NULL_H
-
-#include <osmocom/tcap/asn_application.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * The value of the NULL type is meaningless.
- * Use the BOOLEAN type if you need to carry true/false semantics.
- */
-typedef int NULL_t;
-
-extern asn_TYPE_descriptor_t asn_DEF_NULL;
-extern asn_TYPE_operation_t asn_OP_NULL;
-
-asn_struct_free_f NULL_free;
-
-#if !defined(ASN_DISABLE_PRINT_SUPPORT)
-asn_struct_print_f NULL_print;
-#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */
-
-asn_struct_compare_f NULL_compare;
-asn_struct_copy_f NULL_copy;
-
-#define NULL_constraint asn_generic_no_constraint
-
-#if !defined(ASN_DISABLE_BER_SUPPORT)
-ber_type_decoder_f NULL_decode_ber;
-der_type_encoder_f NULL_encode_der;
-#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */
-
-#if !defined(ASN_DISABLE_XER_SUPPORT)
-xer_type_decoder_f NULL_decode_xer;
-xer_type_encoder_f NULL_encode_xer;
-#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */
-
-#if !defined(ASN_DISABLE_JER_SUPPORT)
-jer_type_decoder_f NULL_decode_jer;
-jer_type_encoder_f NULL_encode_jer;
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
-
-#if !defined(ASN_DISABLE_OER_SUPPORT)
-oer_type_decoder_f NULL_decode_oer;
-oer_type_encoder_f NULL_encode_oer;
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-
-#if !defined(ASN_DISABLE_UPER_SUPPORT)
-per_type_decoder_f NULL_decode_uper;
-per_type_encoder_f NULL_encode_uper;
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */
-#if !defined(ASN_DISABLE_APER_SUPPORT)
-per_type_decoder_f NULL_decode_aper;
-per_type_encoder_f NULL_encode_aper;
-#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */
-
-#if !defined(ASN_DISABLE_RFILL_SUPPORT)
-asn_random_fill_f NULL_random_fill;
-#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* NULL_H */
diff --git a/include/osmocom/tcap/TCAP_AARE-apdu.h b/include/osmocom/tcap/TCAP_AARE-apdu.h
deleted file mode 100644
index 88461a4..0000000
--- a/include/osmocom/tcap/TCAP_AARE-apdu.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#ifndef _TCAP_AARE_apdu_H_
-#define _TCAP_AARE_apdu_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/BIT_STRING.h>
-#include <osmocom/tcap/OBJECT_IDENTIFIER.h>
-#include <osmocom/tcap/TCAP_Associate-result.h>
-#include <osmocom/tcap/TCAP_Associate-source-diagnostic.h>
-#include <osmocom/tcap/asn_SEQUENCE_OF.h>
-#include <osmocom/tcap/constr_SEQUENCE_OF.h>
-#include <osmocom/tcap/constr_SEQUENCE.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Dependencies */
-typedef enum TCAP_AARE_apdu__protocol_version {
- TCAP_AARE_apdu__protocol_version_version1 = 0
-} e_TCAP_AARE_apdu__protocol_version;
-
-/* Forward declarations */
-struct TCAP_EXTERNAL;
-
-/* TCAP_AARE-apdu */
-typedef struct TCAP_AARE_apdu {
- BIT_STRING_t *protocol_version; /* DEFAULT {version1} */
- OBJECT_IDENTIFIER_t application_context_name;
- TCAP_Associate_result_t result;
- TCAP_Associate_source_diagnostic_t result_source_diagnostic;
- struct TCAP_AARE_apdu__user_information {
- A_SEQUENCE_OF(struct TCAP_EXTERNAL) list;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
- } *user_information;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
-} TCAP_AARE_apdu_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_AARE_apdu;
-extern asn_SEQUENCE_specifics_t asn_SPC_TCAP_AARE_apdu_specs_1;
-extern asn_TYPE_member_t asn_MBR_TCAP_AARE_apdu_1[5];
-
-#ifdef __cplusplus
-}
-#endif
-
-/* Referred external types */
-#include <osmocom/tcap/TCAP_EXTERNAL.h>
-
-#endif /* _TCAP_AARE_apdu_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_AARQ-apdu.h b/include/osmocom/tcap/TCAP_AARQ-apdu.h
deleted file mode 100644
index efab539..0000000
--- a/include/osmocom/tcap/TCAP_AARQ-apdu.h
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#ifndef _TCAP_AARQ_apdu_H_
-#define _TCAP_AARQ_apdu_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/BIT_STRING.h>
-#include <osmocom/tcap/OBJECT_IDENTIFIER.h>
-#include <osmocom/tcap/asn_SEQUENCE_OF.h>
-#include <osmocom/tcap/constr_SEQUENCE_OF.h>
-#include <osmocom/tcap/constr_SEQUENCE.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Dependencies */
-typedef enum TCAP_AARQ_apdu__protocol_version {
- TCAP_AARQ_apdu__protocol_version_version1 = 0
-} e_TCAP_AARQ_apdu__protocol_version;
-
-/* Forward declarations */
-struct TCAP_EXTERNAL;
-
-/* TCAP_AARQ-apdu */
-typedef struct TCAP_AARQ_apdu {
- BIT_STRING_t *protocol_version; /* DEFAULT {version1} */
- OBJECT_IDENTIFIER_t application_context_name;
- struct TCAP_AARQ_apdu__user_information {
- A_SEQUENCE_OF(struct TCAP_EXTERNAL) list;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
- } *user_information;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
-} TCAP_AARQ_apdu_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_AARQ_apdu;
-extern asn_SEQUENCE_specifics_t asn_SPC_TCAP_AARQ_apdu_specs_1;
-extern asn_TYPE_member_t asn_MBR_TCAP_AARQ_apdu_1[3];
-
-#ifdef __cplusplus
-}
-#endif
-
-/* Referred external types */
-#include <osmocom/tcap/TCAP_EXTERNAL.h>
-
-#endif /* _TCAP_AARQ_apdu_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_ABRT-apdu.h b/include/osmocom/tcap/TCAP_ABRT-apdu.h
deleted file mode 100644
index b71f1ef..0000000
--- a/include/osmocom/tcap/TCAP_ABRT-apdu.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#ifndef _TCAP_ABRT_apdu_H_
-#define _TCAP_ABRT_apdu_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/TCAP_ABRT-source.h>
-#include <osmocom/tcap/asn_SEQUENCE_OF.h>
-#include <osmocom/tcap/constr_SEQUENCE_OF.h>
-#include <osmocom/tcap/constr_SEQUENCE.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Forward declarations */
-struct TCAP_EXTERNAL;
-
-/* TCAP_ABRT-apdu */
-typedef struct TCAP_ABRT_apdu {
- TCAP_ABRT_source_t abort_source;
- struct TCAP_ABRT_apdu__user_information {
- A_SEQUENCE_OF(struct TCAP_EXTERNAL) list;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
- } *user_information;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
-} TCAP_ABRT_apdu_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_ABRT_apdu;
-extern asn_SEQUENCE_specifics_t asn_SPC_TCAP_ABRT_apdu_specs_1;
-extern asn_TYPE_member_t asn_MBR_TCAP_ABRT_apdu_1[2];
-
-#ifdef __cplusplus
-}
-#endif
-
-/* Referred external types */
-#include <osmocom/tcap/TCAP_EXTERNAL.h>
-
-#endif /* _TCAP_ABRT_apdu_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_ABRT-source.h b/include/osmocom/tcap/TCAP_ABRT-source.h
deleted file mode 100644
index 5a4f875..0000000
--- a/include/osmocom/tcap/TCAP_ABRT-source.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#ifndef _TCAP_ABRT_source_H_
-#define _TCAP_ABRT_source_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/NativeInteger.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Dependencies */
-typedef enum TCAP_ABRT_source {
- TCAP_ABRT_source_dialogue_service_user = 0,
- TCAP_ABRT_source_dialogue_service_provider = 1
-} e_TCAP_ABRT_source;
-
-/* TCAP_ABRT-source */
-typedef long TCAP_ABRT_source_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_ABRT_source;
-asn_struct_free_f TCAP_ABRT_source_free;
-asn_struct_print_f TCAP_ABRT_source_print;
-asn_constr_check_f TCAP_ABRT_source_constraint;
-ber_type_decoder_f TCAP_ABRT_source_decode_ber;
-der_type_encoder_f TCAP_ABRT_source_encode_der;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_ABRT_source_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_AUDT-apdu.h b/include/osmocom/tcap/TCAP_AUDT-apdu.h
deleted file mode 100644
index 22d42f0..0000000
--- a/include/osmocom/tcap/TCAP_AUDT-apdu.h
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "UnidialoguePDUs"
- */
-
-#ifndef _TCAP_AUDT_apdu_H_
-#define _TCAP_AUDT_apdu_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/BIT_STRING.h>
-#include <osmocom/tcap/OBJECT_IDENTIFIER.h>
-#include <osmocom/tcap/asn_SEQUENCE_OF.h>
-#include <osmocom/tcap/constr_SEQUENCE_OF.h>
-#include <osmocom/tcap/constr_SEQUENCE.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Dependencies */
-typedef enum TCAP_AUDT_apdu__protocol_version {
- TCAP_AUDT_apdu__protocol_version_version1 = 0
-} e_TCAP_AUDT_apdu__protocol_version;
-
-/* Forward declarations */
-struct TCAP_EXTERNAL;
-
-/* TCAP_AUDT-apdu */
-typedef struct TCAP_AUDT_apdu {
- BIT_STRING_t *protocol_version; /* DEFAULT {version1} */
- OBJECT_IDENTIFIER_t application_context_name;
- struct TCAP_AUDT_apdu__user_information {
- A_SEQUENCE_OF(struct TCAP_EXTERNAL) list;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
- } *user_information;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
-} TCAP_AUDT_apdu_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_AUDT_apdu;
-extern asn_SEQUENCE_specifics_t asn_SPC_TCAP_AUDT_apdu_specs_1;
-extern asn_TYPE_member_t asn_MBR_TCAP_AUDT_apdu_1[3];
-
-#ifdef __cplusplus
-}
-#endif
-
-/* Referred external types */
-#include <osmocom/tcap/TCAP_EXTERNAL.h>
-
-#endif /* _TCAP_AUDT_apdu_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_Abort.h b/include/osmocom/tcap/TCAP_Abort.h
index e191c8c..56c29e0 100644
--- a/include/osmocom/tcap/TCAP_Abort.h
+++ b/include/osmocom/tcap/TCAP_Abort.h
@@ -17,13 +17,13 @@
extern "C" {
#endif

-/* Forward declarations */
-struct TCAP_Reason;
-
/* TCAP_Abort */
typedef struct TCAP_Abort {
TCAP_DestTransactionID_t dtid;
- struct TCAP_Reason *reason; /* OPTIONAL */
+ /*
+ * This type is extensible,
+ * possible extensions are below.
+ */

/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
@@ -32,14 +32,11 @@
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_TCAP_Abort;
extern asn_SEQUENCE_specifics_t asn_SPC_TCAP_Abort_specs_1;
-extern asn_TYPE_member_t asn_MBR_TCAP_Abort_1[2];
+extern asn_TYPE_member_t asn_MBR_TCAP_Abort_1[1];

#ifdef __cplusplus
}
#endif

-/* Referred external types */
-#include <osmocom/tcap/TCAP_Reason.h>
-
#endif /* _TCAP_Abort_H_ */
#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_Associate-result.h b/include/osmocom/tcap/TCAP_Associate-result.h
deleted file mode 100644
index 023e01f..0000000
--- a/include/osmocom/tcap/TCAP_Associate-result.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#ifndef _TCAP_Associate_result_H_
-#define _TCAP_Associate_result_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/NativeInteger.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Dependencies */
-typedef enum TCAP_Associate_result {
- TCAP_Associate_result_accepted = 0,
- TCAP_Associate_result_reject_permanent = 1
-} e_TCAP_Associate_result;
-
-/* TCAP_Associate-result */
-typedef long TCAP_Associate_result_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_Associate_result;
-asn_struct_free_f TCAP_Associate_result_free;
-asn_struct_print_f TCAP_Associate_result_print;
-asn_constr_check_f TCAP_Associate_result_constraint;
-ber_type_decoder_f TCAP_Associate_result_decode_ber;
-der_type_encoder_f TCAP_Associate_result_encode_der;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_Associate_result_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_Associate-source-diagnostic.h b/include/osmocom/tcap/TCAP_Associate-source-diagnostic.h
deleted file mode 100644
index 5ec0367..0000000
--- a/include/osmocom/tcap/TCAP_Associate-source-diagnostic.h
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#ifndef _TCAP_Associate_source_diagnostic_H_
-#define _TCAP_Associate_source_diagnostic_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/NativeInteger.h>
-#include <osmocom/tcap/constr_CHOICE.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Dependencies */
-typedef enum TCAP_Associate_source_diagnostic_PR {
- TCAP_Associate_source_diagnostic_PR_NOTHING, /* No components present */
- TCAP_Associate_source_diagnostic_PR_dialogue_service_user,
- TCAP_Associate_source_diagnostic_PR_dialogue_service_provider
-} TCAP_Associate_source_diagnostic_PR;
-typedef enum TCAP_Associate_source_diagnostic__dialogue_service_user {
- TCAP_Associate_source_diagnostic__dialogue_service_user_null = 0,
- TCAP_Associate_source_diagnostic__dialogue_service_user_no_reason_given = 1,
- TCAP_Associate_source_diagnostic__dialogue_service_user_application_context_name_not_supported = 2
-} e_TCAP_Associate_source_diagnostic__dialogue_service_user;
-typedef enum TCAP_Associate_source_diagnostic__dialogue_service_provider {
- TCAP_Associate_source_diagnostic__dialogue_service_provider_null = 0,
- TCAP_Associate_source_diagnostic__dialogue_service_provider_no_reason_given = 1,
- TCAP_Associate_source_diagnostic__dialogue_service_provider_no_common_dialogue_portion = 2
-} e_TCAP_Associate_source_diagnostic__dialogue_service_provider;
-
-/* TCAP_Associate-source-diagnostic */
-typedef struct TCAP_Associate_source_diagnostic {
- TCAP_Associate_source_diagnostic_PR present;
- union TCAP_Associate_source_diagnostic_u {
- long dialogue_service_user;
- long dialogue_service_provider;
- } choice;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
-} TCAP_Associate_source_diagnostic_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_Associate_source_diagnostic;
-extern asn_CHOICE_specifics_t asn_SPC_TCAP_Associate_source_diagnostic_specs_1;
-extern asn_TYPE_member_t asn_MBR_TCAP_Associate_source_diagnostic_1[2];
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_Associate_source_diagnostic_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_Begin.h b/include/osmocom/tcap/TCAP_Begin.h
index 394e7a7..eae5e7e 100644
--- a/include/osmocom/tcap/TCAP_Begin.h
+++ b/include/osmocom/tcap/TCAP_Begin.h
@@ -17,15 +17,13 @@
extern "C" {
#endif

-/* Forward declarations */
-struct TCAP_DialoguePortion;
-struct TCAP_ComponentPortion;
-
/* TCAP_Begin */
typedef struct TCAP_Begin {
TCAP_OrigTransactionID_t otid;
- struct TCAP_DialoguePortion *dialoguePortion; /* OPTIONAL */
- struct TCAP_ComponentPortion *components; /* OPTIONAL */
+ /*
+ * This type is extensible,
+ * possible extensions are below.
+ */

/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
@@ -34,15 +32,11 @@
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_TCAP_Begin;
extern asn_SEQUENCE_specifics_t asn_SPC_TCAP_Begin_specs_1;
-extern asn_TYPE_member_t asn_MBR_TCAP_Begin_1[3];
+extern asn_TYPE_member_t asn_MBR_TCAP_Begin_1[1];

#ifdef __cplusplus
}
#endif

-/* Referred external types */
-#include <osmocom/tcap/TCAP_DialoguePortion.h>
-#include <osmocom/tcap/TCAP_ComponentPortion.h>
-
#endif /* _TCAP_Begin_H_ */
#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_Component.h b/include/osmocom/tcap/TCAP_Component.h
deleted file mode 100644
index 8257d30..0000000
--- a/include/osmocom/tcap/TCAP_Component.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#ifndef _TCAP_Component_H_
-#define _TCAP_Component_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/TCAP_Invoke.h>
-#include <osmocom/tcap/TCAP_ReturnResult.h>
-#include <osmocom/tcap/TCAP_ReturnError.h>
-#include <osmocom/tcap/TCAP_Reject.h>
-#include <osmocom/tcap/constr_CHOICE.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Dependencies */
-typedef enum TCAP_Component_PR {
- TCAP_Component_PR_NOTHING, /* No components present */
- TCAP_Component_PR_invoke,
- TCAP_Component_PR_returnResultLast,
- TCAP_Component_PR_returnError,
- TCAP_Component_PR_reject,
- TCAP_Component_PR_returnResultNotLast
-} TCAP_Component_PR;
-
-/* TCAP_Component */
-typedef struct TCAP_Component {
- TCAP_Component_PR present;
- union TCAP_Component_u {
- TCAP_Invoke_t invoke;
- TCAP_ReturnResult_t returnResultLast;
- TCAP_ReturnError_t returnError;
- TCAP_Reject_t reject;
- TCAP_ReturnResult_t returnResultNotLast;
- } choice;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
-} TCAP_Component_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_Component;
-extern asn_CHOICE_specifics_t asn_SPC_TCAP_Component_specs_1;
-extern asn_TYPE_member_t asn_MBR_TCAP_Component_1[5];
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_Component_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_ComponentPortion.h b/include/osmocom/tcap/TCAP_ComponentPortion.h
deleted file mode 100644
index d948446..0000000
--- a/include/osmocom/tcap/TCAP_ComponentPortion.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#ifndef _TCAP_ComponentPortion_H_
-#define _TCAP_ComponentPortion_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/asn_SEQUENCE_OF.h>
-#include <osmocom/tcap/constr_SEQUENCE_OF.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Forward declarations */
-struct TCAP_Component;
-
-/* TCAP_ComponentPortion */
-typedef struct TCAP_ComponentPortion {
- A_SEQUENCE_OF(struct TCAP_Component) list;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
-} TCAP_ComponentPortion_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_ComponentPortion;
-extern asn_SET_OF_specifics_t asn_SPC_TCAP_ComponentPortion_specs_1;
-extern asn_TYPE_member_t asn_MBR_TCAP_ComponentPortion_1[1];
-
-#ifdef __cplusplus
-}
-#endif
-
-/* Referred external types */
-#include <osmocom/tcap/TCAP_Component.h>
-
-#endif /* _TCAP_ComponentPortion_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_Continue.h b/include/osmocom/tcap/TCAP_Continue.h
index 21800da..4bbeb19 100644
--- a/include/osmocom/tcap/TCAP_Continue.h
+++ b/include/osmocom/tcap/TCAP_Continue.h
@@ -18,16 +18,14 @@
extern "C" {
#endif

-/* Forward declarations */
-struct TCAP_DialoguePortion;
-struct TCAP_ComponentPortion;
-
/* TCAP_Continue */
typedef struct TCAP_Continue {
TCAP_OrigTransactionID_t otid;
TCAP_DestTransactionID_t dtid;
- struct TCAP_DialoguePortion *dialoguePortion; /* OPTIONAL */
- struct TCAP_ComponentPortion *components; /* OPTIONAL */
+ /*
+ * This type is extensible,
+ * possible extensions are below.
+ */

/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
@@ -36,15 +34,11 @@
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_TCAP_Continue;
extern asn_SEQUENCE_specifics_t asn_SPC_TCAP_Continue_specs_1;
-extern asn_TYPE_member_t asn_MBR_TCAP_Continue_1[4];
+extern asn_TYPE_member_t asn_MBR_TCAP_Continue_1[2];

#ifdef __cplusplus
}
#endif

-/* Referred external types */
-#include <osmocom/tcap/TCAP_DialoguePortion.h>
-#include <osmocom/tcap/TCAP_ComponentPortion.h>
-
#endif /* _TCAP_Continue_H_ */
#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_Dialog1.h b/include/osmocom/tcap/TCAP_Dialog1.h
deleted file mode 100644
index a904f15..0000000
--- a/include/osmocom/tcap/TCAP_Dialog1.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#ifndef _TCAP_Dialog1_H_
-#define _TCAP_Dialog1_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/OCTET_STRING.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* TCAP_Dialog1 */
-typedef OCTET_STRING_t TCAP_Dialog1_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_Dialog1;
-asn_struct_free_f TCAP_Dialog1_free;
-asn_struct_print_f TCAP_Dialog1_print;
-asn_constr_check_f TCAP_Dialog1_constraint;
-ber_type_decoder_f TCAP_Dialog1_decode_ber;
-der_type_encoder_f TCAP_Dialog1_encode_der;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_Dialog1_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_DialoguePDU.h b/include/osmocom/tcap/TCAP_DialoguePDU.h
deleted file mode 100644
index 4687cea..0000000
--- a/include/osmocom/tcap/TCAP_DialoguePDU.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#ifndef _TCAP_DialoguePDU_H_
-#define _TCAP_DialoguePDU_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/TCAP_AARQ-apdu.h>
-#include <osmocom/tcap/TCAP_AARE-apdu.h>
-#include <osmocom/tcap/TCAP_ABRT-apdu.h>
-#include <osmocom/tcap/constr_CHOICE.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Dependencies */
-typedef enum TCAP_DialoguePDU_PR {
- TCAP_DialoguePDU_PR_NOTHING, /* No components present */
- TCAP_DialoguePDU_PR_dialogueRequest,
- TCAP_DialoguePDU_PR_dialogueResponse,
- TCAP_DialoguePDU_PR_dialogueAbort
-} TCAP_DialoguePDU_PR;
-
-/* TCAP_DialoguePDU */
-typedef struct TCAP_DialoguePDU {
- TCAP_DialoguePDU_PR present;
- union TCAP_DialoguePDU_u {
- TCAP_AARQ_apdu_t dialogueRequest;
- TCAP_AARE_apdu_t dialogueResponse;
- TCAP_ABRT_apdu_t dialogueAbort;
- } choice;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
-} TCAP_DialoguePDU_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_DialoguePDU;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_DialoguePDU_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_DialoguePortion.h b/include/osmocom/tcap/TCAP_DialoguePortion.h
deleted file mode 100644
index d27149e..0000000
--- a/include/osmocom/tcap/TCAP_DialoguePortion.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#ifndef _TCAP_DialoguePortion_H_
-#define _TCAP_DialoguePortion_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/TCAP_EXTERNAL.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* TCAP_DialoguePortion */
-typedef TCAP_EXTERNAL_t TCAP_DialoguePortion_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_DialoguePortion;
-asn_struct_free_f TCAP_DialoguePortion_free;
-asn_struct_print_f TCAP_DialoguePortion_print;
-asn_constr_check_f TCAP_DialoguePortion_constraint;
-ber_type_decoder_f TCAP_DialoguePortion_decode_ber;
-der_type_encoder_f TCAP_DialoguePortion_encode_der;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_DialoguePortion_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_ERROR.h b/include/osmocom/tcap/TCAP_ERROR.h
deleted file mode 100644
index c9c397d..0000000
--- a/include/osmocom/tcap/TCAP_ERROR.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#ifndef _TCAP_ERROR_H_
-#define _TCAP_ERROR_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/NativeInteger.h>
-#include <osmocom/tcap/OBJECT_IDENTIFIER.h>
-#include <osmocom/tcap/constr_CHOICE.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Dependencies */
-typedef enum TCAP_ERROR_PR {
- TCAP_ERROR_PR_NOTHING, /* No components present */
- TCAP_ERROR_PR_localValue,
- TCAP_ERROR_PR_globalValue
-} TCAP_ERROR_PR;
-
-/* TCAP_ERROR */
-typedef struct TCAP_ERROR {
- TCAP_ERROR_PR present;
- union TCAP_ERROR_u {
- long localValue;
- OBJECT_IDENTIFIER_t globalValue;
- } choice;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
-} TCAP_ERROR_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_ERROR;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_ERROR_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_EXTERNAL.h b/include/osmocom/tcap/TCAP_EXTERNAL.h
index bcdcb90..70a3645 100644
--- a/include/osmocom/tcap/TCAP_EXTERNAL.h
+++ b/include/osmocom/tcap/TCAP_EXTERNAL.h
@@ -54,8 +54,6 @@

/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_TCAP_EXTERNAL;
-extern asn_SEQUENCE_specifics_t asn_SPC_TCAP_EXTERNAL_specs_1;
-extern asn_TYPE_member_t asn_MBR_TCAP_EXTERNAL_1[4];

#ifdef __cplusplus
}
diff --git a/include/osmocom/tcap/TCAP_End.h b/include/osmocom/tcap/TCAP_End.h
index 063727c..6693497 100644
--- a/include/osmocom/tcap/TCAP_End.h
+++ b/include/osmocom/tcap/TCAP_End.h
@@ -17,15 +17,13 @@
extern "C" {
#endif

-/* Forward declarations */
-struct TCAP_DialoguePortion;
-struct TCAP_ComponentPortion;
-
/* TCAP_End */
typedef struct TCAP_End {
TCAP_DestTransactionID_t dtid;
- struct TCAP_DialoguePortion *dialoguePortion; /* OPTIONAL */
- struct TCAP_ComponentPortion *components; /* OPTIONAL */
+ /*
+ * This type is extensible,
+ * possible extensions are below.
+ */

/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
@@ -34,15 +32,11 @@
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_TCAP_End;
extern asn_SEQUENCE_specifics_t asn_SPC_TCAP_End_specs_1;
-extern asn_TYPE_member_t asn_MBR_TCAP_End_1[3];
+extern asn_TYPE_member_t asn_MBR_TCAP_End_1[1];

#ifdef __cplusplus
}
#endif

-/* Referred external types */
-#include <osmocom/tcap/TCAP_DialoguePortion.h>
-#include <osmocom/tcap/TCAP_ComponentPortion.h>
-
#endif /* _TCAP_End_H_ */
#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_ErrorCode.h b/include/osmocom/tcap/TCAP_ErrorCode.h
deleted file mode 100644
index 1dc51fa..0000000
--- a/include/osmocom/tcap/TCAP_ErrorCode.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#ifndef _TCAP_ErrorCode_H_
-#define _TCAP_ErrorCode_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/NativeInteger.h>
-#include <osmocom/tcap/constr_CHOICE.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Dependencies */
-typedef enum TCAP_ErrorCode_PR {
- TCAP_ErrorCode_PR_NOTHING, /* No components present */
- TCAP_ErrorCode_PR_nationaler,
- TCAP_ErrorCode_PR_privateer
-} TCAP_ErrorCode_PR;
-
-/* TCAP_ErrorCode */
-typedef struct TCAP_ErrorCode {
- TCAP_ErrorCode_PR present;
- union TCAP_ErrorCode_u {
- long nationaler;
- long privateer;
- } choice;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
-} TCAP_ErrorCode_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_ErrorCode;
-extern asn_CHOICE_specifics_t asn_SPC_TCAP_ErrorCode_specs_1;
-extern asn_TYPE_member_t asn_MBR_TCAP_ErrorCode_1[2];
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_ErrorCode_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_ExternalPDU.h b/include/osmocom/tcap/TCAP_ExternalPDU.h
deleted file mode 100644
index 29a255c..0000000
--- a/include/osmocom/tcap/TCAP_ExternalPDU.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#ifndef _TCAP_ExternalPDU_H_
-#define _TCAP_ExternalPDU_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/OBJECT_IDENTIFIER.h>
-#include <osmocom/tcap/TCAP_Dialog1.h>
-#include <osmocom/tcap/constr_SEQUENCE.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* TCAP_ExternalPDU */
-typedef struct TCAP_ExternalPDU {
- OBJECT_IDENTIFIER_t oid;
- TCAP_Dialog1_t dialog;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
-} TCAP_ExternalPDU_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_ExternalPDU;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_ExternalPDU_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_GeneralProblem.h b/include/osmocom/tcap/TCAP_GeneralProblem.h
deleted file mode 100644
index fc79f64..0000000
--- a/include/osmocom/tcap/TCAP_GeneralProblem.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#ifndef _TCAP_GeneralProblem_H_
-#define _TCAP_GeneralProblem_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/NativeInteger.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Dependencies */
-typedef enum TCAP_GeneralProblem {
- TCAP_GeneralProblem_unrecognizedComponent = 0,
- TCAP_GeneralProblem_mistypedComponent = 1,
- TCAP_GeneralProblem_badlyStructuredComponent = 2
-} e_TCAP_GeneralProblem;
-
-/* TCAP_GeneralProblem */
-typedef long TCAP_GeneralProblem_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_GeneralProblem;
-asn_struct_free_f TCAP_GeneralProblem_free;
-asn_struct_print_f TCAP_GeneralProblem_print;
-asn_constr_check_f TCAP_GeneralProblem_constraint;
-ber_type_decoder_f TCAP_GeneralProblem_decode_ber;
-der_type_encoder_f TCAP_GeneralProblem_encode_der;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_GeneralProblem_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_Invoke.h b/include/osmocom/tcap/TCAP_Invoke.h
deleted file mode 100644
index 782bfbd..0000000
--- a/include/osmocom/tcap/TCAP_Invoke.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#ifndef _TCAP_Invoke_H_
-#define _TCAP_Invoke_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/TCAP_InvokeIdType.h>
-#include <osmocom/tcap/TCAP_OPERATION.h>
-#include <osmocom/tcap/TCAP_Parameter.h>
-#include <osmocom/tcap/constr_SEQUENCE.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* TCAP_Invoke */
-typedef struct TCAP_Invoke {
- TCAP_InvokeIdType_t invokeID;
- TCAP_InvokeIdType_t *linkedID; /* OPTIONAL */
- TCAP_OPERATION_t opCode;
- TCAP_Parameter_t *parameter; /* OPTIONAL */
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
-} TCAP_Invoke_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_Invoke;
-extern asn_SEQUENCE_specifics_t asn_SPC_TCAP_Invoke_specs_1;
-extern asn_TYPE_member_t asn_MBR_TCAP_Invoke_1[4];
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_Invoke_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_InvokeIdType.h b/include/osmocom/tcap/TCAP_InvokeIdType.h
deleted file mode 100644
index 8c9b1f2..0000000
--- a/include/osmocom/tcap/TCAP_InvokeIdType.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#ifndef _TCAP_InvokeIdType_H_
-#define _TCAP_InvokeIdType_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/NativeInteger.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* TCAP_InvokeIdType */
-typedef long TCAP_InvokeIdType_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_InvokeIdType;
-asn_struct_free_f TCAP_InvokeIdType_free;
-asn_struct_print_f TCAP_InvokeIdType_print;
-asn_constr_check_f TCAP_InvokeIdType_constraint;
-ber_type_decoder_f TCAP_InvokeIdType_decode_ber;
-der_type_encoder_f TCAP_InvokeIdType_encode_der;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_InvokeIdType_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_InvokeProblem.h b/include/osmocom/tcap/TCAP_InvokeProblem.h
deleted file mode 100644
index fc6ee12..0000000
--- a/include/osmocom/tcap/TCAP_InvokeProblem.h
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#ifndef _TCAP_InvokeProblem_H_
-#define _TCAP_InvokeProblem_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/NativeInteger.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Dependencies */
-typedef enum TCAP_InvokeProblem {
- TCAP_InvokeProblem_duplicateInvokeID = 0,
- TCAP_InvokeProblem_unrecognizedOperation = 1,
- TCAP_InvokeProblem_mistypedParameter = 2,
- TCAP_InvokeProblem_resourceLimitation = 3,
- TCAP_InvokeProblem_initiatingRelease = 4,
- TCAP_InvokeProblem_unrecognizedLinkedID = 5,
- TCAP_InvokeProblem_linkedResponseUnexpected = 6,
- TCAP_InvokeProblem_unexpectedLinkedOperation = 7
-} e_TCAP_InvokeProblem;
-
-/* TCAP_InvokeProblem */
-typedef long TCAP_InvokeProblem_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_InvokeProblem;
-asn_struct_free_f TCAP_InvokeProblem_free;
-asn_struct_print_f TCAP_InvokeProblem_print;
-asn_constr_check_f TCAP_InvokeProblem_constraint;
-ber_type_decoder_f TCAP_InvokeProblem_decode_ber;
-der_type_encoder_f TCAP_InvokeProblem_encode_der;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_InvokeProblem_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_OPERATION.h b/include/osmocom/tcap/TCAP_OPERATION.h
deleted file mode 100644
index 005682d..0000000
--- a/include/osmocom/tcap/TCAP_OPERATION.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#ifndef _TCAP_OPERATION_H_
-#define _TCAP_OPERATION_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/NativeInteger.h>
-#include <osmocom/tcap/OBJECT_IDENTIFIER.h>
-#include <osmocom/tcap/constr_CHOICE.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Dependencies */
-typedef enum TCAP_OPERATION_PR {
- TCAP_OPERATION_PR_NOTHING, /* No components present */
- TCAP_OPERATION_PR_localValue,
- TCAP_OPERATION_PR_globalValue
-} TCAP_OPERATION_PR;
-
-/* TCAP_OPERATION */
-typedef struct TCAP_OPERATION {
- TCAP_OPERATION_PR present;
- union TCAP_OPERATION_u {
- long localValue;
- OBJECT_IDENTIFIER_t globalValue;
- } choice;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
-} TCAP_OPERATION_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_OPERATION;
-extern asn_CHOICE_specifics_t asn_SPC_TCAP_OPERATION_specs_1;
-extern asn_TYPE_member_t asn_MBR_TCAP_OPERATION_1[2];
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_OPERATION_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_P-AbortCause.h b/include/osmocom/tcap/TCAP_P-AbortCause.h
deleted file mode 100644
index a83013c..0000000
--- a/include/osmocom/tcap/TCAP_P-AbortCause.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#ifndef _TCAP_P_AbortCause_H_
-#define _TCAP_P_AbortCause_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/NativeInteger.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Dependencies */
-typedef enum TCAP_P_AbortCause {
- TCAP_P_AbortCause_unrecognizedMessageType = 0,
- TCAP_P_AbortCause_unrecognizedTransactionID = 1,
- TCAP_P_AbortCause_badlyFormattedTransactionPortion = 2,
- TCAP_P_AbortCause_incorrectTransactionPortion = 3,
- TCAP_P_AbortCause_resourceLimitation = 4
-} e_TCAP_P_AbortCause;
-
-/* TCAP_P-AbortCause */
-typedef long TCAP_P_AbortCause_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_P_AbortCause;
-asn_struct_free_f TCAP_P_AbortCause_free;
-asn_struct_print_f TCAP_P_AbortCause_print;
-asn_constr_check_f TCAP_P_AbortCause_constraint;
-ber_type_decoder_f TCAP_P_AbortCause_decode_ber;
-der_type_encoder_f TCAP_P_AbortCause_encode_der;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_P_AbortCause_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_Parameter.h b/include/osmocom/tcap/TCAP_Parameter.h
deleted file mode 100644
index 7be46ab..0000000
--- a/include/osmocom/tcap/TCAP_Parameter.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#ifndef _TCAP_Parameter_H_
-#define _TCAP_Parameter_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/ANY.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* TCAP_Parameter */
-typedef ANY_t TCAP_Parameter_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_Parameter;
-asn_struct_free_f TCAP_Parameter_free;
-asn_struct_print_f TCAP_Parameter_print;
-asn_constr_check_f TCAP_Parameter_constraint;
-ber_type_decoder_f TCAP_Parameter_decode_ber;
-der_type_encoder_f TCAP_Parameter_encode_der;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_Parameter_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_RLRE-apdu.h b/include/osmocom/tcap/TCAP_RLRE-apdu.h
deleted file mode 100644
index 30d6980..0000000
--- a/include/osmocom/tcap/TCAP_RLRE-apdu.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#ifndef _TCAP_RLRE_apdu_H_
-#define _TCAP_RLRE_apdu_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/TCAP_Release-response-reason.h>
-#include <osmocom/tcap/asn_SEQUENCE_OF.h>
-#include <osmocom/tcap/constr_SEQUENCE_OF.h>
-#include <osmocom/tcap/constr_SEQUENCE.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Forward declarations */
-struct TCAP_EXTERNAL;
-
-/* TCAP_RLRE-apdu */
-typedef struct TCAP_RLRE_apdu {
- TCAP_Release_response_reason_t *reason; /* OPTIONAL */
- struct TCAP_RLRE_apdu__user_information {
- A_SEQUENCE_OF(struct TCAP_EXTERNAL) list;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
- } *user_information;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
-} TCAP_RLRE_apdu_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_RLRE_apdu;
-
-#ifdef __cplusplus
-}
-#endif
-
-/* Referred external types */
-#include <osmocom/tcap/TCAP_EXTERNAL.h>
-
-#endif /* _TCAP_RLRE_apdu_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_RLRQ-apdu.h b/include/osmocom/tcap/TCAP_RLRQ-apdu.h
deleted file mode 100644
index e320723..0000000
--- a/include/osmocom/tcap/TCAP_RLRQ-apdu.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#ifndef _TCAP_RLRQ_apdu_H_
-#define _TCAP_RLRQ_apdu_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/TCAP_Release-request-reason.h>
-#include <osmocom/tcap/asn_SEQUENCE_OF.h>
-#include <osmocom/tcap/constr_SEQUENCE_OF.h>
-#include <osmocom/tcap/constr_SEQUENCE.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Forward declarations */
-struct TCAP_EXTERNAL;
-
-/* TCAP_RLRQ-apdu */
-typedef struct TCAP_RLRQ_apdu {
- TCAP_Release_request_reason_t *reason; /* OPTIONAL */
- struct TCAP_RLRQ_apdu__user_information {
- A_SEQUENCE_OF(struct TCAP_EXTERNAL) list;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
- } *user_information;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
-} TCAP_RLRQ_apdu_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_RLRQ_apdu;
-
-#ifdef __cplusplus
-}
-#endif
-
-/* Referred external types */
-#include <osmocom/tcap/TCAP_EXTERNAL.h>
-
-#endif /* _TCAP_RLRQ_apdu_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_Reason.h b/include/osmocom/tcap/TCAP_Reason.h
deleted file mode 100644
index f380107..0000000
--- a/include/osmocom/tcap/TCAP_Reason.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#ifndef _TCAP_Reason_H_
-#define _TCAP_Reason_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/TCAP_P-AbortCause.h>
-#include <osmocom/tcap/TCAP_DialoguePortion.h>
-#include <osmocom/tcap/constr_CHOICE.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Dependencies */
-typedef enum TCAP_Reason_PR {
- TCAP_Reason_PR_NOTHING, /* No components present */
- TCAP_Reason_PR_p_abortCause,
- TCAP_Reason_PR_u_abortCause
-} TCAP_Reason_PR;
-
-/* TCAP_Reason */
-typedef struct TCAP_Reason {
- TCAP_Reason_PR present;
- union TCAP_Reason_u {
- TCAP_P_AbortCause_t p_abortCause;
- TCAP_DialoguePortion_t u_abortCause;
- } choice;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
-} TCAP_Reason_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_Reason;
-extern asn_CHOICE_specifics_t asn_SPC_TCAP_Reason_specs_1;
-extern asn_TYPE_member_t asn_MBR_TCAP_Reason_1[2];
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_Reason_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_Reject.h b/include/osmocom/tcap/TCAP_Reject.h
deleted file mode 100644
index b8c45ef..0000000
--- a/include/osmocom/tcap/TCAP_Reject.h
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#ifndef _TCAP_Reject_H_
-#define _TCAP_Reject_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/TCAP_InvokeIdType.h>
-#include <osmocom/tcap/NULL.h>
-#include <osmocom/tcap/constr_CHOICE.h>
-#include <osmocom/tcap/TCAP_GeneralProblem.h>
-#include <osmocom/tcap/TCAP_InvokeProblem.h>
-#include <osmocom/tcap/TCAP_ReturnResultProblem.h>
-#include <osmocom/tcap/TCAP_ReturnErrorProblem.h>
-#include <osmocom/tcap/constr_SEQUENCE.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Dependencies */
-typedef enum TCAP_Reject__invokeIDRej_PR {
- TCAP_Reject__invokeIDRej_PR_NOTHING, /* No components present */
- TCAP_Reject__invokeIDRej_PR_derivable,
- TCAP_Reject__invokeIDRej_PR_not_derivable
-} TCAP_Reject__invokeIDRej_PR;
-typedef enum TCAP_Reject__problem_PR {
- TCAP_Reject__problem_PR_NOTHING, /* No components present */
- TCAP_Reject__problem_PR_generalProblem,
- TCAP_Reject__problem_PR_invokeProblem,
- TCAP_Reject__problem_PR_returnResultProblem,
- TCAP_Reject__problem_PR_returnErrorProblem
-} TCAP_Reject__problem_PR;
-
-/* TCAP_Reject */
-typedef struct TCAP_Reject {
- struct TCAP_Reject__invokeIDRej {
- TCAP_Reject__invokeIDRej_PR present;
- union TCAP_Reject__TCAP_invokeIDRej_u {
- TCAP_InvokeIdType_t derivable;
- NULL_t not_derivable;
- } choice;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
- } invokeIDRej;
- struct TCAP_Reject__problem {
- TCAP_Reject__problem_PR present;
- union TCAP_Reject__TCAP_problem_u {
- TCAP_GeneralProblem_t generalProblem;
- TCAP_InvokeProblem_t invokeProblem;
- TCAP_ReturnResultProblem_t returnResultProblem;
- TCAP_ReturnErrorProblem_t returnErrorProblem;
- } choice;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
- } problem;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
-} TCAP_Reject_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_Reject;
-extern asn_SEQUENCE_specifics_t asn_SPC_TCAP_Reject_specs_1;
-extern asn_TYPE_member_t asn_MBR_TCAP_Reject_1[2];
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_Reject_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_Release-request-reason.h b/include/osmocom/tcap/TCAP_Release-request-reason.h
deleted file mode 100644
index f35d8da..0000000
--- a/include/osmocom/tcap/TCAP_Release-request-reason.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#ifndef _TCAP_Release_request_reason_H_
-#define _TCAP_Release_request_reason_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/NativeInteger.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Dependencies */
-typedef enum TCAP_Release_request_reason {
- TCAP_Release_request_reason_normal = 0,
- TCAP_Release_request_reason_urgent = 1,
- TCAP_Release_request_reason_user_defined = 30
-} e_TCAP_Release_request_reason;
-
-/* TCAP_Release-request-reason */
-typedef long TCAP_Release_request_reason_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_Release_request_reason;
-asn_struct_free_f TCAP_Release_request_reason_free;
-asn_struct_print_f TCAP_Release_request_reason_print;
-asn_constr_check_f TCAP_Release_request_reason_constraint;
-ber_type_decoder_f TCAP_Release_request_reason_decode_ber;
-der_type_encoder_f TCAP_Release_request_reason_encode_der;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_Release_request_reason_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_Release-response-reason.h b/include/osmocom/tcap/TCAP_Release-response-reason.h
deleted file mode 100644
index fe80962..0000000
--- a/include/osmocom/tcap/TCAP_Release-response-reason.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#ifndef _TCAP_Release_response_reason_H_
-#define _TCAP_Release_response_reason_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/NativeInteger.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Dependencies */
-typedef enum TCAP_Release_response_reason {
- TCAP_Release_response_reason_normal = 0,
- TCAP_Release_response_reason_not_finished = 1,
- TCAP_Release_response_reason_user_defined = 30
-} e_TCAP_Release_response_reason;
-
-/* TCAP_Release-response-reason */
-typedef long TCAP_Release_response_reason_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_Release_response_reason;
-asn_struct_free_f TCAP_Release_response_reason_free;
-asn_struct_print_f TCAP_Release_response_reason_print;
-asn_constr_check_f TCAP_Release_response_reason_constraint;
-ber_type_decoder_f TCAP_Release_response_reason_decode_ber;
-der_type_encoder_f TCAP_Release_response_reason_encode_der;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_Release_response_reason_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_ReturnError.h b/include/osmocom/tcap/TCAP_ReturnError.h
deleted file mode 100644
index 6e8cfea..0000000
--- a/include/osmocom/tcap/TCAP_ReturnError.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#ifndef _TCAP_ReturnError_H_
-#define _TCAP_ReturnError_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/TCAP_InvokeIdType.h>
-#include <osmocom/tcap/TCAP_ErrorCode.h>
-#include <osmocom/tcap/TCAP_Parameter.h>
-#include <osmocom/tcap/constr_SEQUENCE.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* TCAP_ReturnError */
-typedef struct TCAP_ReturnError {
- TCAP_InvokeIdType_t invokeID;
- TCAP_ErrorCode_t errorCode;
- TCAP_Parameter_t *parameter; /* OPTIONAL */
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
-} TCAP_ReturnError_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_ReturnError;
-extern asn_SEQUENCE_specifics_t asn_SPC_TCAP_ReturnError_specs_1;
-extern asn_TYPE_member_t asn_MBR_TCAP_ReturnError_1[3];
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_ReturnError_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_ReturnErrorProblem.h b/include/osmocom/tcap/TCAP_ReturnErrorProblem.h
deleted file mode 100644
index fd5e1da..0000000
--- a/include/osmocom/tcap/TCAP_ReturnErrorProblem.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#ifndef _TCAP_ReturnErrorProblem_H_
-#define _TCAP_ReturnErrorProblem_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/NativeInteger.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Dependencies */
-typedef enum TCAP_ReturnErrorProblem {
- TCAP_ReturnErrorProblem_unrecognizedInvokeID = 0,
- TCAP_ReturnErrorProblem_returnErrorUnexpected = 1,
- TCAP_ReturnErrorProblem_unrecognizedError = 2,
- TCAP_ReturnErrorProblem_unexpectedError = 3,
- TCAP_ReturnErrorProblem_mistypedParameter = 4
-} e_TCAP_ReturnErrorProblem;
-
-/* TCAP_ReturnErrorProblem */
-typedef long TCAP_ReturnErrorProblem_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_ReturnErrorProblem;
-asn_struct_free_f TCAP_ReturnErrorProblem_free;
-asn_struct_print_f TCAP_ReturnErrorProblem_print;
-asn_constr_check_f TCAP_ReturnErrorProblem_constraint;
-ber_type_decoder_f TCAP_ReturnErrorProblem_decode_ber;
-der_type_encoder_f TCAP_ReturnErrorProblem_encode_der;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_ReturnErrorProblem_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_ReturnResult.h b/include/osmocom/tcap/TCAP_ReturnResult.h
deleted file mode 100644
index daf7947..0000000
--- a/include/osmocom/tcap/TCAP_ReturnResult.h
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#ifndef _TCAP_ReturnResult_H_
-#define _TCAP_ReturnResult_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/TCAP_InvokeIdType.h>
-#include <osmocom/tcap/TCAP_OPERATION.h>
-#include <osmocom/tcap/TCAP_Parameter.h>
-#include <osmocom/tcap/constr_SEQUENCE.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* TCAP_ReturnResult */
-typedef struct TCAP_ReturnResult {
- TCAP_InvokeIdType_t invokeID;
- struct TCAP_ReturnResult__resultretres {
- TCAP_OPERATION_t opCode;
- TCAP_Parameter_t *parameter; /* OPTIONAL */
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
- } *resultretres;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
-} TCAP_ReturnResult_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_ReturnResult;
-extern asn_SEQUENCE_specifics_t asn_SPC_TCAP_ReturnResult_specs_1;
-extern asn_TYPE_member_t asn_MBR_TCAP_ReturnResult_1[2];
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_ReturnResult_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_ReturnResultProblem.h b/include/osmocom/tcap/TCAP_ReturnResultProblem.h
deleted file mode 100644
index a287541..0000000
--- a/include/osmocom/tcap/TCAP_ReturnResultProblem.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#ifndef _TCAP_ReturnResultProblem_H_
-#define _TCAP_ReturnResultProblem_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/NativeInteger.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Dependencies */
-typedef enum TCAP_ReturnResultProblem {
- TCAP_ReturnResultProblem_unrecognizedInvokeID = 0,
- TCAP_ReturnResultProblem_returnResultUnexpected = 1,
- TCAP_ReturnResultProblem_mistypedParameter = 2
-} e_TCAP_ReturnResultProblem;
-
-/* TCAP_ReturnResultProblem */
-typedef long TCAP_ReturnResultProblem_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_ReturnResultProblem;
-asn_struct_free_f TCAP_ReturnResultProblem_free;
-asn_struct_print_f TCAP_ReturnResultProblem_print;
-asn_constr_check_f TCAP_ReturnResultProblem_constraint;
-ber_type_decoder_f TCAP_ReturnResultProblem_decode_ber;
-der_type_encoder_f TCAP_ReturnResultProblem_encode_der;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_ReturnResultProblem_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_UniDialoguePDU.h b/include/osmocom/tcap/TCAP_UniDialoguePDU.h
deleted file mode 100644
index f137451..0000000
--- a/include/osmocom/tcap/TCAP_UniDialoguePDU.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "UnidialoguePDUs"
- */
-
-#ifndef _TCAP_UniDialoguePDU_H_
-#define _TCAP_UniDialoguePDU_H_
-
-
-#include <osmocom/tcap/asn_application.h>
-
-/* Including external dependencies */
-#include <osmocom/tcap/TCAP_AUDT-apdu.h>
-#include <osmocom/tcap/constr_CHOICE.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Dependencies */
-typedef enum TCAP_UniDialoguePDU_PR {
- TCAP_UniDialoguePDU_PR_NOTHING, /* No components present */
- TCAP_UniDialoguePDU_PR_unidialoguePDU
-} TCAP_UniDialoguePDU_PR;
-
-/* TCAP_UniDialoguePDU */
-typedef struct TCAP_UniDialoguePDU {
- TCAP_UniDialoguePDU_PR present;
- union TCAP_UniDialoguePDU_u {
- TCAP_AUDT_apdu_t unidialoguePDU;
- } choice;
-
- /* Context for parsing across buffer boundaries */
- asn_struct_ctx_t _asn_ctx;
-} TCAP_UniDialoguePDU_t;
-
-/* Implementation */
-extern asn_TYPE_descriptor_t asn_DEF_TCAP_UniDialoguePDU;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_UniDialoguePDU_H_ */
-#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_Unidirectional.h b/include/osmocom/tcap/TCAP_Unidirectional.h
index cebb31b..f672a47 100644
--- a/include/osmocom/tcap/TCAP_Unidirectional.h
+++ b/include/osmocom/tcap/TCAP_Unidirectional.h
@@ -10,20 +10,18 @@
#include <osmocom/tcap/asn_application.h>

/* Including external dependencies */
-#include <osmocom/tcap/TCAP_ComponentPortion.h>
#include <osmocom/tcap/constr_SEQUENCE.h>

#ifdef __cplusplus
extern "C" {
#endif

-/* Forward declarations */
-struct TCAP_DialoguePortion;
-
/* TCAP_Unidirectional */
typedef struct TCAP_Unidirectional {
- struct TCAP_DialoguePortion *dialoguePortion; /* OPTIONAL */
- TCAP_ComponentPortion_t components;
+ /*
+ * This type is extensible,
+ * possible extensions are below.
+ */

/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
@@ -32,14 +30,10 @@
/* Implementation */
extern asn_TYPE_descriptor_t asn_DEF_TCAP_Unidirectional;
extern asn_SEQUENCE_specifics_t asn_SPC_TCAP_Unidirectional_specs_1;
-extern asn_TYPE_member_t asn_MBR_TCAP_Unidirectional_1[2];

#ifdef __cplusplus
}
#endif

-/* Referred external types */
-#include <osmocom/tcap/TCAP_DialoguePortion.h>
-
#endif /* _TCAP_Unidirectional_H_ */
#include <osmocom/tcap/asn_internal.h>
diff --git a/include/osmocom/tcap/TCAP_asn_constant.h b/include/osmocom/tcap/TCAP_asn_constant.h
deleted file mode 100644
index 9660cb7..0000000
--- a/include/osmocom/tcap/TCAP_asn_constant.h
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- */
-
-#ifndef _TCAP_ASN_CONSTANT_H
-#define _TCAP_ASN_CONSTANT_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define min_val_TCAP_P_AbortCause (0)
-#define max_val_TCAP_P_AbortCause (127)
-#define min_val_TCAP_InvokeIdType (-128)
-#define max_val_TCAP_InvokeIdType (127)
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCAP_ASN_CONSTANT_H */
diff --git a/include/osmocom/tcap/asn_SEQUENCE_OF.h b/include/osmocom/tcap/asn_SEQUENCE_OF.h
deleted file mode 100644
index 965440b..0000000
--- a/include/osmocom/tcap/asn_SEQUENCE_OF.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/*-
- * Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
- * Redistribution and modifications are permitted subject to BSD license.
- */
-#ifndef ASN_SEQUENCE_OF_H
-#define ASN_SEQUENCE_OF_H
-
-#include <osmocom/tcap/asn_SET_OF.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * SEQUENCE OF is the same as SET OF with a tiny difference:
- * the delete operation preserves the initial order of elements
- * and thus MAY operate in non-constant time.
- */
-#define A_SEQUENCE_OF(type) A_SET_OF(type)
-
-#define ASN_SEQUENCE_ADD(headptr, ptr) \
- asn_sequence_add((headptr), (ptr))
-
-/***********************************************
- * Implementation of the SEQUENCE OF structure.
- */
-
-#define asn_sequence_add asn_set_add
-#define asn_sequence_empty asn_set_empty
-
-/*
- * Delete the element from the set by its number (base 0).
- * This is NOT a constant-time operation.
- * The order of elements is preserved.
- * If _do_free is given AND the (*free) is initialized, the element
- * will be freed using the custom (*free) function as well.
- */
-void asn_sequence_del(void *asn_sequence_of_x, int number, int _do_free);
-
-/*
- * Cope with different conversions requirements to/from void in C and C++.
- * This is mostly useful for support library.
- */
-typedef A_SEQUENCE_OF(void) asn_anonymous_sequence_;
-#define _A_SEQUENCE_FROM_VOID(ptr) ((asn_anonymous_sequence_ *)(ptr))
-#define _A_CSEQUENCE_FROM_VOID(ptr) ((const asn_anonymous_sequence_ *)(ptr))
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* ASN_SEQUENCE_OF_H */
diff --git a/include/osmocom/tcap/asn_SET_OF.h b/include/osmocom/tcap/asn_SET_OF.h
deleted file mode 100644
index 882e1a4..0000000
--- a/include/osmocom/tcap/asn_SET_OF.h
+++ /dev/null
@@ -1,72 +0,0 @@
-/*-
- * Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
- * Redistribution and modifications are permitted subject to BSD license.
- */
-#ifndef ASN_SET_OF_H
-#define ASN_SET_OF_H
-
-#ifdef __cplusplus
-#define A_SET_OF(type) \
- struct { \
- type **array; \
- int count; /* Meaningful size */ \
- int size; /* Allocated size */ \
- void (*free)(decltype(*array)); \
- }
-#else /* C */
-#define A_SET_OF(type) \
- struct { \
- type **array; \
- int count; /* Meaningful size */ \
- int size; /* Allocated size */ \
- void (*free)(type *); \
- }
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define ASN_SET_ADD(headptr, ptr) \
- asn_set_add((headptr), (ptr))
-
-/*******************************************
- * Implementation of the SET OF structure.
- */
-
-/*
- * Add another structure into the set by its pointer.
- * RETURN VALUES:
- * 0 for success and -1/errno for failure.
- */
-int asn_set_add(void *asn_set_of_x, void *ptr);
-
-/*
- * Delete the element from the set by its number (base 0).
- * This is a constant-time operation. The order of elements before the
- * deleted ones is guaranteed, the order of elements after the deleted
- * one is NOT guaranteed.
- * If _do_free is given AND the (*free) is initialized, the element
- * will be freed using the custom (*free) function as well.
- */
-void asn_set_del(void *asn_set_of_x, int number, int _do_free);
-
-/*
- * Empty the contents of the set. Will free the elements, if (*free) is given.
- * Will NOT free the set itself.
- */
-void asn_set_empty(void *asn_set_of_x);
-
-/*
- * Cope with different conversions requirements to/from void in C and C++.
- * This is mostly useful for support library.
- */
-typedef A_SET_OF(void) asn_anonymous_set_;
-#define _A_SET_FROM_VOID(ptr) ((asn_anonymous_set_ *)(ptr))
-#define _A_CSET_FROM_VOID(ptr) ((const asn_anonymous_set_ *)(ptr))
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* ASN_SET_OF_H */
diff --git a/include/osmocom/tcap/constr_SEQUENCE_OF.h b/include/osmocom/tcap/constr_SEQUENCE_OF.h
deleted file mode 100644
index 570acb3..0000000
--- a/include/osmocom/tcap/constr_SEQUENCE_OF.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/*-
- * Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
- * Redistribution and modifications are permitted subject to BSD license.
- */
-#ifndef _CONSTR_SEQUENCE_OF_H_
-#define _CONSTR_SEQUENCE_OF_H_
-
-#include <osmocom/tcap/asn_application.h>
-#include <osmocom/tcap/constr_SET_OF.h> /* Implemented using SET OF */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * A set specialized functions dealing with the SEQUENCE OF type.
- * Generally implemented using SET OF.
- */
-#define SEQUENCE_OF_free SET_OF_free
-
-#if !defined(ASN_DISABLE_PRINT_SUPPORT)
-#define SEQUENCE_OF_print SET_OF_print
-#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */
-
-asn_struct_compare_f SEQUENCE_OF_compare;
-#define SEQUENCE_OF_copy SET_OF_copy
-
-#define SEQUENCE_OF_constraint SET_OF_constraint
-
-#if !defined(ASN_DISABLE_BER_SUPPORT)
-#define SEQUENCE_OF_decode_ber SET_OF_decode_ber
-der_type_encoder_f SEQUENCE_OF_encode_der;
-#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */
-
-#if !defined(ASN_DISABLE_XER_SUPPORT)
-#define SEQUENCE_OF_decode_xer SET_OF_decode_xer
-xer_type_encoder_f SEQUENCE_OF_encode_xer;
-#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */
-
-#if !defined(ASN_DISABLE_JER_SUPPORT)
-#define SEQUENCE_OF_decode_jer SET_OF_decode_jer
-jer_type_encoder_f SEQUENCE_OF_encode_jer;
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
-
-#if !defined(ASN_DISABLE_OER_SUPPORT)
-#define SEQUENCE_OF_decode_oer SET_OF_decode_oer
-#define SEQUENCE_OF_encode_oer SET_OF_encode_oer
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-
-#if !defined(ASN_DISABLE_UPER_SUPPORT)
-#define SEQUENCE_OF_decode_uper SET_OF_decode_uper
-per_type_encoder_f SEQUENCE_OF_encode_uper;
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */
-#if !defined(ASN_DISABLE_APER_SUPPORT)
-#define SEQUENCE_OF_decode_aper SET_OF_decode_aper
-per_type_encoder_f SEQUENCE_OF_encode_aper;
-#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */
-
-#if !defined(ASN_DISABLE_RFILL_SUPPORT)
-#define SEQUENCE_OF_random_fill SET_OF_random_fill
-#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */
-
-extern asn_TYPE_operation_t asn_OP_SEQUENCE_OF;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _CONSTR_SET_OF_H_ */
diff --git a/include/osmocom/tcap/constr_SET_OF.h b/include/osmocom/tcap/constr_SET_OF.h
deleted file mode 100644
index 38db850..0000000
--- a/include/osmocom/tcap/constr_SET_OF.h
+++ /dev/null
@@ -1,104 +0,0 @@
-/*-
- * Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
- * Redistribution and modifications are permitted subject to BSD license.
- */
-#ifndef CONSTR_SET_OF_H
-#define CONSTR_SET_OF_H
-
-#include <osmocom/tcap/asn_application.h>
-#include <osmocom/tcap/asn_SET_OF.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef struct asn_SET_OF_specifics_s {
- /*
- * Target structure description.
- */
- unsigned struct_size; /* Size of the target structure. */
- unsigned ctx_offset; /* Offset of the asn_struct_ctx_t member */
-
- /* XER-specific stuff */
- int as_XMLValueList; /* The member type must be encoded like this */
-} asn_SET_OF_specifics_t;
-
-/*
- * A set specialized functions dealing with the SET OF type.
- */
-asn_struct_free_f SET_OF_free;
-
-#if !defined(ASN_DISABLE_PRINT_SUPPORT)
-asn_struct_print_f SET_OF_print;
-#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */
-
-asn_struct_compare_f SET_OF_compare;
-asn_struct_copy_f SET_OF_copy;
-
-asn_constr_check_f SET_OF_constraint;
-
-#if !defined(ASN_DISABLE_BER_SUPPORT)
-ber_type_decoder_f SET_OF_decode_ber;
-der_type_encoder_f SET_OF_encode_der;
-#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */
-
-#if !defined(ASN_DISABLE_XER_SUPPORT)
-xer_type_decoder_f SET_OF_decode_xer;
-xer_type_encoder_f SET_OF_encode_xer;
-#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */
-
-#if !defined(ASN_DISABLE_JER_SUPPORT)
-jer_type_decoder_f SET_OF_decode_jer;
-jer_type_encoder_f SET_OF_encode_jer;
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
-
-#if !defined(ASN_DISABLE_OER_SUPPORT)
-oer_type_decoder_f SET_OF_decode_oer;
-oer_type_encoder_f SET_OF_encode_oer;
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-
-#if !defined(ASN_DISABLE_UPER_SUPPORT)
-per_type_decoder_f SET_OF_decode_uper;
-per_type_encoder_f SET_OF_encode_uper;
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */
-#if !defined(ASN_DISABLE_APER_SUPPORT)
-per_type_decoder_f SET_OF_decode_aper;
-per_type_encoder_f SET_OF_encode_aper;
-#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */
-
-#if !defined(ASN_DISABLE_RFILL_SUPPORT)
-asn_random_fill_f SET_OF_random_fill;
-#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */
-
-extern asn_TYPE_operation_t asn_OP_SET_OF;
-
-/*
- * Internally visible buffer holding a single encoded element.
- */
-struct _el_buffer {
- uint8_t *buf;
- size_t length;
- size_t allocated_size;
- unsigned bits_unused;
-};
-
-enum SET_OF__encode_method {
- SOES_DER, /* Distinguished Encoding Rules */
- SOES_CUPER, /* Canonical Unaligned Packed Encoding Rules */
- SOES_CAPER /* Canonical Aligned Packed Encoding Rules */
-};
-
-struct _el_buffer * SET_OF__encode_sorted(
- const asn_TYPE_member_t *elm,
- const asn_anonymous_set_ *list,
- enum SET_OF__encode_method method);
-
-void SET_OF__encode_sorted_free(
- struct _el_buffer *el_buf,
- size_t count);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* CONSTR_SET_OF_H */
diff --git a/src/Makefile.am b/src/Makefile.am
index 78d8d0d..b4c1341 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -11,10 +11,6 @@
skel/INTEGER_ber.c \
skel/INTEGER_print.c \
skel/INTEGER_rfill.c \
- skel/NULL.c \
- skel/NULL_ber.c \
- skel/NULL_print.c \
- skel/NULL_rfill.c \
skel/NativeInteger.c \
skel/NativeInteger_ber.c \
skel/NativeInteger_print.c \
@@ -29,8 +25,6 @@
skel/OPEN_TYPE.c \
skel/OPEN_TYPE_ber.c \
skel/ObjectDescriptor.c \
- skel/asn_SEQUENCE_OF.c \
- skel/asn_SET_OF.c \
skel/asn_application.c \
skel/asn_bit_data.c \
skel/asn_codecs_prim.c \
@@ -46,61 +40,22 @@
skel/constr_CHOICE_print.c \
skel/constr_CHOICE_rfill.c \
skel/constr_SEQUENCE.c \
- skel/constr_SEQUENCE_OF.c \
- skel/constr_SEQUENCE_OF_ber.c \
skel/constr_SEQUENCE_ber.c \
skel/constr_SEQUENCE_print.c \
skel/constr_SEQUENCE_rfill.c \
- skel/constr_SET_OF.c \
- skel/constr_SET_OF_ber.c \
- skel/constr_SET_OF_print.c \
- skel/constr_SET_OF_rfill.c \
skel/constr_TYPE.c \
skel/der_encoder.c \
$(NULL)

GEN_SRC = \
- gen/TCAP_AARE-apdu.c \
- gen/TCAP_AARQ-apdu.c \
- gen/TCAP_ABRT-apdu.c \
- gen/TCAP_ABRT-source.c \
- gen/TCAP_AUDT-apdu.c \
gen/TCAP_Abort.c \
- gen/TCAP_Associate-result.c \
- gen/TCAP_Associate-source-diagnostic.c \
gen/TCAP_Begin.c \
- gen/TCAP_Component.c \
- gen/TCAP_ComponentPortion.c \
gen/TCAP_Continue.c \
gen/TCAP_DestTransactionID.c \
- gen/TCAP_Dialog1.c \
- gen/TCAP_DialoguePDU.c \
- gen/TCAP_DialoguePortion.c \
- gen/TCAP_ERROR.c \
gen/TCAP_EXTERNAL.c \
gen/TCAP_End.c \
- gen/TCAP_ErrorCode.c \
- gen/TCAP_ExternalPDU.c \
- gen/TCAP_GeneralProblem.c \
- gen/TCAP_Invoke.c \
- gen/TCAP_InvokeIdType.c \
- gen/TCAP_InvokeProblem.c \
- gen/TCAP_OPERATION.c \
gen/TCAP_OrigTransactionID.c \
- gen/TCAP_Parameter.c \
- gen/TCAP_P-AbortCause.c \
- gen/TCAP_RLRE-apdu.c \
- gen/TCAP_RLRQ-apdu.c \
- gen/TCAP_Reason.c \
- gen/TCAP_Reject.c \
- gen/TCAP_Release-request-reason.c \
- gen/TCAP_Release-response-reason.c \
- gen/TCAP_ReturnError.c \
- gen/TCAP_ReturnErrorProblem.c \
- gen/TCAP_ReturnResult.c \
- gen/TCAP_ReturnResultProblem.c \
gen/TCAP_TCMessage.c \
- gen/TCAP_UniDialoguePDU.c \
gen/TCAP_Unidirectional.c \
$(NULL)

@@ -114,14 +69,11 @@
BIT_STRING.h \
GraphicString.h \
INTEGER.h \
- NULL.h \
NativeInteger.h \
OBJECT_IDENTIFIER.h \
OCTET_STRING.h \
OPEN_TYPE.h \
ObjectDescriptor.h \
- asn_SEQUENCE_OF.h \
- asn_SET_OF.h \
asn_application.h \
asn_bit_data.h \
asn_codecs.h \
@@ -137,56 +89,20 @@
constraints.h \
constr_CHOICE.h \
constr_SEQUENCE.h \
- constr_SEQUENCE_OF.h \
- constr_SET_OF.h \
constr_TYPE.h \
der_encoder.h \
$(NULL)

GEN_HEADER_FILES = \
- TCAP_RLRQ-apdu.h \
- TCAP_Component.h \
- TCAP_Parameter.h \
TCAP_TCMessage.h \
- TCAP_ComponentPortion.h \
TCAP_OrigTransactionID.h \
- TCAP_Associate-result.h \
- TCAP_AUDT-apdu.h \
- TCAP_GeneralProblem.h \
TCAP_Begin.h \
- TCAP_DialoguePDU.h \
- TCAP_Release-response-reason.h \
- TCAP_ExternalPDU.h \
- TCAP_AARQ-apdu.h \
TCAP_Continue.h \
- TCAP_asn_constant.h \
- TCAP_DialoguePortion.h \
- TCAP_InvokeIdType.h \
- TCAP_UniDialoguePDU.h \
TCAP_End.h \
- TCAP_ReturnResult.h \
TCAP_Abort.h \
- TCAP_Dialog1.h \
- TCAP_OPERATION.h \
- TCAP_Reject.h \
- TCAP_Invoke.h \
- TCAP_ReturnError.h \
- TCAP_Release-request-reason.h \
- TCAP_Reason.h \
- TCAP_ReturnErrorProblem.h \
- TCAP_ABRT-apdu.h \
- TCAP_ERROR.h \
- TCAP_AARE-apdu.h \
TCAP_DestTransactionID.h \
- TCAP_ErrorCode.h \
TCAP_Unidirectional.h \
- TCAP_ABRT-source.h \
- TCAP_InvokeProblem.h \
- TCAP_ReturnResultProblem.h \
- TCAP_P-AbortCause.h \
TCAP_EXTERNAL.h \
- TCAP_RLRE-apdu.h \
- TCAP_Associate-source-diagnostic.h \
$(NULL)

ASN_MODULE_INC = \
@@ -226,9 +142,7 @@
-no-gen-OER \
-no-gen-UPER \
-no-gen-example \
- $(top_srcdir)/asn/DialoguePDUs.asn \
$(top_srcdir)/asn/tcap.asn \
- $(top_srcdir)/asn/UnidialoguePDUs.asn \
$(NULL)
# Remove comments with paths
for i in $(top_srcdir)/src/gen/*; do \
diff --git a/src/gen/TCAP_AARE-apdu.c b/src/gen/TCAP_AARE-apdu.c
deleted file mode 100644
index 5dc8b60..0000000
--- a/src/gen/TCAP_AARE-apdu.c
+++ /dev/null
@@ -1,214 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#include <osmocom/tcap/TCAP_AARE-apdu.h>
-
-static asn_TYPE_member_t asn_MBR_TCAP_user_information_7[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (8 << 2)),
- 0,
- &asn_DEF_TCAP_EXTERNAL,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- ""
- },
-};
-static const ber_tlv_tag_t asn_DEF_TCAP_user_information_tags_7[] = {
- (ASN_TAG_CLASS_CONTEXT | (30 << 2)),
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-static asn_SET_OF_specifics_t asn_SPC_TCAP_user_information_specs_7 = {
- sizeof(struct TCAP_AARE_apdu__user_information),
- offsetof(struct TCAP_AARE_apdu__user_information, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
-};
-static /* Use -fall-defs-global to expose */
-asn_TYPE_descriptor_t asn_DEF_TCAP_user_information_7 = {
- "user-information",
- "user-information",
- &asn_OP_SEQUENCE_OF,
- asn_DEF_TCAP_user_information_tags_7,
- sizeof(asn_DEF_TCAP_user_information_tags_7)
- /sizeof(asn_DEF_TCAP_user_information_tags_7[0]) - 1, /* 1 */
- asn_DEF_TCAP_user_information_tags_7, /* Same as above */
- sizeof(asn_DEF_TCAP_user_information_tags_7)
- /sizeof(asn_DEF_TCAP_user_information_tags_7[0]), /* 2 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- SEQUENCE_OF_constraint
- },
- asn_MBR_TCAP_user_information_7,
- 1, /* Single element */
- &asn_SPC_TCAP_user_information_specs_7 /* Additional specs */
-};
-
-asn_TYPE_member_t asn_MBR_TCAP_AARE_apdu_1[] = {
- { ATF_POINTER, 1, offsetof(struct TCAP_AARE_apdu, protocol_version),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_BIT_STRING,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "protocol-version"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_AARE_apdu, application_context_name),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- +1, /* EXPLICIT tag at current level */
- &asn_DEF_OBJECT_IDENTIFIER,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "application-context-name"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_AARE_apdu, result),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- +1, /* EXPLICIT tag at current level */
- &asn_DEF_TCAP_Associate_result,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "result"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_AARE_apdu, result_source_diagnostic),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- +1, /* EXPLICIT tag at current level */
- &asn_DEF_TCAP_Associate_source_diagnostic,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "result-source-diagnostic"
- },
- { ATF_POINTER, 1, offsetof(struct TCAP_AARE_apdu, user_information),
- (ASN_TAG_CLASS_CONTEXT | (30 << 2)),
- 0,
- &asn_DEF_TCAP_user_information_7,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "user-information"
- },
-};
-static const ber_tlv_tag_t asn_DEF_TCAP_AARE_apdu_tags_1[] = {
- (ASN_TAG_CLASS_APPLICATION | (1 << 2)),
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_AARE_apdu_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* protocol-version */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* application-context-name */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* result */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* result-source-diagnostic */
- { (ASN_TAG_CLASS_CONTEXT | (30 << 2)), 4, 0, 0 } /* user-information */
-};
-asn_SEQUENCE_specifics_t asn_SPC_TCAP_AARE_apdu_specs_1 = {
- sizeof(struct TCAP_AARE_apdu),
- offsetof(struct TCAP_AARE_apdu, _asn_ctx),
- asn_MAP_TCAP_AARE_apdu_tag2el_1,
- 5, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* First extension addition */
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_AARE_apdu = {
- "AARE-apdu",
- "AARE-apdu",
- &asn_OP_SEQUENCE,
- asn_DEF_TCAP_AARE_apdu_tags_1,
- sizeof(asn_DEF_TCAP_AARE_apdu_tags_1)
- /sizeof(asn_DEF_TCAP_AARE_apdu_tags_1[0]) - 1, /* 1 */
- asn_DEF_TCAP_AARE_apdu_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_AARE_apdu_tags_1)
- /sizeof(asn_DEF_TCAP_AARE_apdu_tags_1[0]), /* 2 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- SEQUENCE_constraint
- },
- asn_MBR_TCAP_AARE_apdu_1,
- 5, /* Elements count */
- &asn_SPC_TCAP_AARE_apdu_specs_1 /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_AARQ-apdu.c b/src/gen/TCAP_AARQ-apdu.c
deleted file mode 100644
index d007c76..0000000
--- a/src/gen/TCAP_AARQ-apdu.c
+++ /dev/null
@@ -1,172 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#include <osmocom/tcap/TCAP_AARQ-apdu.h>
-
-static asn_TYPE_member_t asn_MBR_TCAP_user_information_5[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (8 << 2)),
- 0,
- &asn_DEF_TCAP_EXTERNAL,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- ""
- },
-};
-static const ber_tlv_tag_t asn_DEF_TCAP_user_information_tags_5[] = {
- (ASN_TAG_CLASS_CONTEXT | (30 << 2)),
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-static asn_SET_OF_specifics_t asn_SPC_TCAP_user_information_specs_5 = {
- sizeof(struct TCAP_AARQ_apdu__user_information),
- offsetof(struct TCAP_AARQ_apdu__user_information, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
-};
-static /* Use -fall-defs-global to expose */
-asn_TYPE_descriptor_t asn_DEF_TCAP_user_information_5 = {
- "user-information",
- "user-information",
- &asn_OP_SEQUENCE_OF,
- asn_DEF_TCAP_user_information_tags_5,
- sizeof(asn_DEF_TCAP_user_information_tags_5)
- /sizeof(asn_DEF_TCAP_user_information_tags_5[0]) - 1, /* 1 */
- asn_DEF_TCAP_user_information_tags_5, /* Same as above */
- sizeof(asn_DEF_TCAP_user_information_tags_5)
- /sizeof(asn_DEF_TCAP_user_information_tags_5[0]), /* 2 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- SEQUENCE_OF_constraint
- },
- asn_MBR_TCAP_user_information_5,
- 1, /* Single element */
- &asn_SPC_TCAP_user_information_specs_5 /* Additional specs */
-};
-
-asn_TYPE_member_t asn_MBR_TCAP_AARQ_apdu_1[] = {
- { ATF_POINTER, 1, offsetof(struct TCAP_AARQ_apdu, protocol_version),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_BIT_STRING,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "protocol-version"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_AARQ_apdu, application_context_name),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- +1, /* EXPLICIT tag at current level */
- &asn_DEF_OBJECT_IDENTIFIER,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "application-context-name"
- },
- { ATF_POINTER, 1, offsetof(struct TCAP_AARQ_apdu, user_information),
- (ASN_TAG_CLASS_CONTEXT | (30 << 2)),
- 0,
- &asn_DEF_TCAP_user_information_5,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "user-information"
- },
-};
-static const ber_tlv_tag_t asn_DEF_TCAP_AARQ_apdu_tags_1[] = {
- (ASN_TAG_CLASS_APPLICATION | (0 << 2)),
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_AARQ_apdu_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* protocol-version */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* application-context-name */
- { (ASN_TAG_CLASS_CONTEXT | (30 << 2)), 2, 0, 0 } /* user-information */
-};
-asn_SEQUENCE_specifics_t asn_SPC_TCAP_AARQ_apdu_specs_1 = {
- sizeof(struct TCAP_AARQ_apdu),
- offsetof(struct TCAP_AARQ_apdu, _asn_ctx),
- asn_MAP_TCAP_AARQ_apdu_tag2el_1,
- 3, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* First extension addition */
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_AARQ_apdu = {
- "AARQ-apdu",
- "AARQ-apdu",
- &asn_OP_SEQUENCE,
- asn_DEF_TCAP_AARQ_apdu_tags_1,
- sizeof(asn_DEF_TCAP_AARQ_apdu_tags_1)
- /sizeof(asn_DEF_TCAP_AARQ_apdu_tags_1[0]) - 1, /* 1 */
- asn_DEF_TCAP_AARQ_apdu_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_AARQ_apdu_tags_1)
- /sizeof(asn_DEF_TCAP_AARQ_apdu_tags_1[0]), /* 2 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- SEQUENCE_constraint
- },
- asn_MBR_TCAP_AARQ_apdu_1,
- 3, /* Elements count */
- &asn_SPC_TCAP_AARQ_apdu_specs_1 /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_ABRT-apdu.c b/src/gen/TCAP_ABRT-apdu.c
deleted file mode 100644
index d1917ce..0000000
--- a/src/gen/TCAP_ABRT-apdu.c
+++ /dev/null
@@ -1,151 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#include <osmocom/tcap/TCAP_ABRT-apdu.h>
-
-static asn_TYPE_member_t asn_MBR_TCAP_user_information_3[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (8 << 2)),
- 0,
- &asn_DEF_TCAP_EXTERNAL,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- ""
- },
-};
-static const ber_tlv_tag_t asn_DEF_TCAP_user_information_tags_3[] = {
- (ASN_TAG_CLASS_CONTEXT | (30 << 2)),
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-static asn_SET_OF_specifics_t asn_SPC_TCAP_user_information_specs_3 = {
- sizeof(struct TCAP_ABRT_apdu__user_information),
- offsetof(struct TCAP_ABRT_apdu__user_information, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
-};
-static /* Use -fall-defs-global to expose */
-asn_TYPE_descriptor_t asn_DEF_TCAP_user_information_3 = {
- "user-information",
- "user-information",
- &asn_OP_SEQUENCE_OF,
- asn_DEF_TCAP_user_information_tags_3,
- sizeof(asn_DEF_TCAP_user_information_tags_3)
- /sizeof(asn_DEF_TCAP_user_information_tags_3[0]) - 1, /* 1 */
- asn_DEF_TCAP_user_information_tags_3, /* Same as above */
- sizeof(asn_DEF_TCAP_user_information_tags_3)
- /sizeof(asn_DEF_TCAP_user_information_tags_3[0]), /* 2 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- SEQUENCE_OF_constraint
- },
- asn_MBR_TCAP_user_information_3,
- 1, /* Single element */
- &asn_SPC_TCAP_user_information_specs_3 /* Additional specs */
-};
-
-asn_TYPE_member_t asn_MBR_TCAP_ABRT_apdu_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_ABRT_apdu, abort_source),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TCAP_ABRT_source,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "abort-source"
- },
- { ATF_POINTER, 1, offsetof(struct TCAP_ABRT_apdu, user_information),
- (ASN_TAG_CLASS_CONTEXT | (30 << 2)),
- 0,
- &asn_DEF_TCAP_user_information_3,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "user-information"
- },
-};
-static const ber_tlv_tag_t asn_DEF_TCAP_ABRT_apdu_tags_1[] = {
- (ASN_TAG_CLASS_APPLICATION | (4 << 2)),
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_ABRT_apdu_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* abort-source */
- { (ASN_TAG_CLASS_CONTEXT | (30 << 2)), 1, 0, 0 } /* user-information */
-};
-asn_SEQUENCE_specifics_t asn_SPC_TCAP_ABRT_apdu_specs_1 = {
- sizeof(struct TCAP_ABRT_apdu),
- offsetof(struct TCAP_ABRT_apdu, _asn_ctx),
- asn_MAP_TCAP_ABRT_apdu_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* First extension addition */
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_ABRT_apdu = {
- "ABRT-apdu",
- "ABRT-apdu",
- &asn_OP_SEQUENCE,
- asn_DEF_TCAP_ABRT_apdu_tags_1,
- sizeof(asn_DEF_TCAP_ABRT_apdu_tags_1)
- /sizeof(asn_DEF_TCAP_ABRT_apdu_tags_1[0]) - 1, /* 1 */
- asn_DEF_TCAP_ABRT_apdu_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_ABRT_apdu_tags_1)
- /sizeof(asn_DEF_TCAP_ABRT_apdu_tags_1[0]), /* 2 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- SEQUENCE_constraint
- },
- asn_MBR_TCAP_ABRT_apdu_1,
- 2, /* Elements count */
- &asn_SPC_TCAP_ABRT_apdu_specs_1 /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_ABRT-source.c b/src/gen/TCAP_ABRT-source.c
deleted file mode 100644
index a53adae..0000000
--- a/src/gen/TCAP_ABRT-source.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#include <osmocom/tcap/TCAP_ABRT-source.h>
-
-/*
- * This type is implemented using NativeInteger,
- * so here we adjust the DEF accordingly.
- */
-static const ber_tlv_tag_t asn_DEF_TCAP_ABRT_source_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_ABRT_source = {
- "ABRT-source",
- "ABRT-source",
- &asn_OP_NativeInteger,
- asn_DEF_TCAP_ABRT_source_tags_1,
- sizeof(asn_DEF_TCAP_ABRT_source_tags_1)
- /sizeof(asn_DEF_TCAP_ABRT_source_tags_1[0]), /* 1 */
- asn_DEF_TCAP_ABRT_source_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_ABRT_source_tags_1)
- /sizeof(asn_DEF_TCAP_ABRT_source_tags_1[0]), /* 1 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- NativeInteger_constraint
- },
- 0, 0, /* Defined elsewhere */
- 0 /* No specifics */
-};
-
diff --git a/src/gen/TCAP_AUDT-apdu.c b/src/gen/TCAP_AUDT-apdu.c
deleted file mode 100644
index 38859f5..0000000
--- a/src/gen/TCAP_AUDT-apdu.c
+++ /dev/null
@@ -1,172 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "UnidialoguePDUs"
- */
-
-#include <osmocom/tcap/TCAP_AUDT-apdu.h>
-
-static asn_TYPE_member_t asn_MBR_TCAP_user_information_5[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (8 << 2)),
- 0,
- &asn_DEF_TCAP_EXTERNAL,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- ""
- },
-};
-static const ber_tlv_tag_t asn_DEF_TCAP_user_information_tags_5[] = {
- (ASN_TAG_CLASS_CONTEXT | (30 << 2)),
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-static asn_SET_OF_specifics_t asn_SPC_TCAP_user_information_specs_5 = {
- sizeof(struct TCAP_AUDT_apdu__user_information),
- offsetof(struct TCAP_AUDT_apdu__user_information, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
-};
-static /* Use -fall-defs-global to expose */
-asn_TYPE_descriptor_t asn_DEF_TCAP_user_information_5 = {
- "user-information",
- "user-information",
- &asn_OP_SEQUENCE_OF,
- asn_DEF_TCAP_user_information_tags_5,
- sizeof(asn_DEF_TCAP_user_information_tags_5)
- /sizeof(asn_DEF_TCAP_user_information_tags_5[0]) - 1, /* 1 */
- asn_DEF_TCAP_user_information_tags_5, /* Same as above */
- sizeof(asn_DEF_TCAP_user_information_tags_5)
- /sizeof(asn_DEF_TCAP_user_information_tags_5[0]), /* 2 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- SEQUENCE_OF_constraint
- },
- asn_MBR_TCAP_user_information_5,
- 1, /* Single element */
- &asn_SPC_TCAP_user_information_specs_5 /* Additional specs */
-};
-
-asn_TYPE_member_t asn_MBR_TCAP_AUDT_apdu_1[] = {
- { ATF_POINTER, 1, offsetof(struct TCAP_AUDT_apdu, protocol_version),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_BIT_STRING,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "protocol-version"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_AUDT_apdu, application_context_name),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- +1, /* EXPLICIT tag at current level */
- &asn_DEF_OBJECT_IDENTIFIER,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "application-context-name"
- },
- { ATF_POINTER, 1, offsetof(struct TCAP_AUDT_apdu, user_information),
- (ASN_TAG_CLASS_CONTEXT | (30 << 2)),
- 0,
- &asn_DEF_TCAP_user_information_5,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "user-information"
- },
-};
-static const ber_tlv_tag_t asn_DEF_TCAP_AUDT_apdu_tags_1[] = {
- (ASN_TAG_CLASS_APPLICATION | (0 << 2)),
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_AUDT_apdu_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* protocol-version */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* application-context-name */
- { (ASN_TAG_CLASS_CONTEXT | (30 << 2)), 2, 0, 0 } /* user-information */
-};
-asn_SEQUENCE_specifics_t asn_SPC_TCAP_AUDT_apdu_specs_1 = {
- sizeof(struct TCAP_AUDT_apdu),
- offsetof(struct TCAP_AUDT_apdu, _asn_ctx),
- asn_MAP_TCAP_AUDT_apdu_tag2el_1,
- 3, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* First extension addition */
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_AUDT_apdu = {
- "AUDT-apdu",
- "AUDT-apdu",
- &asn_OP_SEQUENCE,
- asn_DEF_TCAP_AUDT_apdu_tags_1,
- sizeof(asn_DEF_TCAP_AUDT_apdu_tags_1)
- /sizeof(asn_DEF_TCAP_AUDT_apdu_tags_1[0]) - 1, /* 1 */
- asn_DEF_TCAP_AUDT_apdu_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_AUDT_apdu_tags_1)
- /sizeof(asn_DEF_TCAP_AUDT_apdu_tags_1[0]), /* 2 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- SEQUENCE_constraint
- },
- asn_MBR_TCAP_AUDT_apdu_1,
- 3, /* Elements count */
- &asn_SPC_TCAP_AUDT_apdu_specs_1 /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_Abort.c b/src/gen/TCAP_Abort.c
index f8a93c4..abae0b1 100644
--- a/src/gen/TCAP_Abort.c
+++ b/src/gen/TCAP_Abort.c
@@ -26,42 +26,20 @@
0, 0, /* No default value */
"dtid"
},
- { ATF_POINTER, 1, offsetof(struct TCAP_Abort, reason),
- -1 /* Ambiguous tag (CHOICE?) */,
- 0,
- &asn_DEF_TCAP_Reason,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "reason"
- },
};
static const ber_tlv_tag_t asn_DEF_TCAP_Abort_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_TCAP_Abort_tag2el_1[] = {
- { (ASN_TAG_CLASS_APPLICATION | (9 << 2)), 0, 0, 0 }, /* dtid */
- { (ASN_TAG_CLASS_APPLICATION | (10 << 2)), 1, 0, 0 }, /* p-abortCause */
- { (ASN_TAG_CLASS_APPLICATION | (11 << 2)), 1, 0, 0 } /* u-abortCause */
+ { (ASN_TAG_CLASS_APPLICATION | (9 << 2)), 0, 0, 0 } /* dtid */
};
asn_SEQUENCE_specifics_t asn_SPC_TCAP_Abort_specs_1 = {
sizeof(struct TCAP_Abort),
offsetof(struct TCAP_Abort, _asn_ctx),
asn_MAP_TCAP_Abort_tag2el_1,
- 3, /* Count of tags in the map */
+ 1, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
- -1, /* First extension addition */
+ 1, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_TCAP_Abort = {
"Abort",
@@ -86,7 +64,7 @@
SEQUENCE_constraint
},
asn_MBR_TCAP_Abort_1,
- 2, /* Elements count */
+ 1, /* Elements count */
&asn_SPC_TCAP_Abort_specs_1 /* Additional specs */
};

diff --git a/src/gen/TCAP_Associate-result.c b/src/gen/TCAP_Associate-result.c
deleted file mode 100644
index 7f4cf51..0000000
--- a/src/gen/TCAP_Associate-result.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#include <osmocom/tcap/TCAP_Associate-result.h>
-
-/*
- * This type is implemented using NativeInteger,
- * so here we adjust the DEF accordingly.
- */
-static const ber_tlv_tag_t asn_DEF_TCAP_Associate_result_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_Associate_result = {
- "Associate-result",
- "Associate-result",
- &asn_OP_NativeInteger,
- asn_DEF_TCAP_Associate_result_tags_1,
- sizeof(asn_DEF_TCAP_Associate_result_tags_1)
- /sizeof(asn_DEF_TCAP_Associate_result_tags_1[0]), /* 1 */
- asn_DEF_TCAP_Associate_result_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_Associate_result_tags_1)
- /sizeof(asn_DEF_TCAP_Associate_result_tags_1[0]), /* 1 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- NativeInteger_constraint
- },
- 0, 0, /* Defined elsewhere */
- 0 /* No specifics */
-};
-
diff --git a/src/gen/TCAP_Associate-source-diagnostic.c b/src/gen/TCAP_Associate-source-diagnostic.c
deleted file mode 100644
index 95aaebe..0000000
--- a/src/gen/TCAP_Associate-source-diagnostic.c
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#include <osmocom/tcap/TCAP_Associate-source-diagnostic.h>
-
-asn_TYPE_member_t asn_MBR_TCAP_Associate_source_diagnostic_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_Associate_source_diagnostic, choice.dialogue_service_user),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- +1, /* EXPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "dialogue-service-user"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_Associate_source_diagnostic, choice.dialogue_service_provider),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- +1, /* EXPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "dialogue-service-provider"
- },
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_Associate_source_diagnostic_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* dialogue-service-user */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 } /* dialogue-service-provider */
-};
-asn_CHOICE_specifics_t asn_SPC_TCAP_Associate_source_diagnostic_specs_1 = {
- sizeof(struct TCAP_Associate_source_diagnostic),
- offsetof(struct TCAP_Associate_source_diagnostic, _asn_ctx),
- offsetof(struct TCAP_Associate_source_diagnostic, present),
- sizeof(((struct TCAP_Associate_source_diagnostic *)0)->present),
- asn_MAP_TCAP_Associate_source_diagnostic_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0,
- -1 /* Extensions start */
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_Associate_source_diagnostic = {
- "Associate-source-diagnostic",
- "Associate-source-diagnostic",
- &asn_OP_CHOICE,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- CHOICE_constraint
- },
- asn_MBR_TCAP_Associate_source_diagnostic_1,
- 2, /* Elements count */
- &asn_SPC_TCAP_Associate_source_diagnostic_specs_1 /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_Begin.c b/src/gen/TCAP_Begin.c
index ca7b070..43be120 100644
--- a/src/gen/TCAP_Begin.c
+++ b/src/gen/TCAP_Begin.c
@@ -26,62 +26,20 @@
0, 0, /* No default value */
"otid"
},
- { ATF_POINTER, 2, offsetof(struct TCAP_Begin, dialoguePortion),
- (ASN_TAG_CLASS_APPLICATION | (11 << 2)),
- 0,
- &asn_DEF_TCAP_DialoguePortion,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "dialoguePortion"
- },
- { ATF_POINTER, 1, offsetof(struct TCAP_Begin, components),
- (ASN_TAG_CLASS_APPLICATION | (12 << 2)),
- 0,
- &asn_DEF_TCAP_ComponentPortion,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "components"
- },
};
static const ber_tlv_tag_t asn_DEF_TCAP_Begin_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_TCAP_Begin_tag2el_1[] = {
- { (ASN_TAG_CLASS_APPLICATION | (8 << 2)), 0, 0, 0 }, /* otid */
- { (ASN_TAG_CLASS_APPLICATION | (11 << 2)), 1, 0, 0 }, /* dialoguePortion */
- { (ASN_TAG_CLASS_APPLICATION | (12 << 2)), 2, 0, 0 } /* components */
+ { (ASN_TAG_CLASS_APPLICATION | (8 << 2)), 0, 0, 0 } /* otid */
};
asn_SEQUENCE_specifics_t asn_SPC_TCAP_Begin_specs_1 = {
sizeof(struct TCAP_Begin),
offsetof(struct TCAP_Begin, _asn_ctx),
asn_MAP_TCAP_Begin_tag2el_1,
- 3, /* Count of tags in the map */
+ 1, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
- -1, /* First extension addition */
+ 1, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_TCAP_Begin = {
"Begin",
@@ -106,7 +64,7 @@
SEQUENCE_constraint
},
asn_MBR_TCAP_Begin_1,
- 3, /* Elements count */
+ 1, /* Elements count */
&asn_SPC_TCAP_Begin_specs_1 /* Additional specs */
};

diff --git a/src/gen/TCAP_Component.c b/src/gen/TCAP_Component.c
deleted file mode 100644
index 09e9de2..0000000
--- a/src/gen/TCAP_Component.c
+++ /dev/null
@@ -1,151 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#include <osmocom/tcap/TCAP_Component.h>
-
-asn_TYPE_member_t asn_MBR_TCAP_Component_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_Component, choice.invoke),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TCAP_Invoke,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "invoke"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_Component, choice.returnResultLast),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TCAP_ReturnResult,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "returnResultLast"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_Component, choice.returnError),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TCAP_ReturnError,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "returnError"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_Component, choice.reject),
- (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TCAP_Reject,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "reject"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_Component, choice.returnResultNotLast),
- (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TCAP_ReturnResult,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "returnResultNotLast"
- },
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_Component_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 }, /* invoke */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* returnResultLast */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 2, 0, 0 }, /* returnError */
- { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 3, 0, 0 }, /* reject */
- { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 4, 0, 0 } /* returnResultNotLast */
-};
-asn_CHOICE_specifics_t asn_SPC_TCAP_Component_specs_1 = {
- sizeof(struct TCAP_Component),
- offsetof(struct TCAP_Component, _asn_ctx),
- offsetof(struct TCAP_Component, present),
- sizeof(((struct TCAP_Component *)0)->present),
- asn_MAP_TCAP_Component_tag2el_1,
- 5, /* Count of tags in the map */
- 0, 0,
- -1 /* Extensions start */
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_Component = {
- "Component",
- "Component",
- &asn_OP_CHOICE,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- CHOICE_constraint
- },
- asn_MBR_TCAP_Component_1,
- 5, /* Elements count */
- &asn_SPC_TCAP_Component_specs_1 /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_ComponentPortion.c b/src/gen/TCAP_ComponentPortion.c
deleted file mode 100644
index f4a36b4..0000000
--- a/src/gen/TCAP_ComponentPortion.c
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#include <osmocom/tcap/TCAP_ComponentPortion.h>
-
-asn_TYPE_member_t asn_MBR_TCAP_ComponentPortion_1[] = {
- { ATF_POINTER, 0, 0,
- -1 /* Ambiguous tag (CHOICE?) */,
- 0,
- &asn_DEF_TCAP_Component,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- ""
- },
-};
-static const ber_tlv_tag_t asn_DEF_TCAP_ComponentPortion_tags_1[] = {
- (ASN_TAG_CLASS_APPLICATION | (12 << 2)),
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-asn_SET_OF_specifics_t asn_SPC_TCAP_ComponentPortion_specs_1 = {
- sizeof(struct TCAP_ComponentPortion),
- offsetof(struct TCAP_ComponentPortion, _asn_ctx),
- 2, /* XER encoding is XMLValueList */
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_ComponentPortion = {
- "ComponentPortion",
- "ComponentPortion",
- &asn_OP_SEQUENCE_OF,
- asn_DEF_TCAP_ComponentPortion_tags_1,
- sizeof(asn_DEF_TCAP_ComponentPortion_tags_1)
- /sizeof(asn_DEF_TCAP_ComponentPortion_tags_1[0]) - 1, /* 1 */
- asn_DEF_TCAP_ComponentPortion_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_ComponentPortion_tags_1)
- /sizeof(asn_DEF_TCAP_ComponentPortion_tags_1[0]), /* 2 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- SEQUENCE_OF_constraint
- },
- asn_MBR_TCAP_ComponentPortion_1,
- 1, /* Single element */
- &asn_SPC_TCAP_ComponentPortion_specs_1 /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_Continue.c b/src/gen/TCAP_Continue.c
index 0598ccb..667759e 100644
--- a/src/gen/TCAP_Continue.c
+++ b/src/gen/TCAP_Continue.c
@@ -46,63 +46,21 @@
0, 0, /* No default value */
"dtid"
},
- { ATF_POINTER, 2, offsetof(struct TCAP_Continue, dialoguePortion),
- (ASN_TAG_CLASS_APPLICATION | (11 << 2)),
- 0,
- &asn_DEF_TCAP_DialoguePortion,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "dialoguePortion"
- },
- { ATF_POINTER, 1, offsetof(struct TCAP_Continue, components),
- (ASN_TAG_CLASS_APPLICATION | (12 << 2)),
- 0,
- &asn_DEF_TCAP_ComponentPortion,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "components"
- },
};
static const ber_tlv_tag_t asn_DEF_TCAP_Continue_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_TCAP_Continue_tag2el_1[] = {
{ (ASN_TAG_CLASS_APPLICATION | (8 << 2)), 0, 0, 0 }, /* otid */
- { (ASN_TAG_CLASS_APPLICATION | (9 << 2)), 1, 0, 0 }, /* dtid */
- { (ASN_TAG_CLASS_APPLICATION | (11 << 2)), 2, 0, 0 }, /* dialoguePortion */
- { (ASN_TAG_CLASS_APPLICATION | (12 << 2)), 3, 0, 0 } /* components */
+ { (ASN_TAG_CLASS_APPLICATION | (9 << 2)), 1, 0, 0 } /* dtid */
};
asn_SEQUENCE_specifics_t asn_SPC_TCAP_Continue_specs_1 = {
sizeof(struct TCAP_Continue),
offsetof(struct TCAP_Continue, _asn_ctx),
asn_MAP_TCAP_Continue_tag2el_1,
- 4, /* Count of tags in the map */
+ 2, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
- -1, /* First extension addition */
+ 2, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_TCAP_Continue = {
"Continue",
@@ -127,7 +85,7 @@
SEQUENCE_constraint
},
asn_MBR_TCAP_Continue_1,
- 4, /* Elements count */
+ 2, /* Elements count */
&asn_SPC_TCAP_Continue_specs_1 /* Additional specs */
};

diff --git a/src/gen/TCAP_Dialog1.c b/src/gen/TCAP_Dialog1.c
deleted file mode 100644
index 06f78cb..0000000
--- a/src/gen/TCAP_Dialog1.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#include <osmocom/tcap/TCAP_Dialog1.h>
-
-/*
- * This type is implemented using OCTET_STRING,
- * so here we adjust the DEF accordingly.
- */
-static const ber_tlv_tag_t asn_DEF_TCAP_Dialog1_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (4 << 2))
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_Dialog1 = {
- "Dialog1",
- "Dialog1",
- &asn_OP_OCTET_STRING,
- asn_DEF_TCAP_Dialog1_tags_1,
- sizeof(asn_DEF_TCAP_Dialog1_tags_1)
- /sizeof(asn_DEF_TCAP_Dialog1_tags_1[0]), /* 1 */
- asn_DEF_TCAP_Dialog1_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_Dialog1_tags_1)
- /sizeof(asn_DEF_TCAP_Dialog1_tags_1[0]), /* 1 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- OCTET_STRING_constraint
- },
- 0, 0, /* No members */
- &asn_SPC_OCTET_STRING_specs /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_DialoguePDU.c b/src/gen/TCAP_DialoguePDU.c
deleted file mode 100644
index 1952f0a..0000000
--- a/src/gen/TCAP_DialoguePDU.c
+++ /dev/null
@@ -1,109 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#include <osmocom/tcap/TCAP_DialoguePDU.h>
-
-static asn_TYPE_member_t asn_MBR_TCAP_DialoguePDU_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_DialoguePDU, choice.dialogueRequest),
- (ASN_TAG_CLASS_APPLICATION | (0 << 2)),
- 0,
- &asn_DEF_TCAP_AARQ_apdu,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "dialogueRequest"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_DialoguePDU, choice.dialogueResponse),
- (ASN_TAG_CLASS_APPLICATION | (1 << 2)),
- 0,
- &asn_DEF_TCAP_AARE_apdu,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "dialogueResponse"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_DialoguePDU, choice.dialogueAbort),
- (ASN_TAG_CLASS_APPLICATION | (4 << 2)),
- 0,
- &asn_DEF_TCAP_ABRT_apdu,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "dialogueAbort"
- },
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_DialoguePDU_tag2el_1[] = {
- { (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 0, 0, 0 }, /* dialogueRequest */
- { (ASN_TAG_CLASS_APPLICATION | (1 << 2)), 1, 0, 0 }, /* dialogueResponse */
- { (ASN_TAG_CLASS_APPLICATION | (4 << 2)), 2, 0, 0 } /* dialogueAbort */
-};
-static asn_CHOICE_specifics_t asn_SPC_TCAP_DialoguePDU_specs_1 = {
- sizeof(struct TCAP_DialoguePDU),
- offsetof(struct TCAP_DialoguePDU, _asn_ctx),
- offsetof(struct TCAP_DialoguePDU, present),
- sizeof(((struct TCAP_DialoguePDU *)0)->present),
- asn_MAP_TCAP_DialoguePDU_tag2el_1,
- 3, /* Count of tags in the map */
- 0, 0,
- -1 /* Extensions start */
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_DialoguePDU = {
- "DialoguePDU",
- "DialoguePDU",
- &asn_OP_CHOICE,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- CHOICE_constraint
- },
- asn_MBR_TCAP_DialoguePDU_1,
- 3, /* Elements count */
- &asn_SPC_TCAP_DialoguePDU_specs_1 /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_DialoguePortion.c b/src/gen/TCAP_DialoguePortion.c
deleted file mode 100644
index 4787d2b..0000000
--- a/src/gen/TCAP_DialoguePortion.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#include <osmocom/tcap/TCAP_DialoguePortion.h>
-
-/*
- * This type is implemented using TCAP_EXTERNAL,
- * so here we adjust the DEF accordingly.
- */
-static const ber_tlv_tag_t asn_DEF_TCAP_DialoguePortion_tags_1[] = {
- (ASN_TAG_CLASS_APPLICATION | (11 << 2)),
- (ASN_TAG_CLASS_UNIVERSAL | (8 << 2)),
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_DialoguePortion = {
- "DialoguePortion",
- "DialoguePortion",
- &asn_OP_SEQUENCE,
- asn_DEF_TCAP_DialoguePortion_tags_1,
- sizeof(asn_DEF_TCAP_DialoguePortion_tags_1)
- /sizeof(asn_DEF_TCAP_DialoguePortion_tags_1[0]) - 1, /* 2 */
- asn_DEF_TCAP_DialoguePortion_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_DialoguePortion_tags_1)
- /sizeof(asn_DEF_TCAP_DialoguePortion_tags_1[0]), /* 3 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- SEQUENCE_constraint
- },
- asn_MBR_TCAP_EXTERNAL_1,
- 4, /* Elements count */
- &asn_SPC_TCAP_EXTERNAL_specs_1 /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_ERROR.c b/src/gen/TCAP_ERROR.c
deleted file mode 100644
index 070f5b7..0000000
--- a/src/gen/TCAP_ERROR.c
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#include <osmocom/tcap/TCAP_ERROR.h>
-
-static asn_TYPE_member_t asn_MBR_TCAP_ERROR_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_ERROR, choice.localValue),
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
- 0,
- &asn_DEF_NativeInteger,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "localValue"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_ERROR, choice.globalValue),
- (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
- 0,
- &asn_DEF_OBJECT_IDENTIFIER,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "globalValue"
- },
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_ERROR_tag2el_1[] = {
- { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* localValue */
- { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 1, 0, 0 } /* globalValue */
-};
-static asn_CHOICE_specifics_t asn_SPC_TCAP_ERROR_specs_1 = {
- sizeof(struct TCAP_ERROR),
- offsetof(struct TCAP_ERROR, _asn_ctx),
- offsetof(struct TCAP_ERROR, present),
- sizeof(((struct TCAP_ERROR *)0)->present),
- asn_MAP_TCAP_ERROR_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0,
- -1 /* Extensions start */
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_ERROR = {
- "ERROR",
- "ERROR",
- &asn_OP_CHOICE,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- CHOICE_constraint
- },
- asn_MBR_TCAP_ERROR_1,
- 2, /* Elements count */
- &asn_SPC_TCAP_ERROR_specs_1 /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_EXTERNAL.c b/src/gen/TCAP_EXTERNAL.c
index e70c735..8ecf418 100644
--- a/src/gen/TCAP_EXTERNAL.c
+++ b/src/gen/TCAP_EXTERNAL.c
@@ -108,7 +108,7 @@
&asn_SPC_TCAP_encoding_specs_5 /* Additional specs */
};

-asn_TYPE_member_t asn_MBR_TCAP_EXTERNAL_1[] = {
+static asn_TYPE_member_t asn_MBR_TCAP_EXTERNAL_1[] = {
{ ATF_POINTER, 3, offsetof(struct TCAP_EXTERNAL, direct_reference),
(ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
0,
@@ -202,7 +202,7 @@
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 3, 0, 0 }, /* octet-aligned */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 3, 0, 0 } /* arbitrary */
};
-asn_SEQUENCE_specifics_t asn_SPC_TCAP_EXTERNAL_specs_1 = {
+static asn_SEQUENCE_specifics_t asn_SPC_TCAP_EXTERNAL_specs_1 = {
sizeof(struct TCAP_EXTERNAL),
offsetof(struct TCAP_EXTERNAL, _asn_ctx),
asn_MAP_TCAP_EXTERNAL_tag2el_1,
diff --git a/src/gen/TCAP_End.c b/src/gen/TCAP_End.c
index c34f866..4a43bd0 100644
--- a/src/gen/TCAP_End.c
+++ b/src/gen/TCAP_End.c
@@ -26,62 +26,20 @@
0, 0, /* No default value */
"dtid"
},
- { ATF_POINTER, 2, offsetof(struct TCAP_End, dialoguePortion),
- (ASN_TAG_CLASS_APPLICATION | (11 << 2)),
- 0,
- &asn_DEF_TCAP_DialoguePortion,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "dialoguePortion"
- },
- { ATF_POINTER, 1, offsetof(struct TCAP_End, components),
- (ASN_TAG_CLASS_APPLICATION | (12 << 2)),
- 0,
- &asn_DEF_TCAP_ComponentPortion,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "components"
- },
};
static const ber_tlv_tag_t asn_DEF_TCAP_End_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static const asn_TYPE_tag2member_t asn_MAP_TCAP_End_tag2el_1[] = {
- { (ASN_TAG_CLASS_APPLICATION | (9 << 2)), 0, 0, 0 }, /* dtid */
- { (ASN_TAG_CLASS_APPLICATION | (11 << 2)), 1, 0, 0 }, /* dialoguePortion */
- { (ASN_TAG_CLASS_APPLICATION | (12 << 2)), 2, 0, 0 } /* components */
+ { (ASN_TAG_CLASS_APPLICATION | (9 << 2)), 0, 0, 0 } /* dtid */
};
asn_SEQUENCE_specifics_t asn_SPC_TCAP_End_specs_1 = {
sizeof(struct TCAP_End),
offsetof(struct TCAP_End, _asn_ctx),
asn_MAP_TCAP_End_tag2el_1,
- 3, /* Count of tags in the map */
+ 1, /* Count of tags in the map */
0, 0, 0, /* Optional elements (not needed) */
- -1, /* First extension addition */
+ 1, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_TCAP_End = {
"End",
@@ -106,7 +64,7 @@
SEQUENCE_constraint
},
asn_MBR_TCAP_End_1,
- 3, /* Elements count */
+ 1, /* Elements count */
&asn_SPC_TCAP_End_specs_1 /* Additional specs */
};

diff --git a/src/gen/TCAP_ErrorCode.c b/src/gen/TCAP_ErrorCode.c
deleted file mode 100644
index f6396b0..0000000
--- a/src/gen/TCAP_ErrorCode.c
+++ /dev/null
@@ -1,113 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#include <osmocom/tcap/TCAP_ErrorCode.h>
-
-static int
-memb_TCAP_nationaler_constraint_1(const 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 >= -32768L && value <= 32767L)) {
- /* Constraint check succeeded */
- return 0;
- } else {
- ASN__CTFAIL(app_key, td, sptr,
- "%s: constraint failed (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
-}
-
-asn_TYPE_member_t asn_MBR_TCAP_ErrorCode_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_ErrorCode, choice.nationaler),
- (ASN_TAG_CLASS_PRIVATE | (19 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- memb_TCAP_nationaler_constraint_1
- },
- 0, 0, /* No default value */
- "nationaler"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_ErrorCode, choice.privateer),
- (ASN_TAG_CLASS_PRIVATE | (20 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_NativeInteger,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "privateer"
- },
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_ErrorCode_tag2el_1[] = {
- { (ASN_TAG_CLASS_PRIVATE | (19 << 2)), 0, 0, 0 }, /* nationaler */
- { (ASN_TAG_CLASS_PRIVATE | (20 << 2)), 1, 0, 0 } /* privateer */
-};
-asn_CHOICE_specifics_t asn_SPC_TCAP_ErrorCode_specs_1 = {
- sizeof(struct TCAP_ErrorCode),
- offsetof(struct TCAP_ErrorCode, _asn_ctx),
- offsetof(struct TCAP_ErrorCode, present),
- sizeof(((struct TCAP_ErrorCode *)0)->present),
- asn_MAP_TCAP_ErrorCode_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0,
- -1 /* Extensions start */
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_ErrorCode = {
- "ErrorCode",
- "ErrorCode",
- &asn_OP_CHOICE,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- CHOICE_constraint
- },
- asn_MBR_TCAP_ErrorCode_1,
- 2, /* Elements count */
- &asn_SPC_TCAP_ErrorCode_specs_1 /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_ExternalPDU.c b/src/gen/TCAP_ExternalPDU.c
deleted file mode 100644
index 0280cec..0000000
--- a/src/gen/TCAP_ExternalPDU.c
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#include <osmocom/tcap/TCAP_ExternalPDU.h>
-
-static asn_TYPE_member_t asn_MBR_TCAP_ExternalPDU_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_ExternalPDU, oid),
- (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
- 0,
- &asn_DEF_OBJECT_IDENTIFIER,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "oid"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_ExternalPDU, dialog),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TCAP_Dialog1,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "dialog"
- },
-};
-static const ber_tlv_tag_t asn_DEF_TCAP_ExternalPDU_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (8 << 2)),
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_ExternalPDU_tag2el_1[] = {
- { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, 0, 0 }, /* oid */
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 } /* dialog */
-};
-static asn_SEQUENCE_specifics_t asn_SPC_TCAP_ExternalPDU_specs_1 = {
- sizeof(struct TCAP_ExternalPDU),
- offsetof(struct TCAP_ExternalPDU, _asn_ctx),
- asn_MAP_TCAP_ExternalPDU_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* First extension addition */
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_ExternalPDU = {
- "ExternalPDU",
- "ExternalPDU",
- &asn_OP_SEQUENCE,
- asn_DEF_TCAP_ExternalPDU_tags_1,
- sizeof(asn_DEF_TCAP_ExternalPDU_tags_1)
- /sizeof(asn_DEF_TCAP_ExternalPDU_tags_1[0]) - 1, /* 1 */
- asn_DEF_TCAP_ExternalPDU_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_ExternalPDU_tags_1)
- /sizeof(asn_DEF_TCAP_ExternalPDU_tags_1[0]), /* 2 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- SEQUENCE_constraint
- },
- asn_MBR_TCAP_ExternalPDU_1,
- 2, /* Elements count */
- &asn_SPC_TCAP_ExternalPDU_specs_1 /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_GeneralProblem.c b/src/gen/TCAP_GeneralProblem.c
deleted file mode 100644
index a5dc31c..0000000
--- a/src/gen/TCAP_GeneralProblem.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#include <osmocom/tcap/TCAP_GeneralProblem.h>
-
-/*
- * This type is implemented using NativeInteger,
- * so here we adjust the DEF accordingly.
- */
-static const ber_tlv_tag_t asn_DEF_TCAP_GeneralProblem_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_GeneralProblem = {
- "GeneralProblem",
- "GeneralProblem",
- &asn_OP_NativeInteger,
- asn_DEF_TCAP_GeneralProblem_tags_1,
- sizeof(asn_DEF_TCAP_GeneralProblem_tags_1)
- /sizeof(asn_DEF_TCAP_GeneralProblem_tags_1[0]), /* 1 */
- asn_DEF_TCAP_GeneralProblem_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_GeneralProblem_tags_1)
- /sizeof(asn_DEF_TCAP_GeneralProblem_tags_1[0]), /* 1 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- NativeInteger_constraint
- },
- 0, 0, /* Defined elsewhere */
- 0 /* No specifics */
-};
-
diff --git a/src/gen/TCAP_Invoke.c b/src/gen/TCAP_Invoke.c
deleted file mode 100644
index 514683f..0000000
--- a/src/gen/TCAP_Invoke.c
+++ /dev/null
@@ -1,133 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#include <osmocom/tcap/TCAP_Invoke.h>
-
-asn_TYPE_member_t asn_MBR_TCAP_Invoke_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_Invoke, invokeID),
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
- 0,
- &asn_DEF_TCAP_InvokeIdType,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "invokeID"
- },
- { ATF_POINTER, 1, offsetof(struct TCAP_Invoke, linkedID),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TCAP_InvokeIdType,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "linkedID"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_Invoke, opCode),
- -1 /* Ambiguous tag (CHOICE?) */,
- 0,
- &asn_DEF_TCAP_OPERATION,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "opCode"
- },
- { ATF_ANY_TYPE | ATF_POINTER, 1, offsetof(struct TCAP_Invoke, parameter),
- -1 /* Ambiguous tag (ANY?) */,
- 0,
- &asn_DEF_TCAP_Parameter,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "parameter"
- },
-};
-static const ber_tlv_tag_t asn_DEF_TCAP_Invoke_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_Invoke_tag2el_1[] = {
- { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 1 }, /* invokeID */
- { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 2, -1, 0 }, /* localValue */
- { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 2, 0, 0 }, /* globalValue */
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 } /* linkedID */
-};
-asn_SEQUENCE_specifics_t asn_SPC_TCAP_Invoke_specs_1 = {
- sizeof(struct TCAP_Invoke),
- offsetof(struct TCAP_Invoke, _asn_ctx),
- asn_MAP_TCAP_Invoke_tag2el_1,
- 4, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* First extension addition */
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_Invoke = {
- "Invoke",
- "Invoke",
- &asn_OP_SEQUENCE,
- asn_DEF_TCAP_Invoke_tags_1,
- sizeof(asn_DEF_TCAP_Invoke_tags_1)
- /sizeof(asn_DEF_TCAP_Invoke_tags_1[0]), /* 1 */
- asn_DEF_TCAP_Invoke_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_Invoke_tags_1)
- /sizeof(asn_DEF_TCAP_Invoke_tags_1[0]), /* 1 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- SEQUENCE_constraint
- },
- asn_MBR_TCAP_Invoke_1,
- 4, /* Elements count */
- &asn_SPC_TCAP_Invoke_specs_1 /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_InvokeIdType.c b/src/gen/TCAP_InvokeIdType.c
deleted file mode 100644
index 88af7b2..0000000
--- a/src/gen/TCAP_InvokeIdType.c
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#include <osmocom/tcap/TCAP_InvokeIdType.h>
-
-int
-TCAP_InvokeIdType_constraint(const 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 >= -128L && value <= 127L)) {
- /* 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 NativeInteger,
- * so here we adjust the DEF accordingly.
- */
-static const ber_tlv_tag_t asn_DEF_TCAP_InvokeIdType_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_InvokeIdType = {
- "InvokeIdType",
- "InvokeIdType",
- &asn_OP_NativeInteger,
- asn_DEF_TCAP_InvokeIdType_tags_1,
- sizeof(asn_DEF_TCAP_InvokeIdType_tags_1)
- /sizeof(asn_DEF_TCAP_InvokeIdType_tags_1[0]), /* 1 */
- asn_DEF_TCAP_InvokeIdType_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_InvokeIdType_tags_1)
- /sizeof(asn_DEF_TCAP_InvokeIdType_tags_1[0]), /* 1 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- TCAP_InvokeIdType_constraint
- },
- 0, 0, /* No members */
- 0 /* No specifics */
-};
-
diff --git a/src/gen/TCAP_InvokeProblem.c b/src/gen/TCAP_InvokeProblem.c
deleted file mode 100644
index 0617eb1..0000000
--- a/src/gen/TCAP_InvokeProblem.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#include <osmocom/tcap/TCAP_InvokeProblem.h>
-
-/*
- * This type is implemented using NativeInteger,
- * so here we adjust the DEF accordingly.
- */
-static const ber_tlv_tag_t asn_DEF_TCAP_InvokeProblem_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_InvokeProblem = {
- "InvokeProblem",
- "InvokeProblem",
- &asn_OP_NativeInteger,
- asn_DEF_TCAP_InvokeProblem_tags_1,
- sizeof(asn_DEF_TCAP_InvokeProblem_tags_1)
- /sizeof(asn_DEF_TCAP_InvokeProblem_tags_1[0]), /* 1 */
- asn_DEF_TCAP_InvokeProblem_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_InvokeProblem_tags_1)
- /sizeof(asn_DEF_TCAP_InvokeProblem_tags_1[0]), /* 1 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- NativeInteger_constraint
- },
- 0, 0, /* Defined elsewhere */
- 0 /* No specifics */
-};
-
diff --git a/src/gen/TCAP_OPERATION.c b/src/gen/TCAP_OPERATION.c
deleted file mode 100644
index ef85739..0000000
--- a/src/gen/TCAP_OPERATION.c
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#include <osmocom/tcap/TCAP_OPERATION.h>
-
-asn_TYPE_member_t asn_MBR_TCAP_OPERATION_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_OPERATION, choice.localValue),
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
- 0,
- &asn_DEF_NativeInteger,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "localValue"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_OPERATION, choice.globalValue),
- (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
- 0,
- &asn_DEF_OBJECT_IDENTIFIER,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "globalValue"
- },
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_OPERATION_tag2el_1[] = {
- { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* localValue */
- { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 1, 0, 0 } /* globalValue */
-};
-asn_CHOICE_specifics_t asn_SPC_TCAP_OPERATION_specs_1 = {
- sizeof(struct TCAP_OPERATION),
- offsetof(struct TCAP_OPERATION, _asn_ctx),
- offsetof(struct TCAP_OPERATION, present),
- sizeof(((struct TCAP_OPERATION *)0)->present),
- asn_MAP_TCAP_OPERATION_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0,
- -1 /* Extensions start */
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_OPERATION = {
- "OPERATION",
- "OPERATION",
- &asn_OP_CHOICE,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- CHOICE_constraint
- },
- asn_MBR_TCAP_OPERATION_1,
- 2, /* Elements count */
- &asn_SPC_TCAP_OPERATION_specs_1 /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_P-AbortCause.c b/src/gen/TCAP_P-AbortCause.c
deleted file mode 100644
index 8070eed..0000000
--- a/src/gen/TCAP_P-AbortCause.c
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#include <osmocom/tcap/TCAP_P-AbortCause.h>
-
-int
-TCAP_P_AbortCause_constraint(const 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 <= 127L)) {
- /* 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 NativeInteger,
- * so here we adjust the DEF accordingly.
- */
-static const ber_tlv_tag_t asn_DEF_TCAP_P_AbortCause_tags_1[] = {
- (ASN_TAG_CLASS_APPLICATION | (10 << 2)),
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_P_AbortCause = {
- "P-AbortCause",
- "P-AbortCause",
- &asn_OP_NativeInteger,
- asn_DEF_TCAP_P_AbortCause_tags_1,
- sizeof(asn_DEF_TCAP_P_AbortCause_tags_1)
- /sizeof(asn_DEF_TCAP_P_AbortCause_tags_1[0]) - 1, /* 1 */
- asn_DEF_TCAP_P_AbortCause_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_P_AbortCause_tags_1)
- /sizeof(asn_DEF_TCAP_P_AbortCause_tags_1[0]), /* 2 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- TCAP_P_AbortCause_constraint
- },
- 0, 0, /* Defined elsewhere */
- 0 /* No specifics */
-};
-
diff --git a/src/gen/TCAP_Parameter.c b/src/gen/TCAP_Parameter.c
deleted file mode 100644
index d3b6954..0000000
--- a/src/gen/TCAP_Parameter.c
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#include <osmocom/tcap/TCAP_Parameter.h>
-
-/*
- * This type is implemented using ANY,
- * so here we adjust the DEF accordingly.
- */
-asn_TYPE_descriptor_t asn_DEF_TCAP_Parameter = {
- "Parameter",
- "Parameter",
- &asn_OP_ANY,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- ANY_constraint
- },
- 0, 0, /* No members */
- &asn_SPC_ANY_specs /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_RLRE-apdu.c b/src/gen/TCAP_RLRE-apdu.c
deleted file mode 100644
index 16d32ae..0000000
--- a/src/gen/TCAP_RLRE-apdu.c
+++ /dev/null
@@ -1,151 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#include <osmocom/tcap/TCAP_RLRE-apdu.h>
-
-static asn_TYPE_member_t asn_MBR_TCAP_user_information_3[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (8 << 2)),
- 0,
- &asn_DEF_TCAP_EXTERNAL,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- ""
- },
-};
-static const ber_tlv_tag_t asn_DEF_TCAP_user_information_tags_3[] = {
- (ASN_TAG_CLASS_CONTEXT | (30 << 2)),
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-static asn_SET_OF_specifics_t asn_SPC_TCAP_user_information_specs_3 = {
- sizeof(struct TCAP_RLRE_apdu__user_information),
- offsetof(struct TCAP_RLRE_apdu__user_information, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
-};
-static /* Use -fall-defs-global to expose */
-asn_TYPE_descriptor_t asn_DEF_TCAP_user_information_3 = {
- "user-information",
- "user-information",
- &asn_OP_SEQUENCE_OF,
- asn_DEF_TCAP_user_information_tags_3,
- sizeof(asn_DEF_TCAP_user_information_tags_3)
- /sizeof(asn_DEF_TCAP_user_information_tags_3[0]) - 1, /* 1 */
- asn_DEF_TCAP_user_information_tags_3, /* Same as above */
- sizeof(asn_DEF_TCAP_user_information_tags_3)
- /sizeof(asn_DEF_TCAP_user_information_tags_3[0]), /* 2 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- SEQUENCE_OF_constraint
- },
- asn_MBR_TCAP_user_information_3,
- 1, /* Single element */
- &asn_SPC_TCAP_user_information_specs_3 /* Additional specs */
-};
-
-static asn_TYPE_member_t asn_MBR_TCAP_RLRE_apdu_1[] = {
- { ATF_POINTER, 2, offsetof(struct TCAP_RLRE_apdu, reason),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TCAP_Release_response_reason,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "reason"
- },
- { ATF_POINTER, 1, offsetof(struct TCAP_RLRE_apdu, user_information),
- (ASN_TAG_CLASS_CONTEXT | (30 << 2)),
- 0,
- &asn_DEF_TCAP_user_information_3,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "user-information"
- },
-};
-static const ber_tlv_tag_t asn_DEF_TCAP_RLRE_apdu_tags_1[] = {
- (ASN_TAG_CLASS_APPLICATION | (3 << 2)),
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_RLRE_apdu_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* reason */
- { (ASN_TAG_CLASS_CONTEXT | (30 << 2)), 1, 0, 0 } /* user-information */
-};
-static asn_SEQUENCE_specifics_t asn_SPC_TCAP_RLRE_apdu_specs_1 = {
- sizeof(struct TCAP_RLRE_apdu),
- offsetof(struct TCAP_RLRE_apdu, _asn_ctx),
- asn_MAP_TCAP_RLRE_apdu_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* First extension addition */
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_RLRE_apdu = {
- "RLRE-apdu",
- "RLRE-apdu",
- &asn_OP_SEQUENCE,
- asn_DEF_TCAP_RLRE_apdu_tags_1,
- sizeof(asn_DEF_TCAP_RLRE_apdu_tags_1)
- /sizeof(asn_DEF_TCAP_RLRE_apdu_tags_1[0]) - 1, /* 1 */
- asn_DEF_TCAP_RLRE_apdu_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_RLRE_apdu_tags_1)
- /sizeof(asn_DEF_TCAP_RLRE_apdu_tags_1[0]), /* 2 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- SEQUENCE_constraint
- },
- asn_MBR_TCAP_RLRE_apdu_1,
- 2, /* Elements count */
- &asn_SPC_TCAP_RLRE_apdu_specs_1 /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_RLRQ-apdu.c b/src/gen/TCAP_RLRQ-apdu.c
deleted file mode 100644
index 7144888..0000000
--- a/src/gen/TCAP_RLRQ-apdu.c
+++ /dev/null
@@ -1,151 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#include <osmocom/tcap/TCAP_RLRQ-apdu.h>
-
-static asn_TYPE_member_t asn_MBR_TCAP_user_information_3[] = {
- { ATF_POINTER, 0, 0,
- (ASN_TAG_CLASS_UNIVERSAL | (8 << 2)),
- 0,
- &asn_DEF_TCAP_EXTERNAL,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- ""
- },
-};
-static const ber_tlv_tag_t asn_DEF_TCAP_user_information_tags_3[] = {
- (ASN_TAG_CLASS_CONTEXT | (30 << 2)),
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-static asn_SET_OF_specifics_t asn_SPC_TCAP_user_information_specs_3 = {
- sizeof(struct TCAP_RLRQ_apdu__user_information),
- offsetof(struct TCAP_RLRQ_apdu__user_information, _asn_ctx),
- 0, /* XER encoding is XMLDelimitedItemList */
-};
-static /* Use -fall-defs-global to expose */
-asn_TYPE_descriptor_t asn_DEF_TCAP_user_information_3 = {
- "user-information",
- "user-information",
- &asn_OP_SEQUENCE_OF,
- asn_DEF_TCAP_user_information_tags_3,
- sizeof(asn_DEF_TCAP_user_information_tags_3)
- /sizeof(asn_DEF_TCAP_user_information_tags_3[0]) - 1, /* 1 */
- asn_DEF_TCAP_user_information_tags_3, /* Same as above */
- sizeof(asn_DEF_TCAP_user_information_tags_3)
- /sizeof(asn_DEF_TCAP_user_information_tags_3[0]), /* 2 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- SEQUENCE_OF_constraint
- },
- asn_MBR_TCAP_user_information_3,
- 1, /* Single element */
- &asn_SPC_TCAP_user_information_specs_3 /* Additional specs */
-};
-
-static asn_TYPE_member_t asn_MBR_TCAP_RLRQ_apdu_1[] = {
- { ATF_POINTER, 2, offsetof(struct TCAP_RLRQ_apdu, reason),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TCAP_Release_request_reason,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "reason"
- },
- { ATF_POINTER, 1, offsetof(struct TCAP_RLRQ_apdu, user_information),
- (ASN_TAG_CLASS_CONTEXT | (30 << 2)),
- 0,
- &asn_DEF_TCAP_user_information_3,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "user-information"
- },
-};
-static const ber_tlv_tag_t asn_DEF_TCAP_RLRQ_apdu_tags_1[] = {
- (ASN_TAG_CLASS_APPLICATION | (2 << 2)),
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_RLRQ_apdu_tag2el_1[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* reason */
- { (ASN_TAG_CLASS_CONTEXT | (30 << 2)), 1, 0, 0 } /* user-information */
-};
-static asn_SEQUENCE_specifics_t asn_SPC_TCAP_RLRQ_apdu_specs_1 = {
- sizeof(struct TCAP_RLRQ_apdu),
- offsetof(struct TCAP_RLRQ_apdu, _asn_ctx),
- asn_MAP_TCAP_RLRQ_apdu_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* First extension addition */
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_RLRQ_apdu = {
- "RLRQ-apdu",
- "RLRQ-apdu",
- &asn_OP_SEQUENCE,
- asn_DEF_TCAP_RLRQ_apdu_tags_1,
- sizeof(asn_DEF_TCAP_RLRQ_apdu_tags_1)
- /sizeof(asn_DEF_TCAP_RLRQ_apdu_tags_1[0]) - 1, /* 1 */
- asn_DEF_TCAP_RLRQ_apdu_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_RLRQ_apdu_tags_1)
- /sizeof(asn_DEF_TCAP_RLRQ_apdu_tags_1[0]), /* 2 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- SEQUENCE_constraint
- },
- asn_MBR_TCAP_RLRQ_apdu_1,
- 2, /* Elements count */
- &asn_SPC_TCAP_RLRQ_apdu_specs_1 /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_Reason.c b/src/gen/TCAP_Reason.c
deleted file mode 100644
index bc22506..0000000
--- a/src/gen/TCAP_Reason.c
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#include <osmocom/tcap/TCAP_Reason.h>
-
-asn_TYPE_member_t asn_MBR_TCAP_Reason_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_Reason, choice.p_abortCause),
- (ASN_TAG_CLASS_APPLICATION | (10 << 2)),
- 0,
- &asn_DEF_TCAP_P_AbortCause,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "p-abortCause"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_Reason, choice.u_abortCause),
- (ASN_TAG_CLASS_APPLICATION | (11 << 2)),
- 0,
- &asn_DEF_TCAP_DialoguePortion,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "u-abortCause"
- },
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_Reason_tag2el_1[] = {
- { (ASN_TAG_CLASS_APPLICATION | (10 << 2)), 0, 0, 0 }, /* p-abortCause */
- { (ASN_TAG_CLASS_APPLICATION | (11 << 2)), 1, 0, 0 } /* u-abortCause */
-};
-asn_CHOICE_specifics_t asn_SPC_TCAP_Reason_specs_1 = {
- sizeof(struct TCAP_Reason),
- offsetof(struct TCAP_Reason, _asn_ctx),
- offsetof(struct TCAP_Reason, present),
- sizeof(((struct TCAP_Reason *)0)->present),
- asn_MAP_TCAP_Reason_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0,
- -1 /* Extensions start */
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_Reason = {
- "Reason",
- "Reason",
- &asn_OP_CHOICE,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- CHOICE_constraint
- },
- asn_MBR_TCAP_Reason_1,
- 2, /* Elements count */
- &asn_SPC_TCAP_Reason_specs_1 /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_Reject.c b/src/gen/TCAP_Reject.c
deleted file mode 100644
index fa9c0b1..0000000
--- a/src/gen/TCAP_Reject.c
+++ /dev/null
@@ -1,301 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#include <osmocom/tcap/TCAP_Reject.h>
-
-static asn_TYPE_member_t asn_MBR_TCAP_invokeIDRej_2[] = {
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_Reject__invokeIDRej, choice.derivable),
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
- 0,
- &asn_DEF_TCAP_InvokeIdType,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "derivable"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_Reject__invokeIDRej, choice.not_derivable),
- (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)),
- 0,
- &asn_DEF_NULL,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "not-derivable"
- },
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_invokeIDRej_tag2el_2[] = {
- { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* derivable */
- { (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), 1, 0, 0 } /* not-derivable */
-};
-static asn_CHOICE_specifics_t asn_SPC_TCAP_invokeIDRej_specs_2 = {
- sizeof(struct TCAP_Reject__invokeIDRej),
- offsetof(struct TCAP_Reject__invokeIDRej, _asn_ctx),
- offsetof(struct TCAP_Reject__invokeIDRej, present),
- sizeof(((struct TCAP_Reject__invokeIDRej *)0)->present),
- asn_MAP_TCAP_invokeIDRej_tag2el_2,
- 2, /* Count of tags in the map */
- 0, 0,
- -1 /* Extensions start */
-};
-static /* Use -fall-defs-global to expose */
-asn_TYPE_descriptor_t asn_DEF_TCAP_invokeIDRej_2 = {
- "invokeIDRej",
- "invokeIDRej",
- &asn_OP_CHOICE,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- CHOICE_constraint
- },
- asn_MBR_TCAP_invokeIDRej_2,
- 2, /* Elements count */
- &asn_SPC_TCAP_invokeIDRej_specs_2 /* Additional specs */
-};
-
-static asn_TYPE_member_t asn_MBR_TCAP_problem_5[] = {
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_Reject__problem, choice.generalProblem),
- (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TCAP_GeneralProblem,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "generalProblem"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_Reject__problem, choice.invokeProblem),
- (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TCAP_InvokeProblem,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "invokeProblem"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_Reject__problem, choice.returnResultProblem),
- (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TCAP_ReturnResultProblem,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "returnResultProblem"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_Reject__problem, choice.returnErrorProblem),
- (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
- -1, /* IMPLICIT tag at current level */
- &asn_DEF_TCAP_ReturnErrorProblem,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "returnErrorProblem"
- },
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_problem_tag2el_5[] = {
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* generalProblem */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* invokeProblem */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* returnResultProblem */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* returnErrorProblem */
-};
-static asn_CHOICE_specifics_t asn_SPC_TCAP_problem_specs_5 = {
- sizeof(struct TCAP_Reject__problem),
- offsetof(struct TCAP_Reject__problem, _asn_ctx),
- offsetof(struct TCAP_Reject__problem, present),
- sizeof(((struct TCAP_Reject__problem *)0)->present),
- asn_MAP_TCAP_problem_tag2el_5,
- 4, /* Count of tags in the map */
- 0, 0,
- -1 /* Extensions start */
-};
-static /* Use -fall-defs-global to expose */
-asn_TYPE_descriptor_t asn_DEF_TCAP_problem_5 = {
- "problem",
- "problem",
- &asn_OP_CHOICE,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- CHOICE_constraint
- },
- asn_MBR_TCAP_problem_5,
- 4, /* Elements count */
- &asn_SPC_TCAP_problem_specs_5 /* Additional specs */
-};
-
-asn_TYPE_member_t asn_MBR_TCAP_Reject_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_Reject, invokeIDRej),
- -1 /* Ambiguous tag (CHOICE?) */,
- 0,
- &asn_DEF_TCAP_invokeIDRej_2,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "invokeIDRej"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_Reject, problem),
- -1 /* Ambiguous tag (CHOICE?) */,
- 0,
- &asn_DEF_TCAP_problem_5,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "problem"
- },
-};
-static const ber_tlv_tag_t asn_DEF_TCAP_Reject_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_Reject_tag2el_1[] = {
- { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* derivable */
- { (ASN_TAG_CLASS_UNIVERSAL | (5 << 2)), 0, 0, 0 }, /* not-derivable */
- { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 1, 0, 0 }, /* generalProblem */
- { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* invokeProblem */
- { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 1, 0, 0 }, /* returnResultProblem */
- { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 1, 0, 0 } /* returnErrorProblem */
-};
-asn_SEQUENCE_specifics_t asn_SPC_TCAP_Reject_specs_1 = {
- sizeof(struct TCAP_Reject),
- offsetof(struct TCAP_Reject, _asn_ctx),
- asn_MAP_TCAP_Reject_tag2el_1,
- 6, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* First extension addition */
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_Reject = {
- "Reject",
- "Reject",
- &asn_OP_SEQUENCE,
- asn_DEF_TCAP_Reject_tags_1,
- sizeof(asn_DEF_TCAP_Reject_tags_1)
- /sizeof(asn_DEF_TCAP_Reject_tags_1[0]), /* 1 */
- asn_DEF_TCAP_Reject_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_Reject_tags_1)
- /sizeof(asn_DEF_TCAP_Reject_tags_1[0]), /* 1 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- SEQUENCE_constraint
- },
- asn_MBR_TCAP_Reject_1,
- 2, /* Elements count */
- &asn_SPC_TCAP_Reject_specs_1 /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_Release-request-reason.c b/src/gen/TCAP_Release-request-reason.c
deleted file mode 100644
index 4332bbb..0000000
--- a/src/gen/TCAP_Release-request-reason.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#include <osmocom/tcap/TCAP_Release-request-reason.h>
-
-/*
- * This type is implemented using NativeInteger,
- * so here we adjust the DEF accordingly.
- */
-static const ber_tlv_tag_t asn_DEF_TCAP_Release_request_reason_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_Release_request_reason = {
- "Release-request-reason",
- "Release-request-reason",
- &asn_OP_NativeInteger,
- asn_DEF_TCAP_Release_request_reason_tags_1,
- sizeof(asn_DEF_TCAP_Release_request_reason_tags_1)
- /sizeof(asn_DEF_TCAP_Release_request_reason_tags_1[0]), /* 1 */
- asn_DEF_TCAP_Release_request_reason_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_Release_request_reason_tags_1)
- /sizeof(asn_DEF_TCAP_Release_request_reason_tags_1[0]), /* 1 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- NativeInteger_constraint
- },
- 0, 0, /* Defined elsewhere */
- 0 /* No specifics */
-};
-
diff --git a/src/gen/TCAP_Release-response-reason.c b/src/gen/TCAP_Release-response-reason.c
deleted file mode 100644
index 43b7ff9..0000000
--- a/src/gen/TCAP_Release-response-reason.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "DialoguePDUs"
- */
-
-#include <osmocom/tcap/TCAP_Release-response-reason.h>
-
-/*
- * This type is implemented using NativeInteger,
- * so here we adjust the DEF accordingly.
- */
-static const ber_tlv_tag_t asn_DEF_TCAP_Release_response_reason_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_Release_response_reason = {
- "Release-response-reason",
- "Release-response-reason",
- &asn_OP_NativeInteger,
- asn_DEF_TCAP_Release_response_reason_tags_1,
- sizeof(asn_DEF_TCAP_Release_response_reason_tags_1)
- /sizeof(asn_DEF_TCAP_Release_response_reason_tags_1[0]), /* 1 */
- asn_DEF_TCAP_Release_response_reason_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_Release_response_reason_tags_1)
- /sizeof(asn_DEF_TCAP_Release_response_reason_tags_1[0]), /* 1 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- NativeInteger_constraint
- },
- 0, 0, /* Defined elsewhere */
- 0 /* No specifics */
-};
-
diff --git a/src/gen/TCAP_ReturnError.c b/src/gen/TCAP_ReturnError.c
deleted file mode 100644
index df79b8e..0000000
--- a/src/gen/TCAP_ReturnError.c
+++ /dev/null
@@ -1,112 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#include <osmocom/tcap/TCAP_ReturnError.h>
-
-asn_TYPE_member_t asn_MBR_TCAP_ReturnError_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_ReturnError, invokeID),
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
- 0,
- &asn_DEF_TCAP_InvokeIdType,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "invokeID"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_ReturnError, errorCode),
- -1 /* Ambiguous tag (CHOICE?) */,
- 0,
- &asn_DEF_TCAP_ErrorCode,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "errorCode"
- },
- { ATF_ANY_TYPE | ATF_POINTER, 1, offsetof(struct TCAP_ReturnError, parameter),
- -1 /* Ambiguous tag (ANY?) */,
- 0,
- &asn_DEF_TCAP_Parameter,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "parameter"
- },
-};
-static const ber_tlv_tag_t asn_DEF_TCAP_ReturnError_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_ReturnError_tag2el_1[] = {
- { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* invokeID */
- { (ASN_TAG_CLASS_PRIVATE | (19 << 2)), 1, 0, 0 }, /* nationaler */
- { (ASN_TAG_CLASS_PRIVATE | (20 << 2)), 1, 0, 0 } /* privateer */
-};
-asn_SEQUENCE_specifics_t asn_SPC_TCAP_ReturnError_specs_1 = {
- sizeof(struct TCAP_ReturnError),
- offsetof(struct TCAP_ReturnError, _asn_ctx),
- asn_MAP_TCAP_ReturnError_tag2el_1,
- 3, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* First extension addition */
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_ReturnError = {
- "ReturnError",
- "ReturnError",
- &asn_OP_SEQUENCE,
- asn_DEF_TCAP_ReturnError_tags_1,
- sizeof(asn_DEF_TCAP_ReturnError_tags_1)
- /sizeof(asn_DEF_TCAP_ReturnError_tags_1[0]), /* 1 */
- asn_DEF_TCAP_ReturnError_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_ReturnError_tags_1)
- /sizeof(asn_DEF_TCAP_ReturnError_tags_1[0]), /* 1 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- SEQUENCE_constraint
- },
- asn_MBR_TCAP_ReturnError_1,
- 3, /* Elements count */
- &asn_SPC_TCAP_ReturnError_specs_1 /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_ReturnErrorProblem.c b/src/gen/TCAP_ReturnErrorProblem.c
deleted file mode 100644
index dc7f7ef..0000000
--- a/src/gen/TCAP_ReturnErrorProblem.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#include <osmocom/tcap/TCAP_ReturnErrorProblem.h>
-
-/*
- * This type is implemented using NativeInteger,
- * so here we adjust the DEF accordingly.
- */
-static const ber_tlv_tag_t asn_DEF_TCAP_ReturnErrorProblem_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_ReturnErrorProblem = {
- "ReturnErrorProblem",
- "ReturnErrorProblem",
- &asn_OP_NativeInteger,
- asn_DEF_TCAP_ReturnErrorProblem_tags_1,
- sizeof(asn_DEF_TCAP_ReturnErrorProblem_tags_1)
- /sizeof(asn_DEF_TCAP_ReturnErrorProblem_tags_1[0]), /* 1 */
- asn_DEF_TCAP_ReturnErrorProblem_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_ReturnErrorProblem_tags_1)
- /sizeof(asn_DEF_TCAP_ReturnErrorProblem_tags_1[0]), /* 1 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- NativeInteger_constraint
- },
- 0, 0, /* Defined elsewhere */
- 0 /* No specifics */
-};
-
diff --git a/src/gen/TCAP_ReturnResult.c b/src/gen/TCAP_ReturnResult.c
deleted file mode 100644
index 89803fb..0000000
--- a/src/gen/TCAP_ReturnResult.c
+++ /dev/null
@@ -1,176 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#include <osmocom/tcap/TCAP_ReturnResult.h>
-
-static asn_TYPE_member_t asn_MBR_TCAP_resultretres_3[] = {
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_ReturnResult__resultretres, opCode),
- -1 /* Ambiguous tag (CHOICE?) */,
- 0,
- &asn_DEF_TCAP_OPERATION,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "opCode"
- },
- { ATF_ANY_TYPE | ATF_POINTER, 1, offsetof(struct TCAP_ReturnResult__resultretres, parameter),
- -1 /* Ambiguous tag (ANY?) */,
- 0,
- &asn_DEF_TCAP_Parameter,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "parameter"
- },
-};
-static const ber_tlv_tag_t asn_DEF_TCAP_resultretres_tags_3[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_resultretres_tag2el_3[] = {
- { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* localValue */
- { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, 0, 0 } /* globalValue */
-};
-static asn_SEQUENCE_specifics_t asn_SPC_TCAP_resultretres_specs_3 = {
- sizeof(struct TCAP_ReturnResult__resultretres),
- offsetof(struct TCAP_ReturnResult__resultretres, _asn_ctx),
- asn_MAP_TCAP_resultretres_tag2el_3,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* First extension addition */
-};
-static /* Use -fall-defs-global to expose */
-asn_TYPE_descriptor_t asn_DEF_TCAP_resultretres_3 = {
- "resultretres",
- "resultretres",
- &asn_OP_SEQUENCE,
- asn_DEF_TCAP_resultretres_tags_3,
- sizeof(asn_DEF_TCAP_resultretres_tags_3)
- /sizeof(asn_DEF_TCAP_resultretres_tags_3[0]), /* 1 */
- asn_DEF_TCAP_resultretres_tags_3, /* Same as above */
- sizeof(asn_DEF_TCAP_resultretres_tags_3)
- /sizeof(asn_DEF_TCAP_resultretres_tags_3[0]), /* 1 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- SEQUENCE_constraint
- },
- asn_MBR_TCAP_resultretres_3,
- 2, /* Elements count */
- &asn_SPC_TCAP_resultretres_specs_3 /* Additional specs */
-};
-
-asn_TYPE_member_t asn_MBR_TCAP_ReturnResult_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_ReturnResult, invokeID),
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
- 0,
- &asn_DEF_TCAP_InvokeIdType,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "invokeID"
- },
- { ATF_POINTER, 1, offsetof(struct TCAP_ReturnResult, resultretres),
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
- 0,
- &asn_DEF_TCAP_resultretres_3,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "resultretres"
- },
-};
-static const ber_tlv_tag_t asn_DEF_TCAP_ReturnResult_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_ReturnResult_tag2el_1[] = {
- { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* invokeID */
- { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* resultretres */
-};
-asn_SEQUENCE_specifics_t asn_SPC_TCAP_ReturnResult_specs_1 = {
- sizeof(struct TCAP_ReturnResult),
- offsetof(struct TCAP_ReturnResult, _asn_ctx),
- asn_MAP_TCAP_ReturnResult_tag2el_1,
- 2, /* Count of tags in the map */
- 0, 0, 0, /* Optional elements (not needed) */
- -1, /* First extension addition */
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_ReturnResult = {
- "ReturnResult",
- "ReturnResult",
- &asn_OP_SEQUENCE,
- asn_DEF_TCAP_ReturnResult_tags_1,
- sizeof(asn_DEF_TCAP_ReturnResult_tags_1)
- /sizeof(asn_DEF_TCAP_ReturnResult_tags_1[0]), /* 1 */
- asn_DEF_TCAP_ReturnResult_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_ReturnResult_tags_1)
- /sizeof(asn_DEF_TCAP_ReturnResult_tags_1[0]), /* 1 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- SEQUENCE_constraint
- },
- asn_MBR_TCAP_ReturnResult_1,
- 2, /* Elements count */
- &asn_SPC_TCAP_ReturnResult_specs_1 /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_ReturnResultProblem.c b/src/gen/TCAP_ReturnResultProblem.c
deleted file mode 100644
index 2dd9603..0000000
--- a/src/gen/TCAP_ReturnResultProblem.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "TCAPMessages"
- */
-
-#include <osmocom/tcap/TCAP_ReturnResultProblem.h>
-
-/*
- * This type is implemented using NativeInteger,
- * so here we adjust the DEF accordingly.
- */
-static const ber_tlv_tag_t asn_DEF_TCAP_ReturnResultProblem_tags_1[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_ReturnResultProblem = {
- "ReturnResultProblem",
- "ReturnResultProblem",
- &asn_OP_NativeInteger,
- asn_DEF_TCAP_ReturnResultProblem_tags_1,
- sizeof(asn_DEF_TCAP_ReturnResultProblem_tags_1)
- /sizeof(asn_DEF_TCAP_ReturnResultProblem_tags_1[0]), /* 1 */
- asn_DEF_TCAP_ReturnResultProblem_tags_1, /* Same as above */
- sizeof(asn_DEF_TCAP_ReturnResultProblem_tags_1)
- /sizeof(asn_DEF_TCAP_ReturnResultProblem_tags_1[0]), /* 1 */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- NativeInteger_constraint
- },
- 0, 0, /* Defined elsewhere */
- 0 /* No specifics */
-};
-
diff --git a/src/gen/TCAP_UniDialoguePDU.c b/src/gen/TCAP_UniDialoguePDU.c
deleted file mode 100644
index a79b375..0000000
--- a/src/gen/TCAP_UniDialoguePDU.c
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
- * From ASN.1 module "UnidialoguePDUs"
- */
-
-#include <osmocom/tcap/TCAP_UniDialoguePDU.h>
-
-static asn_TYPE_member_t asn_MBR_TCAP_UniDialoguePDU_1[] = {
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_UniDialoguePDU, choice.unidialoguePDU),
- (ASN_TAG_CLASS_APPLICATION | (0 << 2)),
- 0,
- &asn_DEF_TCAP_AUDT_apdu,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "unidialoguePDU"
- },
-};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_UniDialoguePDU_tag2el_1[] = {
- { (ASN_TAG_CLASS_APPLICATION | (0 << 2)), 0, 0, 0 } /* unidialoguePDU */
-};
-static asn_CHOICE_specifics_t asn_SPC_TCAP_UniDialoguePDU_specs_1 = {
- sizeof(struct TCAP_UniDialoguePDU),
- offsetof(struct TCAP_UniDialoguePDU, _asn_ctx),
- offsetof(struct TCAP_UniDialoguePDU, present),
- sizeof(((struct TCAP_UniDialoguePDU *)0)->present),
- asn_MAP_TCAP_UniDialoguePDU_tag2el_1,
- 1, /* Count of tags in the map */
- 0, 0,
- -1 /* Extensions start */
-};
-asn_TYPE_descriptor_t asn_DEF_TCAP_UniDialoguePDU = {
- "UniDialoguePDU",
- "UniDialoguePDU",
- &asn_OP_CHOICE,
- 0, /* No effective tags (pointer) */
- 0, /* No effective tags (count) */
- 0, /* No tags (pointer) */
- 0, /* No tags (count) */
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- CHOICE_constraint
- },
- asn_MBR_TCAP_UniDialoguePDU_1,
- 1, /* Elements count */
- &asn_SPC_TCAP_UniDialoguePDU_specs_1 /* Additional specs */
-};
-
diff --git a/src/gen/TCAP_Unidirectional.c b/src/gen/TCAP_Unidirectional.c
index 0b7e157..1db3de9 100644
--- a/src/gen/TCAP_Unidirectional.c
+++ b/src/gen/TCAP_Unidirectional.c
@@ -5,62 +5,16 @@

#include <osmocom/tcap/TCAP_Unidirectional.h>

-asn_TYPE_member_t asn_MBR_TCAP_Unidirectional_1[] = {
- { ATF_POINTER, 1, offsetof(struct TCAP_Unidirectional, dialoguePortion),
- (ASN_TAG_CLASS_APPLICATION | (11 << 2)),
- 0,
- &asn_DEF_TCAP_DialoguePortion,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "dialoguePortion"
- },
- { ATF_NOFLAGS, 0, offsetof(struct TCAP_Unidirectional, components),
- (ASN_TAG_CLASS_APPLICATION | (12 << 2)),
- 0,
- &asn_DEF_TCAP_ComponentPortion,
- 0,
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- 0
- },
- 0, 0, /* No default value */
- "components"
- },
-};
static const ber_tlv_tag_t asn_DEF_TCAP_Unidirectional_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
-static const asn_TYPE_tag2member_t asn_MAP_TCAP_Unidirectional_tag2el_1[] = {
- { (ASN_TAG_CLASS_APPLICATION | (11 << 2)), 0, 0, 0 }, /* dialoguePortion */
- { (ASN_TAG_CLASS_APPLICATION | (12 << 2)), 1, 0, 0 } /* components */
-};
asn_SEQUENCE_specifics_t asn_SPC_TCAP_Unidirectional_specs_1 = {
sizeof(struct TCAP_Unidirectional),
offsetof(struct TCAP_Unidirectional, _asn_ctx),
- asn_MAP_TCAP_Unidirectional_tag2el_1,
- 2, /* Count of tags in the map */
+ 0, /* No top level tags */
+ 0, /* No tags in the map */
0, 0, 0, /* Optional elements (not needed) */
- -1, /* First extension addition */
+ 0, /* First extension addition */
};
asn_TYPE_descriptor_t asn_DEF_TCAP_Unidirectional = {
"Unidirectional",
@@ -84,8 +38,7 @@
#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
SEQUENCE_constraint
},
- asn_MBR_TCAP_Unidirectional_1,
- 2, /* Elements count */
+ 0, 0, /* No members */
&asn_SPC_TCAP_Unidirectional_specs_1 /* Additional specs */
};

diff --git a/src/skel/NULL.c b/src/skel/NULL.c
deleted file mode 100644
index bcb1ec2..0000000
--- a/src/skel/NULL.c
+++ /dev/null
@@ -1,131 +0,0 @@
-/*-
- * Copyright (c) 2003, 2005 Lev Walkin <vlm@lionet.info>. All rights reserved.
- * Redistribution and modifications are permitted subject to BSD license.
- */
-#include <osmocom/tcap/asn_internal.h>
-#include <osmocom/tcap/NULL.h>
-
-/*
- * NULL basic type description.
- */
-static const ber_tlv_tag_t asn_DEF_NULL_tags[] = {
- (ASN_TAG_CLASS_UNIVERSAL | (5 << 2))
-};
-asn_TYPE_operation_t asn_OP_NULL = {
- NULL_free,
-#if !defined(ASN_DISABLE_PRINT_SUPPORT)
- NULL_print,
-#else
- 0,
-#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */
- NULL_compare,
- NULL_copy,
-#if !defined(ASN_DISABLE_BER_SUPPORT)
- NULL_decode_ber,
- NULL_encode_der, /* Special handling of DER encoding */
-#else
- 0,
- 0,
-#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */
-#if !defined(ASN_DISABLE_XER_SUPPORT)
- NULL_decode_xer,
- NULL_encode_xer,
-#else
- 0,
- 0,
-#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- NULL_decode_jer,
- NULL_encode_jer,
-#else
- 0,
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- NULL_decode_oer,
- NULL_encode_oer,
-#else
- 0,
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT)
- NULL_decode_uper, /* Unaligned PER decoder */
- NULL_encode_uper, /* Unaligned PER encoder */
-#else
- 0,
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */
-#if !defined(ASN_DISABLE_APER_SUPPORT)
- NULL_decode_aper, /* Aligned PER decoder */
- NULL_encode_aper, /* Aligned PER encoder */
-#else
- 0,
- 0,
-#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_RFILL_SUPPORT)
- NULL_random_fill,
-#else
- 0,
-#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */
- 0 /* Use generic outmost tag fetcher */
-};
-asn_TYPE_descriptor_t asn_DEF_NULL = {
- "NULL",
- "NULL",
- &asn_OP_NULL,
- asn_DEF_NULL_tags,
- sizeof(asn_DEF_NULL_tags) / sizeof(asn_DEF_NULL_tags[0]),
- asn_DEF_NULL_tags, /* Same as above */
- sizeof(asn_DEF_NULL_tags) / sizeof(asn_DEF_NULL_tags[0]),
- {
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
- asn_generic_no_constraint
- },
- 0, 0, /* No members */
- 0 /* No specifics */
-};
-
-void
-NULL_free(const asn_TYPE_descriptor_t *td, void *ptr,
- enum asn_struct_free_method method) {
- if(td && ptr) {
- switch(method) {
- case ASFM_FREE_EVERYTHING:
- FREEMEM(ptr);
- break;
- case ASFM_FREE_UNDERLYING:
- break;
- case ASFM_FREE_UNDERLYING_AND_RESET:
- memset(ptr, 0, sizeof(NULL_t));
- break;
- }
- }
-}
-
-int
-NULL_compare(const asn_TYPE_descriptor_t *td, const void *a, const void *b) {
- (void)td;
- (void)a;
- (void)b;
- return 0;
-}
-
-int
-NULL_copy(const asn_TYPE_descriptor_t *td, void **a, const void *b) {
- (void)td;
-
- if(b && !*a) {
- *a = CALLOC(1, sizeof(NULL_t));
- if (!*a) return -1;
- }
-
- return 0;
-}
diff --git a/src/skel/NULL_ber.c b/src/skel/NULL_ber.c
deleted file mode 100644
index 00fd600..0000000
--- a/src/skel/NULL_ber.c
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Copyright (c) 2017 Lev Walkin <vlm@lionet.info>.
- * All rights reserved.
- * Redistribution and modifications are permitted subject to BSD license.
- */
-#include <osmocom/tcap/asn_internal.h>
-#include <osmocom/tcap/NULL.h>
-
-/*
- * Decode NULL type.
- */
-asn_dec_rval_t
-NULL_decode_ber(const asn_codec_ctx_t *opt_codec_ctx,
- const asn_TYPE_descriptor_t *td, void **bool_value,
- const void *buf_ptr, size_t size, int tag_mode) {
- NULL_t *st = (NULL_t *)*bool_value;
- asn_dec_rval_t rval;
- ber_tlv_len_t length;
-
- if(st == NULL) {
- st = (NULL_t *)(*bool_value = CALLOC(1, sizeof(*st)));
- if(st == NULL) {
- rval.code = RC_FAIL;
- rval.consumed = 0;
- return rval;
- }
- }
-
- ASN_DEBUG("Decoding %s as NULL (tm=%d)", td->name, tag_mode);
-
- /*
- * Check tags.
- */
- rval = ber_check_tags(opt_codec_ctx, td, 0, buf_ptr, size, tag_mode, 0,
- &length, 0);
- if(rval.code != RC_OK) {
- return rval;
- }
-
- // X.690-201508, #8.8.2, length shall be zero.
- if(length != 0) {
- ASN_DEBUG("Decoding %s as NULL failed: too much data", td->name);
- rval.code = RC_FAIL;
- rval.consumed = 0;
- return rval;
- }
-
- return rval;
-}
-
-asn_enc_rval_t
-NULL_encode_der(const asn_TYPE_descriptor_t *td, const void *ptr, int tag_mode,
- ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb, void *app_key) {
- asn_enc_rval_t erval = {0,0,0};
-
- erval.encoded = der_write_tags(td, 0, tag_mode, 0, tag, cb, app_key);
- if(erval.encoded == -1) {
- erval.failed_type = td;
- erval.structure_ptr = ptr;
- }
-
- ASN__ENCODED_OK(erval);
-}
diff --git a/src/skel/NULL_print.c b/src/skel/NULL_print.c
deleted file mode 100644
index 9b91f15..0000000
--- a/src/skel/NULL_print.c
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Copyright (c) 2017 Lev Walkin <vlm@lionet.info>.
- * All rights reserved.
- * Redistribution and modifications are permitted subject to BSD license.
- */
-#include <osmocom/tcap/asn_internal.h>
-#include <osmocom/tcap/NULL.h>
-
-int
-NULL_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
- asn_app_consume_bytes_f *cb, void *app_key) {
- (void)td; /* Unused argument */
- (void)ilevel; /* Unused argument */
-
- if(sptr) {
- return (cb("<present>", 9, app_key) < 0) ? -1 : 0;
- } else {
- return (cb("<absent>", 8, app_key) < 0) ? -1 : 0;
- }
-}
diff --git a/src/skel/NULL_rfill.c b/src/skel/NULL_rfill.c
deleted file mode 100644
index bbb77d5..0000000
--- a/src/skel/NULL_rfill.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2017 Lev Walkin <vlm@lionet.info>.
- * All rights reserved.
- * Redistribution and modifications are permitted subject to BSD license.
- */
-#include <osmocom/tcap/asn_internal.h>
-#include <osmocom/tcap/NULL.h>
-
-asn_random_fill_result_t
-NULL_random_fill(const asn_TYPE_descriptor_t *td, void **sptr,
- const asn_encoding_constraints_t *constr,
- size_t max_length) {
- asn_random_fill_result_t result_ok = {ARFILL_OK, 1};
- asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0};
- asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0};
- NULL_t *st = *sptr;
-
- (void)td;
- (void)constr;
-
- if(max_length == 0) return result_skipped;
-
- if(st == NULL) {
- st = (NULL_t *)(*sptr = CALLOC(1, sizeof(*st)));
- if(st == NULL) {
- return result_failed;
- }
- }
-
- return result_ok;
-}
diff --git a/src/skel/asn_SEQUENCE_OF.c b/src/skel/asn_SEQUENCE_OF.c
deleted file mode 100644
index f51c99c..0000000
--- a/src/skel/asn_SEQUENCE_OF.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/*-
- * Copyright (c) 2003, 2004 Lev Walkin <vlm@lionet.info>. All rights reserved.
- * Redistribution and modifications are permitted subject to BSD license.
- */
-#include <osmocom/tcap/asn_internal.h>
-#include <osmocom/tcap/asn_SEQUENCE_OF.h>
-
-typedef A_SEQUENCE_OF(void) asn_sequence;
-
-void
-asn_sequence_del(void *asn_sequence_of_x, int number, int _do_free) {
- asn_sequence *as = (asn_sequence *)asn_sequence_of_x;
-
- if(as) {
- void *ptr;
- int n;
-
- if(number < 0 || number >= as->count)
- return; /* Nothing to delete */
-
- if(_do_free && as->free) {
- ptr = as->array[number];
- } else {
- ptr = 0;
- }
-
- /*
- * Shift all elements to the left to hide the gap.
- */
- --as->count;
- for(n = number; n < as->count; n++)
- as->array[n] = as->array[n+1];
-
- /*
- * Invoke the third-party function only when the state
- * of the parent structure is consistent.
- */
- if(ptr) as->free(ptr);
- }
-}
-
diff --git a/src/skel/asn_SET_OF.c b/src/skel/asn_SET_OF.c
deleted file mode 100644
index 1f4691d..0000000
--- a/src/skel/asn_SET_OF.c
+++ /dev/null
@@ -1,88 +0,0 @@
-/*-
- * Copyright (c) 2003, 2004 Lev Walkin <vlm@lionet.info>. All rights reserved.
- * Redistribution and modifications are permitted subject to BSD license.
- */
-#include <osmocom/tcap/asn_internal.h>
-#include <osmocom/tcap/asn_SET_OF.h>
-#include <errno.h>
-
-/*
- * Add another element into the set.
- */
-int
-asn_set_add(void *asn_set_of_x, void *ptr) {
- asn_anonymous_set_ *as = _A_SET_FROM_VOID(asn_set_of_x);
-
- if(as == 0 || ptr == 0) {
- errno = EINVAL; /* Invalid arguments */
- return -1;
- }
-
- /*
- * Make sure there's enough space to insert an element.
- */
- if(as->count == as->size) {
- int _newsize = as->size ? (as->size << 1) : 4;
- void *_new_arr;
- _new_arr = REALLOC(as->array, _newsize * sizeof(as->array[0]));
- if(_new_arr) {
- as->array = (void **)_new_arr;
- as->size = _newsize;
- } else {
- /* ENOMEM */
- return -1;
- }
- }
-
- as->array[as->count++] = ptr;
-
- return 0;
-}
-
-void
-asn_set_del(void *asn_set_of_x, int number, int _do_free) {
- asn_anonymous_set_ *as = _A_SET_FROM_VOID(asn_set_of_x);
-
- if(as) {
- void *ptr;
- if(number < 0 || number >= as->count)
- return;
-
- if(_do_free && as->free) {
- ptr = as->array[number];
- } else {
- ptr = 0;
- }
-
- as->array[number] = as->array[--as->count];
-
- /*
- * Invoke the third-party function only when the state
- * of the parent structure is consistent.
- */
- if(ptr) as->free(ptr);
- }
-}
-
-/*
- * Free the contents of the set, do not free the set itself.
- */
-void
-asn_set_empty(void *asn_set_of_x) {
- asn_anonymous_set_ *as = _A_SET_FROM_VOID(asn_set_of_x);
-
- if(as) {
- if(as->array) {
- if(as->free) {
- while(as->count--)
- as->free(as->array[as->count]);
- }
- FREEMEM(as->array);
- as->array = 0;
- }
- as->count = 0;
- as->size = 0;
- }
-
-}
-
diff --git a/src/skel/constr_SEQUENCE_OF.c b/src/skel/constr_SEQUENCE_OF.c
deleted file mode 100644
index dd07b4d..0000000
--- a/src/skel/constr_SEQUENCE_OF.c
+++ /dev/null
@@ -1,95 +0,0 @@
-/*-
- * Copyright (c) 2003, 2004, 2006 Lev Walkin <vlm@lionet.info>.
- * All rights reserved.
- * Redistribution and modifications are permitted subject to BSD license.
- */
-#include <osmocom/tcap/asn_internal.h>
-#include <osmocom/tcap/constr_SEQUENCE_OF.h>
-#include <osmocom/tcap/asn_SEQUENCE_OF.h>
-
-asn_TYPE_operation_t asn_OP_SEQUENCE_OF = {
- SEQUENCE_OF_free,
-#if !defined(ASN_DISABLE_PRINT_SUPPORT)
- SEQUENCE_OF_print,
-#else
- 0,
-#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */
- SEQUENCE_OF_compare,
- SEQUENCE_OF_copy,
-#if !defined(ASN_DISABLE_BER_SUPPORT)
- SEQUENCE_OF_decode_ber,
- SEQUENCE_OF_encode_der,
-#else
- 0,
- 0,
-#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */
-#if !defined(ASN_DISABLE_XER_SUPPORT)
- SEQUENCE_OF_decode_xer,
- SEQUENCE_OF_encode_xer,
-#else
- 0,
- 0,
-#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- SEQUENCE_OF_decode_jer,
- SEQUENCE_OF_encode_jer,
-#else
- 0,
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- SEQUENCE_OF_decode_oer, /* Same as SET OF decoder. */
- SEQUENCE_OF_encode_oer, /* Same as SET OF encoder */
-#else
- 0,
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT)
- SEQUENCE_OF_decode_uper, /* Same as SET OF decoder */
- SEQUENCE_OF_encode_uper,
-#else
- 0,
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */
-#if !defined(ASN_DISABLE_APER_SUPPORT)
- SEQUENCE_OF_decode_aper,
- SEQUENCE_OF_encode_aper,
-#else
- 0,
- 0,
-#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_RFILL_SUPPORT)
- SEQUENCE_OF_random_fill,
-#else
- 0,
-#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */
- 0 /* Use generic outmost tag fetcher */
-};
-
-int
-SEQUENCE_OF_compare(const asn_TYPE_descriptor_t *td, const void *aptr,
- const void *bptr) {
- const asn_anonymous_sequence_ *a = _A_CSEQUENCE_FROM_VOID(aptr);
- const asn_anonymous_sequence_ *b = _A_CSEQUENCE_FROM_VOID(bptr);
- ssize_t idx;
-
- if(a && b) {
- ssize_t common_length = (a->count < b->count ? a->count : b->count);
- for(idx = 0; idx < common_length; idx++) {
- int ret = td->elements->type->op->compare_struct(
- td->elements->type, a->array[idx], b->array[idx]);
- if(ret) return ret;
- }
-
- if(idx < b->count) /* more elements in b */
- return -1; /* a is shorter, so put it first */
- if(idx < a->count) return 1;
-
- } else if(!a) {
- return -1;
- } else if(!b) {
- return 1;
- }
-
- return 0;
-}
diff --git a/src/skel/constr_SEQUENCE_OF_ber.c b/src/skel/constr_SEQUENCE_OF_ber.c
deleted file mode 100644
index 27b086f..0000000
--- a/src/skel/constr_SEQUENCE_OF_ber.c
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * Copyright (c) 2017 Lev Walkin <vlm@lionet.info>.
- * All rights reserved.
- * Redistribution and modifications are permitted subject to BSD license.
- */
-#include <osmocom/tcap/asn_internal.h>
-#include <osmocom/tcap/constr_SEQUENCE_OF.h>
-#include <osmocom/tcap/asn_SEQUENCE_OF.h>
-
-/*
- * The DER encoder of the SEQUENCE OF type.
- */
-asn_enc_rval_t
-SEQUENCE_OF_encode_der(const asn_TYPE_descriptor_t *td, const void *ptr,
- int tag_mode, ber_tlv_tag_t tag,
- asn_app_consume_bytes_f *cb, void *app_key) {
- asn_TYPE_member_t *elm = td->elements;
- const asn_anonymous_sequence_ *list = _A_CSEQUENCE_FROM_VOID(ptr);
- size_t computed_size = 0;
- ssize_t encoding_size = 0;
- asn_enc_rval_t erval = {0,0,0};
- int edx;
-
- ASN_DEBUG("Estimating size of SEQUENCE OF %s", td->name);
-
- /*
- * Gather the length of the underlying members sequence.
- */
- for(edx = 0; edx < list->count; edx++) {
- void *memb_ptr = list->array[edx];
- if(!memb_ptr) continue;
- erval = elm->type->op->der_encoder(elm->type, memb_ptr,
- elm->tag_mode, elm->tag,
- 0, 0);
- if(erval.encoded == -1)
- return erval;
- computed_size += erval.encoded;
- }
-
- /*
- * Encode the TLV for the sequence itself.
- */
- encoding_size = der_write_tags(td, computed_size, tag_mode, 1, tag,
- cb, app_key);
- if(encoding_size == -1) {
- erval.encoded = -1;
- erval.failed_type = td;
- erval.structure_ptr = ptr;
- return erval;
- }
-
- computed_size += encoding_size;
- if(!cb) {
- erval.encoded = computed_size;
- ASN__ENCODED_OK(erval);
- }
-
- ASN_DEBUG("Encoding members of SEQUENCE OF %s", td->name);
-
- /*
- * Encode all members.
- */
- for(edx = 0; edx < list->count; edx++) {
- void *memb_ptr = list->array[edx];
- if(!memb_ptr) continue;
- erval = elm->type->op->der_encoder(elm->type, memb_ptr,
- elm->tag_mode, elm->tag,
- cb, app_key);
- if(erval.encoded == -1)
- return erval;
- encoding_size += erval.encoded;
- }
-
- if(computed_size != (size_t)encoding_size) {
- /*
- * Encoded size is not equal to the computed size.
- */
- erval.encoded = -1;
- erval.failed_type = td;
- erval.structure_ptr = ptr;
- } else {
- erval.encoded = computed_size;
- erval.structure_ptr = 0;
- erval.failed_type = 0;
- }
-
- return erval;
-}
diff --git a/src/skel/constr_SET_OF.c b/src/skel/constr_SET_OF.c
deleted file mode 100644
index e855ac3..0000000
--- a/src/skel/constr_SET_OF.c
+++ /dev/null
@@ -1,429 +0,0 @@
-/*
- * Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>.
- * All rights reserved.
- * Redistribution and modifications are permitted subject to BSD license.
- */
-#include <osmocom/tcap/asn_internal.h>
-#include <osmocom/tcap/constr_SET_OF.h>
-
-asn_TYPE_operation_t asn_OP_SET_OF = {
- SET_OF_free,
-#if !defined(ASN_DISABLE_PRINT_SUPPORT)
- SET_OF_print,
-#else
- 0,
-#endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */
- SET_OF_compare,
- SET_OF_copy,
-#if !defined(ASN_DISABLE_BER_SUPPORT)
- SET_OF_decode_ber,
- SET_OF_encode_der,
-#else
- 0,
- 0,
-#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */
-#if !defined(ASN_DISABLE_XER_SUPPORT)
- SET_OF_decode_xer,
- SET_OF_encode_xer,
-#else
- 0,
- 0,
-#endif /* !defined(ASN_DISABLE_XER_SUPPORT) */
-#if !defined(ASN_DISABLE_JER_SUPPORT)
- SET_OF_decode_jer,
- SET_OF_encode_jer,
-#else
- 0,
- 0,
-#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
-#if !defined(ASN_DISABLE_OER_SUPPORT)
- SET_OF_decode_oer,
- SET_OF_encode_oer,
-#else
- 0,
- 0,
-#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT)
- SET_OF_decode_uper,
- SET_OF_encode_uper,
-#else
- 0,
- 0,
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */
-#if !defined(ASN_DISABLE_APER_SUPPORT)
- SET_OF_decode_aper,
- SET_OF_encode_aper,
-#else
- 0,
- 0,
-#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */
-#if !defined(ASN_DISABLE_RFILL_SUPPORT)
- SET_OF_random_fill,
-#else
- 0,
-#endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */
- 0 /* Use generic outmost tag fetcher */
-};
-
-/* Append bytes to the above structure */
-static int _el_addbytes(const void *buffer, size_t size, void *el_buf_ptr) {
- struct _el_buffer *el_buf = (struct _el_buffer *)el_buf_ptr;
-
- if(el_buf->length + size > el_buf->allocated_size) {
- size_t new_size = el_buf->allocated_size ? el_buf->allocated_size : 8;
- void *p;
-
- do {
- new_size <<= 2;
- } while(el_buf->length + size > new_size);
-
- p = REALLOC(el_buf->buf, new_size);
- if(p) {
- el_buf->buf = p;
- el_buf->allocated_size = new_size;
- } else {
- return -1;
- }
- }
-
- memcpy(el_buf->buf + el_buf->length, buffer, size);
-
- el_buf->length += size;
- return 0;
-}
-
-static void assert_unused_bits(const struct _el_buffer* p) {
- if(p->length) {
- assert((p->buf[p->length-1] & ~(0xff << p->bits_unused)) == 0);
- } else {
- assert(p->bits_unused == 0);
- }
-}
-
-static int _el_buf_cmp(const void *ap, const void *bp) {
- const struct _el_buffer *a = (const struct _el_buffer *)ap;
- const struct _el_buffer *b = (const struct _el_buffer *)bp;
- size_t common_len;
- int ret = 0;
-
- if(a->length < b->length)
- common_len = a->length;
- else
- common_len = b->length;
-
- if (a->buf && b->buf) {
- ret = memcmp(a->buf, b->buf, common_len);
- }
- if(ret == 0) {
- if(a->length < b->length)
- ret = -1;
- else if(a->length > b->length)
- ret = 1;
- /* Ignore unused bits. */
- assert_unused_bits(a);
- assert_unused_bits(b);
- }
-
- return ret;
-}
-
-void
-SET_OF__encode_sorted_free(struct _el_buffer *el_buf, size_t count) {
- size_t i;
-
- for(i = 0; i < count; i++) {
- FREEMEM(el_buf[i].buf);
- }
-
- FREEMEM(el_buf);
-}
-
-struct _el_buffer *
-SET_OF__encode_sorted(const asn_TYPE_member_t *elm,
- const asn_anonymous_set_ *list,
- enum SET_OF__encode_method method) {
- struct _el_buffer *encoded_els;
- int edx;
-
- encoded_els =
- (struct _el_buffer *)CALLOC(list->count, sizeof(encoded_els[0]));
- if(encoded_els == NULL) {
- return NULL;
- }
-
- /*
- * Encode all members.
- */
- for(edx = 0; edx < list->count; edx++) {
- const void *memb_ptr = list->array[edx];
- struct _el_buffer *encoding_el = &encoded_els[edx];
- asn_enc_rval_t erval = {0,0,0};
-
- if(!memb_ptr) break;
-
- /*
- * Encode the member into the prepared space.
- */
- switch(method) {
-#if !defined(ASN_DISABLE_BER_SUPPORT)
- case SOES_DER:
- erval = elm->type->op->der_encoder(elm->type, memb_ptr, elm->tag_mode, elm->tag,
- _el_addbytes, encoding_el);
- break;
-#endif /* !defined(ASN_DISABLE_BER_SUPPORT) */
-#if !defined(ASN_DISABLE_UPER_SUPPORT)
- case SOES_CUPER:
- erval = uper_encode(elm->type,
- elm->encoding_constraints.per_constraints,
- memb_ptr, _el_addbytes, encoding_el);
- if(erval.encoded != -1) {
- size_t extra_bits = erval.encoded % 8;
- assert(encoding_el->length == (size_t)(erval.encoded + 7) / 8);
- encoding_el->bits_unused = (8 - extra_bits) & 0x7;
- }
- break;
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */
-#if !defined(ASN_DISABLE_APER_SUPPORT)
- case SOES_CAPER:
- erval = aper_encode(elm->type,
- elm->encoding_constraints.per_constraints,
- memb_ptr, _el_addbytes, encoding_el);
- if(erval.encoded != -1) {
- size_t extra_bits = erval.encoded % 8;
- assert(encoding_el->length == (size_t)(erval.encoded + 7) / 8);
- encoding_el->bits_unused = (8 - extra_bits) & 0x7;
- }
- break;
-#endif /* !defined(ASN_DISABLE_APER_SUPPORT) */
-
- default:
- assert(!"Unreachable");
- break;
- }
- if(erval.encoded < 0) break;
- }
-
- if(edx == list->count) {
- /*
- * Sort the encoded elements according to their encoding.
- */
- qsort(encoded_els, list->count, sizeof(encoded_els[0]), _el_buf_cmp);
-
- return encoded_els;
- } else {
- SET_OF__encode_sorted_free(encoded_els, edx);
- return NULL;
- }
-}
-
-void
-SET_OF_free(const asn_TYPE_descriptor_t *td, void *ptr,
- enum asn_struct_free_method method) {
- if(td && ptr) {
- const asn_SET_OF_specifics_t *specs;
- asn_TYPE_member_t *elm = td->elements;
- asn_anonymous_set_ *list = _A_SET_FROM_VOID(ptr);
- asn_struct_ctx_t *ctx; /* Decoder context */
- int i;
-
- /*
- * Could not use set_of_empty() because of (*free)
- * incompatibility.
- */
- for(i = 0; i < list->count; i++) {
- void *memb_ptr = list->array[i];
- if(memb_ptr)
- ASN_STRUCT_FREE(*elm->type, memb_ptr);
- }
- list->count = 0; /* No meaningful elements left */
-
- asn_set_empty(list); /* Remove (list->array) */
-
- specs = (const asn_SET_OF_specifics_t *)td->specifics;
- ctx = (asn_struct_ctx_t *)((char *)ptr + specs->ctx_offset);
- if(ctx->ptr) {
- ASN_STRUCT_FREE(*elm->type, ctx->ptr);
- ctx->ptr = 0;
- }
-
- switch(method) {
- case ASFM_FREE_EVERYTHING:
- FREEMEM(ptr);
- break;
- case ASFM_FREE_UNDERLYING:
- break;
- case ASFM_FREE_UNDERLYING_AND_RESET:
- memset(ptr, 0, specs->struct_size);
- break;
- }
- }
-}
-
-int
-SET_OF_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
- asn_app_constraint_failed_f *ctfailcb, void *app_key) {
- const asn_TYPE_member_t *elm = td->elements;
- asn_constr_check_f *constr;
- const asn_anonymous_set_ *list = _A_CSET_FROM_VOID(sptr);
- int i;
-
- if(!sptr) {
- ASN__CTFAIL(app_key, td, sptr,
- "%s: value not given (%s:%d)",
- td->name, __FILE__, __LINE__);
- return -1;
- }
-
- constr = elm->encoding_constraints.general_constraints;
- if(!constr) constr = elm->type->encoding_constraints.general_constraints;
-
- /*
- * Iterate over the members of an array.
- * Validate each in turn, until one fails.
- */
- for(i = 0; i < list->count; i++) {
- const void *memb_ptr = list->array[i];
- int ret;
-
- if(!memb_ptr) continue;
-
- ret = constr(elm->type, memb_ptr, ctfailcb, app_key);
- if(ret) return ret;
- }
-
- return 0;
-}
-
-struct comparable_ptr {
- const asn_TYPE_descriptor_t *td;
- const void *sptr;
-};
-
-static int
-SET_OF__compare_cb(const void *aptr, const void *bptr) {
- const struct comparable_ptr *a = aptr;
- const struct comparable_ptr *b = bptr;
- assert(a->td == b->td);
- return a->td->op->compare_struct(a->td, a->sptr, b->sptr);
-}
-
-int
-SET_OF_compare(const asn_TYPE_descriptor_t *td, const void *aptr,
- const void *bptr) {
- const asn_anonymous_set_ *a = _A_CSET_FROM_VOID(aptr);
- const asn_anonymous_set_ *b = _A_CSET_FROM_VOID(bptr);
-
- if(a && b) {
- struct comparable_ptr *asorted;
- struct comparable_ptr *bsorted;
- ssize_t common_length;
- ssize_t idx;
-
- if(a->count == 0) {
- if(b->count) return -1;
- return 0;
- } else if(b->count == 0) {
- return 1;
- }
-
- asorted = MALLOC(a->count * sizeof(asorted[0]));
- bsorted = MALLOC(b->count * sizeof(bsorted[0]));
- if(!asorted || !bsorted) {
- FREEMEM(asorted);
- FREEMEM(bsorted);
- return -1;
- }
-
- for(idx = 0; idx < a->count; idx++) {
- asorted[idx].td = td->elements->type;
- asorted[idx].sptr = a->array[idx];
- }
-
- for(idx = 0; idx < b->count; idx++) {
- bsorted[idx].td = td->elements->type;
- bsorted[idx].sptr = b->array[idx];
- }
-
- qsort(asorted, a->count, sizeof(asorted[0]), SET_OF__compare_cb);
- qsort(bsorted, b->count, sizeof(bsorted[0]), SET_OF__compare_cb);
-
- common_length = (a->count < b->count ? a->count : b->count);
- for(idx = 0; idx < common_length; idx++) {
- int ret = td->elements->type->op->compare_struct(
- td->elements->type, asorted[idx].sptr, bsorted[idx].sptr);
- if(ret) {
- FREEMEM(asorted);
- FREEMEM(bsorted);
- return ret;
- }
- }
-
- FREEMEM(asorted);
- FREEMEM(bsorted);
-
- if(idx < b->count) /* more elements in b */
- return -1; /* a is shorter, so put it first */
- if(idx < a->count) return 1;
- } else if(!a) {
- return -1;
- } else if(!b) {
- return 1;
- }
-
- return 0;
-}
-
-int
-SET_OF_copy(const asn_TYPE_descriptor_t *td, void **aptr,
- const void *bptr) {
- if(!td) return -1;
-
- const asn_SET_OF_specifics_t *specs =
- (const asn_SET_OF_specifics_t *)td->specifics;
- void *st = *aptr;
-
- if(!bptr) {
- if(*aptr) {
- asn_set_empty(_A_SET_FROM_VOID(*aptr));
- *aptr = 0;
- }
- return 0;
- }
-
- if(st == 0) {
- st = *aptr = CALLOC(1, specs->struct_size);
- if(st == 0) return -1;
- }
-
- asn_anonymous_set_ *a = _A_SET_FROM_VOID(*aptr);
- const asn_anonymous_set_ *b = _A_CSET_FROM_VOID(bptr);
-
- if(b->size) {
- void *_new_arr;
- _new_arr = REALLOC(a->array, b->size * sizeof(b->array[0]));
- if(_new_arr) {
- a->array = (void **)_new_arr;
- a->size = b->size;
- } else {
- return -1;
- }
- a->count = b->count;
-
- for(int i = 0; i < b->count; i++) {
- void *bmemb = b->array[i];
- if(bmemb) {
- void *amemb = 0;
- int ret;
- ret = td->elements->type->op->copy_struct(
- td->elements->type,
- &amemb, bmemb);
- if(ret != 0) return ret;
- a->array[i] = amemb;
- } else {
- a->array[i] = 0;
- }
- }
- }
-
- return 0;
-}
diff --git a/src/skel/constr_SET_OF_ber.c b/src/skel/constr_SET_OF_ber.c
deleted file mode 100644
index 65e9c0e..0000000
--- a/src/skel/constr_SET_OF_ber.c
+++ /dev/null
@@ -1,355 +0,0 @@
-/*
- * Copyright (c) 2017 Lev Walkin <vlm@lionet.info>.
- * All rights reserved.
- * Redistribution and modifications are permitted subject to BSD license.
- */
-#include <osmocom/tcap/asn_internal.h>
-#include <osmocom/tcap/constr_SET_OF.h>
-#include <osmocom/tcap/asn_SET_OF.h>
-
-/*
- * Number of bytes left for this structure.
- * (ctx->left) indicates the number of bytes _transferred_ for the structure.
- * (size) contains the number of bytes in the buffer passed.
- */
-#define LEFT ((size<(size_t)ctx->left)?size:(size_t)ctx->left)
-
-/*
- * If the subprocessor function returns with an indication that it wants
- * more data, it may well be a fatal decoding problem, because the
- * size is constrained by the <TLV>'s L, even if the buffer size allows
- * reading more data.
- * For example, consider the buffer containing the following TLVs:
- * <T:5><L:1><V> <T:6>...
- * The TLV length clearly indicates that one byte is expected in V, but
- * if the V processor returns with "want more data" even if the buffer
- * contains way more data than the V processor have seen.
- */
-#define SIZE_VIOLATION (ctx->left >= 0 && (size_t)ctx->left <= size)
-
-/*
- * This macro "eats" the part of the buffer which is definitely "consumed",
- * i.e. was correctly converted into local representation or rightfully skipped.
- */
-#undef ADVANCE
-#define ADVANCE(num_bytes) \
- do { \
- size_t num = num_bytes; \
- ptr = ((const char *)ptr) + num; \
- size -= num; \
- if(ctx->left >= 0) \
- ctx->left -= num; \
- consumed_myself += num; \
- } while(0)
-
-/*
- * Switch to the next phase of parsing.
- */
-#undef NEXT_PHASE
-#define NEXT_PHASE(ctx) \
- do { \
- ctx->phase++; \
- ctx->step = 0; \
- } while(0)
-#undef PHASE_OUT
-#define PHASE_OUT(ctx) \
- do { \
- ctx->phase = 10; \
- } while(0)
-
-/*
- * Return a standardized complex structure.
- */
-#undef RETURN
-#define RETURN(_code) \
- do { \
- rval.code = _code; \
- rval.consumed = consumed_myself; \
- return rval; \
- } while(0)
-
-/*
- * The decoder of the SET OF type.
- */
-asn_dec_rval_t
-SET_OF_decode_ber(const asn_codec_ctx_t *opt_codec_ctx,
- const asn_TYPE_descriptor_t *td, void **struct_ptr,
- const void *ptr, size_t size, int tag_mode) {
- /*
- * Bring closer parts of structure description.
- */
- const asn_SET_OF_specifics_t *specs = (const asn_SET_OF_specifics_t *)td->specifics;
- const asn_TYPE_member_t *elm = td->elements; /* Single one */
-
- /*
- * Parts of the structure being constructed.
- */
- void *st = *struct_ptr; /* Target structure. */
- asn_struct_ctx_t *ctx; /* Decoder context */
-
- ber_tlv_tag_t tlv_tag; /* T from TLV */
- asn_dec_rval_t rval; /* Return code from subparsers */
-
- ssize_t consumed_myself = 0; /* Consumed bytes from ptr */
-
- ASN_DEBUG("Decoding %s as SET OF", td->name);
-
- /*
- * Create the target structure if it is not present already.
- */
- if(st == 0) {
- st = *struct_ptr = CALLOC(1, specs->struct_size);
- if(st == 0) {
- RETURN(RC_FAIL);
- }
- }
-
- /*
- * Restore parsing context.
- */
- ctx = (asn_struct_ctx_t *)((char *)st + specs->ctx_offset);
-
- /*
- * Start to parse where left previously
- */
- switch(ctx->phase) {
- case 0:
- /*
- * PHASE 0.
- * Check that the set of tags associated with given structure
- * perfectly fits our expectations.
- */
-
- rval = ber_check_tags(opt_codec_ctx, td, ctx, ptr, size,
- tag_mode, 1, &ctx->left, 0);
- if(rval.code != RC_OK) {
- ASN_DEBUG("%s tagging check failed: %d",
- td->name, rval.code);
- return rval;
- }
-
- if(ctx->left >= 0)
- ctx->left += rval.consumed; /* ?Subtracted below! */
- ADVANCE(rval.consumed);
-
- ASN_DEBUG("Structure consumes %ld bytes, "
- "buffer %ld", (long)ctx->left, (long)size);
-
- NEXT_PHASE(ctx);
- /* Fall through */
- case 1:
- /*
- * PHASE 1.
- * From the place where we've left it previously,
- * try to decode the next item.
- */
- for(;; ctx->step = 0) {
- ssize_t tag_len; /* Length of TLV's T */
-
- if(ctx->step & 1)
- goto microphase2;
-
- /*
- * MICROPHASE 1: Synchronize decoding.
- */
-
- if(ctx->left == 0) {
- ASN_DEBUG("End of SET OF %s", td->name);
- /*
- * No more things to decode.
- * Exit out of here.
- */
- PHASE_OUT(ctx);
- RETURN(RC_OK);
- }
-
- /*
- * Fetch the T from TLV.
- */
- tag_len = ber_fetch_tag(ptr, LEFT, &tlv_tag);
- switch(tag_len) {
- case 0: if(!SIZE_VIOLATION) RETURN(RC_WMORE);
- /* Fall through */
- case -1: RETURN(RC_FAIL);
- }
-
- if(ctx->left < 0 && ((const uint8_t *)ptr)[0] == 0) {
- if(LEFT < 2) {
- if(SIZE_VIOLATION)
- RETURN(RC_FAIL);
- else
- RETURN(RC_WMORE);
- } else if(((const uint8_t *)ptr)[1] == 0) {
- /*
- * Found the terminator of the
- * indefinite length structure.
- */
- break;
- }
- }
-
- /* Outmost tag may be unknown and cannot be fetched/compared */
- if(elm->tag != (ber_tlv_tag_t)-1) {
- if(BER_TAGS_EQUAL(tlv_tag, elm->tag)) {
- /*
- * The new list member of expected type has arrived.
- */
- } else {
- ASN_DEBUG("Unexpected tag %s fixed SET OF %s",
- ber_tlv_tag_string(tlv_tag), td->name);
- ASN_DEBUG("%s SET OF has tag %s",
- td->name, ber_tlv_tag_string(elm->tag));
- RETURN(RC_FAIL);
- }
- }
-
- /*
- * MICROPHASE 2: Invoke the member-specific decoder.
- */
- ctx->step |= 1; /* Confirm entering next microphase */
- microphase2:
-
- /*
- * Invoke the member fetch routine according to member's type
- */
- rval = elm->type->op->ber_decoder(opt_codec_ctx,
- elm->type, &ctx->ptr,
- ptr, LEFT, elm->tag_mode);
- ASN_DEBUG("In %s SET OF %s code %d consumed %d",
- td->name, elm->type->name,
- rval.code, (int)rval.consumed);
- switch(rval.code) {
- case RC_OK:
- {
- asn_anonymous_set_ *list = _A_SET_FROM_VOID(st);
- if(ASN_SET_ADD(list, ctx->ptr) != 0)
- RETURN(RC_FAIL);
- else
- ctx->ptr = 0;
- }
- break;
- case RC_WMORE: /* More data expected */
- if(!SIZE_VIOLATION) {
- ADVANCE(rval.consumed);
- RETURN(RC_WMORE);
- }
- /* Fall through */
- case RC_FAIL: /* Fatal error */
- ASN_STRUCT_FREE(*elm->type, ctx->ptr);
- ctx->ptr = 0;
- RETURN(RC_FAIL);
- } /* switch(rval) */
-
- ADVANCE(rval.consumed);
- } /* for(all list members) */
-
- NEXT_PHASE(ctx);
- case 2:
- /*
- * Read in all "end of content" TLVs.
- */
- while(ctx->left < 0) {
- if(LEFT < 2) {
- if(LEFT > 0 && ((const char *)ptr)[0] != 0) {
- /* Unexpected tag */
- RETURN(RC_FAIL);
- } else {
- RETURN(RC_WMORE);
- }
- }
- if(((const char *)ptr)[0] == 0
- && ((const char *)ptr)[1] == 0) {
- ADVANCE(2);
- ctx->left++;
- } else {
- RETURN(RC_FAIL);
- }
- }
-
- PHASE_OUT(ctx);
- }
-
- RETURN(RC_OK);
-}
-
-/*
- * The DER encoder of the SET OF type.
- */
-asn_enc_rval_t
-SET_OF_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr,
- int tag_mode, ber_tlv_tag_t tag, asn_app_consume_bytes_f *cb,
- void *app_key) {
- const asn_TYPE_member_t *elm = td->elements;
- const asn_anonymous_set_ *list = _A_CSET_FROM_VOID(sptr);
- size_t computed_size = 0;
- ssize_t encoding_size = 0;
- struct _el_buffer *encoded_els;
- int edx;
-
- ASN_DEBUG("Estimating size for SET OF %s", td->name);
-
- /*
- * Gather the length of the underlying members sequence.
- */
- for(edx = 0; edx < list->count; edx++) {
- void *memb_ptr = list->array[edx];
- asn_enc_rval_t erval = {0,0,0};
-
- if(!memb_ptr) ASN__ENCODE_FAILED;
-
- erval =
- elm->type->op->der_encoder(elm->type, memb_ptr, elm->tag_mode, elm->tag, 0, 0);
- if(erval.encoded == -1) return erval;
- computed_size += erval.encoded;
- }
-
- /*
- * Encode the TLV for the sequence itself.
- */
- encoding_size =
- der_write_tags(td, computed_size, tag_mode, 1, tag, cb, app_key);
- if(encoding_size < 0) {
- ASN__ENCODE_FAILED;
- }
- computed_size += encoding_size;
-
- if(!cb || list->count == 0) {
- asn_enc_rval_t erval = {0,0,0};
- erval.encoded = computed_size;
- ASN__ENCODED_OK(erval);
- }
-
- ASN_DEBUG("Encoding members of %s SET OF", td->name);
-
- /*
- * DER mandates dynamic sorting of the SET OF elements
- * according to their encodings. Build an array of the
- * encoded elements.
- */
- encoded_els = SET_OF__encode_sorted(elm, list, SOES_DER);
-
- /*
- * Report encoded elements to the application.
- * Dispose of temporary sorted members table.
- */
- for(edx = 0; edx < list->count; edx++) {
- struct _el_buffer *encoded_el = &encoded_els[edx];
- /* Report encoded chunks to the application */
- if(cb(encoded_el->buf, encoded_el->length, app_key) < 0) {
- break;
- } else {
- encoding_size += encoded_el->length;
- }
- }
-
- SET_OF__encode_sorted_free(encoded_els, list->count);
-
- if(edx == list->count) {
- asn_enc_rval_t erval = {0,0,0};
- assert(computed_size == (size_t)encoding_size);
- erval.encoded = computed_size;
- ASN__ENCODED_OK(erval);
- } else {
- ASN__ENCODE_FAILED;
- }
-}
diff --git a/src/skel/constr_SET_OF_print.c b/src/skel/constr_SET_OF_print.c
deleted file mode 100644
index 71df58c..0000000
--- a/src/skel/constr_SET_OF_print.c
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright (c) 2017 Lev Walkin <vlm@lionet.info>.
- * All rights reserved.
- * Redistribution and modifications are permitted subject to BSD license.
- */
-#include <osmocom/tcap/asn_internal.h>
-#include <osmocom/tcap/constr_SET_OF.h>
-
-int
-SET_OF_print(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
- asn_app_consume_bytes_f *cb, void *app_key) {
- asn_TYPE_member_t *elm = td->elements;
- const asn_anonymous_set_ *list = _A_CSET_FROM_VOID(sptr);
- int ret;
- int i;
-
- if(!sptr) return (cb("<absent>", 8, app_key) < 0) ? -1 : 0;
-
- /* Dump preamble */
- if(cb(td->name, strlen(td->name), app_key) < 0
- || cb(" ::= {", 6, app_key) < 0)
- return -1;
-
- for(i = 0; i < list->count; i++) {
- const void *memb_ptr = list->array[i];
- if(!memb_ptr) continue;
-
- _i_INDENT(1);
-
- ret = elm->type->op->print_struct(elm->type, memb_ptr,
- ilevel + 1, cb, app_key);
- if(ret) return ret;
- }
-
- ilevel--;
- _i_INDENT(1);
-
- return (cb("}", 1, app_key) < 0) ? -1 : 0;
-}
diff --git a/src/skel/constr_SET_OF_rfill.c b/src/skel/constr_SET_OF_rfill.c
deleted file mode 100644
index 399040a..0000000
--- a/src/skel/constr_SET_OF_rfill.c
+++ /dev/null
@@ -1,152 +0,0 @@
-/*
- * Copyright (c) 2017 Lev Walkin <vlm@lionet.info>.
- * All rights reserved.
- * Redistribution and modifications are permitted subject to BSD license.
- */
-#include <osmocom/tcap/asn_internal.h>
-#include <osmocom/tcap/constr_SET_OF.h>
-
-asn_random_fill_result_t
-SET_OF_random_fill(const asn_TYPE_descriptor_t *td, void **sptr,
- const asn_encoding_constraints_t *constraints,
- size_t max_length) {
- const asn_SET_OF_specifics_t *specs =
- (const asn_SET_OF_specifics_t *)td->specifics;
- asn_random_fill_result_t res_ok = {ARFILL_OK, 0};
- asn_random_fill_result_t result_failed = {ARFILL_FAILED, 0};
- asn_random_fill_result_t result_skipped = {ARFILL_SKIPPED, 0};
- const asn_TYPE_member_t *elm = td->elements;
- void *st = *sptr;
- long max_elements = 5;
- long slb = 0; /* Lower size bound */
- long sub = 0; /* Upper size bound */
- size_t rnd_len;
-
- if(max_length == 0) return result_skipped;
-
- if(st == NULL) {
- st = (*sptr = CALLOC(1, specs->struct_size));
- if(st == NULL) {
- return result_failed;
- }
- }
-
- switch(asn_random_between(0, 6)) {
- case 0: max_elements = 0; break;
- case 1: max_elements = 1; break;
- case 2: max_elements = 5; break;
- case 3: max_elements = max_length; break;
- case 4: max_elements = max_length / 2; break;
- case 5: max_elements = max_length / 4; break;
- default: break;
- }
- sub = slb + max_elements;
-
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- if(!constraints || !constraints->per_constraints)
- constraints = &td->encoding_constraints;
- if(constraints->per_constraints) {
- const asn_per_constraint_t *pc = &constraints->per_constraints->size;
- if(pc->flags & APC_SEMI_CONSTRAINED) {
- slb = pc->lower_bound;
- sub = pc->lower_bound + max_elements;
- } else if(pc->flags & APC_CONSTRAINED) {
- slb = pc->lower_bound;
- sub = pc->upper_bound;
- if(sub - slb > max_elements) sub = slb + max_elements;
- }
- }
-#else
- if(!constraints) constraints = &td->encoding_constraints;
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
-
- /* Bias towards edges of allowed space */
- switch(asn_random_between(-1, 4)) {
- default:
- case -1:
-#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
- /* Prepare lengths somewhat outside of constrained range. */
- if(constraints->per_constraints
- && (constraints->per_constraints->size.flags & APC_EXTENSIBLE)) {
- switch(asn_random_between(0, 5)) {
- default:
- case 0:
- rnd_len = 0;
- break;
- case 1:
- if(slb > 0) {
- rnd_len = slb - 1;
- } else {
- rnd_len = 0;
- }
- break;
- case 2:
- rnd_len = asn_random_between(0, slb);
- break;
- case 3:
- if(sub < (ssize_t)max_length) {
- rnd_len = sub + 1;
- } else {
- rnd_len = max_length;
- }
- break;
- case 4:
- if(sub < (ssize_t)max_length) {
- rnd_len = asn_random_between(sub + 1, max_length);
- } else {
- rnd_len = max_length;
- }
- break;
- case 5:
- rnd_len = max_length;
- break;
- }
- break;
- }
-#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
- /* Fall through */
- case 0:
- rnd_len = asn_random_between(slb, sub);
- break;
- case 1:
- if(slb < sub) {
- rnd_len = asn_random_between(slb + 1, sub);
- break;
- }
- /* Fall through */
- case 2:
- rnd_len = asn_random_between(slb, slb);
- break;
- case 3:
- if(slb < sub) {
- rnd_len = asn_random_between(slb, sub - 1);
- break;
- }
- /* Fall through */
- case 4:
- rnd_len = asn_random_between(sub, sub);
- break;
- }
-
- for(; rnd_len > 0; rnd_len--) {
- asn_anonymous_set_ *list = _A_SET_FROM_VOID(st);
- void *ptr = 0;
- asn_random_fill_result_t tmpres = elm->type->op->random_fill(
- elm->type, &ptr, &elm->encoding_constraints,
- (max_length > res_ok.length ? max_length - res_ok.length : 0)
- / rnd_len);
- switch(tmpres.code) {
- case ARFILL_OK:
- ASN_SET_ADD(list, ptr);
- res_ok.length += tmpres.length;
- break;
- case ARFILL_SKIPPED:
- break;
- case ARFILL_FAILED:
- assert(ptr == 0);
- return tmpres;
- }
- }
-
- return res_ok;
-}

To view, visit change 42746. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: libosmo-asn1-tcap
Gerrit-Branch: master
Gerrit-Change-Id: Ib8afe0dbe8d4436b80c71048f3b572fcda6cd33e
Gerrit-Change-Number: 42746
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis@fe80.eu>