3 * Copyright 2019 AT&T Intellectual Property
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
21 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
22 * From ASN.1 module "X2AP-IEs"
23 * found in "../../asnFiles/X2AP-IEs.asn"
24 * `asn1c -fcompound-names -fincludes-quoted -fno-include-deps -findirect-choice -gen-PER -no-gen-OER -D.`
27 #include "CNTypeRestrictionsItem.h"
29 #include "ProtocolExtensionContainer.h"
31 * This type is implemented using NativeEnumerated,
32 * so here we adjust the DEF accordingly.
34 static asn_per_constraints_t asn_PER_type_cn_type_constr_3 CC_NOTUSED = {
35 { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */,
36 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
37 0, 0 /* No PER value map */
39 static const asn_INTEGER_enum_map_t asn_MAP_cn_type_value2enum_3[] = {
40 { 0, 16, "fiveGC-forbidden" }
41 /* This list is extensible */
43 static const unsigned int asn_MAP_cn_type_enum2value_3[] = {
44 0 /* fiveGC-forbidden(0) */
45 /* This list is extensible */
47 static const asn_INTEGER_specifics_t asn_SPC_cn_type_specs_3 = {
48 asn_MAP_cn_type_value2enum_3, /* "tag" => N; sorted by tag */
49 asn_MAP_cn_type_enum2value_3, /* N => "tag"; sorted by N */
50 1, /* Number of elements in the maps */
51 2, /* Extensions before this member */
52 1, /* Strict enumeration */
53 0, /* Native long size */
56 static const ber_tlv_tag_t asn_DEF_cn_type_tags_3[] = {
57 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
58 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
60 static /* Use -fall-defs-global to expose */
61 asn_TYPE_descriptor_t asn_DEF_cn_type_3 = {
64 &asn_OP_NativeEnumerated,
65 asn_DEF_cn_type_tags_3,
66 sizeof(asn_DEF_cn_type_tags_3)
67 /sizeof(asn_DEF_cn_type_tags_3[0]) - 1, /* 1 */
68 asn_DEF_cn_type_tags_3, /* Same as above */
69 sizeof(asn_DEF_cn_type_tags_3)
70 /sizeof(asn_DEF_cn_type_tags_3[0]), /* 2 */
71 { 0, &asn_PER_type_cn_type_constr_3, NativeEnumerated_constraint },
72 0, 0, /* Defined elsewhere */
73 &asn_SPC_cn_type_specs_3 /* Additional specs */
76 asn_TYPE_member_t asn_MBR_CNTypeRestrictionsItem_1[] = {
77 { ATF_NOFLAGS, 0, offsetof(struct CNTypeRestrictionsItem, plmn_Id),
78 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
79 -1, /* IMPLICIT tag at current level */
80 &asn_DEF_PLMN_Identity,
83 0, 0, /* No default value */
86 { ATF_NOFLAGS, 0, offsetof(struct CNTypeRestrictionsItem, cn_type),
87 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
88 -1, /* IMPLICIT tag at current level */
92 0, 0, /* No default value */
95 { ATF_POINTER, 1, offsetof(struct CNTypeRestrictionsItem, iE_Extensions),
96 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
97 -1, /* IMPLICIT tag at current level */
98 &asn_DEF_ProtocolExtensionContainer_170P116,
101 0, 0, /* No default value */
105 static const int asn_MAP_CNTypeRestrictionsItem_oms_1[] = { 2 };
106 static const ber_tlv_tag_t asn_DEF_CNTypeRestrictionsItem_tags_1[] = {
107 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
109 static const asn_TYPE_tag2member_t asn_MAP_CNTypeRestrictionsItem_tag2el_1[] = {
110 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* plmn-Id */
111 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cn-type */
112 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
114 asn_SEQUENCE_specifics_t asn_SPC_CNTypeRestrictionsItem_specs_1 = {
115 sizeof(struct CNTypeRestrictionsItem),
116 offsetof(struct CNTypeRestrictionsItem, _asn_ctx),
117 asn_MAP_CNTypeRestrictionsItem_tag2el_1,
118 3, /* Count of tags in the map */
119 asn_MAP_CNTypeRestrictionsItem_oms_1, /* Optional members */
120 1, 0, /* Root/Additions */
121 3, /* First extension addition */
123 asn_TYPE_descriptor_t asn_DEF_CNTypeRestrictionsItem = {
124 "CNTypeRestrictionsItem",
125 "CNTypeRestrictionsItem",
127 asn_DEF_CNTypeRestrictionsItem_tags_1,
128 sizeof(asn_DEF_CNTypeRestrictionsItem_tags_1)
129 /sizeof(asn_DEF_CNTypeRestrictionsItem_tags_1[0]), /* 1 */
130 asn_DEF_CNTypeRestrictionsItem_tags_1, /* Same as above */
131 sizeof(asn_DEF_CNTypeRestrictionsItem_tags_1)
132 /sizeof(asn_DEF_CNTypeRestrictionsItem_tags_1[0]), /* 1 */
133 { 0, 0, SEQUENCE_constraint },
134 asn_MBR_CNTypeRestrictionsItem_1,
135 3, /* Elements count */
136 &asn_SPC_CNTypeRestrictionsItem_specs_1 /* Additional specs */