|
22 | 22 |
|
23 | 23 | #pragma once |
24 | 24 |
|
| 25 | +#include "srsran/adt/variant.h" |
| 26 | + |
25 | 27 | namespace srsran { |
26 | 28 |
|
27 | | -enum class cause_t : uint8_t { |
28 | | - radio_network = 0, |
29 | | - transport = 1, |
30 | | - nas = 2, |
31 | | - protocol = 3, |
32 | | - misc = 4, |
33 | | - choice_exts = 5, |
34 | | - nulltype = 6 |
| 29 | +enum class cause_radio_network_t : uint8_t { |
| 30 | + unspecified = 0, |
| 31 | + txnrelocoverall_expiry, |
| 32 | + successful_ho, |
| 33 | + release_due_to_ngran_generated_reason, |
| 34 | + release_due_to_5gc_generated_reason, |
| 35 | + ho_cancelled, |
| 36 | + partial_ho, |
| 37 | + ho_fail_in_target_5_gc_ngran_node_or_target_sys, |
| 38 | + ho_target_not_allowed, |
| 39 | + tngrelocoverall_expiry, |
| 40 | + tngrelocprep_expiry, |
| 41 | + cell_not_available, |
| 42 | + unknown_target_id, |
| 43 | + no_radio_res_available_in_target_cell, |
| 44 | + unknown_local_ue_ngap_id, |
| 45 | + inconsistent_remote_ue_ngap_id, |
| 46 | + ho_desirable_for_radio_reason, |
| 47 | + time_crit_ho, |
| 48 | + res_optim_ho, |
| 49 | + reduce_load_in_serving_cell, |
| 50 | + user_inactivity, |
| 51 | + radio_conn_with_ue_lost, |
| 52 | + radio_res_not_available, |
| 53 | + invalid_qos_combination, |
| 54 | + fail_in_radio_interface_proc, |
| 55 | + interaction_with_other_proc, |
| 56 | + unknown_pdu_session_id, |
| 57 | + unkown_qos_flow_id, |
| 58 | + multiple_pdu_session_id_instances, |
| 59 | + multiple_qos_flow_id_instances, |
| 60 | + encryption_and_or_integrity_protection_algorithms_not_supported, |
| 61 | + ng_intra_sys_ho_triggered, |
| 62 | + ng_inter_sys_ho_triggered, |
| 63 | + xn_ho_triggered, |
| 64 | + not_supported_5qi_value, |
| 65 | + ue_context_transfer, |
| 66 | + ims_voice_eps_fallback_or_rat_fallback_triggered, |
| 67 | + up_integrity_protection_not_possible, |
| 68 | + up_confidentiality_protection_not_possible, |
| 69 | + slice_not_supported, |
| 70 | + ue_in_rrc_inactive_state_not_reachable, |
| 71 | + redirection, |
| 72 | + res_not_available_for_the_slice, |
| 73 | + ue_max_integrity_protected_data_rate_reason, |
| 74 | + release_due_to_cn_detected_mob |
| 75 | +}; |
| 76 | + |
| 77 | +enum class cause_transport_t : uint8_t { transport_res_unavailable = 0, unspecified }; |
| 78 | + |
| 79 | +enum class cause_nas_t : uint8_t { normal_release = 0, authentication_fail, deregister, unspecified }; |
| 80 | + |
| 81 | +enum class cause_protocol_t : uint8_t { |
| 82 | + transfer_syntax_error = 0, |
| 83 | + abstract_syntax_error_reject, |
| 84 | + abstract_syntax_error_ignore_and_notify, |
| 85 | + msg_not_compatible_with_receiver_state, |
| 86 | + semantic_error, |
| 87 | + abstract_syntax_error_falsely_constructed_msg, |
| 88 | + unspecified |
| 89 | +}; |
| 90 | + |
| 91 | +enum class cause_misc_t : uint8_t { |
| 92 | + ctrl_processing_overload = 0, |
| 93 | + not_enough_user_plane_processing_res, |
| 94 | + hardware_fail, |
| 95 | + om_intervention, |
| 96 | + unknown_plmn_or_sn_pn, |
| 97 | + unspecified |
35 | 98 | }; |
36 | 99 |
|
| 100 | +using cause_t = variant<cause_radio_network_t, cause_transport_t, cause_nas_t, cause_protocol_t, cause_misc_t>; |
| 101 | + |
37 | 102 | } // namespace srsran |
0 commit comments