Coverage Report

Created: 2026-09-27 06:19

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/open5gs/lib/asn1c/ngap/NGAP_CauseRadioNetwork.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_CauseRadioNetwork.h"
9
10
/*
11
 * This type is implemented using NativeEnumerated,
12
 * so here we adjust the DEF accordingly.
13
 */
14
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
15
asn_per_constraints_t asn_PER_type_NGAP_CauseRadioNetwork_constr_1 CC_NOTUSED = {
16
  { APC_CONSTRAINED | APC_EXTENSIBLE,  6,  6,  0,  44 } /* (0..44,...) */,
17
  { APC_UNCONSTRAINED,  -1, -1,  0,  0 },
18
  0, 0  /* No PER value map */
19
};
20
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
21
static const asn_INTEGER_enum_map_t asn_MAP_NGAP_CauseRadioNetwork_value2enum_1[] = {
22
  { 0,  11, "unspecified" },
23
  { 1,  22, "txnrelocoverall-expiry" },
24
  { 2,  19, "successful-handover" },
25
  { 3,  37, "release-due-to-ngran-generated-reason" },
26
  { 4,  35, "release-due-to-5gc-generated-reason" },
27
  { 5,  18, "handover-cancelled" },
28
  { 6,  16, "partial-handover" },
29
  { 7,  52, "ho-failure-in-target-5GC-ngran-node-or-target-system" },
30
  { 8,  21, "ho-target-not-allowed" },
31
  { 9,  22, "tngrelocoverall-expiry" },
32
  { 10, 19, "tngrelocprep-expiry" },
33
  { 11, 18, "cell-not-available" },
34
  { 12, 16, "unknown-targetID" },
35
  { 13, 43, "no-radio-resources-available-in-target-cell" },
36
  { 14, 24, "unknown-local-UE-NGAP-ID" },
37
  { 15, 30, "inconsistent-remote-UE-NGAP-ID" },
38
  { 16, 35, "handover-desirable-for-radio-reason" },
39
  { 17, 22, "time-critical-handover" },
40
  { 18, 30, "resource-optimisation-handover" },
41
  { 19, 27, "reduce-load-in-serving-cell" },
42
  { 20, 15, "user-inactivity" },
43
  { 21, 29, "radio-connection-with-ue-lost" },
44
  { 22, 29, "radio-resources-not-available" },
45
  { 23, 23, "invalid-qos-combination" },
46
  { 24, 36, "failure-in-radio-interface-procedure" },
47
  { 25, 32, "interaction-with-other-procedure" },
48
  { 26, 22, "unknown-PDU-session-ID" },
49
  { 27, 18, "unkown-qos-flow-ID" },
50
  { 28, 33, "multiple-PDU-session-ID-instances" },
51
  { 29, 30, "multiple-qos-flow-ID-instances" },
52
  { 30, 63, "encryption-and-or-integrity-protection-algorithms-not-supported" },
53
  { 31, 34, "ng-intra-system-handover-triggered" },
54
  { 32, 34, "ng-inter-system-handover-triggered" },
55
  { 33, 21, "xn-handover-triggered" },
56
  { 34, 23, "not-supported-5QI-value" },
57
  { 35, 19, "ue-context-transfer" },
58
  { 36, 48, "ims-voice-eps-fallback-or-rat-fallback-triggered" },
59
  { 37, 36, "up-integrity-protection-not-possible" },
60
  { 38, 42, "up-confidentiality-protection-not-possible" },
61
  { 39, 19, "slice-not-supported" },
62
  { 40, 38, "ue-in-rrc-inactive-state-not-reachable" },
63
  { 41, 11, "redirection" },
64
  { 42, 37, "resources-not-available-for-the-slice" },
65
  { 43, 43, "ue-max-integrity-protected-data-rate-reason" },
66
  { 44, 35, "release-due-to-cn-detected-mobility" },
67
  { 45, 27, "n26-interface-not-available" },
68
  { 46, 26, "release-due-to-pre-emption" },
69
  { 47, 50, "multiple-location-reporting-reference-ID-instances" },
70
  { 48, 28, "rsn-not-available-for-the-up" },
71
  { 49, 17, "npn-access-denied" },
72
  { 50, 22, "cag-only-access-denied" },
73
  { 51, 28, "insufficient-ue-capabilities" },
74
  { 52, 23, "redcap-ue-not-supported" },
75
  { 53, 22, "unknown-MBS-Session-ID" },
76
  { 54, 60, "indicated-MBS-session-area-information-not-served-by-the-gNB" },
77
  { 55, 39, "inconsistent-slice-info-for-the-session" },
78
  { 56, 44, "misaligned-association-for-multicast-unicast" },
79
  { 57, 24, "eredcap-ue-not-supported" },
80
  { 58, 26, "two-rx-xr-ue-not-supported" },
81
  { 59, 57, "aerial-ue-flight-information-reporting-initiation-failure" },
82
  { 60, 31, "unknown-RAN-AIoT-Device-NGAP-ID" },
83
  { 61, 61, "requested-AIoT-service-area-information-not-served-by-the-gNB" },
84
  { 62, 20, "unknown-AIoT-session" },
85
  { 63, 25, "aiot-device-not-reachable" },
86
  { 64, 34, "multiple-AIoT-session-ID-instances" }
87
  /* This list is extensible */
88
};
89
static int asn_validate_NGAP_CauseRadioNetwork_1(const asn_TYPE_descriptor_t *td,
90
                       const void *sptr,
91
                       asn_app_constraint_failed_f *ctfailcb,
92
0
                       void* app_key) {
93
0
    if(! sptr) { return -1; }
94
0
    e_NGAP_CauseRadioNetwork value = *(e_NGAP_CauseRadioNetwork*)sptr;
95
0
    switch(value) {
96
0
    case NGAP_CauseRadioNetwork_unspecified:
97
0
    case NGAP_CauseRadioNetwork_txnrelocoverall_expiry:
98
0
    case NGAP_CauseRadioNetwork_successful_handover:
99
0
    case NGAP_CauseRadioNetwork_release_due_to_ngran_generated_reason:
100
0
    case NGAP_CauseRadioNetwork_release_due_to_5gc_generated_reason:
101
0
    case NGAP_CauseRadioNetwork_handover_cancelled:
102
0
    case NGAP_CauseRadioNetwork_partial_handover:
103
0
    case NGAP_CauseRadioNetwork_ho_failure_in_target_5GC_ngran_node_or_target_system:
104
0
    case NGAP_CauseRadioNetwork_ho_target_not_allowed:
105
0
    case NGAP_CauseRadioNetwork_tngrelocoverall_expiry:
106
0
    case NGAP_CauseRadioNetwork_tngrelocprep_expiry:
107
0
    case NGAP_CauseRadioNetwork_cell_not_available:
108
0
    case NGAP_CauseRadioNetwork_unknown_targetID:
109
0
    case NGAP_CauseRadioNetwork_no_radio_resources_available_in_target_cell:
110
0
    case NGAP_CauseRadioNetwork_unknown_local_UE_NGAP_ID:
111
0
    case NGAP_CauseRadioNetwork_inconsistent_remote_UE_NGAP_ID:
112
0
    case NGAP_CauseRadioNetwork_handover_desirable_for_radio_reason:
113
0
    case NGAP_CauseRadioNetwork_time_critical_handover:
114
0
    case NGAP_CauseRadioNetwork_resource_optimisation_handover:
115
0
    case NGAP_CauseRadioNetwork_reduce_load_in_serving_cell:
116
0
    case NGAP_CauseRadioNetwork_user_inactivity:
117
0
    case NGAP_CauseRadioNetwork_radio_connection_with_ue_lost:
118
0
    case NGAP_CauseRadioNetwork_radio_resources_not_available:
119
0
    case NGAP_CauseRadioNetwork_invalid_qos_combination:
120
0
    case NGAP_CauseRadioNetwork_failure_in_radio_interface_procedure:
121
0
    case NGAP_CauseRadioNetwork_interaction_with_other_procedure:
122
0
    case NGAP_CauseRadioNetwork_unknown_PDU_session_ID:
123
0
    case NGAP_CauseRadioNetwork_unkown_qos_flow_ID:
124
0
    case NGAP_CauseRadioNetwork_multiple_PDU_session_ID_instances:
125
0
    case NGAP_CauseRadioNetwork_multiple_qos_flow_ID_instances:
126
0
    case NGAP_CauseRadioNetwork_encryption_and_or_integrity_protection_algorithms_not_supported:
127
0
    case NGAP_CauseRadioNetwork_ng_intra_system_handover_triggered:
128
0
    case NGAP_CauseRadioNetwork_ng_inter_system_handover_triggered:
129
0
    case NGAP_CauseRadioNetwork_xn_handover_triggered:
130
0
    case NGAP_CauseRadioNetwork_not_supported_5QI_value:
131
0
    case NGAP_CauseRadioNetwork_ue_context_transfer:
132
0
    case NGAP_CauseRadioNetwork_ims_voice_eps_fallback_or_rat_fallback_triggered:
133
0
    case NGAP_CauseRadioNetwork_up_integrity_protection_not_possible:
134
0
    case NGAP_CauseRadioNetwork_up_confidentiality_protection_not_possible:
135
0
    case NGAP_CauseRadioNetwork_slice_not_supported:
136
0
    case NGAP_CauseRadioNetwork_ue_in_rrc_inactive_state_not_reachable:
137
0
    case NGAP_CauseRadioNetwork_redirection:
138
0
    case NGAP_CauseRadioNetwork_resources_not_available_for_the_slice:
139
0
    case NGAP_CauseRadioNetwork_ue_max_integrity_protected_data_rate_reason:
140
0
    case NGAP_CauseRadioNetwork_release_due_to_cn_detected_mobility:
141
0
    case NGAP_CauseRadioNetwork_n26_interface_not_available:
142
0
    case NGAP_CauseRadioNetwork_release_due_to_pre_emption:
143
0
    case NGAP_CauseRadioNetwork_multiple_location_reporting_reference_ID_instances:
144
0
    case NGAP_CauseRadioNetwork_rsn_not_available_for_the_up:
145
0
    case NGAP_CauseRadioNetwork_npn_access_denied:
146
0
    case NGAP_CauseRadioNetwork_cag_only_access_denied:
147
0
    case NGAP_CauseRadioNetwork_insufficient_ue_capabilities:
148
0
    case NGAP_CauseRadioNetwork_redcap_ue_not_supported:
149
0
    case NGAP_CauseRadioNetwork_unknown_MBS_Session_ID:
150
0
    case NGAP_CauseRadioNetwork_indicated_MBS_session_area_information_not_served_by_the_gNB:
151
0
    case NGAP_CauseRadioNetwork_inconsistent_slice_info_for_the_session:
152
0
    case NGAP_CauseRadioNetwork_misaligned_association_for_multicast_unicast:
153
0
    case NGAP_CauseRadioNetwork_eredcap_ue_not_supported:
154
0
    case NGAP_CauseRadioNetwork_two_rx_xr_ue_not_supported:
155
0
    case NGAP_CauseRadioNetwork_aerial_ue_flight_information_reporting_initiation_failure:
156
0
    case NGAP_CauseRadioNetwork_unknown_RAN_AIoT_Device_NGAP_ID:
157
0
    case NGAP_CauseRadioNetwork_requested_AIoT_service_area_information_not_served_by_the_gNB:
158
0
    case NGAP_CauseRadioNetwork_unknown_AIoT_session:
159
0
    case NGAP_CauseRadioNetwork_aiot_device_not_reachable:
160
0
    case NGAP_CauseRadioNetwork_multiple_AIoT_session_ID_instances:
161
0
        return 0;
162
0
    }
163
0
    return -1;
164
0
}
165
static const unsigned int asn_MAP_NGAP_CauseRadioNetwork_enum2value_1[] = {
166
  59, /* aerial-ue-flight-information-reporting-initiation-failure(59) */
167
  63, /* aiot-device-not-reachable(63) */
168
  50, /* cag-only-access-denied(50) */
169
  11, /* cell-not-available(11) */
170
  30, /* encryption-and-or-integrity-protection-algorithms-not-supported(30) */
171
  57, /* eredcap-ue-not-supported(57) */
172
  24, /* failure-in-radio-interface-procedure(24) */
173
  5,  /* handover-cancelled(5) */
174
  16, /* handover-desirable-for-radio-reason(16) */
175
  7,  /* ho-failure-in-target-5GC-ngran-node-or-target-system(7) */
176
  8,  /* ho-target-not-allowed(8) */
177
  36, /* ims-voice-eps-fallback-or-rat-fallback-triggered(36) */
178
  15, /* inconsistent-remote-UE-NGAP-ID(15) */
179
  55, /* inconsistent-slice-info-for-the-session(55) */
180
  54, /* indicated-MBS-session-area-information-not-served-by-the-gNB(54) */
181
  51, /* insufficient-ue-capabilities(51) */
182
  25, /* interaction-with-other-procedure(25) */
183
  23, /* invalid-qos-combination(23) */
184
  56, /* misaligned-association-for-multicast-unicast(56) */
185
  64, /* multiple-AIoT-session-ID-instances(64) */
186
  28, /* multiple-PDU-session-ID-instances(28) */
187
  47, /* multiple-location-reporting-reference-ID-instances(47) */
188
  29, /* multiple-qos-flow-ID-instances(29) */
189
  45, /* n26-interface-not-available(45) */
190
  32, /* ng-inter-system-handover-triggered(32) */
191
  31, /* ng-intra-system-handover-triggered(31) */
192
  13, /* no-radio-resources-available-in-target-cell(13) */
193
  34, /* not-supported-5QI-value(34) */
194
  49, /* npn-access-denied(49) */
195
  6,  /* partial-handover(6) */
196
  21, /* radio-connection-with-ue-lost(21) */
197
  22, /* radio-resources-not-available(22) */
198
  52, /* redcap-ue-not-supported(52) */
199
  41, /* redirection(41) */
200
  19, /* reduce-load-in-serving-cell(19) */
201
  4,  /* release-due-to-5gc-generated-reason(4) */
202
  44, /* release-due-to-cn-detected-mobility(44) */
203
  3,  /* release-due-to-ngran-generated-reason(3) */
204
  46, /* release-due-to-pre-emption(46) */
205
  61, /* requested-AIoT-service-area-information-not-served-by-the-gNB(61) */
206
  18, /* resource-optimisation-handover(18) */
207
  42, /* resources-not-available-for-the-slice(42) */
208
  48, /* rsn-not-available-for-the-up(48) */
209
  39, /* slice-not-supported(39) */
210
  2,  /* successful-handover(2) */
211
  17, /* time-critical-handover(17) */
212
  9,  /* tngrelocoverall-expiry(9) */
213
  10, /* tngrelocprep-expiry(10) */
214
  58, /* two-rx-xr-ue-not-supported(58) */
215
  1,  /* txnrelocoverall-expiry(1) */
216
  35, /* ue-context-transfer(35) */
217
  40, /* ue-in-rrc-inactive-state-not-reachable(40) */
218
  43, /* ue-max-integrity-protected-data-rate-reason(43) */
219
  62, /* unknown-AIoT-session(62) */
220
  53, /* unknown-MBS-Session-ID(53) */
221
  26, /* unknown-PDU-session-ID(26) */
222
  60, /* unknown-RAN-AIoT-Device-NGAP-ID(60) */
223
  14, /* unknown-local-UE-NGAP-ID(14) */
224
  12, /* unknown-targetID(12) */
225
  27, /* unkown-qos-flow-ID(27) */
226
  0,  /* unspecified(0) */
227
  38, /* up-confidentiality-protection-not-possible(38) */
228
  37, /* up-integrity-protection-not-possible(37) */
229
  20, /* user-inactivity(20) */
230
  33  /* xn-handover-triggered(33) */
231
  /* This list is extensible */
232
};
233
const asn_INTEGER_specifics_t asn_SPC_NGAP_CauseRadioNetwork_specs_1 = {
234
  asn_MAP_NGAP_CauseRadioNetwork_value2enum_1,  /* "tag" => N; sorted by tag */
235
  asn_MAP_NGAP_CauseRadioNetwork_enum2value_1,  /* N => "tag"; sorted by N */
236
  65, /* Number of elements in the maps */
237
  46, /* Extensions before this member */
238
  1,  /* Strict enumeration */
239
  0,  /* Native long size */
240
  0
241
};
242
static const ber_tlv_tag_t asn_DEF_NGAP_CauseRadioNetwork_tags_1[] = {
243
  (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
244
};
245
asn_TYPE_descriptor_t asn_DEF_NGAP_CauseRadioNetwork = {
246
  "CauseRadioNetwork",
247
  "CauseRadioNetwork",
248
  &asn_OP_NativeEnumerated,
249
  asn_DEF_NGAP_CauseRadioNetwork_tags_1,
250
  sizeof(asn_DEF_NGAP_CauseRadioNetwork_tags_1)
251
    /sizeof(asn_DEF_NGAP_CauseRadioNetwork_tags_1[0]), /* 1 */
252
  asn_DEF_NGAP_CauseRadioNetwork_tags_1,  /* Same as above */
253
  sizeof(asn_DEF_NGAP_CauseRadioNetwork_tags_1)
254
    /sizeof(asn_DEF_NGAP_CauseRadioNetwork_tags_1[0]), /* 1 */
255
  {
256
#if !defined(ASN_DISABLE_OER_SUPPORT)
257
    0,
258
#endif  /* !defined(ASN_DISABLE_OER_SUPPORT) */
259
#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
260
    &asn_PER_type_NGAP_CauseRadioNetwork_constr_1,
261
#endif  /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
262
#if !defined(ASN_DISABLE_JER_SUPPORT)
263
    0,
264
#endif  /* !defined(ASN_DISABLE_JER_SUPPORT) */
265
    asn_validate_NGAP_CauseRadioNetwork_1
266
  },
267
  0, 0, /* Defined elsewhere */
268
  &asn_SPC_NGAP_CauseRadioNetwork_specs_1 /* Additional specs */
269
};
270