/src/open5gs/lib/asn1c/ngap/NGAP_TargetHomeENB-ID.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_TargetHomeENB-ID.h" |
9 | | |
10 | | #include "NGAP_EPS-TAI.h" |
11 | | #include "NGAP_ProtocolExtensionContainer.h" |
12 | | static int |
13 | | memb_NGAP_homeENB_ID_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, |
14 | 0 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
15 | 0 | const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; |
16 | 0 | size_t size; |
17 | | |
18 | 0 | if(!sptr) { |
19 | 0 | ASN__CTFAIL(app_key, td, sptr, |
20 | 0 | "%s: value not given (%s:%d)", |
21 | 0 | td->name, __FILE__, __LINE__); |
22 | 0 | return -1; |
23 | 0 | } |
24 | | |
25 | 0 | if(st->size > 0) { |
26 | | /* Size in bits */ |
27 | 0 | size = 8 * st->size - (st->bits_unused & 0x07); |
28 | 0 | } else { |
29 | 0 | size = 0; |
30 | 0 | } |
31 | | |
32 | 0 | if((size == 28UL)) { |
33 | | /* Constraint check succeeded */ |
34 | 0 | return 0; |
35 | 0 | } else { |
36 | 0 | ASN__CTFAIL(app_key, td, sptr, |
37 | 0 | "%s: constraint failed (%s:%d)", |
38 | 0 | td->name, __FILE__, __LINE__); |
39 | 0 | return -1; |
40 | 0 | } |
41 | 0 | } |
42 | | |
43 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
44 | | static asn_per_constraints_t asn_PER_memb_NGAP_homeENB_ID_constr_3 CC_NOTUSED = { |
45 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
46 | | { APC_CONSTRAINED, 0, 0, 28, 28 } /* (SIZE(28..28)) */, |
47 | | 0, 0 /* No PER value map */ |
48 | | }; |
49 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
50 | | asn_TYPE_member_t asn_MBR_NGAP_TargetHomeENB_ID_1[] = { |
51 | | { ATF_NOFLAGS, 0, offsetof(struct NGAP_TargetHomeENB_ID, pLMNidentity), |
52 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
53 | | -1, /* IMPLICIT tag at current level */ |
54 | | &asn_DEF_NGAP_PLMNIdentity, |
55 | | 0, |
56 | | { |
57 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
58 | | 0, |
59 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
60 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
61 | | 0, |
62 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
63 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
64 | | 0, |
65 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
66 | | 0 |
67 | | }, |
68 | | 0, 0, /* No default value */ |
69 | | "pLMNidentity" |
70 | | }, |
71 | | { ATF_NOFLAGS, 0, offsetof(struct NGAP_TargetHomeENB_ID, homeENB_ID), |
72 | | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
73 | | -1, /* IMPLICIT tag at current level */ |
74 | | &asn_DEF_BIT_STRING, |
75 | | 0, |
76 | | { |
77 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
78 | | 0, |
79 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
80 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
81 | | &asn_PER_memb_NGAP_homeENB_ID_constr_3, |
82 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
83 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
84 | | 0, |
85 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
86 | | memb_NGAP_homeENB_ID_constraint_1 |
87 | | }, |
88 | | 0, 0, /* No default value */ |
89 | | "homeENB-ID" |
90 | | }, |
91 | | { ATF_POINTER, 0, offsetof(struct NGAP_TargetHomeENB_ID, selected_EPS_TAI), |
92 | | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
93 | | -1, /* IMPLICIT tag at current level */ |
94 | | &asn_DEF_NGAP_EPS_TAI, |
95 | | 0, |
96 | | { |
97 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
98 | | 0, |
99 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
100 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
101 | | 0, |
102 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
103 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
104 | | 0, |
105 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
106 | | 0 |
107 | | }, |
108 | | 0, 0, /* No default value */ |
109 | | "selected-EPS-TAI" |
110 | | }, |
111 | | { ATF_POINTER, 1, offsetof(struct NGAP_TargetHomeENB_ID, iE_Extensions), |
112 | | (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
113 | | -1, /* IMPLICIT tag at current level */ |
114 | | &asn_DEF_NGAP_ProtocolExtensionContainer_14713P414, |
115 | | 0, |
116 | | { |
117 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
118 | | 0, |
119 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
120 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
121 | | 0, |
122 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
123 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
124 | | 0, |
125 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
126 | | 0 |
127 | | }, |
128 | | 0, 0, /* No default value */ |
129 | | "iE-Extensions" |
130 | | }, |
131 | | }; |
132 | | static const int asn_MAP_NGAP_TargetHomeENB_ID_oms_1[] = { 3 }; |
133 | | static const ber_tlv_tag_t asn_DEF_NGAP_TargetHomeENB_ID_tags_1[] = { |
134 | | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
135 | | }; |
136 | | static const asn_TYPE_tag2member_t asn_MAP_NGAP_TargetHomeENB_ID_tag2el_1[] = { |
137 | | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* pLMNidentity */ |
138 | | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* homeENB-ID */ |
139 | | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* selected-EPS-TAI */ |
140 | | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* iE-Extensions */ |
141 | | }; |
142 | | asn_SEQUENCE_specifics_t asn_SPC_NGAP_TargetHomeENB_ID_specs_1 = { |
143 | | sizeof(struct NGAP_TargetHomeENB_ID), |
144 | | offsetof(struct NGAP_TargetHomeENB_ID, _asn_ctx), |
145 | | asn_MAP_NGAP_TargetHomeENB_ID_tag2el_1, |
146 | | 4, /* Count of tags in the map */ |
147 | | asn_MAP_NGAP_TargetHomeENB_ID_oms_1, /* Optional members */ |
148 | | 1, 0, /* Root/Additions */ |
149 | | 4, /* First extension addition */ |
150 | | }; |
151 | | asn_TYPE_descriptor_t asn_DEF_NGAP_TargetHomeENB_ID = { |
152 | | "TargetHomeENB-ID", |
153 | | "TargetHomeENB-ID", |
154 | | &asn_OP_SEQUENCE, |
155 | | asn_DEF_NGAP_TargetHomeENB_ID_tags_1, |
156 | | sizeof(asn_DEF_NGAP_TargetHomeENB_ID_tags_1) |
157 | | /sizeof(asn_DEF_NGAP_TargetHomeENB_ID_tags_1[0]), /* 1 */ |
158 | | asn_DEF_NGAP_TargetHomeENB_ID_tags_1, /* Same as above */ |
159 | | sizeof(asn_DEF_NGAP_TargetHomeENB_ID_tags_1) |
160 | | /sizeof(asn_DEF_NGAP_TargetHomeENB_ID_tags_1[0]), /* 1 */ |
161 | | { |
162 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
163 | | 0, |
164 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
165 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
166 | | 0, |
167 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
168 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
169 | | 0, |
170 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
171 | | SEQUENCE_constraint |
172 | | }, |
173 | | asn_MBR_NGAP_TargetHomeENB_ID_1, |
174 | | 4, /* Elements count */ |
175 | | &asn_SPC_NGAP_TargetHomeENB_ID_specs_1 /* Additional specs */ |
176 | | }; |
177 | | |