/src/open5gs/lib/asn1c/ngap/NGAP_PagingPolicyDifferentiationItem.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_PagingPolicyDifferentiationItem.h" |
9 | | |
10 | | #include "NGAP_AllocationAndRetentionPriority.h" |
11 | | #include "NGAP_ProtocolExtensionContainer.h" |
12 | | static int |
13 | | memb_NGAP_dl_DataSize_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, |
14 | 0 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
15 | 0 | long value; |
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 | value = *(const long *)sptr; |
25 | | |
26 | 0 | if((value >= 0L && value <= 96000L)) { |
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_dl_DataSize_constr_6 CC_NOTUSED = { |
39 | | { APC_CONSTRAINED | APC_EXTENSIBLE, 17, -1, 0, 96000 } /* (0..96000,...) */, |
40 | | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
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_PagingPolicyDifferentiationItem_1[] = { |
45 | | { ATF_POINTER, 6, offsetof(struct NGAP_PagingPolicyDifferentiationItem, qosFlowIdentifier), |
46 | | (ASN_TAG_CLASS_CONTEXT | (0 << 2)), |
47 | | -1, /* IMPLICIT tag at current level */ |
48 | | &asn_DEF_NGAP_QosFlowIdentifier, |
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 | | "qosFlowIdentifier" |
64 | | }, |
65 | | { ATF_POINTER, 5, offsetof(struct NGAP_PagingPolicyDifferentiationItem, pagingPolicyIndicator), |
66 | | (ASN_TAG_CLASS_CONTEXT | (1 << 2)), |
67 | | -1, /* IMPLICIT tag at current level */ |
68 | | &asn_DEF_NGAP_PagingPolicyIndicator, |
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 | | "pagingPolicyIndicator" |
84 | | }, |
85 | | { ATF_POINTER, 4, offsetof(struct NGAP_PagingPolicyDifferentiationItem, allocationAndRetentionPriority), |
86 | | (ASN_TAG_CLASS_CONTEXT | (2 << 2)), |
87 | | -1, /* IMPLICIT tag at current level */ |
88 | | &asn_DEF_NGAP_AllocationAndRetentionPriority, |
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 | | 0, |
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 | | 0 |
101 | | }, |
102 | | 0, 0, /* No default value */ |
103 | | "allocationAndRetentionPriority" |
104 | | }, |
105 | | { ATF_POINTER, 3, offsetof(struct NGAP_PagingPolicyDifferentiationItem, fiveQI), |
106 | | (ASN_TAG_CLASS_CONTEXT | (3 << 2)), |
107 | | -1, /* IMPLICIT tag at current level */ |
108 | | &asn_DEF_NGAP_FiveQI, |
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 | | "fiveQI" |
124 | | }, |
125 | | { ATF_POINTER, 2, offsetof(struct NGAP_PagingPolicyDifferentiationItem, dl_DataSize), |
126 | | (ASN_TAG_CLASS_CONTEXT | (4 << 2)), |
127 | | -1, /* IMPLICIT tag at current level */ |
128 | | &asn_DEF_NativeInteger, |
129 | | 0, |
130 | | { |
131 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
132 | | 0, |
133 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
134 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
135 | | &asn_PER_memb_NGAP_dl_DataSize_constr_6, |
136 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
137 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
138 | | 0, |
139 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
140 | | memb_NGAP_dl_DataSize_constraint_1 |
141 | | }, |
142 | | 0, 0, /* No default value */ |
143 | | "dl-DataSize" |
144 | | }, |
145 | | { ATF_POINTER, 1, offsetof(struct NGAP_PagingPolicyDifferentiationItem, iE_Extensions), |
146 | | (ASN_TAG_CLASS_CONTEXT | (5 << 2)), |
147 | | -1, /* IMPLICIT tag at current level */ |
148 | | &asn_DEF_NGAP_ProtocolExtensionContainer_14713P263, |
149 | | 0, |
150 | | { |
151 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
152 | | 0, |
153 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
154 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
155 | | 0, |
156 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
157 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
158 | | 0, |
159 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
160 | | 0 |
161 | | }, |
162 | | 0, 0, /* No default value */ |
163 | | "iE-Extensions" |
164 | | }, |
165 | | }; |
166 | | static const int asn_MAP_NGAP_PagingPolicyDifferentiationItem_oms_1[] = { 0, 1, 2, 3, 4, 5 }; |
167 | | static const ber_tlv_tag_t asn_DEF_NGAP_PagingPolicyDifferentiationItem_tags_1[] = { |
168 | | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
169 | | }; |
170 | | static const asn_TYPE_tag2member_t asn_MAP_NGAP_PagingPolicyDifferentiationItem_tag2el_1[] = { |
171 | | { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* qosFlowIdentifier */ |
172 | | { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* pagingPolicyIndicator */ |
173 | | { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* allocationAndRetentionPriority */ |
174 | | { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* fiveQI */ |
175 | | { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* dl-DataSize */ |
176 | | { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* iE-Extensions */ |
177 | | }; |
178 | | asn_SEQUENCE_specifics_t asn_SPC_NGAP_PagingPolicyDifferentiationItem_specs_1 = { |
179 | | sizeof(struct NGAP_PagingPolicyDifferentiationItem), |
180 | | offsetof(struct NGAP_PagingPolicyDifferentiationItem, _asn_ctx), |
181 | | asn_MAP_NGAP_PagingPolicyDifferentiationItem_tag2el_1, |
182 | | 6, /* Count of tags in the map */ |
183 | | asn_MAP_NGAP_PagingPolicyDifferentiationItem_oms_1, /* Optional members */ |
184 | | 6, 0, /* Root/Additions */ |
185 | | 6, /* First extension addition */ |
186 | | }; |
187 | | asn_TYPE_descriptor_t asn_DEF_NGAP_PagingPolicyDifferentiationItem = { |
188 | | "PagingPolicyDifferentiationItem", |
189 | | "PagingPolicyDifferentiationItem", |
190 | | &asn_OP_SEQUENCE, |
191 | | asn_DEF_NGAP_PagingPolicyDifferentiationItem_tags_1, |
192 | | sizeof(asn_DEF_NGAP_PagingPolicyDifferentiationItem_tags_1) |
193 | | /sizeof(asn_DEF_NGAP_PagingPolicyDifferentiationItem_tags_1[0]), /* 1 */ |
194 | | asn_DEF_NGAP_PagingPolicyDifferentiationItem_tags_1, /* Same as above */ |
195 | | sizeof(asn_DEF_NGAP_PagingPolicyDifferentiationItem_tags_1) |
196 | | /sizeof(asn_DEF_NGAP_PagingPolicyDifferentiationItem_tags_1[0]), /* 1 */ |
197 | | { |
198 | | #if !defined(ASN_DISABLE_OER_SUPPORT) |
199 | | 0, |
200 | | #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */ |
201 | | #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) |
202 | | 0, |
203 | | #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */ |
204 | | #if !defined(ASN_DISABLE_JER_SUPPORT) |
205 | | 0, |
206 | | #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */ |
207 | | SEQUENCE_constraint |
208 | | }, |
209 | | asn_MBR_NGAP_PagingPolicyDifferentiationItem_1, |
210 | | 6, /* Elements count */ |
211 | | &asn_SPC_NGAP_PagingPolicyDifferentiationItem_specs_1 /* Additional specs */ |
212 | | }; |
213 | | |