/src/open5gs/lib/asn1c/ngap/NGAP_AIoTAreaID.c
Line | Count | Source |
1 | | /* |
2 | | * Generated by asn1c-v1.4-43-gb7926896-2026-05-03 (https://github.com/mouse07410/asn1c) |
3 | | * From ASN.1 module "NGAP-IEs" |
4 | | * found in "../support/ngap-r19.2.0/38413-j20.asn" |
5 | | * `asn1c -pdu=all -fprefix=NGAP_ -fcompound-names -findirect-choice -fno-include-deps -no-gen-BER -no-gen-XER -no-gen-JER -no-gen-CBOR -no-gen-OER -no-gen-UPER` |
6 | | */ |
7 | | |
8 | | #include "NGAP_AIoTAreaID.h" |
9 | | |
10 | | #include "NGAP_ProtocolExtensionContainer.h" |
11 | | static int |
12 | | memb_NGAP_aIoTAreaCode_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, |
13 | 0 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
14 | 0 | const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; |
15 | 0 | size_t size; |
16 | | |
17 | 0 | if(!sptr) { |
18 | 0 | ASN__CTFAIL(app_key, td, sptr, |
19 | 0 | "%s: value not given (%s:%d)", |
20 | 0 | td->name, __FILE__, __LINE__); |
21 | 0 | return -1; |
22 | 0 | } |
23 | | |
24 | 0 | size = st->size; |
25 | | |
26 | 0 | if((size == 3UL)) { |
27 | | /* Constraint check succeeded */ |
28 | 0 | return 0; |
29 | 0 | } else { |
30 | 0 | ASN__CTFAIL(app_key, td, sptr, |
31 | 0 | "%s: constraint failed (%s:%d)", |
32 | 0 | td->name, __FILE__, __LINE__); |
33 | 0 | return -1; |
34 | 0 | } |
35 | 0 | } |
36 | | |
37 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
38 | | static asn_per_constraints_t asn_PER_memb_NGAP_aIoTAreaCode_constr_4 CC_NOTUSED = { |
39 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
40 | | { APC_CONSTRAINED, 0, 0, 3, 3 } /* (SIZE(3..3)) */, |
41 | | 0, 0 /* No PER value map */ |
42 | | }; |
43 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
44 | | asn_TYPE_member_t asn_MBR_NGAP_AIoTAreaID_1[] = { |
45 | | { ATF_NOFLAGS, 0, offsetof(struct NGAP_AIoTAreaID, pLMNidentity), |
46 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
47 | | -1, /* IMPLICIT tag at current level */ |
48 | | &asn_DEF_NGAP_PLMNIdentity, |
49 | | 0, |
50 | | { |
51 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
52 | | 0, |
53 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
54 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
55 | | 0, |
56 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
57 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
58 | | 0, |
59 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
60 | | 0 |
61 | | }, |
62 | | 0, 0, /* No default value */ |
63 | | "pLMNidentity" |
64 | | }, |
65 | | { ATF_POINTER, 1, offsetof(struct NGAP_AIoTAreaID, nID), |
66 | | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
67 | | -1, /* IMPLICIT tag at current level */ |
68 | | &asn_DEF_NGAP_NID, |
69 | | 0, |
70 | | { |
71 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
72 | | 0, |
73 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
74 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
75 | | 0, |
76 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
77 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
78 | | 0, |
79 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
80 | | 0 |
81 | | }, |
82 | | 0, 0, /* No default value */ |
83 | | "nID" |
84 | | }, |
85 | | { ATF_NOFLAGS, 0, offsetof(struct NGAP_AIoTAreaID, aIoTAreaCode), |
86 | | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
87 | | -1, /* IMPLICIT tag at current level */ |
88 | | &asn_DEF_OCTET_STRING, |
89 | | 0, |
90 | | { |
91 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
92 | | 0, |
93 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
94 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
95 | | &asn_PER_memb_NGAP_aIoTAreaCode_constr_4, |
96 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
97 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
98 | | 0, |
99 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
100 | | memb_NGAP_aIoTAreaCode_constraint_1 |
101 | | }, |
102 | | 0, 0, /* No default value */ |
103 | | "aIoTAreaCode" |
104 | | }, |
105 | | { ATF_POINTER, 1, offsetof(struct NGAP_AIoTAreaID, iE_Extensions), |
106 | | (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
107 | | -1, /* IMPLICIT tag at current level */ |
108 | | &asn_DEF_NGAP_ProtocolExtensionContainer_14713P6, |
109 | | 0, |
110 | | { |
111 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
112 | | 0, |
113 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
114 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
115 | | 0, |
116 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
117 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
118 | | 0, |
119 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
120 | | 0 |
121 | | }, |
122 | | 0, 0, /* No default value */ |
123 | | "iE-Extensions" |
124 | | }, |
125 | | }; |
126 | | static const int asn_MAP_NGAP_AIoTAreaID_oms_1[] = { 1, 3 }; |
127 | | static const ber_tlv_tag_t asn_DEF_NGAP_AIoTAreaID_tags_1[] = { |
128 | | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
129 | | }; |
130 | | static const asn_TYPE_tag2member_t asn_MAP_NGAP_AIoTAreaID_tag2el_1[] = { |
131 | | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pLMNidentity */ |
132 | | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* nID */ |
133 | | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* aIoTAreaCode */ |
134 | | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */ |
135 | | }; |
136 | | asn_SEQUENCE_specifics_t asn_SPC_NGAP_AIoTAreaID_specs_1 = { |
137 | | sizeof(struct NGAP_AIoTAreaID), |
138 | | offsetof(struct NGAP_AIoTAreaID, _asn_ctx), |
139 | | asn_MAP_NGAP_AIoTAreaID_tag2el_1, |
140 | | 4, /* Count of tags in the map */ |
141 | | asn_MAP_NGAP_AIoTAreaID_oms_1, /* Optional members */ |
142 | | 2, 0, /* Root/Additions */ |
143 | | 4, /* First extension addition */ |
144 | | }; |
145 | | asn_TYPE_descriptor_t asn_DEF_NGAP_AIoTAreaID = { |
146 | | "AIoTAreaID", |
147 | | "AIoTAreaID", |
148 | | &asn_OP_SEQUENCE, |
149 | | asn_DEF_NGAP_AIoTAreaID_tags_1, |
150 | | sizeof(asn_DEF_NGAP_AIoTAreaID_tags_1) |
151 | | /sizeof(asn_DEF_NGAP_AIoTAreaID_tags_1[0]), /* 1 */ |
152 | | asn_DEF_NGAP_AIoTAreaID_tags_1, /* Same as above */ |
153 | | sizeof(asn_DEF_NGAP_AIoTAreaID_tags_1) |
154 | | /sizeof(asn_DEF_NGAP_AIoTAreaID_tags_1[0]), /* 1 */ |
155 | | { |
156 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
157 | | 0, |
158 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
159 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
160 | | 0, |
161 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
162 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
163 | | 0, |
164 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
165 | | SEQUENCE_constraint |
166 | | }, |
167 | | asn_MBR_NGAP_AIoTAreaID_1, |
168 | | 4, /* Elements count */ |
169 | | &asn_SPC_NGAP_AIoTAreaID_specs_1 /* Additional specs */ |
170 | | }; |
171 | | |