diff options
Diffstat (limited to 'lib/asn1/test/asn1_SUITE_data/Param.asn1')
-rw-r--r-- | lib/asn1/test/asn1_SUITE_data/Param.asn1 | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/lib/asn1/test/asn1_SUITE_data/Param.asn1 b/lib/asn1/test/asn1_SUITE_data/Param.asn1 new file mode 100644 index 0000000000..b2987a7885 --- /dev/null +++ b/lib/asn1/test/asn1_SUITE_data/Param.asn1 @@ -0,0 +1,93 @@ +-- ************************************************************** +-- +-- Information Element Definitions +-- +-- ************************************************************** + +Param -- { object identifier to be allocated }-- +DEFINITIONS AUTOMATIC TAGS ::= + +BEGIN + +-- A + +Criticality ::= ENUMERATED { reject, ignore, notify } + +Presence ::= ENUMERATED { optional, conditional, mandatory } + +ProtocolExtensionID ::= INTEGER (0..65535) + +RANAP-PROTOCOL-EXTENSION ::= CLASS { + &id ProtocolExtensionID UNIQUE, + &criticality Criticality, + &Extension, + &presence Presence +} +WITH SYNTAX { + ID &id + CRITICALITY &criticality + EXTENSION &Extension + PRESENCE &presence +} + +ProtocolExtensionContainer {RANAP-PROTOCOL-EXTENSION : ExtensionSetParam} ::= + SEQUENCE (SIZE (1..10)) OF + ProtocolExtensionField {{ExtensionSetParam}} + +ProtocolExtensionField {RANAP-PROTOCOL-EXTENSION : ExtensionSetParam} ::= SEQUENCE { + id RANAP-PROTOCOL-EXTENSION.&id ({ExtensionSetParam}), + criticality RANAP-PROTOCOL-EXTENSION.&criticality ({ExtensionSetParam}{@id}), + extensionValue RANAP-PROTOCOL-EXTENSION.&Extension ({ExtensionSetParam}{@id}) +} + + +AllocationOrRetentionPriority ::= SEQUENCE { + priorityLevel BOOLEAN, + iE-Extensions ProtocolExtensionContainer { {AllocationOrRetentionPriority-ExtIEs} } OPTIONAL, + ... +} + +AllocationOrRetentionPriority-ExtIEs RANAP-PROTOCOL-EXTENSION ::= { + ... +} + +obj1 RANAP-PROTOCOL-EXTENSION ::= { + ID id-one + CRITICALITY ignore + EXTENSION INTEGER + PRESENCE optional +} + +obj2 RANAP-PROTOCOL-EXTENSION ::= { + ID id-two + CRITICALITY ignore + EXTENSION BOOLEAN + PRESENCE optional +} + +id-one INTEGER ::= 1 +id-two INTEGER ::= 2 + +-- The following code for test of OTP-4242, ValueFromObject +-- Similar use as in the Camel spec + +CONFIG-DATA ::= CLASS { + &minLevel INTEGER, + &maxLevel INTEGER +} +WITH SYNTAX { + MINLEVEL &minLevel + MAXLEVEL &maxLevel +} + +config-data CONFIG-DATA ::= {MINLEVEL 1 MAXLEVEL 3} + +OS1 ::= OCTET STRING (SIZE (config-data.&minLevel .. config-data.&maxLevel)) + +POS2 {CONFIG-DATA:obj} ::= OCTET STRING (SIZE(obj.&minLevel .. obj.&maxLevel)) + +OS2 ::= POS2 {config-data} + + +END + |