diff --git a/lib/include/srsran/asn1/asn1_utils.h b/lib/include/srsran/asn1/asn1_utils.h index 33bffd509..84633c787 100644 --- a/lib/include/srsran/asn1/asn1_utils.h +++ b/lib/include/srsran/asn1/asn1_utils.h @@ -16,14 +16,11 @@ #include "srsran/common/buffer_pool.h" #include "srsran/srslog/srslog.h" #include "srsran/support/srsran_assert.h" -#include #include #include #include -#include #include #include -#include namespace asn1 { @@ -1472,32 +1469,33 @@ struct crit_opts { }; typedef enumerated crit_e; -// ProtocolIE-SingleContainer{LAYER-PROTOCOL-IES : IEsSetParam} ::= SEQUENCE{{LAYER-PROTOCOL-IES}} -template -struct protocol_ie_single_container_s { - using value_type = typename ies_set_paramT_::value_c; +template +struct base_protocol_ie_field { + using value_type = ValueType; - uint32_t id() const { return ies_set_paramT_::idx_to_id(value.type().value); } - crit_e crit() const { return ies_set_paramT_::get_crit(id()); } - value_type* operator->() { return &value; } - const value_type* operator->() const { return &value; } - value_type& operator*() { return value; } - const value_type& operator*() const { return value; } + uint32_t id() const { return ObjSet::idx_to_id(value().type().value); } + crit_e crit() const { return ObjSet::get_crit(id()); } + value_type& value() { return value_; } + const value_type& value() const { return value_; } + value_type* operator->() { return &value(); } + const value_type* operator->() const { return &value(); } + value_type& operator*() { return value(); } + const value_type& operator*() const { return value(); } SRSASN_CODE pack(bit_ref& bref) const { HANDLE_CODE(pack_integer(bref, id(), (uint32_t)0u, (uint32_t)65535u, false, true)); HANDLE_CODE(crit().pack(bref)); - HANDLE_CODE(value.pack(bref)); + HANDLE_CODE(value().pack(bref)); return SRSASN_SUCCESS; } SRSASN_CODE unpack(cbit_ref& bref) { uint32_t id_val; HANDLE_CODE(unpack_integer(id_val, bref, (uint32_t)0u, (uint32_t)65535u, false, true)); + value_ = (*Getter)(id_val); HANDLE_CODE(crit().unpack(bref)); - value = ies_set_paramT_::get_value(id_val); - HANDLE_CODE(value.unpack(bref)); + HANDLE_CODE(value_.unpack(bref)); return SRSASN_SUCCESS; } void to_json(json_writer& j) const @@ -1505,21 +1503,114 @@ struct protocol_ie_single_container_s { j.start_obj(); j.write_int("id", id()); j.write_str("criticality", crit().to_string()); + // j.write_str("value"); + // to_json(j, value()); j.end_obj(); } - bool load_info_obj(const uint32_t& id_val) + bool load_info_obj(const uint32_t& id_) { - if (not ies_set_paramT_::is_id_valid(id_val)) { + if (not ObjSet::is_id_valid(id_)) { return false; } - value = ies_set_paramT_::get_value(id_val); - return value.type().value != ies_set_paramT_::value_c::types_opts::nulltype; + value_ = ObjSet::get_value(id_); + return value_.type().value != ObjSet::value_c::types_opts::nulltype; } private: + value_type value_; +}; + +// ProtocolIE-Field{LAYER-PROTOCOL-IES : IEsSetParam} ::= SEQUENCE{{IEsSetParam}} +template +struct protocol_ie_field_s + : public base_protocol_ie_field {}; + +// ProtocolIE-SingleContainer{LAYER-PROTOCOL-IES : IEsSetParam} ::= SEQUENCE{{IEsSetParam}} +template +struct protocol_ie_single_container_s : public protocol_ie_field_s {}; + +// ProtocolExtensionField{NGAP-PROTOCOL-EXTENSION : ExtensionSetParam} ::= SEQUENCE{{NGAP-PROTOCOL-EXTENSION}} +template +struct protocol_ext_field_s + : public base_protocol_ie_field {}; + +template +struct base_protocol_ie_container_item_s { + base_protocol_ie_container_item_s(uint32_t id_, crit_e crit_) : id(id_), crit(crit_) {} + + uint32_t id = 0; + crit_e crit; + + SRSASN_CODE pack(bit_ref& bref) const + { + HANDLE_CODE(pack_integer(bref, id, (uint32_t)0u, (uint32_t)65535u, false, true)); + HANDLE_CODE(crit.pack(bref)); + { + varlength_field_pack_guard varlen_scope(bref, true); + HANDLE_CODE((*derived())->pack(bref)); + } + return SRSASN_SUCCESS; + } + SRSASN_CODE unpack(cbit_ref& bref) + { + HANDLE_CODE(unpack_integer(id, bref, (uint32_t)0u, (uint32_t)65535u, false, true)); + HANDLE_CODE(crit.unpack(bref)); + { + varlength_field_unpack_guard varlen_scope(bref, true); + HANDLE_CODE((*derived())->unpack(bref)); + } + return SRSASN_SUCCESS; + } + void to_json(json_writer& j) const + { + j.start_obj(); + j.write_int("id", id); + j.write_str("criticality", crit.to_string()); + j.end_obj(); + } + +private: + Derived* derived() { return static_cast(this); } + const Derived* derived() const { return static_cast(this); } +}; + +template +struct protocol_ie_container_item_s : public base_protocol_ie_container_item_s > { + using base_type = base_protocol_ie_container_item_s >; + using value_type = T; + value_type value; + + using base_type::base_type; + value_type* operator->() { return &value; } + const value_type* operator->() const { return &value; } + value_type& operator*() { return value; } + const value_type& operator*() const { return value; } }; +template +struct protocol_ext_container_item_s : public base_protocol_ie_container_item_s > { + using base_type = base_protocol_ie_container_item_s >; + using value_type = T; + + value_type ext; + + using base_type::base_type; + value_type* operator->() { return &ext; } + const value_type* operator->() const { return &ext; } + value_type& operator*() { return ext; } + const value_type& operator*() const { return ext; } +}; + +// ProtocolIE-Container{NGAP-PROTOCOL-IES : IEsSetParam} ::= SEQUENCE (SIZE (0..65535)) OF ProtocolIE-Field +template +using protocol_ie_container_l = dyn_seq_of, 0, 65535, true>; + +// ProtocolExtensionContainer{NGAP-PROTOCOL-EXTENSION : ExtensionSetParam} ::= SEQUENCE (SIZE (1..65535)) OF +// ProtocolExtensionField +template +using protocol_ext_container_l = dyn_seq_of, 1, 65535, true>; + } // namespace asn1 #endif // SRSASN_COMMON_UTILS_H diff --git a/lib/include/srsran/asn1/ngap.h b/lib/include/srsran/asn1/ngap.h index a52ac7ce5..d99e5e9e1 100644 --- a/lib/include/srsran/asn1/ngap.h +++ b/lib/include/srsran/asn1/ngap.h @@ -299,19 +299,6 @@ struct presence_opts { }; typedef enumerated presence_e; -// ProtocolIE-Field{NGAP-PROTOCOL-IES : IEsSetParam} ::= SEQUENCE{{NGAP-PROTOCOL-IES}} -template -struct protocol_ie_field_s { - uint32_t id = 0; - crit_e crit; - typename ies_set_paramT_::value_c value; - - SRSASN_CODE pack(bit_ref& bref) const; - SRSASN_CODE unpack(cbit_ref& bref); - void to_json(json_writer& j) const; - bool load_info_obj(const uint32_t& id_); -}; - struct ngap_protocol_ies_empty_o { // Value ::= OPEN TYPE struct value_c { @@ -339,19 +326,6 @@ struct ngap_protocol_ies_empty_o { // CPTransportLayerInformation-ExtIEs ::= OBJECT SET OF NGAP-PROTOCOL-IES using cp_transport_layer_info_ext_ies_o = ngap_protocol_ies_empty_o; -// ProtocolExtensionField{NGAP-PROTOCOL-EXTENSION : ExtensionSetParam} ::= SEQUENCE{{NGAP-PROTOCOL-EXTENSION}} -template -struct protocol_ext_field_s { - uint32_t id = 0; - crit_e crit; - typename ext_set_paramT_::ext_c ext_value; - - SRSASN_CODE pack(bit_ref& bref) const; - SRSASN_CODE unpack(cbit_ref& bref); - void to_json(json_writer& j) const; - bool load_info_obj(const uint32_t& id_); -}; - struct ngap_protocol_ext_empty_o { // Extension ::= OPEN TYPE struct ext_c { @@ -431,24 +405,6 @@ private: void destroy_(); }; -// ProtocolExtensionContainer{NGAP-PROTOCOL-EXTENSION : ExtensionSetParam} ::= SEQUENCE (SIZE (1..65535)) OF -// ProtocolExtensionField -template -using protocol_ext_container_l = dyn_seq_of, 1, 65535, true>; - -template -struct protocol_ext_container_item_s { - uint32_t id = 0; - crit_e crit; - extT_ ext; - - // sequence methods - protocol_ext_container_item_s(uint32_t id_, crit_e crit_); - SRSASN_CODE pack(bit_ref& bref) const; - SRSASN_CODE unpack(cbit_ref& bref); - void to_json(json_writer& j) const; -}; - struct protocol_ext_container_empty_l { template using ie_field_s = protocol_ext_container_item_s; @@ -739,23 +695,6 @@ struct amf_cfg_upd_ies_o { static presence_e get_presence(const uint32_t& id); }; -// ProtocolIE-Container{NGAP-PROTOCOL-IES : IEsSetParam} ::= SEQUENCE (SIZE (0..65535)) OF ProtocolIE-Field -template -using protocol_ie_container_l = dyn_seq_of, 0, 65535, true>; - -template -struct protocol_ie_container_item_s { - uint32_t id = 0; - crit_e crit; - valueT_ value; - - // sequence methods - protocol_ie_container_item_s(uint32_t id_, crit_e crit_); - SRSASN_CODE pack(bit_ref& bref) const; - SRSASN_CODE unpack(cbit_ref& bref); - void to_json(json_writer& j) const; -}; - struct amf_cfg_upd_ies_container { template using ie_field_s = protocol_ie_container_item_s; @@ -14975,4 +14914,83 @@ struct target_ngran_node_to_source_ngran_node_transparent_container_s { } // namespace ngap } // namespace asn1 +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ext_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; + #endif // SRSASN1_NGAP_H diff --git a/lib/include/srsran/asn1/s1ap.h b/lib/include/srsran/asn1/s1ap.h index a83f77594..2e700f6bc 100644 --- a/lib/include/srsran/asn1/s1ap.h +++ b/lib/include/srsran/asn1/s1ap.h @@ -487,41 +487,6 @@ struct private_ie_field_s { template using private_ie_container_l = dyn_seq_of, 1, 65535, true>; -// ProtocolExtensionField{S1AP-PROTOCOL-EXTENSION : ExtensionSetParam} ::= SEQUENCE{{S1AP-PROTOCOL-EXTENSION}} -template -struct protocol_ext_field_s { - uint32_t id = 0; - crit_e crit; - typename ext_set_paramT_::ext_c ext_value; - - SRSASN_CODE pack(bit_ref& bref) const; - SRSASN_CODE unpack(cbit_ref& bref); - void to_json(json_writer& j) const; - bool load_info_obj(const uint32_t& id_); -}; - -// ProtocolExtensionContainer{S1AP-PROTOCOL-EXTENSION : ExtensionSetParam} ::= SEQUENCE (SIZE (1..65535)) OF -// ProtocolExtensionField -template -using protocol_ext_container_l = dyn_seq_of, 1, 65535, true>; - -// ProtocolIE-Field{S1AP-PROTOCOL-IES : IEsSetParam} ::= SEQUENCE{{S1AP-PROTOCOL-IES}} -template -struct protocol_ie_field_s { - uint32_t id = 0; - crit_e crit; - typename ies_set_paramT_::value_c value; - - SRSASN_CODE pack(bit_ref& bref) const; - SRSASN_CODE unpack(cbit_ref& bref); - void to_json(json_writer& j) const; - bool load_info_obj(const uint32_t& id_); -}; - -// ProtocolIE-Container{S1AP-PROTOCOL-IES : IEsSetParam} ::= SEQUENCE (SIZE (0..65535)) OF ProtocolIE-Field -template -using protocol_ie_container_l = dyn_seq_of, 0, 65535, true>; - // ProtocolIE-FieldPair{S1AP-PROTOCOL-IES-PAIR : IEsSetParam} ::= SEQUENCE{{S1AP-PROTOCOL-IES-PAIR}} template struct protocol_ie_field_pair_s { @@ -589,19 +554,6 @@ using plm_nid = fixed_octstring<3, true>; // Additional-GUTI-ExtIEs ::= OBJECT SET OF S1AP-PROTOCOL-EXTENSION using add_guti_ext_ies_o = s1ap_protocol_ext_empty_o; -template -struct protocol_ext_container_item_s { - uint32_t id = 0; - crit_e crit; - extT_ ext; - - // sequence methods - protocol_ext_container_item_s(uint32_t id_, crit_e crit_); - SRSASN_CODE pack(bit_ref& bref) const; - SRSASN_CODE unpack(cbit_ref& bref); - void to_json(json_writer& j) const; -}; - struct protocol_ext_container_empty_l { template using ie_field_s = protocol_ext_container_item_s; @@ -2471,19 +2423,6 @@ struct cell_traffic_trace_ies_o { static presence_e get_presence(const uint32_t& id); }; -template -struct protocol_ie_container_item_s { - uint32_t id = 0; - crit_e crit; - valueT_ value; - - // sequence methods - protocol_ie_container_item_s(uint32_t id_, crit_e crit_); - SRSASN_CODE pack(bit_ref& bref) const; - SRSASN_CODE unpack(cbit_ref& bref); - void to_json(json_writer& j) const; -}; - struct cell_traffic_trace_ies_container { template using ie_field_s = protocol_ie_container_item_s; @@ -18208,24 +18147,125 @@ struct targetenb_to_sourceenb_transparent_container_s { } // namespace asn1 extern template struct asn1::protocol_ie_single_container_s; +extern template struct asn1::protocol_ext_field_s; extern template struct asn1::protocol_ie_single_container_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ext_field_s; +extern template struct asn1::protocol_ext_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ext_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; extern template struct asn1::protocol_ie_single_container_s; extern template struct asn1::protocol_ie_single_container_s; extern template struct asn1::protocol_ie_single_container_s; +extern template struct asn1::protocol_ie_field_s; extern template struct asn1::protocol_ie_single_container_s; extern template struct asn1::protocol_ie_single_container_s; +extern template struct asn1::protocol_ie_field_s; extern template struct asn1::protocol_ie_single_container_s; extern template struct asn1::protocol_ie_single_container_s; +extern template struct asn1::protocol_ext_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; extern template struct asn1::protocol_ie_single_container_s; +extern template struct asn1::protocol_ie_field_s; extern template struct asn1::protocol_ie_single_container_s; extern template struct asn1::protocol_ie_single_container_s; +extern template struct asn1::protocol_ext_field_s; extern template struct asn1::protocol_ie_single_container_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ext_field_s; +extern template struct asn1::protocol_ext_field_s; extern template struct asn1::protocol_ie_single_container_s; +extern template struct asn1::protocol_ext_field_s; extern template struct asn1::protocol_ie_single_container_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ext_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ext_field_s; +extern template struct asn1::protocol_ext_field_s; extern template struct asn1::protocol_ie_single_container_s; +extern template struct asn1::protocol_ext_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; extern template struct asn1::protocol_ie_single_container_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; extern template struct asn1::protocol_ie_single_container_s; extern template struct asn1::protocol_ie_single_container_s; extern template struct asn1::protocol_ie_single_container_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ie_field_s; +extern template struct asn1::protocol_ext_field_s; +extern template struct asn1::protocol_ext_field_s; #endif // SRSASN1_S1AP_H diff --git a/lib/src/asn1/ngap.cc b/lib/src/asn1/ngap.cc index 33a483cb9..e8b64268e 100644 --- a/lib/src/asn1/ngap.cc +++ b/lib/src/asn1/ngap.cc @@ -27,47 +27,6 @@ const char* presence_opts::to_string() const return convert_enum_idx(options, 3, value, "presence_e"); } -// ProtocolIE-Field{NGAP-PROTOCOL-IES : IEsSetParam} ::= SEQUENCE{{NGAP-PROTOCOL-IES}} -template -SRSASN_CODE protocol_ie_field_s::pack(bit_ref& bref) const -{ - HANDLE_CODE(pack_integer(bref, id, (uint32_t)0u, (uint32_t)65535u, false, true)); - warn_assert(crit != ies_set_paramT_::get_crit(id), __func__, __LINE__); - HANDLE_CODE(crit.pack(bref)); - HANDLE_CODE(value.pack(bref)); - - return SRSASN_SUCCESS; -} -template -SRSASN_CODE protocol_ie_field_s::unpack(cbit_ref& bref) -{ - HANDLE_CODE(unpack_integer(id, bref, (uint32_t)0u, (uint32_t)65535u, false, true)); - HANDLE_CODE(crit.unpack(bref)); - value = ies_set_paramT_::get_value(id); - HANDLE_CODE(value.unpack(bref)); - - return SRSASN_SUCCESS; -} -template -void protocol_ie_field_s::to_json(json_writer& j) const -{ - j.start_obj(); - j.write_int("id", id); - j.write_str("criticality", crit.to_string()); - j.end_obj(); -} -template -bool protocol_ie_field_s::load_info_obj(const uint32_t& id_) -{ - if (not ies_set_paramT_::is_id_valid(id_)) { - return false; - } - id = id_; - crit = ies_set_paramT_::get_crit(id); - value = ies_set_paramT_::get_value(id); - return value.type().value != ies_set_paramT_::value_c::types_opts::nulltype; -} - uint32_t ngap_protocol_ies_empty_o::idx_to_id(uint32_t idx) { asn1::log_error("object set is empty\n"); @@ -114,47 +73,6 @@ const char* ngap_protocol_ies_empty_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 0, value, "ngap_protocol_ies_empty_o::value_c::types"); } -// ProtocolExtensionField{NGAP-PROTOCOL-EXTENSION : ExtensionSetParam} ::= SEQUENCE{{NGAP-PROTOCOL-EXTENSION}} -template -SRSASN_CODE protocol_ext_field_s::pack(bit_ref& bref) const -{ - HANDLE_CODE(pack_integer(bref, id, (uint32_t)0u, (uint32_t)65535u, false, true)); - warn_assert(crit != ext_set_paramT_::get_crit(id), __func__, __LINE__); - HANDLE_CODE(crit.pack(bref)); - HANDLE_CODE(ext_value.pack(bref)); - - return SRSASN_SUCCESS; -} -template -SRSASN_CODE protocol_ext_field_s::unpack(cbit_ref& bref) -{ - HANDLE_CODE(unpack_integer(id, bref, (uint32_t)0u, (uint32_t)65535u, false, true)); - HANDLE_CODE(crit.unpack(bref)); - ext_value = ext_set_paramT_::get_ext(id); - HANDLE_CODE(ext_value.unpack(bref)); - - return SRSASN_SUCCESS; -} -template -void protocol_ext_field_s::to_json(json_writer& j) const -{ - j.start_obj(); - j.write_int("id", id); - j.write_str("criticality", crit.to_string()); - j.end_obj(); -} -template -bool protocol_ext_field_s::load_info_obj(const uint32_t& id_) -{ - if (not ext_set_paramT_::is_id_valid(id_)) { - return false; - } - id = id_; - crit = ext_set_paramT_::get_crit(id); - ext_value = ext_set_paramT_::get_ext(id); - return ext_value.type().value != ext_set_paramT_::ext_c::types_opts::nulltype; -} - uint32_t ngap_protocol_ext_empty_o::idx_to_id(uint32_t idx) { asn1::log_error("object set is empty\n"); @@ -336,41 +254,6 @@ const char* cp_transport_layer_info_c::types_opts::to_string() const return convert_enum_idx(options, 2, value, "cp_transport_layer_info_c::types"); } -template -protocol_ext_container_item_s::protocol_ext_container_item_s(uint32_t id_, crit_e crit_) : id(id_), crit(crit_) - -{} -template -SRSASN_CODE protocol_ext_container_item_s::pack(bit_ref& bref) const -{ - HANDLE_CODE(pack_integer(bref, id, (uint32_t)0u, (uint32_t)65535u, false, true)); - HANDLE_CODE(crit.pack(bref)); - { - varlength_field_pack_guard varlen_scope(bref, true); - HANDLE_CODE(ext.pack(bref)); - } - return SRSASN_SUCCESS; -} -template -SRSASN_CODE protocol_ext_container_item_s::unpack(cbit_ref& bref) -{ - HANDLE_CODE(unpack_integer(id, bref, (uint32_t)0u, (uint32_t)65535u, false, true)); - HANDLE_CODE(crit.unpack(bref)); - { - varlength_field_unpack_guard varlen_scope(bref, true); - HANDLE_CODE(ext.unpack(bref)); - } - return SRSASN_SUCCESS; -} -template -void protocol_ext_container_item_s::to_json(json_writer& j) const -{ - j.start_obj(); - j.write_int("id", id); - j.write_str("criticality", crit.to_string()); - j.end_obj(); -} - SRSASN_CODE protocol_ext_container_empty_l::pack(bit_ref& bref) const { uint32_t nof_ies = 0; @@ -1222,42 +1105,7 @@ uint8_t amf_cfg_upd_ies_o::value_c::types_opts::to_number() const return 0; } -template -protocol_ie_container_item_s::protocol_ie_container_item_s(uint32_t id_, crit_e crit_) : id(id_), crit(crit_) - -{} -template -SRSASN_CODE protocol_ie_container_item_s::pack(bit_ref& bref) const -{ - HANDLE_CODE(pack_integer(bref, id, (uint32_t)0u, (uint32_t)65535u, false, true)); - HANDLE_CODE(crit.pack(bref)); - { - varlength_field_pack_guard varlen_scope(bref, true); - HANDLE_CODE(value.pack(bref)); - } - return SRSASN_SUCCESS; -} -template -SRSASN_CODE protocol_ie_container_item_s::unpack(cbit_ref& bref) -{ - HANDLE_CODE(unpack_integer(id, bref, (uint32_t)0u, (uint32_t)65535u, false, true)); - HANDLE_CODE(crit.unpack(bref)); - { - varlength_field_unpack_guard varlen_scope(bref, true); - HANDLE_CODE(value.unpack(bref)); - } - return SRSASN_SUCCESS; -} -template -void protocol_ie_container_item_s::to_json(json_writer& j) const -{ - j.start_obj(); - j.write_int("id", id); - j.write_str("criticality", crit.to_string()); - j.end_obj(); -} - -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; amf_cfg_upd_ies_container::amf_cfg_upd_ies_container() : amf_name(1, crit_e::reject), @@ -1312,51 +1160,51 @@ SRSASN_CODE amf_cfg_upd_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 1: amf_name_present = true; - amf_name.id = c.id; - amf_name.crit = c.crit; - amf_name.value = c.value.amf_name(); + amf_name.id = c.id(); + amf_name.crit = c.crit(); + amf_name.value = c.value().amf_name(); break; case 96: served_guami_list_present = true; - served_guami_list.id = c.id; - served_guami_list.crit = c.crit; - served_guami_list.value = c.value.served_guami_list(); + served_guami_list.id = c.id(); + served_guami_list.crit = c.crit(); + served_guami_list.value = c.value().served_guami_list(); break; case 86: relative_amf_capacity_present = true; - relative_amf_capacity.id = c.id; - relative_amf_capacity.crit = c.crit; - relative_amf_capacity.value = c.value.relative_amf_capacity(); + relative_amf_capacity.id = c.id(); + relative_amf_capacity.crit = c.crit(); + relative_amf_capacity.value = c.value().relative_amf_capacity(); break; case 80: plmn_support_list_present = true; - plmn_support_list.id = c.id; - plmn_support_list.crit = c.crit; - plmn_support_list.value = c.value.plmn_support_list(); + plmn_support_list.id = c.id(); + plmn_support_list.crit = c.crit(); + plmn_support_list.value = c.value().plmn_support_list(); break; case 6: amf_tnlassoc_to_add_list_present = true; - amf_tnlassoc_to_add_list.id = c.id; - amf_tnlassoc_to_add_list.crit = c.crit; - amf_tnlassoc_to_add_list.value = c.value.amf_tnlassoc_to_add_list(); + amf_tnlassoc_to_add_list.id = c.id(); + amf_tnlassoc_to_add_list.crit = c.crit(); + amf_tnlassoc_to_add_list.value = c.value().amf_tnlassoc_to_add_list(); break; case 7: amf_tnlassoc_to_rem_list_present = true; - amf_tnlassoc_to_rem_list.id = c.id; - amf_tnlassoc_to_rem_list.crit = c.crit; - amf_tnlassoc_to_rem_list.value = c.value.amf_tnlassoc_to_rem_list(); + amf_tnlassoc_to_rem_list.id = c.id(); + amf_tnlassoc_to_rem_list.crit = c.crit(); + amf_tnlassoc_to_rem_list.value = c.value().amf_tnlassoc_to_rem_list(); break; case 8: amf_tnlassoc_to_upd_list_present = true; - amf_tnlassoc_to_upd_list.id = c.id; - amf_tnlassoc_to_upd_list.crit = c.crit; - amf_tnlassoc_to_upd_list.value = c.value.amf_tnlassoc_to_upd_list(); + amf_tnlassoc_to_upd_list.id = c.id(); + amf_tnlassoc_to_upd_list.crit = c.crit(); + amf_tnlassoc_to_upd_list.value = c.value().amf_tnlassoc_to_upd_list(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -2159,7 +2007,7 @@ const char* amf_cfg_upd_ack_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 3, value, "amf_cfg_upd_ack_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; amf_cfg_upd_ack_ies_container::amf_cfg_upd_ack_ies_container() : amf_tnlassoc_setup_list(5, crit_e::ignore), @@ -2194,27 +2042,27 @@ SRSASN_CODE amf_cfg_upd_ack_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 5: amf_tnlassoc_setup_list_present = true; - amf_tnlassoc_setup_list.id = c.id; - amf_tnlassoc_setup_list.crit = c.crit; - amf_tnlassoc_setup_list.value = c.value.amf_tnlassoc_setup_list(); + amf_tnlassoc_setup_list.id = c.id(); + amf_tnlassoc_setup_list.crit = c.crit(); + amf_tnlassoc_setup_list.value = c.value().amf_tnlassoc_setup_list(); break; case 4: amf_tnlassoc_failed_to_setup_list_present = true; - amf_tnlassoc_failed_to_setup_list.id = c.id; - amf_tnlassoc_failed_to_setup_list.crit = c.crit; - amf_tnlassoc_failed_to_setup_list.value = c.value.amf_tnlassoc_failed_to_setup_list(); + amf_tnlassoc_failed_to_setup_list.id = c.id(); + amf_tnlassoc_failed_to_setup_list.crit = c.crit(); + amf_tnlassoc_failed_to_setup_list.value = c.value().amf_tnlassoc_failed_to_setup_list(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -2509,7 +2357,7 @@ const char* amf_cfg_upd_fail_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 3, value, "amf_cfg_upd_fail_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; amf_cfg_upd_fail_ies_container::amf_cfg_upd_fail_ies_container() : cause(15, crit_e::ignore), time_to_wait(107, crit_e::ignore), crit_diagnostics(19, crit_e::ignore) @@ -2541,27 +2389,27 @@ SRSASN_CODE amf_cfg_upd_fail_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 15: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 107: time_to_wait_present = true; - time_to_wait.id = c.id; - time_to_wait.crit = c.crit; - time_to_wait.value = c.value.time_to_wait(); + time_to_wait.id = c.id(); + time_to_wait.crit = c.crit(); + time_to_wait.value = c.value().time_to_wait(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -6888,7 +6736,7 @@ const char* cell_traffic_trace_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 5, value, "cell_traffic_trace_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; cell_traffic_trace_ies_container::cell_traffic_trace_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -6920,39 +6768,39 @@ SRSASN_CODE cell_traffic_trace_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 44: nof_mandatory_ies--; - ngran_trace_id.id = c.id; - ngran_trace_id.crit = c.crit; - ngran_trace_id.value = c.value.ngran_trace_id(); + ngran_trace_id.id = c.id(); + ngran_trace_id.crit = c.crit(); + ngran_trace_id.value = c.value().ngran_trace_id(); break; case 43: nof_mandatory_ies--; - ngran_cgi.id = c.id; - ngran_cgi.crit = c.crit; - ngran_cgi.value = c.value.ngran_cgi(); + ngran_cgi.id = c.id(); + ngran_cgi.crit = c.crit(); + ngran_cgi.value = c.value().ngran_cgi(); break; case 109: nof_mandatory_ies--; - trace_collection_entity_ip_address.id = c.id; - trace_collection_entity_ip_address.crit = c.crit; - trace_collection_entity_ip_address.value = c.value.trace_collection_entity_ip_address(); + trace_collection_entity_ip_address.id = c.id(); + trace_collection_entity_ip_address.crit = c.crit(); + trace_collection_entity_ip_address.value = c.value().trace_collection_entity_ip_address(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -8425,7 +8273,7 @@ const char* deactiv_trace_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 3, value, "deactiv_trace_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; deactiv_trace_ies_container::deactiv_trace_ies_container() : amf_ue_ngap_id(10, crit_e::reject), ran_ue_ngap_id(85, crit_e::reject), ngran_trace_id(44, crit_e::ignore) @@ -8451,27 +8299,27 @@ SRSASN_CODE deactiv_trace_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 44: nof_mandatory_ies--; - ngran_trace_id.id = c.id; - ngran_trace_id.crit = c.crit; - ngran_trace_id.value = c.value.ngran_trace_id(); + ngran_trace_id.id = c.id(); + ngran_trace_id.crit = c.crit(); + ngran_trace_id.value = c.value().ngran_trace_id(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -9325,7 +9173,7 @@ const char* dl_nas_transport_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 9, value, "dl_nas_transport_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; dl_nas_transport_ies_container::dl_nas_transport_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -9383,63 +9231,63 @@ SRSASN_CODE dl_nas_transport_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 48: old_amf_present = true; - old_amf.id = c.id; - old_amf.crit = c.crit; - old_amf.value = c.value.old_amf(); + old_amf.id = c.id(); + old_amf.crit = c.crit(); + old_amf.value = c.value().old_amf(); break; case 83: ran_paging_prio_present = true; - ran_paging_prio.id = c.id; - ran_paging_prio.crit = c.crit; - ran_paging_prio.value = c.value.ran_paging_prio(); + ran_paging_prio.id = c.id(); + ran_paging_prio.crit = c.crit(); + ran_paging_prio.value = c.value().ran_paging_prio(); break; case 38: nof_mandatory_ies--; - nas_pdu.id = c.id; - nas_pdu.crit = c.crit; - nas_pdu.value = c.value.nas_pdu(); + nas_pdu.id = c.id(); + nas_pdu.crit = c.crit(); + nas_pdu.value = c.value().nas_pdu(); break; case 36: mob_restrict_list_present = true; - mob_restrict_list.id = c.id; - mob_restrict_list.crit = c.crit; - mob_restrict_list.value = c.value.mob_restrict_list(); + mob_restrict_list.id = c.id(); + mob_restrict_list.crit = c.crit(); + mob_restrict_list.value = c.value().mob_restrict_list(); break; case 31: idx_to_rfsp_present = true; - idx_to_rfsp.id = c.id; - idx_to_rfsp.crit = c.crit; - idx_to_rfsp.value = c.value.idx_to_rfsp(); + idx_to_rfsp.id = c.id(); + idx_to_rfsp.crit = c.crit(); + idx_to_rfsp.value = c.value().idx_to_rfsp(); break; case 110: ue_aggregate_maximum_bit_rate_present = true; - ue_aggregate_maximum_bit_rate.id = c.id; - ue_aggregate_maximum_bit_rate.crit = c.crit; - ue_aggregate_maximum_bit_rate.value = c.value.ue_aggregate_maximum_bit_rate(); + ue_aggregate_maximum_bit_rate.id = c.id(); + ue_aggregate_maximum_bit_rate.crit = c.crit(); + ue_aggregate_maximum_bit_rate.value = c.value().ue_aggregate_maximum_bit_rate(); break; case 0: allowed_nssai_present = true; - allowed_nssai.id = c.id; - allowed_nssai.crit = c.crit; - allowed_nssai.value = c.value.allowed_nssai(); + allowed_nssai.id = c.id(); + allowed_nssai.crit = c.crit(); + allowed_nssai.value = c.value().allowed_nssai(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -9710,7 +9558,7 @@ const char* dl_non_ueassociated_nrp_pa_transport_ies_o::value_c::types_opts::to_ return convert_enum_idx(options, 2, value, "dl_non_ueassociated_nrp_pa_transport_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; dl_non_ueassociated_nrp_pa_transport_ies_container::dl_non_ueassociated_nrp_pa_transport_ies_container() : routing_id(89, crit_e::reject), nrp_pa_pdu(46, crit_e::reject) @@ -9735,21 +9583,21 @@ SRSASN_CODE dl_non_ueassociated_nrp_pa_transport_ies_container::unpack(cbit_ref& for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 89: nof_mandatory_ies--; - routing_id.id = c.id; - routing_id.crit = c.crit; - routing_id.value = c.value.routing_id(); + routing_id.id = c.id(); + routing_id.crit = c.crit(); + routing_id.value = c.value().routing_id(); break; case 46: nof_mandatory_ies--; - nrp_pa_pdu.id = c.id; - nrp_pa_pdu.crit = c.crit; - nrp_pa_pdu.value = c.value.nrp_pa_pdu(); + nrp_pa_pdu.id = c.id(); + nrp_pa_pdu.crit = c.crit(); + nrp_pa_pdu.value = c.value().nrp_pa_pdu(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -10456,7 +10304,7 @@ const char* dl_ran_cfg_transfer_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 2, value, "dl_ran_cfg_transfer_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; dl_ran_cfg_transfer_ies_container::dl_ran_cfg_transfer_ies_container() : son_cfg_transfer_dl(98, crit_e::ignore), endc_son_cfg_transfer_dl(157, crit_e::ignore) @@ -10485,21 +10333,21 @@ SRSASN_CODE dl_ran_cfg_transfer_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 98: son_cfg_transfer_dl_present = true; - son_cfg_transfer_dl.id = c.id; - son_cfg_transfer_dl.crit = c.crit; - son_cfg_transfer_dl.value = c.value.son_cfg_transfer_dl(); + son_cfg_transfer_dl.id = c.id(); + son_cfg_transfer_dl.crit = c.crit(); + son_cfg_transfer_dl.value = c.value().son_cfg_transfer_dl(); break; case 157: endc_son_cfg_transfer_dl_present = true; - endc_son_cfg_transfer_dl.id = c.id; - endc_son_cfg_transfer_dl.crit = c.crit; - endc_son_cfg_transfer_dl.value = c.value.endc_son_cfg_transfer_dl(); + endc_son_cfg_transfer_dl.id = c.id(); + endc_son_cfg_transfer_dl.crit = c.crit(); + endc_son_cfg_transfer_dl.value = c.value().endc_son_cfg_transfer_dl(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -10816,7 +10664,7 @@ const char* dl_ran_status_transfer_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 3, value, "dl_ran_status_transfer_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; dl_ran_status_transfer_ies_container::dl_ran_status_transfer_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -10844,27 +10692,27 @@ SRSASN_CODE dl_ran_status_transfer_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 84: nof_mandatory_ies--; - ran_status_transfer_transparent_container.id = c.id; - ran_status_transfer_transparent_container.crit = c.crit; - ran_status_transfer_transparent_container.value = c.value.ran_status_transfer_transparent_container(); + ran_status_transfer_transparent_container.id = c.id(); + ran_status_transfer_transparent_container.crit = c.crit(); + ran_status_transfer_transparent_container.value = c.value().ran_status_transfer_transparent_container(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -11178,7 +11026,7 @@ const char* dl_ueassociated_nrp_pa_transport_ies_o::value_c::types_opts::to_stri return convert_enum_idx(options, 4, value, "dl_ueassociated_nrp_pa_transport_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; dl_ueassociated_nrp_pa_transport_ies_container::dl_ueassociated_nrp_pa_transport_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -11208,33 +11056,33 @@ SRSASN_CODE dl_ueassociated_nrp_pa_transport_ies_container::unpack(cbit_ref& bre for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 89: nof_mandatory_ies--; - routing_id.id = c.id; - routing_id.crit = c.crit; - routing_id.value = c.value.routing_id(); + routing_id.id = c.id(); + routing_id.crit = c.crit(); + routing_id.value = c.value().routing_id(); break; case 46: nof_mandatory_ies--; - nrp_pa_pdu.id = c.id; - nrp_pa_pdu.crit = c.crit; - nrp_pa_pdu.value = c.value.nrp_pa_pdu(); + nrp_pa_pdu.id = c.id(); + nrp_pa_pdu.crit = c.crit(); + nrp_pa_pdu.value = c.value().nrp_pa_pdu(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -11843,7 +11691,7 @@ const char* error_ind_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 4, value, "error_ind_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; error_ind_ies_container::error_ind_ies_container() : amf_ue_ngap_id(10, crit_e::ignore), @@ -11883,33 +11731,33 @@ SRSASN_CODE error_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: amf_ue_ngap_id_present = true; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: ran_ue_ngap_id_present = true; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 15: cause_present = true; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -12317,7 +12165,7 @@ const char* ho_cancel_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 3, value, "ho_cancel_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ho_cancel_ies_container::ho_cancel_ies_container() : amf_ue_ngap_id(10, crit_e::reject), ran_ue_ngap_id(85, crit_e::reject), cause(15, crit_e::ignore) @@ -12343,27 +12191,27 @@ SRSASN_CODE ho_cancel_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 15: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -12638,7 +12486,7 @@ const char* ho_cancel_ack_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 3, value, "ho_cancel_ack_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ho_cancel_ack_ies_container::ho_cancel_ack_ies_container() : amf_ue_ngap_id(10, crit_e::ignore), ran_ue_ngap_id(85, crit_e::ignore), crit_diagnostics(19, crit_e::ignore) @@ -12667,27 +12515,27 @@ SRSASN_CODE ho_cancel_ack_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -13250,7 +13098,7 @@ const char* ho_cmd_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 8, value, "ho_cmd_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ho_cmd_ies_container::ho_cmd_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -13297,57 +13145,57 @@ SRSASN_CODE ho_cmd_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 29: nof_mandatory_ies--; - handov_type.id = c.id; - handov_type.crit = c.crit; - handov_type.value = c.value.handov_type(); + handov_type.id = c.id(); + handov_type.crit = c.crit(); + handov_type.value = c.value().handov_type(); break; case 39: nas_security_params_from_ngran_present = true; - nas_security_params_from_ngran.id = c.id; - nas_security_params_from_ngran.crit = c.crit; - nas_security_params_from_ngran.value = c.value.nas_security_params_from_ngran(); + nas_security_params_from_ngran.id = c.id(); + nas_security_params_from_ngran.crit = c.crit(); + nas_security_params_from_ngran.value = c.value().nas_security_params_from_ngran(); break; case 59: nof_mandatory_ies--; - pdu_session_res_ho_list.id = c.id; - pdu_session_res_ho_list.crit = c.crit; - pdu_session_res_ho_list.value = c.value.pdu_session_res_ho_list(); + pdu_session_res_ho_list.id = c.id(); + pdu_session_res_ho_list.crit = c.crit(); + pdu_session_res_ho_list.value = c.value().pdu_session_res_ho_list(); break; case 78: pdu_session_res_to_release_list_ho_cmd_present = true; - pdu_session_res_to_release_list_ho_cmd.id = c.id; - pdu_session_res_to_release_list_ho_cmd.crit = c.crit; - pdu_session_res_to_release_list_ho_cmd.value = c.value.pdu_session_res_to_release_list_ho_cmd(); + pdu_session_res_to_release_list_ho_cmd.id = c.id(); + pdu_session_res_to_release_list_ho_cmd.crit = c.crit(); + pdu_session_res_to_release_list_ho_cmd.value = c.value().pdu_session_res_to_release_list_ho_cmd(); break; case 106: nof_mandatory_ies--; - target_to_source_transparent_container.id = c.id; - target_to_source_transparent_container.crit = c.crit; - target_to_source_transparent_container.value = c.value.target_to_source_transparent_container(); + target_to_source_transparent_container.id = c.id(); + target_to_source_transparent_container.crit = c.crit(); + target_to_source_transparent_container.value = c.value().target_to_source_transparent_container(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -13904,7 +13752,7 @@ uint8_t ho_fail_ies_o::value_c::types_opts::to_number() const return map_enum_number(options, 1, value, "ho_fail_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ho_fail_ies_container::ho_fail_ies_container() : amf_ue_ngap_id(10, crit_e::ignore), cause(15, crit_e::ignore), crit_diagnostics(19, crit_e::ignore) @@ -13933,27 +13781,27 @@ SRSASN_CODE ho_fail_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 15: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -14572,7 +14420,7 @@ const char* ho_notify_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 3, value, "ho_notify_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ho_notify_ies_container::ho_notify_ies_container() : amf_ue_ngap_id(10, crit_e::reject), ran_ue_ngap_id(85, crit_e::reject), user_location_info(121, crit_e::ignore) @@ -14598,27 +14446,27 @@ SRSASN_CODE ho_notify_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 121: nof_mandatory_ies--; - user_location_info.id = c.id; - user_location_info.crit = c.crit; - user_location_info.value = c.value.user_location_info(); + user_location_info.id = c.id(); + user_location_info.crit = c.crit(); + user_location_info.value = c.value().user_location_info(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -14933,7 +14781,7 @@ const char* ho_prep_fail_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 4, value, "ho_prep_fail_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ho_prep_fail_ies_container::ho_prep_fail_ies_container() : amf_ue_ngap_id(10, crit_e::ignore), @@ -14966,33 +14814,33 @@ SRSASN_CODE ho_prep_fail_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 15: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -16241,7 +16089,7 @@ uint8_t ho_request_ies_o::value_c::types_opts::to_number() const return 0; } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ho_request_ies_container::ho_request_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -16328,123 +16176,123 @@ SRSASN_CODE ho_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 29: nof_mandatory_ies--; - handov_type.id = c.id; - handov_type.crit = c.crit; - handov_type.value = c.value.handov_type(); + handov_type.id = c.id(); + handov_type.crit = c.crit(); + handov_type.value = c.value().handov_type(); break; case 15: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 110: nof_mandatory_ies--; - ue_aggregate_maximum_bit_rate.id = c.id; - ue_aggregate_maximum_bit_rate.crit = c.crit; - ue_aggregate_maximum_bit_rate.value = c.value.ue_aggregate_maximum_bit_rate(); + ue_aggregate_maximum_bit_rate.id = c.id(); + ue_aggregate_maximum_bit_rate.crit = c.crit(); + ue_aggregate_maximum_bit_rate.value = c.value().ue_aggregate_maximum_bit_rate(); break; case 18: core_network_assist_info_present = true; - core_network_assist_info.id = c.id; - core_network_assist_info.crit = c.crit; - core_network_assist_info.value = c.value.core_network_assist_info(); + core_network_assist_info.id = c.id(); + core_network_assist_info.crit = c.crit(); + core_network_assist_info.value = c.value().core_network_assist_info(); break; case 119: nof_mandatory_ies--; - ue_security_cap.id = c.id; - ue_security_cap.crit = c.crit; - ue_security_cap.value = c.value.ue_security_cap(); + ue_security_cap.id = c.id(); + ue_security_cap.crit = c.crit(); + ue_security_cap.value = c.value().ue_security_cap(); break; case 93: nof_mandatory_ies--; - security_context.id = c.id; - security_context.crit = c.crit; - security_context.value = c.value.security_context(); + security_context.id = c.id(); + security_context.crit = c.crit(); + security_context.value = c.value().security_context(); break; case 41: new_security_context_ind_present = true; - new_security_context_ind.id = c.id; - new_security_context_ind.crit = c.crit; - new_security_context_ind.value = c.value.new_security_context_ind(); + new_security_context_ind.id = c.id(); + new_security_context_ind.crit = c.crit(); + new_security_context_ind.value = c.value().new_security_context_ind(); break; case 37: nasc_present = true; - nasc.id = c.id; - nasc.crit = c.crit; - nasc.value = c.value.nasc(); + nasc.id = c.id(); + nasc.crit = c.crit(); + nasc.value = c.value().nasc(); break; case 73: nof_mandatory_ies--; - pdu_session_res_setup_list_ho_req.id = c.id; - pdu_session_res_setup_list_ho_req.crit = c.crit; - pdu_session_res_setup_list_ho_req.value = c.value.pdu_session_res_setup_list_ho_req(); + pdu_session_res_setup_list_ho_req.id = c.id(); + pdu_session_res_setup_list_ho_req.crit = c.crit(); + pdu_session_res_setup_list_ho_req.value = c.value().pdu_session_res_setup_list_ho_req(); break; case 0: nof_mandatory_ies--; - allowed_nssai.id = c.id; - allowed_nssai.crit = c.crit; - allowed_nssai.value = c.value.allowed_nssai(); + allowed_nssai.id = c.id(); + allowed_nssai.crit = c.crit(); + allowed_nssai.value = c.value().allowed_nssai(); break; case 108: trace_activation_present = true; - trace_activation.id = c.id; - trace_activation.crit = c.crit; - trace_activation.value = c.value.trace_activation(); + trace_activation.id = c.id(); + trace_activation.crit = c.crit(); + trace_activation.value = c.value().trace_activation(); break; case 34: masked_imeisv_present = true; - masked_imeisv.id = c.id; - masked_imeisv.crit = c.crit; - masked_imeisv.value = c.value.masked_imeisv(); + masked_imeisv.id = c.id(); + masked_imeisv.crit = c.crit(); + masked_imeisv.value = c.value().masked_imeisv(); break; case 101: nof_mandatory_ies--; - source_to_target_transparent_container.id = c.id; - source_to_target_transparent_container.crit = c.crit; - source_to_target_transparent_container.value = c.value.source_to_target_transparent_container(); + source_to_target_transparent_container.id = c.id(); + source_to_target_transparent_container.crit = c.crit(); + source_to_target_transparent_container.value = c.value().source_to_target_transparent_container(); break; case 36: mob_restrict_list_present = true; - mob_restrict_list.id = c.id; - mob_restrict_list.crit = c.crit; - mob_restrict_list.value = c.value.mob_restrict_list(); + mob_restrict_list.id = c.id(); + mob_restrict_list.crit = c.crit(); + mob_restrict_list.value = c.value().mob_restrict_list(); break; case 33: location_report_request_type_present = true; - location_report_request_type.id = c.id; - location_report_request_type.crit = c.crit; - location_report_request_type.value = c.value.location_report_request_type(); + location_report_request_type.id = c.id(); + location_report_request_type.crit = c.crit(); + location_report_request_type.value = c.value().location_report_request_type(); break; case 91: rrc_inactive_transition_report_request_present = true; - rrc_inactive_transition_report_request.id = c.id; - rrc_inactive_transition_report_request.crit = c.crit; - rrc_inactive_transition_report_request.value = c.value.rrc_inactive_transition_report_request(); + rrc_inactive_transition_report_request.id = c.id(); + rrc_inactive_transition_report_request.crit = c.crit(); + rrc_inactive_transition_report_request.value = c.value().rrc_inactive_transition_report_request(); break; case 28: nof_mandatory_ies--; - guami.id = c.id; - guami.crit = c.crit; - guami.value = c.value.guami(); + guami.id = c.id(); + guami.crit = c.crit(); + guami.value = c.value().guami(); break; case 146: redirection_voice_fallback_present = true; - redirection_voice_fallback.id = c.id; - redirection_voice_fallback.crit = c.crit; - redirection_voice_fallback.value = c.value.redirection_voice_fallback(); + redirection_voice_fallback.id = c.id(); + redirection_voice_fallback.crit = c.crit(); + redirection_voice_fallback.value = c.value().redirection_voice_fallback(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -16976,7 +16824,7 @@ const char* ho_request_ack_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 6, value, "ho_request_ack_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ho_request_ack_ies_container::ho_request_ack_ies_container() : amf_ue_ngap_id(10, crit_e::ignore), @@ -17016,45 +16864,45 @@ SRSASN_CODE ho_request_ack_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 53: nof_mandatory_ies--; - pdu_session_res_admitted_list.id = c.id; - pdu_session_res_admitted_list.crit = c.crit; - pdu_session_res_admitted_list.value = c.value.pdu_session_res_admitted_list(); + pdu_session_res_admitted_list.id = c.id(); + pdu_session_res_admitted_list.crit = c.crit(); + pdu_session_res_admitted_list.value = c.value().pdu_session_res_admitted_list(); break; case 56: pdu_session_res_failed_to_setup_list_ho_ack_present = true; - pdu_session_res_failed_to_setup_list_ho_ack.id = c.id; - pdu_session_res_failed_to_setup_list_ho_ack.crit = c.crit; - pdu_session_res_failed_to_setup_list_ho_ack.value = c.value.pdu_session_res_failed_to_setup_list_ho_ack(); + pdu_session_res_failed_to_setup_list_ho_ack.id = c.id(); + pdu_session_res_failed_to_setup_list_ho_ack.crit = c.crit(); + pdu_session_res_failed_to_setup_list_ho_ack.value = c.value().pdu_session_res_failed_to_setup_list_ho_ack(); break; case 106: nof_mandatory_ies--; - target_to_source_transparent_container.id = c.id; - target_to_source_transparent_container.crit = c.crit; - target_to_source_transparent_container.value = c.value.target_to_source_transparent_container(); + target_to_source_transparent_container.id = c.id(); + target_to_source_transparent_container.crit = c.crit(); + target_to_source_transparent_container.value = c.value().target_to_source_transparent_container(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -18038,7 +17886,7 @@ const char* ho_required_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 8, value, "ho_required_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ho_required_ies_container::ho_required_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -18079,57 +17927,57 @@ SRSASN_CODE ho_required_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 29: nof_mandatory_ies--; - handov_type.id = c.id; - handov_type.crit = c.crit; - handov_type.value = c.value.handov_type(); + handov_type.id = c.id(); + handov_type.crit = c.crit(); + handov_type.value = c.value().handov_type(); break; case 15: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 105: nof_mandatory_ies--; - target_id.id = c.id; - target_id.crit = c.crit; - target_id.value = c.value.target_id(); + target_id.id = c.id(); + target_id.crit = c.crit(); + target_id.value = c.value().target_id(); break; case 22: direct_forwarding_path_availability_present = true; - direct_forwarding_path_availability.id = c.id; - direct_forwarding_path_availability.crit = c.crit; - direct_forwarding_path_availability.value = c.value.direct_forwarding_path_availability(); + direct_forwarding_path_availability.id = c.id(); + direct_forwarding_path_availability.crit = c.crit(); + direct_forwarding_path_availability.value = c.value().direct_forwarding_path_availability(); break; case 61: nof_mandatory_ies--; - pdu_session_res_list_ho_rqd.id = c.id; - pdu_session_res_list_ho_rqd.crit = c.crit; - pdu_session_res_list_ho_rqd.value = c.value.pdu_session_res_list_ho_rqd(); + pdu_session_res_list_ho_rqd.id = c.id(); + pdu_session_res_list_ho_rqd.crit = c.crit(); + pdu_session_res_list_ho_rqd.value = c.value().pdu_session_res_list_ho_rqd(); break; case 101: nof_mandatory_ies--; - source_to_target_transparent_container.id = c.id; - source_to_target_transparent_container.crit = c.crit; - source_to_target_transparent_container.value = c.value.source_to_target_transparent_container(); + source_to_target_transparent_container.id = c.id(); + source_to_target_transparent_container.crit = c.crit(); + source_to_target_transparent_container.value = c.value().source_to_target_transparent_container(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -18754,7 +18602,7 @@ const char* init_context_setup_fail_ies_o::value_c::types_opts::to_string() cons return convert_enum_idx(options, 5, value, "init_context_setup_fail_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; init_context_setup_fail_ies_container::init_context_setup_fail_ies_container() : amf_ue_ngap_id(10, crit_e::ignore), @@ -18792,39 +18640,39 @@ SRSASN_CODE init_context_setup_fail_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 132: pdu_session_res_failed_to_setup_list_cxt_fail_present = true; - pdu_session_res_failed_to_setup_list_cxt_fail.id = c.id; - pdu_session_res_failed_to_setup_list_cxt_fail.crit = c.crit; - pdu_session_res_failed_to_setup_list_cxt_fail.value = c.value.pdu_session_res_failed_to_setup_list_cxt_fail(); + pdu_session_res_failed_to_setup_list_cxt_fail.id = c.id(); + pdu_session_res_failed_to_setup_list_cxt_fail.crit = c.crit(); + pdu_session_res_failed_to_setup_list_cxt_fail.value = c.value().pdu_session_res_failed_to_setup_list_cxt_fail(); break; case 15: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -19890,7 +19738,7 @@ const char* init_context_setup_request_ies_o::value_c::types_opts::to_string() c return convert_enum_idx(options, 20, value, "init_context_setup_request_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; init_context_setup_request_ies_container::init_context_setup_request_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -19994,129 +19842,129 @@ SRSASN_CODE init_context_setup_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 48: old_amf_present = true; - old_amf.id = c.id; - old_amf.crit = c.crit; - old_amf.value = c.value.old_amf(); + old_amf.id = c.id(); + old_amf.crit = c.crit(); + old_amf.value = c.value().old_amf(); break; case 110: ue_aggregate_maximum_bit_rate_present = true; - ue_aggregate_maximum_bit_rate.id = c.id; - ue_aggregate_maximum_bit_rate.crit = c.crit; - ue_aggregate_maximum_bit_rate.value = c.value.ue_aggregate_maximum_bit_rate(); + ue_aggregate_maximum_bit_rate.id = c.id(); + ue_aggregate_maximum_bit_rate.crit = c.crit(); + ue_aggregate_maximum_bit_rate.value = c.value().ue_aggregate_maximum_bit_rate(); break; case 18: core_network_assist_info_present = true; - core_network_assist_info.id = c.id; - core_network_assist_info.crit = c.crit; - core_network_assist_info.value = c.value.core_network_assist_info(); + core_network_assist_info.id = c.id(); + core_network_assist_info.crit = c.crit(); + core_network_assist_info.value = c.value().core_network_assist_info(); break; case 28: nof_mandatory_ies--; - guami.id = c.id; - guami.crit = c.crit; - guami.value = c.value.guami(); + guami.id = c.id(); + guami.crit = c.crit(); + guami.value = c.value().guami(); break; case 71: pdu_session_res_setup_list_cxt_req_present = true; - pdu_session_res_setup_list_cxt_req.id = c.id; - pdu_session_res_setup_list_cxt_req.crit = c.crit; - pdu_session_res_setup_list_cxt_req.value = c.value.pdu_session_res_setup_list_cxt_req(); + pdu_session_res_setup_list_cxt_req.id = c.id(); + pdu_session_res_setup_list_cxt_req.crit = c.crit(); + pdu_session_res_setup_list_cxt_req.value = c.value().pdu_session_res_setup_list_cxt_req(); break; case 0: nof_mandatory_ies--; - allowed_nssai.id = c.id; - allowed_nssai.crit = c.crit; - allowed_nssai.value = c.value.allowed_nssai(); + allowed_nssai.id = c.id(); + allowed_nssai.crit = c.crit(); + allowed_nssai.value = c.value().allowed_nssai(); break; case 119: nof_mandatory_ies--; - ue_security_cap.id = c.id; - ue_security_cap.crit = c.crit; - ue_security_cap.value = c.value.ue_security_cap(); + ue_security_cap.id = c.id(); + ue_security_cap.crit = c.crit(); + ue_security_cap.value = c.value().ue_security_cap(); break; case 94: nof_mandatory_ies--; - security_key.id = c.id; - security_key.crit = c.crit; - security_key.value = c.value.security_key(); + security_key.id = c.id(); + security_key.crit = c.crit(); + security_key.value = c.value().security_key(); break; case 108: trace_activation_present = true; - trace_activation.id = c.id; - trace_activation.crit = c.crit; - trace_activation.value = c.value.trace_activation(); + trace_activation.id = c.id(); + trace_activation.crit = c.crit(); + trace_activation.value = c.value().trace_activation(); break; case 36: mob_restrict_list_present = true; - mob_restrict_list.id = c.id; - mob_restrict_list.crit = c.crit; - mob_restrict_list.value = c.value.mob_restrict_list(); + mob_restrict_list.id = c.id(); + mob_restrict_list.crit = c.crit(); + mob_restrict_list.value = c.value().mob_restrict_list(); break; case 117: ue_radio_cap_present = true; - ue_radio_cap.id = c.id; - ue_radio_cap.crit = c.crit; - ue_radio_cap.value = c.value.ue_radio_cap(); + ue_radio_cap.id = c.id(); + ue_radio_cap.crit = c.crit(); + ue_radio_cap.value = c.value().ue_radio_cap(); break; case 31: idx_to_rfsp_present = true; - idx_to_rfsp.id = c.id; - idx_to_rfsp.crit = c.crit; - idx_to_rfsp.value = c.value.idx_to_rfsp(); + idx_to_rfsp.id = c.id(); + idx_to_rfsp.crit = c.crit(); + idx_to_rfsp.value = c.value().idx_to_rfsp(); break; case 34: masked_imeisv_present = true; - masked_imeisv.id = c.id; - masked_imeisv.crit = c.crit; - masked_imeisv.value = c.value.masked_imeisv(); + masked_imeisv.id = c.id(); + masked_imeisv.crit = c.crit(); + masked_imeisv.value = c.value().masked_imeisv(); break; case 38: nas_pdu_present = true; - nas_pdu.id = c.id; - nas_pdu.crit = c.crit; - nas_pdu.value = c.value.nas_pdu(); + nas_pdu.id = c.id(); + nas_pdu.crit = c.crit(); + nas_pdu.value = c.value().nas_pdu(); break; case 24: emergency_fallback_ind_present = true; - emergency_fallback_ind.id = c.id; - emergency_fallback_ind.crit = c.crit; - emergency_fallback_ind.value = c.value.emergency_fallback_ind(); + emergency_fallback_ind.id = c.id(); + emergency_fallback_ind.crit = c.crit(); + emergency_fallback_ind.value = c.value().emergency_fallback_ind(); break; case 91: rrc_inactive_transition_report_request_present = true; - rrc_inactive_transition_report_request.id = c.id; - rrc_inactive_transition_report_request.crit = c.crit; - rrc_inactive_transition_report_request.value = c.value.rrc_inactive_transition_report_request(); + rrc_inactive_transition_report_request.id = c.id(); + rrc_inactive_transition_report_request.crit = c.crit(); + rrc_inactive_transition_report_request.value = c.value().rrc_inactive_transition_report_request(); break; case 118: ue_radio_cap_for_paging_present = true; - ue_radio_cap_for_paging.id = c.id; - ue_radio_cap_for_paging.crit = c.crit; - ue_radio_cap_for_paging.value = c.value.ue_radio_cap_for_paging(); + ue_radio_cap_for_paging.id = c.id(); + ue_radio_cap_for_paging.crit = c.crit(); + ue_radio_cap_for_paging.value = c.value().ue_radio_cap_for_paging(); break; case 146: redirection_voice_fallback_present = true; - redirection_voice_fallback.id = c.id; - redirection_voice_fallback.crit = c.crit; - redirection_voice_fallback.value = c.value.redirection_voice_fallback(); + redirection_voice_fallback.id = c.id(); + redirection_voice_fallback.crit = c.crit(); + redirection_voice_fallback.value = c.value().redirection_voice_fallback(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -20623,7 +20471,7 @@ const char* init_context_setup_resp_ies_o::value_c::types_opts::to_string() cons return convert_enum_idx(options, 5, value, "init_context_setup_resp_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; init_context_setup_resp_ies_container::init_context_setup_resp_ies_container() : amf_ue_ngap_id(10, crit_e::ignore), @@ -20664,39 +20512,39 @@ SRSASN_CODE init_context_setup_resp_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 72: pdu_session_res_setup_list_cxt_res_present = true; - pdu_session_res_setup_list_cxt_res.id = c.id; - pdu_session_res_setup_list_cxt_res.crit = c.crit; - pdu_session_res_setup_list_cxt_res.value = c.value.pdu_session_res_setup_list_cxt_res(); + pdu_session_res_setup_list_cxt_res.id = c.id(); + pdu_session_res_setup_list_cxt_res.crit = c.crit(); + pdu_session_res_setup_list_cxt_res.value = c.value().pdu_session_res_setup_list_cxt_res(); break; case 55: pdu_session_res_failed_to_setup_list_cxt_res_present = true; - pdu_session_res_failed_to_setup_list_cxt_res.id = c.id; - pdu_session_res_failed_to_setup_list_cxt_res.crit = c.crit; - pdu_session_res_failed_to_setup_list_cxt_res.value = c.value.pdu_session_res_failed_to_setup_list_cxt_res(); + pdu_session_res_failed_to_setup_list_cxt_res.id = c.id(); + pdu_session_res_failed_to_setup_list_cxt_res.crit = c.crit(); + pdu_session_res_failed_to_setup_list_cxt_res.value = c.value().pdu_session_res_failed_to_setup_list_cxt_res(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -21208,7 +21056,7 @@ uint8_t init_ue_msg_ies_o::value_c::types_opts::to_number() const return map_enum_number(options, 1, value, "init_ue_msg_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; init_ue_msg_ies_container::init_ue_msg_ies_container() : ran_ue_ngap_id(85, crit_e::reject), @@ -21258,57 +21106,57 @@ SRSASN_CODE init_ue_msg_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 38: nof_mandatory_ies--; - nas_pdu.id = c.id; - nas_pdu.crit = c.crit; - nas_pdu.value = c.value.nas_pdu(); + nas_pdu.id = c.id(); + nas_pdu.crit = c.crit(); + nas_pdu.value = c.value().nas_pdu(); break; case 121: nof_mandatory_ies--; - user_location_info.id = c.id; - user_location_info.crit = c.crit; - user_location_info.value = c.value.user_location_info(); + user_location_info.id = c.id(); + user_location_info.crit = c.crit(); + user_location_info.value = c.value().user_location_info(); break; case 90: nof_mandatory_ies--; - rrcestablishment_cause.id = c.id; - rrcestablishment_cause.crit = c.crit; - rrcestablishment_cause.value = c.value.rrcestablishment_cause(); + rrcestablishment_cause.id = c.id(); + rrcestablishment_cause.crit = c.crit(); + rrcestablishment_cause.value = c.value().rrcestablishment_cause(); break; case 26: five_g_s_tmsi_present = true; - five_g_s_tmsi.id = c.id; - five_g_s_tmsi.crit = c.crit; - five_g_s_tmsi.value = c.value.five_g_s_tmsi(); + five_g_s_tmsi.id = c.id(); + five_g_s_tmsi.crit = c.crit(); + five_g_s_tmsi.value = c.value().five_g_s_tmsi(); break; case 3: amf_set_id_present = true; - amf_set_id.id = c.id; - amf_set_id.crit = c.crit; - amf_set_id.value = c.value.amf_set_id(); + amf_set_id.id = c.id(); + amf_set_id.crit = c.crit(); + amf_set_id.value = c.value().amf_set_id(); break; case 112: ue_context_request_present = true; - ue_context_request.id = c.id; - ue_context_request.crit = c.crit; - ue_context_request.value = c.value.ue_context_request(); + ue_context_request.id = c.id(); + ue_context_request.crit = c.crit(); + ue_context_request.value = c.value().ue_context_request(); break; case 0: allowed_nssai_present = true; - allowed_nssai.id = c.id; - allowed_nssai.crit = c.crit; - allowed_nssai.value = c.value.allowed_nssai(); + allowed_nssai.id = c.id(); + allowed_nssai.crit = c.crit(); + allowed_nssai.value = c.value().allowed_nssai(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -38742,7 +38590,7 @@ const char* write_replace_warning_resp_ies_o::value_c::types_opts::to_string() c return convert_enum_idx(options, 4, value, "write_replace_warning_resp_ies_o::value_c::types"); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; location_report_ies_container::location_report_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -38782,45 +38630,45 @@ SRSASN_CODE location_report_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 121: nof_mandatory_ies--; - user_location_info.id = c.id; - user_location_info.crit = c.crit; - user_location_info.value = c.value.user_location_info(); + user_location_info.id = c.id(); + user_location_info.crit = c.crit(); + user_location_info.value = c.value().user_location_info(); break; case 116: ue_presence_in_area_of_interest_list_present = true; - ue_presence_in_area_of_interest_list.id = c.id; - ue_presence_in_area_of_interest_list.crit = c.crit; - ue_presence_in_area_of_interest_list.value = c.value.ue_presence_in_area_of_interest_list(); + ue_presence_in_area_of_interest_list.id = c.id(); + ue_presence_in_area_of_interest_list.crit = c.crit(); + ue_presence_in_area_of_interest_list.value = c.value().ue_presence_in_area_of_interest_list(); break; case 33: nof_mandatory_ies--; - location_report_request_type.id = c.id; - location_report_request_type.crit = c.crit; - location_report_request_type.value = c.value.location_report_request_type(); + location_report_request_type.id = c.id(); + location_report_request_type.crit = c.crit(); + location_report_request_type.value = c.value().location_report_request_type(); break; case 149: ps_cell_info_present = true; - ps_cell_info.id = c.id; - ps_cell_info.crit = c.crit; - ps_cell_info.value = c.value.ps_cell_info(); + ps_cell_info.id = c.id(); + ps_cell_info.crit = c.crit(); + ps_cell_info.value = c.value().ps_cell_info(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -38876,7 +38724,7 @@ void location_report_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; location_report_ctrl_ies_container::location_report_ctrl_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -38904,27 +38752,27 @@ SRSASN_CODE location_report_ctrl_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 33: nof_mandatory_ies--; - location_report_request_type.id = c.id; - location_report_request_type.crit = c.crit; - location_report_request_type.value = c.value.location_report_request_type(); + location_report_request_type.id = c.id(); + location_report_request_type.crit = c.crit(); + location_report_request_type.value = c.value().location_report_request_type(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -38970,7 +38818,7 @@ void location_report_ctrl_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; location_report_fail_ind_ies_container::location_report_fail_ind_ies_container() : amf_ue_ngap_id(10, crit_e::reject), ran_ue_ngap_id(85, crit_e::reject), cause(15, crit_e::ignore) @@ -38996,27 +38844,27 @@ SRSASN_CODE location_report_fail_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 15: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -39062,7 +38910,7 @@ void location_report_fail_ind_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; nas_non_delivery_ind_ies_container::nas_non_delivery_ind_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -39092,33 +38940,33 @@ SRSASN_CODE nas_non_delivery_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 38: nof_mandatory_ies--; - nas_pdu.id = c.id; - nas_pdu.crit = c.crit; - nas_pdu.value = c.value.nas_pdu(); + nas_pdu.id = c.id(); + nas_pdu.crit = c.crit(); + nas_pdu.value = c.value().nas_pdu(); break; case 15: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -39166,7 +39014,7 @@ void nas_non_delivery_ind_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ng_reset_ies_container::ng_reset_ies_container() : cause(15, crit_e::ignore), reset_type(88, crit_e::reject) {} SRSASN_CODE ng_reset_ies_container::pack(bit_ref& bref) const @@ -39189,21 +39037,21 @@ SRSASN_CODE ng_reset_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 15: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 88: nof_mandatory_ies--; - reset_type.id = c.id; - reset_type.crit = c.crit; - reset_type.value = c.value.reset_type(); + reset_type.id = c.id(); + reset_type.crit = c.crit(); + reset_type.value = c.value().reset_type(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -39247,7 +39095,7 @@ void ng_reset_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ng_reset_ack_ies_container::ng_reset_ack_ies_container() : ue_associated_lc_ng_conn_list(111, crit_e::ignore), crit_diagnostics(19, crit_e::ignore) @@ -39276,21 +39124,21 @@ SRSASN_CODE ng_reset_ack_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 111: ue_associated_lc_ng_conn_list_present = true; - ue_associated_lc_ng_conn_list.id = c.id; - ue_associated_lc_ng_conn_list.crit = c.crit; - ue_associated_lc_ng_conn_list.value = c.value.ue_associated_lc_ng_conn_list(); + ue_associated_lc_ng_conn_list.id = c.id(); + ue_associated_lc_ng_conn_list.crit = c.crit(); + ue_associated_lc_ng_conn_list.value = c.value().ue_associated_lc_ng_conn_list(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -39334,7 +39182,7 @@ void ng_reset_ack_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ng_setup_fail_ies_container::ng_setup_fail_ies_container() : cause(15, crit_e::ignore), time_to_wait(107, crit_e::ignore), crit_diagnostics(19, crit_e::ignore) @@ -39366,27 +39214,27 @@ SRSASN_CODE ng_setup_fail_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 15: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 107: time_to_wait_present = true; - time_to_wait.id = c.id; - time_to_wait.crit = c.crit; - time_to_wait.value = c.value.time_to_wait(); + time_to_wait.id = c.id(); + time_to_wait.crit = c.crit(); + time_to_wait.value = c.value().time_to_wait(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -39436,7 +39284,7 @@ void ng_setup_fail_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ng_setup_request_ies_container::ng_setup_request_ies_container() : global_ran_node_id(27, crit_e::reject), @@ -39474,39 +39322,39 @@ SRSASN_CODE ng_setup_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 27: nof_mandatory_ies--; - global_ran_node_id.id = c.id; - global_ran_node_id.crit = c.crit; - global_ran_node_id.value = c.value.global_ran_node_id(); + global_ran_node_id.id = c.id(); + global_ran_node_id.crit = c.crit(); + global_ran_node_id.value = c.value().global_ran_node_id(); break; case 82: ran_node_name_present = true; - ran_node_name.id = c.id; - ran_node_name.crit = c.crit; - ran_node_name.value = c.value.ran_node_name(); + ran_node_name.id = c.id(); + ran_node_name.crit = c.crit(); + ran_node_name.value = c.value().ran_node_name(); break; case 102: nof_mandatory_ies--; - supported_ta_list.id = c.id; - supported_ta_list.crit = c.crit; - supported_ta_list.value = c.value.supported_ta_list(); + supported_ta_list.id = c.id(); + supported_ta_list.crit = c.crit(); + supported_ta_list.value = c.value().supported_ta_list(); break; case 21: nof_mandatory_ies--; - default_paging_drx.id = c.id; - default_paging_drx.crit = c.crit; - default_paging_drx.value = c.value.default_paging_drx(); + default_paging_drx.id = c.id(); + default_paging_drx.crit = c.crit(); + default_paging_drx.value = c.value().default_paging_drx(); break; case 147: ue_retention_info_present = true; - ue_retention_info.id = c.id; - ue_retention_info.crit = c.crit; - ue_retention_info.value = c.value.ue_retention_info(); + ue_retention_info.id = c.id(); + ue_retention_info.crit = c.crit(); + ue_retention_info.value = c.value().ue_retention_info(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -39560,7 +39408,7 @@ void ng_setup_request_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ng_setup_resp_ies_container::ng_setup_resp_ies_container() : amf_name(1, crit_e::reject), @@ -39600,45 +39448,45 @@ SRSASN_CODE ng_setup_resp_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 1: nof_mandatory_ies--; - amf_name.id = c.id; - amf_name.crit = c.crit; - amf_name.value = c.value.amf_name(); + amf_name.id = c.id(); + amf_name.crit = c.crit(); + amf_name.value = c.value().amf_name(); break; case 96: nof_mandatory_ies--; - served_guami_list.id = c.id; - served_guami_list.crit = c.crit; - served_guami_list.value = c.value.served_guami_list(); + served_guami_list.id = c.id(); + served_guami_list.crit = c.crit(); + served_guami_list.value = c.value().served_guami_list(); break; case 86: nof_mandatory_ies--; - relative_amf_capacity.id = c.id; - relative_amf_capacity.crit = c.crit; - relative_amf_capacity.value = c.value.relative_amf_capacity(); + relative_amf_capacity.id = c.id(); + relative_amf_capacity.crit = c.crit(); + relative_amf_capacity.value = c.value().relative_amf_capacity(); break; case 80: nof_mandatory_ies--; - plmn_support_list.id = c.id; - plmn_support_list.crit = c.crit; - plmn_support_list.value = c.value.plmn_support_list(); + plmn_support_list.id = c.id(); + plmn_support_list.crit = c.crit(); + plmn_support_list.value = c.value().plmn_support_list(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; case 147: ue_retention_info_present = true; - ue_retention_info.id = c.id; - ue_retention_info.crit = c.crit; - ue_retention_info.value = c.value.ue_retention_info(); + ue_retention_info.id = c.id(); + ue_retention_info.crit = c.crit(); + ue_retention_info.value = c.value().ue_retention_info(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -39694,7 +39542,7 @@ void ng_setup_resp_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; overload_start_ies_container::overload_start_ies_container() : amf_overload_resp(2, crit_e::reject), @@ -39729,27 +39577,27 @@ SRSASN_CODE overload_start_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 2: amf_overload_resp_present = true; - amf_overload_resp.id = c.id; - amf_overload_resp.crit = c.crit; - amf_overload_resp.value = c.value.amf_overload_resp(); + amf_overload_resp.id = c.id(); + amf_overload_resp.crit = c.crit(); + amf_overload_resp.value = c.value().amf_overload_resp(); break; case 9: amf_traffic_load_reduction_ind_present = true; - amf_traffic_load_reduction_ind.id = c.id; - amf_traffic_load_reduction_ind.crit = c.crit; - amf_traffic_load_reduction_ind.value = c.value.amf_traffic_load_reduction_ind(); + amf_traffic_load_reduction_ind.id = c.id(); + amf_traffic_load_reduction_ind.crit = c.crit(); + amf_traffic_load_reduction_ind.value = c.value().amf_traffic_load_reduction_ind(); break; case 49: overload_start_nssai_list_present = true; - overload_start_nssai_list.id = c.id; - overload_start_nssai_list.crit = c.crit; - overload_start_nssai_list.value = c.value.overload_start_nssai_list(); + overload_start_nssai_list.id = c.id(); + overload_start_nssai_list.crit = c.crit(); + overload_start_nssai_list.value = c.value().overload_start_nssai_list(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -39842,7 +39690,7 @@ void overload_stop_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; pdu_session_res_modify_confirm_ies_container::pdu_session_res_modify_confirm_ies_container() : amf_ue_ngap_id(10, crit_e::ignore), @@ -39880,39 +39728,39 @@ SRSASN_CODE pdu_session_res_modify_confirm_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 62: nof_mandatory_ies--; - pdu_session_res_modify_list_mod_cfm.id = c.id; - pdu_session_res_modify_list_mod_cfm.crit = c.crit; - pdu_session_res_modify_list_mod_cfm.value = c.value.pdu_session_res_modify_list_mod_cfm(); + pdu_session_res_modify_list_mod_cfm.id = c.id(); + pdu_session_res_modify_list_mod_cfm.crit = c.crit(); + pdu_session_res_modify_list_mod_cfm.value = c.value().pdu_session_res_modify_list_mod_cfm(); break; case 131: pdu_session_res_failed_to_modify_list_mod_cfm_present = true; - pdu_session_res_failed_to_modify_list_mod_cfm.id = c.id; - pdu_session_res_failed_to_modify_list_mod_cfm.crit = c.crit; - pdu_session_res_failed_to_modify_list_mod_cfm.value = c.value.pdu_session_res_failed_to_modify_list_mod_cfm(); + pdu_session_res_failed_to_modify_list_mod_cfm.id = c.id(); + pdu_session_res_failed_to_modify_list_mod_cfm.crit = c.crit(); + pdu_session_res_failed_to_modify_list_mod_cfm.value = c.value().pdu_session_res_failed_to_modify_list_mod_cfm(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -39966,7 +39814,7 @@ void pdu_session_res_modify_confirm_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; pdu_session_res_modify_ind_ies_container::pdu_session_res_modify_ind_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -39994,27 +39842,27 @@ SRSASN_CODE pdu_session_res_modify_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 63: nof_mandatory_ies--; - pdu_session_res_modify_list_mod_ind.id = c.id; - pdu_session_res_modify_list_mod_ind.crit = c.crit; - pdu_session_res_modify_list_mod_ind.value = c.value.pdu_session_res_modify_list_mod_ind(); + pdu_session_res_modify_list_mod_ind.id = c.id(); + pdu_session_res_modify_list_mod_ind.crit = c.crit(); + pdu_session_res_modify_list_mod_ind.value = c.value().pdu_session_res_modify_list_mod_ind(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -40060,7 +39908,7 @@ void pdu_session_res_modify_ind_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; pdu_session_res_modify_request_ies_container::pdu_session_res_modify_request_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -40093,33 +39941,33 @@ SRSASN_CODE pdu_session_res_modify_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 83: ran_paging_prio_present = true; - ran_paging_prio.id = c.id; - ran_paging_prio.crit = c.crit; - ran_paging_prio.value = c.value.ran_paging_prio(); + ran_paging_prio.id = c.id(); + ran_paging_prio.crit = c.crit(); + ran_paging_prio.value = c.value().ran_paging_prio(); break; case 64: nof_mandatory_ies--; - pdu_session_res_modify_list_mod_req.id = c.id; - pdu_session_res_modify_list_mod_req.crit = c.crit; - pdu_session_res_modify_list_mod_req.value = c.value.pdu_session_res_modify_list_mod_req(); + pdu_session_res_modify_list_mod_req.id = c.id(); + pdu_session_res_modify_list_mod_req.crit = c.crit(); + pdu_session_res_modify_list_mod_req.value = c.value().pdu_session_res_modify_list_mod_req(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -40169,7 +40017,7 @@ void pdu_session_res_modify_request_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; pdu_session_res_modify_resp_ies_container::pdu_session_res_modify_resp_ies_container() : amf_ue_ngap_id(10, crit_e::ignore), @@ -40215,45 +40063,45 @@ SRSASN_CODE pdu_session_res_modify_resp_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 65: pdu_session_res_modify_list_mod_res_present = true; - pdu_session_res_modify_list_mod_res.id = c.id; - pdu_session_res_modify_list_mod_res.crit = c.crit; - pdu_session_res_modify_list_mod_res.value = c.value.pdu_session_res_modify_list_mod_res(); + pdu_session_res_modify_list_mod_res.id = c.id(); + pdu_session_res_modify_list_mod_res.crit = c.crit(); + pdu_session_res_modify_list_mod_res.value = c.value().pdu_session_res_modify_list_mod_res(); break; case 54: pdu_session_res_failed_to_modify_list_mod_res_present = true; - pdu_session_res_failed_to_modify_list_mod_res.id = c.id; - pdu_session_res_failed_to_modify_list_mod_res.crit = c.crit; - pdu_session_res_failed_to_modify_list_mod_res.value = c.value.pdu_session_res_failed_to_modify_list_mod_res(); + pdu_session_res_failed_to_modify_list_mod_res.id = c.id(); + pdu_session_res_failed_to_modify_list_mod_res.crit = c.crit(); + pdu_session_res_failed_to_modify_list_mod_res.value = c.value().pdu_session_res_failed_to_modify_list_mod_res(); break; case 121: user_location_info_present = true; - user_location_info.id = c.id; - user_location_info.crit = c.crit; - user_location_info.value = c.value.user_location_info(); + user_location_info.id = c.id(); + user_location_info.crit = c.crit(); + user_location_info.value = c.value().user_location_info(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -40313,7 +40161,7 @@ void pdu_session_res_modify_resp_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; pdu_session_res_notify_ies_container::pdu_session_res_notify_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -40354,39 +40202,39 @@ SRSASN_CODE pdu_session_res_notify_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 66: pdu_session_res_notify_list_present = true; - pdu_session_res_notify_list.id = c.id; - pdu_session_res_notify_list.crit = c.crit; - pdu_session_res_notify_list.value = c.value.pdu_session_res_notify_list(); + pdu_session_res_notify_list.id = c.id(); + pdu_session_res_notify_list.crit = c.crit(); + pdu_session_res_notify_list.value = c.value().pdu_session_res_notify_list(); break; case 67: pdu_session_res_released_list_not_present = true; - pdu_session_res_released_list_not.id = c.id; - pdu_session_res_released_list_not.crit = c.crit; - pdu_session_res_released_list_not.value = c.value.pdu_session_res_released_list_not(); + pdu_session_res_released_list_not.id = c.id(); + pdu_session_res_released_list_not.crit = c.crit(); + pdu_session_res_released_list_not.value = c.value().pdu_session_res_released_list_not(); break; case 121: user_location_info_present = true; - user_location_info.id = c.id; - user_location_info.crit = c.crit; - user_location_info.value = c.value.user_location_info(); + user_location_info.id = c.id(); + user_location_info.crit = c.crit(); + user_location_info.value = c.value().user_location_info(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -40442,7 +40290,7 @@ void pdu_session_res_notify_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; pdu_session_res_release_cmd_ies_container::pdu_session_res_release_cmd_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -40480,39 +40328,39 @@ SRSASN_CODE pdu_session_res_release_cmd_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 83: ran_paging_prio_present = true; - ran_paging_prio.id = c.id; - ran_paging_prio.crit = c.crit; - ran_paging_prio.value = c.value.ran_paging_prio(); + ran_paging_prio.id = c.id(); + ran_paging_prio.crit = c.crit(); + ran_paging_prio.value = c.value().ran_paging_prio(); break; case 38: nas_pdu_present = true; - nas_pdu.id = c.id; - nas_pdu.crit = c.crit; - nas_pdu.value = c.value.nas_pdu(); + nas_pdu.id = c.id(); + nas_pdu.crit = c.crit(); + nas_pdu.value = c.value().nas_pdu(); break; case 79: nof_mandatory_ies--; - pdu_session_res_to_release_list_rel_cmd.id = c.id; - pdu_session_res_to_release_list_rel_cmd.crit = c.crit; - pdu_session_res_to_release_list_rel_cmd.value = c.value.pdu_session_res_to_release_list_rel_cmd(); + pdu_session_res_to_release_list_rel_cmd.id = c.id(); + pdu_session_res_to_release_list_rel_cmd.crit = c.crit(); + pdu_session_res_to_release_list_rel_cmd.value = c.value().pdu_session_res_to_release_list_rel_cmd(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -40566,7 +40414,7 @@ void pdu_session_res_release_cmd_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; pdu_session_res_release_resp_ies_container::pdu_session_res_release_resp_ies_container() : amf_ue_ngap_id(10, crit_e::ignore), @@ -40604,39 +40452,39 @@ SRSASN_CODE pdu_session_res_release_resp_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 70: nof_mandatory_ies--; - pdu_session_res_released_list_rel_res.id = c.id; - pdu_session_res_released_list_rel_res.crit = c.crit; - pdu_session_res_released_list_rel_res.value = c.value.pdu_session_res_released_list_rel_res(); + pdu_session_res_released_list_rel_res.id = c.id(); + pdu_session_res_released_list_rel_res.crit = c.crit(); + pdu_session_res_released_list_rel_res.value = c.value().pdu_session_res_released_list_rel_res(); break; case 121: user_location_info_present = true; - user_location_info.id = c.id; - user_location_info.crit = c.crit; - user_location_info.value = c.value.user_location_info(); + user_location_info.id = c.id(); + user_location_info.crit = c.crit(); + user_location_info.value = c.value().user_location_info(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -40690,7 +40538,7 @@ void pdu_session_res_release_resp_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; pdu_session_res_setup_request_ies_container::pdu_session_res_setup_request_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -40733,45 +40581,45 @@ SRSASN_CODE pdu_session_res_setup_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 83: ran_paging_prio_present = true; - ran_paging_prio.id = c.id; - ran_paging_prio.crit = c.crit; - ran_paging_prio.value = c.value.ran_paging_prio(); + ran_paging_prio.id = c.id(); + ran_paging_prio.crit = c.crit(); + ran_paging_prio.value = c.value().ran_paging_prio(); break; case 38: nas_pdu_present = true; - nas_pdu.id = c.id; - nas_pdu.crit = c.crit; - nas_pdu.value = c.value.nas_pdu(); + nas_pdu.id = c.id(); + nas_pdu.crit = c.crit(); + nas_pdu.value = c.value().nas_pdu(); break; case 74: nof_mandatory_ies--; - pdu_session_res_setup_list_su_req.id = c.id; - pdu_session_res_setup_list_su_req.crit = c.crit; - pdu_session_res_setup_list_su_req.value = c.value.pdu_session_res_setup_list_su_req(); + pdu_session_res_setup_list_su_req.id = c.id(); + pdu_session_res_setup_list_su_req.crit = c.crit(); + pdu_session_res_setup_list_su_req.value = c.value().pdu_session_res_setup_list_su_req(); break; case 110: ue_aggregate_maximum_bit_rate_present = true; - ue_aggregate_maximum_bit_rate.id = c.id; - ue_aggregate_maximum_bit_rate.crit = c.crit; - ue_aggregate_maximum_bit_rate.value = c.value.ue_aggregate_maximum_bit_rate(); + ue_aggregate_maximum_bit_rate.id = c.id(); + ue_aggregate_maximum_bit_rate.crit = c.crit(); + ue_aggregate_maximum_bit_rate.value = c.value().ue_aggregate_maximum_bit_rate(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -40829,7 +40677,7 @@ void pdu_session_res_setup_request_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; pdu_session_res_setup_resp_ies_container::pdu_session_res_setup_resp_ies_container() : amf_ue_ngap_id(10, crit_e::ignore), @@ -40870,39 +40718,39 @@ SRSASN_CODE pdu_session_res_setup_resp_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 75: pdu_session_res_setup_list_su_res_present = true; - pdu_session_res_setup_list_su_res.id = c.id; - pdu_session_res_setup_list_su_res.crit = c.crit; - pdu_session_res_setup_list_su_res.value = c.value.pdu_session_res_setup_list_su_res(); + pdu_session_res_setup_list_su_res.id = c.id(); + pdu_session_res_setup_list_su_res.crit = c.crit(); + pdu_session_res_setup_list_su_res.value = c.value().pdu_session_res_setup_list_su_res(); break; case 58: pdu_session_res_failed_to_setup_list_su_res_present = true; - pdu_session_res_failed_to_setup_list_su_res.id = c.id; - pdu_session_res_failed_to_setup_list_su_res.crit = c.crit; - pdu_session_res_failed_to_setup_list_su_res.value = c.value.pdu_session_res_failed_to_setup_list_su_res(); + pdu_session_res_failed_to_setup_list_su_res.id = c.id(); + pdu_session_res_failed_to_setup_list_su_res.crit = c.crit(); + pdu_session_res_failed_to_setup_list_su_res.value = c.value().pdu_session_res_failed_to_setup_list_su_res(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -40958,7 +40806,7 @@ void pdu_session_res_setup_resp_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; pws_cancel_request_ies_container::pws_cancel_request_ies_container() : msg_id(35, crit_e::reject), @@ -40994,33 +40842,33 @@ SRSASN_CODE pws_cancel_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 35: nof_mandatory_ies--; - msg_id.id = c.id; - msg_id.crit = c.crit; - msg_id.value = c.value.msg_id(); + msg_id.id = c.id(); + msg_id.crit = c.crit(); + msg_id.value = c.value().msg_id(); break; case 95: nof_mandatory_ies--; - serial_num.id = c.id; - serial_num.crit = c.crit; - serial_num.value = c.value.serial_num(); + serial_num.id = c.id(); + serial_num.crit = c.crit(); + serial_num.value = c.value().serial_num(); break; case 122: warning_area_list_present = true; - warning_area_list.id = c.id; - warning_area_list.crit = c.crit; - warning_area_list.value = c.value.warning_area_list(); + warning_area_list.id = c.id(); + warning_area_list.crit = c.crit(); + warning_area_list.value = c.value().warning_area_list(); break; case 14: cancel_all_warning_msgs_present = true; - cancel_all_warning_msgs.id = c.id; - cancel_all_warning_msgs.crit = c.crit; - cancel_all_warning_msgs.value = c.value.cancel_all_warning_msgs(); + cancel_all_warning_msgs.id = c.id(); + cancel_all_warning_msgs.crit = c.crit(); + cancel_all_warning_msgs.value = c.value().cancel_all_warning_msgs(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -41072,7 +40920,7 @@ void pws_cancel_request_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; pws_cancel_resp_ies_container::pws_cancel_resp_ies_container() : msg_id(35, crit_e::reject), @@ -41108,33 +40956,33 @@ SRSASN_CODE pws_cancel_resp_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 35: nof_mandatory_ies--; - msg_id.id = c.id; - msg_id.crit = c.crit; - msg_id.value = c.value.msg_id(); + msg_id.id = c.id(); + msg_id.crit = c.crit(); + msg_id.value = c.value().msg_id(); break; case 95: nof_mandatory_ies--; - serial_num.id = c.id; - serial_num.crit = c.crit; - serial_num.value = c.value.serial_num(); + serial_num.id = c.id(); + serial_num.crit = c.crit(); + serial_num.value = c.value().serial_num(); break; case 12: broadcast_cancelled_area_list_present = true; - broadcast_cancelled_area_list.id = c.id; - broadcast_cancelled_area_list.crit = c.crit; - broadcast_cancelled_area_list.value = c.value.broadcast_cancelled_area_list(); + broadcast_cancelled_area_list.id = c.id(); + broadcast_cancelled_area_list.crit = c.crit(); + broadcast_cancelled_area_list.value = c.value().broadcast_cancelled_area_list(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -41186,7 +41034,7 @@ void pws_cancel_resp_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; pws_fail_ind_ies_container::pws_fail_ind_ies_container() : pws_failed_cell_id_list(81, crit_e::reject), global_ran_node_id(27, crit_e::reject) @@ -41211,21 +41059,21 @@ SRSASN_CODE pws_fail_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 81: nof_mandatory_ies--; - pws_failed_cell_id_list.id = c.id; - pws_failed_cell_id_list.crit = c.crit; - pws_failed_cell_id_list.value = c.value.pws_failed_cell_id_list(); + pws_failed_cell_id_list.id = c.id(); + pws_failed_cell_id_list.crit = c.crit(); + pws_failed_cell_id_list.value = c.value().pws_failed_cell_id_list(); break; case 27: nof_mandatory_ies--; - global_ran_node_id.id = c.id; - global_ran_node_id.crit = c.crit; - global_ran_node_id.value = c.value.global_ran_node_id(); + global_ran_node_id.id = c.id(); + global_ran_node_id.crit = c.crit(); + global_ran_node_id.value = c.value().global_ran_node_id(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -41269,7 +41117,7 @@ void pws_fail_ind_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; pws_restart_ind_ies_container::pws_restart_ind_ies_container() : cell_id_list_for_restart(16, crit_e::reject), @@ -41302,33 +41150,33 @@ SRSASN_CODE pws_restart_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 16: nof_mandatory_ies--; - cell_id_list_for_restart.id = c.id; - cell_id_list_for_restart.crit = c.crit; - cell_id_list_for_restart.value = c.value.cell_id_list_for_restart(); + cell_id_list_for_restart.id = c.id(); + cell_id_list_for_restart.crit = c.crit(); + cell_id_list_for_restart.value = c.value().cell_id_list_for_restart(); break; case 27: nof_mandatory_ies--; - global_ran_node_id.id = c.id; - global_ran_node_id.crit = c.crit; - global_ran_node_id.value = c.value.global_ran_node_id(); + global_ran_node_id.id = c.id(); + global_ran_node_id.crit = c.crit(); + global_ran_node_id.value = c.value().global_ran_node_id(); break; case 104: nof_mandatory_ies--; - tai_list_for_restart.id = c.id; - tai_list_for_restart.crit = c.crit; - tai_list_for_restart.value = c.value.tai_list_for_restart(); + tai_list_for_restart.id = c.id(); + tai_list_for_restart.crit = c.crit(); + tai_list_for_restart.value = c.value().tai_list_for_restart(); break; case 23: emergency_area_id_list_for_restart_present = true; - emergency_area_id_list_for_restart.id = c.id; - emergency_area_id_list_for_restart.crit = c.crit; - emergency_area_id_list_for_restart.value = c.value.emergency_area_id_list_for_restart(); + emergency_area_id_list_for_restart.id = c.id(); + emergency_area_id_list_for_restart.crit = c.crit(); + emergency_area_id_list_for_restart.value = c.value().emergency_area_id_list_for_restart(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -41378,7 +41226,7 @@ void pws_restart_ind_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; paging_ies_container::paging_ies_container() : ue_paging_id(115, crit_e::ignore), @@ -41429,51 +41277,51 @@ SRSASN_CODE paging_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 115: nof_mandatory_ies--; - ue_paging_id.id = c.id; - ue_paging_id.crit = c.crit; - ue_paging_id.value = c.value.ue_paging_id(); + ue_paging_id.id = c.id(); + ue_paging_id.crit = c.crit(); + ue_paging_id.value = c.value().ue_paging_id(); break; case 50: paging_drx_present = true; - paging_drx.id = c.id; - paging_drx.crit = c.crit; - paging_drx.value = c.value.paging_drx(); + paging_drx.id = c.id(); + paging_drx.crit = c.crit(); + paging_drx.value = c.value().paging_drx(); break; case 103: nof_mandatory_ies--; - tai_list_for_paging.id = c.id; - tai_list_for_paging.crit = c.crit; - tai_list_for_paging.value = c.value.tai_list_for_paging(); + tai_list_for_paging.id = c.id(); + tai_list_for_paging.crit = c.crit(); + tai_list_for_paging.value = c.value().tai_list_for_paging(); break; case 52: paging_prio_present = true; - paging_prio.id = c.id; - paging_prio.crit = c.crit; - paging_prio.value = c.value.paging_prio(); + paging_prio.id = c.id(); + paging_prio.crit = c.crit(); + paging_prio.value = c.value().paging_prio(); break; case 118: ue_radio_cap_for_paging_present = true; - ue_radio_cap_for_paging.id = c.id; - ue_radio_cap_for_paging.crit = c.crit; - ue_radio_cap_for_paging.value = c.value.ue_radio_cap_for_paging(); + ue_radio_cap_for_paging.id = c.id(); + ue_radio_cap_for_paging.crit = c.crit(); + ue_radio_cap_for_paging.value = c.value().ue_radio_cap_for_paging(); break; case 51: paging_origin_present = true; - paging_origin.id = c.id; - paging_origin.crit = c.crit; - paging_origin.value = c.value.paging_origin(); + paging_origin.id = c.id(); + paging_origin.crit = c.crit(); + paging_origin.value = c.value().paging_origin(); break; case 11: assist_data_for_paging_present = true; - assist_data_for_paging.id = c.id; - assist_data_for_paging.crit = c.crit; - assist_data_for_paging.value = c.value.assist_data_for_paging(); + assist_data_for_paging.id = c.id(); + assist_data_for_paging.crit = c.crit(); + assist_data_for_paging.value = c.value().assist_data_for_paging(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -41537,7 +41385,7 @@ void paging_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; path_switch_request_ies_container::path_switch_request_ies_container() : ran_ue_ngap_id(85, crit_e::reject), @@ -41574,45 +41422,45 @@ SRSASN_CODE path_switch_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 100: nof_mandatory_ies--; - source_amf_ue_ngap_id.id = c.id; - source_amf_ue_ngap_id.crit = c.crit; - source_amf_ue_ngap_id.value = c.value.source_amf_ue_ngap_id(); + source_amf_ue_ngap_id.id = c.id(); + source_amf_ue_ngap_id.crit = c.crit(); + source_amf_ue_ngap_id.value = c.value().source_amf_ue_ngap_id(); break; case 121: nof_mandatory_ies--; - user_location_info.id = c.id; - user_location_info.crit = c.crit; - user_location_info.value = c.value.user_location_info(); + user_location_info.id = c.id(); + user_location_info.crit = c.crit(); + user_location_info.value = c.value().user_location_info(); break; case 119: nof_mandatory_ies--; - ue_security_cap.id = c.id; - ue_security_cap.crit = c.crit; - ue_security_cap.value = c.value.ue_security_cap(); + ue_security_cap.id = c.id(); + ue_security_cap.crit = c.crit(); + ue_security_cap.value = c.value().ue_security_cap(); break; case 76: nof_mandatory_ies--; - pdu_session_res_to_be_switched_dl_list.id = c.id; - pdu_session_res_to_be_switched_dl_list.crit = c.crit; - pdu_session_res_to_be_switched_dl_list.value = c.value.pdu_session_res_to_be_switched_dl_list(); + pdu_session_res_to_be_switched_dl_list.id = c.id(); + pdu_session_res_to_be_switched_dl_list.crit = c.crit(); + pdu_session_res_to_be_switched_dl_list.value = c.value().pdu_session_res_to_be_switched_dl_list(); break; case 57: pdu_session_res_failed_to_setup_list_ps_req_present = true; - pdu_session_res_failed_to_setup_list_ps_req.id = c.id; - pdu_session_res_failed_to_setup_list_ps_req.crit = c.crit; - pdu_session_res_failed_to_setup_list_ps_req.value = c.value.pdu_session_res_failed_to_setup_list_ps_req(); + pdu_session_res_failed_to_setup_list_ps_req.id = c.id(); + pdu_session_res_failed_to_setup_list_ps_req.crit = c.crit(); + pdu_session_res_failed_to_setup_list_ps_req.value = c.value().pdu_session_res_failed_to_setup_list_ps_req(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -41666,7 +41514,7 @@ void path_switch_request_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; path_switch_request_ack_ies_container::path_switch_request_ack_ies_container() : amf_ue_ngap_id(10, crit_e::ignore), @@ -41733,81 +41581,81 @@ SRSASN_CODE path_switch_request_ack_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 119: ue_security_cap_present = true; - ue_security_cap.id = c.id; - ue_security_cap.crit = c.crit; - ue_security_cap.value = c.value.ue_security_cap(); + ue_security_cap.id = c.id(); + ue_security_cap.crit = c.crit(); + ue_security_cap.value = c.value().ue_security_cap(); break; case 93: nof_mandatory_ies--; - security_context.id = c.id; - security_context.crit = c.crit; - security_context.value = c.value.security_context(); + security_context.id = c.id(); + security_context.crit = c.crit(); + security_context.value = c.value().security_context(); break; case 41: new_security_context_ind_present = true; - new_security_context_ind.id = c.id; - new_security_context_ind.crit = c.crit; - new_security_context_ind.value = c.value.new_security_context_ind(); + new_security_context_ind.id = c.id(); + new_security_context_ind.crit = c.crit(); + new_security_context_ind.value = c.value().new_security_context_ind(); break; case 77: nof_mandatory_ies--; - pdu_session_res_switched_list.id = c.id; - pdu_session_res_switched_list.crit = c.crit; - pdu_session_res_switched_list.value = c.value.pdu_session_res_switched_list(); + pdu_session_res_switched_list.id = c.id(); + pdu_session_res_switched_list.crit = c.crit(); + pdu_session_res_switched_list.value = c.value().pdu_session_res_switched_list(); break; case 68: pdu_session_res_released_list_ps_ack_present = true; - pdu_session_res_released_list_ps_ack.id = c.id; - pdu_session_res_released_list_ps_ack.crit = c.crit; - pdu_session_res_released_list_ps_ack.value = c.value.pdu_session_res_released_list_ps_ack(); + pdu_session_res_released_list_ps_ack.id = c.id(); + pdu_session_res_released_list_ps_ack.crit = c.crit(); + pdu_session_res_released_list_ps_ack.value = c.value().pdu_session_res_released_list_ps_ack(); break; case 0: nof_mandatory_ies--; - allowed_nssai.id = c.id; - allowed_nssai.crit = c.crit; - allowed_nssai.value = c.value.allowed_nssai(); + allowed_nssai.id = c.id(); + allowed_nssai.crit = c.crit(); + allowed_nssai.value = c.value().allowed_nssai(); break; case 18: core_network_assist_info_present = true; - core_network_assist_info.id = c.id; - core_network_assist_info.crit = c.crit; - core_network_assist_info.value = c.value.core_network_assist_info(); + core_network_assist_info.id = c.id(); + core_network_assist_info.crit = c.crit(); + core_network_assist_info.value = c.value().core_network_assist_info(); break; case 91: rrc_inactive_transition_report_request_present = true; - rrc_inactive_transition_report_request.id = c.id; - rrc_inactive_transition_report_request.crit = c.crit; - rrc_inactive_transition_report_request.value = c.value.rrc_inactive_transition_report_request(); + rrc_inactive_transition_report_request.id = c.id(); + rrc_inactive_transition_report_request.crit = c.crit(); + rrc_inactive_transition_report_request.value = c.value().rrc_inactive_transition_report_request(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; case 146: redirection_voice_fallback_present = true; - redirection_voice_fallback.id = c.id; - redirection_voice_fallback.crit = c.crit; - redirection_voice_fallback.value = c.value.redirection_voice_fallback(); + redirection_voice_fallback.id = c.id(); + redirection_voice_fallback.crit = c.crit(); + redirection_voice_fallback.value = c.value().redirection_voice_fallback(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -41885,7 +41733,7 @@ void path_switch_request_ack_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; path_switch_request_fail_ies_container::path_switch_request_fail_ies_container() : amf_ue_ngap_id(10, crit_e::ignore), @@ -41918,33 +41766,33 @@ SRSASN_CODE path_switch_request_fail_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 69: nof_mandatory_ies--; - pdu_session_res_released_list_ps_fail.id = c.id; - pdu_session_res_released_list_ps_fail.crit = c.crit; - pdu_session_res_released_list_ps_fail.value = c.value.pdu_session_res_released_list_ps_fail(); + pdu_session_res_released_list_ps_fail.id = c.id(); + pdu_session_res_released_list_ps_fail.crit = c.crit(); + pdu_session_res_released_list_ps_fail.value = c.value().pdu_session_res_released_list_ps_fail(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -42084,7 +41932,7 @@ void private_msg_s::to_json(json_writer& j) const j.end_array(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ran_cfg_upd_ies_container::ran_cfg_upd_ies_container() : ran_node_name(82, crit_e::ignore), @@ -42124,33 +41972,33 @@ SRSASN_CODE ran_cfg_upd_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 82: ran_node_name_present = true; - ran_node_name.id = c.id; - ran_node_name.crit = c.crit; - ran_node_name.value = c.value.ran_node_name(); + ran_node_name.id = c.id(); + ran_node_name.crit = c.crit(); + ran_node_name.value = c.value().ran_node_name(); break; case 102: supported_ta_list_present = true; - supported_ta_list.id = c.id; - supported_ta_list.crit = c.crit; - supported_ta_list.value = c.value.supported_ta_list(); + supported_ta_list.id = c.id(); + supported_ta_list.crit = c.crit(); + supported_ta_list.value = c.value().supported_ta_list(); break; case 21: default_paging_drx_present = true; - default_paging_drx.id = c.id; - default_paging_drx.crit = c.crit; - default_paging_drx.value = c.value.default_paging_drx(); + default_paging_drx.id = c.id(); + default_paging_drx.crit = c.crit(); + default_paging_drx.value = c.value().default_paging_drx(); break; case 27: global_ran_node_id_present = true; - global_ran_node_id.id = c.id; - global_ran_node_id.crit = c.crit; - global_ran_node_id.value = c.value.global_ran_node_id(); + global_ran_node_id.id = c.id(); + global_ran_node_id.crit = c.crit(); + global_ran_node_id.value = c.value().global_ran_node_id(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -42224,7 +42072,7 @@ void ran_cfg_upd_ack_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ran_cfg_upd_fail_ies_container::ran_cfg_upd_fail_ies_container() : cause(15, crit_e::ignore), time_to_wait(107, crit_e::ignore), crit_diagnostics(19, crit_e::ignore) @@ -42256,27 +42104,27 @@ SRSASN_CODE ran_cfg_upd_fail_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 15: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 107: time_to_wait_present = true; - time_to_wait.id = c.id; - time_to_wait.crit = c.crit; - time_to_wait.value = c.value.time_to_wait(); + time_to_wait.id = c.id(); + time_to_wait.crit = c.crit(); + time_to_wait.value = c.value().time_to_wait(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -42326,7 +42174,7 @@ void ran_cfg_upd_fail_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; rrc_inactive_transition_report_ies_container::rrc_inactive_transition_report_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -42356,33 +42204,33 @@ SRSASN_CODE rrc_inactive_transition_report_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 92: nof_mandatory_ies--; - rrc_state.id = c.id; - rrc_state.crit = c.crit; - rrc_state.value = c.value.rrc_state(); + rrc_state.id = c.id(); + rrc_state.crit = c.crit(); + rrc_state.value = c.value().rrc_state(); break; case 121: nof_mandatory_ies--; - user_location_info.id = c.id; - user_location_info.crit = c.crit; - user_location_info.value = c.value.user_location_info(); + user_location_info.id = c.id(); + user_location_info.crit = c.crit(); + user_location_info.value = c.value().user_location_info(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -42430,7 +42278,7 @@ void rrc_inactive_transition_report_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; reroute_nas_request_ies_container::reroute_nas_request_ies_container() : ran_ue_ngap_id(85, crit_e::reject), @@ -42468,39 +42316,39 @@ SRSASN_CODE reroute_nas_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 10: amf_ue_ngap_id_present = true; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 42: nof_mandatory_ies--; - ngap_msg.id = c.id; - ngap_msg.crit = c.crit; - ngap_msg.value = c.value.ngap_msg(); + ngap_msg.id = c.id(); + ngap_msg.crit = c.crit(); + ngap_msg.value = c.value().ngap_msg(); break; case 3: nof_mandatory_ies--; - amf_set_id.id = c.id; - amf_set_id.crit = c.crit; - amf_set_id.value = c.value.amf_set_id(); + amf_set_id.id = c.id(); + amf_set_id.crit = c.crit(); + amf_set_id.value = c.value().amf_set_id(); break; case 0: allowed_nssai_present = true; - allowed_nssai.id = c.id; - allowed_nssai.crit = c.crit; - allowed_nssai.value = c.value.allowed_nssai(); + allowed_nssai.id = c.id(); + allowed_nssai.crit = c.crit(); + allowed_nssai.value = c.value().allowed_nssai(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -42554,7 +42402,7 @@ void reroute_nas_request_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; secondary_rat_data_usage_report_ies_container::secondary_rat_data_usage_report_ies_container() : amf_ue_ngap_id(10, crit_e::ignore), @@ -42587,33 +42435,33 @@ SRSASN_CODE secondary_rat_data_usage_report_ies_container::unpack(cbit_ref& bref for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 142: nof_mandatory_ies--; - pdu_session_res_secondary_ratusage_list.id = c.id; - pdu_session_res_secondary_ratusage_list.crit = c.crit; - pdu_session_res_secondary_ratusage_list.value = c.value.pdu_session_res_secondary_ratusage_list(); + pdu_session_res_secondary_ratusage_list.id = c.id(); + pdu_session_res_secondary_ratusage_list.crit = c.crit(); + pdu_session_res_secondary_ratusage_list.value = c.value().pdu_session_res_secondary_ratusage_list(); break; case 143: ho_flag_present = true; - ho_flag.id = c.id; - ho_flag.crit = c.crit; - ho_flag.value = c.value.ho_flag(); + ho_flag.id = c.id(); + ho_flag.crit = c.crit(); + ho_flag.value = c.value().ho_flag(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -42663,7 +42511,7 @@ void secondary_rat_data_usage_report_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; trace_fail_ind_ies_container::trace_fail_ind_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -42693,33 +42541,33 @@ SRSASN_CODE trace_fail_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 44: nof_mandatory_ies--; - ngran_trace_id.id = c.id; - ngran_trace_id.crit = c.crit; - ngran_trace_id.value = c.value.ngran_trace_id(); + ngran_trace_id.id = c.id(); + ngran_trace_id.crit = c.crit(); + ngran_trace_id.value = c.value().ngran_trace_id(); break; case 15: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -42767,7 +42615,7 @@ void trace_fail_ind_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; trace_start_ies_container::trace_start_ies_container() : amf_ue_ngap_id(10, crit_e::reject), ran_ue_ngap_id(85, crit_e::reject), trace_activation(108, crit_e::ignore) @@ -42793,27 +42641,27 @@ SRSASN_CODE trace_start_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 108: nof_mandatory_ies--; - trace_activation.id = c.id; - trace_activation.crit = c.crit; - trace_activation.value = c.value.trace_activation(); + trace_activation.id = c.id(); + trace_activation.crit = c.crit(); + trace_activation.value = c.value().trace_activation(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -42859,7 +42707,7 @@ void trace_start_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_context_mod_fail_ies_container::ue_context_mod_fail_ies_container() : amf_ue_ngap_id(10, crit_e::ignore), @@ -42892,33 +42740,33 @@ SRSASN_CODE ue_context_mod_fail_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 15: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -42968,7 +42816,7 @@ void ue_context_mod_fail_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_context_mod_request_ies_container::ue_context_mod_request_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -43039,75 +42887,75 @@ SRSASN_CODE ue_context_mod_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 83: ran_paging_prio_present = true; - ran_paging_prio.id = c.id; - ran_paging_prio.crit = c.crit; - ran_paging_prio.value = c.value.ran_paging_prio(); + ran_paging_prio.id = c.id(); + ran_paging_prio.crit = c.crit(); + ran_paging_prio.value = c.value().ran_paging_prio(); break; case 94: security_key_present = true; - security_key.id = c.id; - security_key.crit = c.crit; - security_key.value = c.value.security_key(); + security_key.id = c.id(); + security_key.crit = c.crit(); + security_key.value = c.value().security_key(); break; case 31: idx_to_rfsp_present = true; - idx_to_rfsp.id = c.id; - idx_to_rfsp.crit = c.crit; - idx_to_rfsp.value = c.value.idx_to_rfsp(); + idx_to_rfsp.id = c.id(); + idx_to_rfsp.crit = c.crit(); + idx_to_rfsp.value = c.value().idx_to_rfsp(); break; case 110: ue_aggregate_maximum_bit_rate_present = true; - ue_aggregate_maximum_bit_rate.id = c.id; - ue_aggregate_maximum_bit_rate.crit = c.crit; - ue_aggregate_maximum_bit_rate.value = c.value.ue_aggregate_maximum_bit_rate(); + ue_aggregate_maximum_bit_rate.id = c.id(); + ue_aggregate_maximum_bit_rate.crit = c.crit(); + ue_aggregate_maximum_bit_rate.value = c.value().ue_aggregate_maximum_bit_rate(); break; case 119: ue_security_cap_present = true; - ue_security_cap.id = c.id; - ue_security_cap.crit = c.crit; - ue_security_cap.value = c.value.ue_security_cap(); + ue_security_cap.id = c.id(); + ue_security_cap.crit = c.crit(); + ue_security_cap.value = c.value().ue_security_cap(); break; case 18: core_network_assist_info_present = true; - core_network_assist_info.id = c.id; - core_network_assist_info.crit = c.crit; - core_network_assist_info.value = c.value.core_network_assist_info(); + core_network_assist_info.id = c.id(); + core_network_assist_info.crit = c.crit(); + core_network_assist_info.value = c.value().core_network_assist_info(); break; case 24: emergency_fallback_ind_present = true; - emergency_fallback_ind.id = c.id; - emergency_fallback_ind.crit = c.crit; - emergency_fallback_ind.value = c.value.emergency_fallback_ind(); + emergency_fallback_ind.id = c.id(); + emergency_fallback_ind.crit = c.crit(); + emergency_fallback_ind.value = c.value().emergency_fallback_ind(); break; case 40: new_amf_ue_ngap_id_present = true; - new_amf_ue_ngap_id.id = c.id; - new_amf_ue_ngap_id.crit = c.crit; - new_amf_ue_ngap_id.value = c.value.new_amf_ue_ngap_id(); + new_amf_ue_ngap_id.id = c.id(); + new_amf_ue_ngap_id.crit = c.crit(); + new_amf_ue_ngap_id.value = c.value().new_amf_ue_ngap_id(); break; case 91: rrc_inactive_transition_report_request_present = true; - rrc_inactive_transition_report_request.id = c.id; - rrc_inactive_transition_report_request.crit = c.crit; - rrc_inactive_transition_report_request.value = c.value.rrc_inactive_transition_report_request(); + rrc_inactive_transition_report_request.id = c.id(); + rrc_inactive_transition_report_request.crit = c.crit(); + rrc_inactive_transition_report_request.value = c.value().rrc_inactive_transition_report_request(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -43187,7 +43035,7 @@ void ue_context_mod_request_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_context_mod_resp_ies_container::ue_context_mod_resp_ies_container() : amf_ue_ngap_id(10, crit_e::ignore), @@ -43228,39 +43076,39 @@ SRSASN_CODE ue_context_mod_resp_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 92: rrc_state_present = true; - rrc_state.id = c.id; - rrc_state.crit = c.crit; - rrc_state.value = c.value.rrc_state(); + rrc_state.id = c.id(); + rrc_state.crit = c.crit(); + rrc_state.value = c.value().rrc_state(); break; case 121: user_location_info_present = true; - user_location_info.id = c.id; - user_location_info.crit = c.crit; - user_location_info.value = c.value.user_location_info(); + user_location_info.id = c.id(); + user_location_info.crit = c.crit(); + user_location_info.value = c.value().user_location_info(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -43316,7 +43164,7 @@ void ue_context_mod_resp_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_context_release_cmd_ies_container::ue_context_release_cmd_ies_container() : ue_ngap_ids(114, crit_e::reject), cause(15, crit_e::ignore) @@ -43341,21 +43189,21 @@ SRSASN_CODE ue_context_release_cmd_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 114: nof_mandatory_ies--; - ue_ngap_ids.id = c.id; - ue_ngap_ids.crit = c.crit; - ue_ngap_ids.value = c.value.ue_ngap_ids(); + ue_ngap_ids.id = c.id(); + ue_ngap_ids.crit = c.crit(); + ue_ngap_ids.value = c.value().ue_ngap_ids(); break; case 15: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -43399,7 +43247,7 @@ void ue_context_release_cmd_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_context_release_complete_ies_container::ue_context_release_complete_ies_container() : amf_ue_ngap_id(10, crit_e::ignore), @@ -43445,46 +43293,46 @@ SRSASN_CODE ue_context_release_complete_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 121: user_location_info_present = true; - user_location_info.id = c.id; - user_location_info.crit = c.crit; - user_location_info.value = c.value.user_location_info(); + user_location_info.id = c.id(); + user_location_info.crit = c.crit(); + user_location_info.value = c.value().user_location_info(); break; case 32: info_on_recommended_cells_and_ran_nodes_for_paging_present = true; - info_on_recommended_cells_and_ran_nodes_for_paging.id = c.id; - info_on_recommended_cells_and_ran_nodes_for_paging.crit = c.crit; + info_on_recommended_cells_and_ran_nodes_for_paging.id = c.id(); + info_on_recommended_cells_and_ran_nodes_for_paging.crit = c.crit(); info_on_recommended_cells_and_ran_nodes_for_paging.value = - c.value.info_on_recommended_cells_and_ran_nodes_for_paging(); + c.value().info_on_recommended_cells_and_ran_nodes_for_paging(); break; case 60: pdu_session_res_list_cxt_rel_cpl_present = true; - pdu_session_res_list_cxt_rel_cpl.id = c.id; - pdu_session_res_list_cxt_rel_cpl.crit = c.crit; - pdu_session_res_list_cxt_rel_cpl.value = c.value.pdu_session_res_list_cxt_rel_cpl(); + pdu_session_res_list_cxt_rel_cpl.id = c.id(); + pdu_session_res_list_cxt_rel_cpl.crit = c.crit(); + pdu_session_res_list_cxt_rel_cpl.value = c.value().pdu_session_res_list_cxt_rel_cpl(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -43544,7 +43392,7 @@ void ue_context_release_complete_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_context_release_request_ies_container::ue_context_release_request_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -43577,33 +43425,33 @@ SRSASN_CODE ue_context_release_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 133: pdu_session_res_list_cxt_rel_req_present = true; - pdu_session_res_list_cxt_rel_req.id = c.id; - pdu_session_res_list_cxt_rel_req.crit = c.crit; - pdu_session_res_list_cxt_rel_req.value = c.value.pdu_session_res_list_cxt_rel_req(); + pdu_session_res_list_cxt_rel_req.id = c.id(); + pdu_session_res_list_cxt_rel_req.crit = c.crit(); + pdu_session_res_list_cxt_rel_req.value = c.value().pdu_session_res_list_cxt_rel_req(); break; case 15: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -43653,7 +43501,7 @@ void ue_context_release_request_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_radio_cap_check_request_ies_container::ue_radio_cap_check_request_ies_container() : amf_ue_ngap_id(10, crit_e::reject), ran_ue_ngap_id(85, crit_e::reject), ue_radio_cap(117, crit_e::ignore) @@ -43682,27 +43530,27 @@ SRSASN_CODE ue_radio_cap_check_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 117: ue_radio_cap_present = true; - ue_radio_cap.id = c.id; - ue_radio_cap.crit = c.crit; - ue_radio_cap.value = c.value.ue_radio_cap(); + ue_radio_cap.id = c.id(); + ue_radio_cap.crit = c.crit(); + ue_radio_cap.value = c.value().ue_radio_cap(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -43750,7 +43598,7 @@ void ue_radio_cap_check_request_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_radio_cap_check_resp_ies_container::ue_radio_cap_check_resp_ies_container() : amf_ue_ngap_id(10, crit_e::ignore), @@ -43783,33 +43631,33 @@ SRSASN_CODE ue_radio_cap_check_resp_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 30: nof_mandatory_ies--; - ims_voice_support_ind.id = c.id; - ims_voice_support_ind.crit = c.crit; - ims_voice_support_ind.value = c.value.ims_voice_support_ind(); + ims_voice_support_ind.id = c.id(); + ims_voice_support_ind.crit = c.crit(); + ims_voice_support_ind.value = c.value().ims_voice_support_ind(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -43859,7 +43707,7 @@ void ue_radio_cap_check_resp_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_radio_cap_info_ind_ies_container::ue_radio_cap_info_ind_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -43892,33 +43740,33 @@ SRSASN_CODE ue_radio_cap_info_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 117: nof_mandatory_ies--; - ue_radio_cap.id = c.id; - ue_radio_cap.crit = c.crit; - ue_radio_cap.value = c.value.ue_radio_cap(); + ue_radio_cap.id = c.id(); + ue_radio_cap.crit = c.crit(); + ue_radio_cap.value = c.value().ue_radio_cap(); break; case 118: ue_radio_cap_for_paging_present = true; - ue_radio_cap_for_paging.id = c.id; - ue_radio_cap_for_paging.crit = c.crit; - ue_radio_cap_for_paging.value = c.value.ue_radio_cap_for_paging(); + ue_radio_cap_for_paging.id = c.id(); + ue_radio_cap_for_paging.crit = c.crit(); + ue_radio_cap_for_paging.value = c.value().ue_radio_cap_for_paging(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -43968,7 +43816,7 @@ void ue_radio_cap_info_ind_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; uetnla_binding_release_request_ies_container::uetnla_binding_release_request_ies_container() : amf_ue_ngap_id(10, crit_e::reject), ran_ue_ngap_id(85, crit_e::reject) @@ -43993,21 +43841,21 @@ SRSASN_CODE uetnla_binding_release_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -44051,7 +43899,7 @@ void uetnla_binding_release_request_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ul_nas_transport_ies_container::ul_nas_transport_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -44081,33 +43929,33 @@ SRSASN_CODE ul_nas_transport_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 38: nof_mandatory_ies--; - nas_pdu.id = c.id; - nas_pdu.crit = c.crit; - nas_pdu.value = c.value.nas_pdu(); + nas_pdu.id = c.id(); + nas_pdu.crit = c.crit(); + nas_pdu.value = c.value().nas_pdu(); break; case 121: nof_mandatory_ies--; - user_location_info.id = c.id; - user_location_info.crit = c.crit; - user_location_info.value = c.value.user_location_info(); + user_location_info.id = c.id(); + user_location_info.crit = c.crit(); + user_location_info.value = c.value().user_location_info(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -44155,7 +44003,7 @@ void ul_nas_transport_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ul_non_ueassociated_nrp_pa_transport_ies_container::ul_non_ueassociated_nrp_pa_transport_ies_container() : routing_id(89, crit_e::reject), nrp_pa_pdu(46, crit_e::reject) @@ -44180,21 +44028,21 @@ SRSASN_CODE ul_non_ueassociated_nrp_pa_transport_ies_container::unpack(cbit_ref& for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 89: nof_mandatory_ies--; - routing_id.id = c.id; - routing_id.crit = c.crit; - routing_id.value = c.value.routing_id(); + routing_id.id = c.id(); + routing_id.crit = c.crit(); + routing_id.value = c.value().routing_id(); break; case 46: nof_mandatory_ies--; - nrp_pa_pdu.id = c.id; - nrp_pa_pdu.crit = c.crit; - nrp_pa_pdu.value = c.value.nrp_pa_pdu(); + nrp_pa_pdu.id = c.id(); + nrp_pa_pdu.crit = c.crit(); + nrp_pa_pdu.value = c.value().nrp_pa_pdu(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -44238,7 +44086,7 @@ void ul_non_ueassociated_nrp_pa_transport_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ul_ran_cfg_transfer_ies_container::ul_ran_cfg_transfer_ies_container() : son_cfg_transfer_ul(99, crit_e::ignore), endc_son_cfg_transfer_ul(158, crit_e::ignore) @@ -44267,21 +44115,21 @@ SRSASN_CODE ul_ran_cfg_transfer_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 99: son_cfg_transfer_ul_present = true; - son_cfg_transfer_ul.id = c.id; - son_cfg_transfer_ul.crit = c.crit; - son_cfg_transfer_ul.value = c.value.son_cfg_transfer_ul(); + son_cfg_transfer_ul.id = c.id(); + son_cfg_transfer_ul.crit = c.crit(); + son_cfg_transfer_ul.value = c.value().son_cfg_transfer_ul(); break; case 158: endc_son_cfg_transfer_ul_present = true; - endc_son_cfg_transfer_ul.id = c.id; - endc_son_cfg_transfer_ul.crit = c.crit; - endc_son_cfg_transfer_ul.value = c.value.endc_son_cfg_transfer_ul(); + endc_son_cfg_transfer_ul.id = c.id(); + endc_son_cfg_transfer_ul.crit = c.crit(); + endc_son_cfg_transfer_ul.value = c.value().endc_son_cfg_transfer_ul(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -44325,7 +44173,7 @@ void ul_ran_cfg_transfer_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ul_ran_status_transfer_ies_container::ul_ran_status_transfer_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -44353,27 +44201,27 @@ SRSASN_CODE ul_ran_status_transfer_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 84: nof_mandatory_ies--; - ran_status_transfer_transparent_container.id = c.id; - ran_status_transfer_transparent_container.crit = c.crit; - ran_status_transfer_transparent_container.value = c.value.ran_status_transfer_transparent_container(); + ran_status_transfer_transparent_container.id = c.id(); + ran_status_transfer_transparent_container.crit = c.crit(); + ran_status_transfer_transparent_container.value = c.value().ran_status_transfer_transparent_container(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -44419,7 +44267,7 @@ void ul_ran_status_transfer_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ul_ueassociated_nrp_pa_transport_ies_container::ul_ueassociated_nrp_pa_transport_ies_container() : amf_ue_ngap_id(10, crit_e::reject), @@ -44449,33 +44297,33 @@ SRSASN_CODE ul_ueassociated_nrp_pa_transport_ies_container::unpack(cbit_ref& bre for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 10: nof_mandatory_ies--; - amf_ue_ngap_id.id = c.id; - amf_ue_ngap_id.crit = c.crit; - amf_ue_ngap_id.value = c.value.amf_ue_ngap_id(); + amf_ue_ngap_id.id = c.id(); + amf_ue_ngap_id.crit = c.crit(); + amf_ue_ngap_id.value = c.value().amf_ue_ngap_id(); break; case 85: nof_mandatory_ies--; - ran_ue_ngap_id.id = c.id; - ran_ue_ngap_id.crit = c.crit; - ran_ue_ngap_id.value = c.value.ran_ue_ngap_id(); + ran_ue_ngap_id.id = c.id(); + ran_ue_ngap_id.crit = c.crit(); + ran_ue_ngap_id.value = c.value().ran_ue_ngap_id(); break; case 89: nof_mandatory_ies--; - routing_id.id = c.id; - routing_id.crit = c.crit; - routing_id.value = c.value.routing_id(); + routing_id.id = c.id(); + routing_id.crit = c.crit(); + routing_id.value = c.value().routing_id(); break; case 46: nof_mandatory_ies--; - nrp_pa_pdu.id = c.id; - nrp_pa_pdu.crit = c.crit; - nrp_pa_pdu.value = c.value.nrp_pa_pdu(); + nrp_pa_pdu.id = c.id(); + nrp_pa_pdu.crit = c.crit(); + nrp_pa_pdu.value = c.value().nrp_pa_pdu(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -44523,7 +44371,7 @@ void ul_ueassociated_nrp_pa_transport_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; write_replace_warning_request_ies_container::write_replace_warning_request_ies_container() : msg_id(35, crit_e::reject), @@ -44588,75 +44436,75 @@ SRSASN_CODE write_replace_warning_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 35: nof_mandatory_ies--; - msg_id.id = c.id; - msg_id.crit = c.crit; - msg_id.value = c.value.msg_id(); + msg_id.id = c.id(); + msg_id.crit = c.crit(); + msg_id.value = c.value().msg_id(); break; case 95: nof_mandatory_ies--; - serial_num.id = c.id; - serial_num.crit = c.crit; - serial_num.value = c.value.serial_num(); + serial_num.id = c.id(); + serial_num.crit = c.crit(); + serial_num.value = c.value().serial_num(); break; case 122: warning_area_list_present = true; - warning_area_list.id = c.id; - warning_area_list.crit = c.crit; - warning_area_list.value = c.value.warning_area_list(); + warning_area_list.id = c.id(); + warning_area_list.crit = c.crit(); + warning_area_list.value = c.value().warning_area_list(); break; case 87: nof_mandatory_ies--; - repeat_period.id = c.id; - repeat_period.crit = c.crit; - repeat_period.value = c.value.repeat_period(); + repeat_period.id = c.id(); + repeat_period.crit = c.crit(); + repeat_period.value = c.value().repeat_period(); break; case 47: nof_mandatory_ies--; - nof_broadcasts_requested.id = c.id; - nof_broadcasts_requested.crit = c.crit; - nof_broadcasts_requested.value = c.value.nof_broadcasts_requested(); + nof_broadcasts_requested.id = c.id(); + nof_broadcasts_requested.crit = c.crit(); + nof_broadcasts_requested.value = c.value().nof_broadcasts_requested(); break; case 125: warning_type_present = true; - warning_type.id = c.id; - warning_type.crit = c.crit; - warning_type.value = c.value.warning_type(); + warning_type.id = c.id(); + warning_type.crit = c.crit(); + warning_type.value = c.value().warning_type(); break; case 124: warning_security_info_present = true; - warning_security_info.id = c.id; - warning_security_info.crit = c.crit; - warning_security_info.value = c.value.warning_security_info(); + warning_security_info.id = c.id(); + warning_security_info.crit = c.crit(); + warning_security_info.value = c.value().warning_security_info(); break; case 20: data_coding_scheme_present = true; - data_coding_scheme.id = c.id; - data_coding_scheme.crit = c.crit; - data_coding_scheme.value = c.value.data_coding_scheme(); + data_coding_scheme.id = c.id(); + data_coding_scheme.crit = c.crit(); + data_coding_scheme.value = c.value().data_coding_scheme(); break; case 123: warning_msg_contents_present = true; - warning_msg_contents.id = c.id; - warning_msg_contents.crit = c.crit; - warning_msg_contents.value = c.value.warning_msg_contents(); + warning_msg_contents.id = c.id(); + warning_msg_contents.crit = c.crit(); + warning_msg_contents.value = c.value().warning_msg_contents(); break; case 17: concurrent_warning_msg_ind_present = true; - concurrent_warning_msg_ind.id = c.id; - concurrent_warning_msg_ind.crit = c.crit; - concurrent_warning_msg_ind.value = c.value.concurrent_warning_msg_ind(); + concurrent_warning_msg_ind.id = c.id(); + concurrent_warning_msg_ind.crit = c.crit(); + concurrent_warning_msg_ind.value = c.value().concurrent_warning_msg_ind(); break; case 141: warning_area_coordinates_present = true; - warning_area_coordinates.id = c.id; - warning_area_coordinates.crit = c.crit; - warning_area_coordinates.value = c.value.warning_area_coordinates(); + warning_area_coordinates.id = c.id(); + warning_area_coordinates.crit = c.crit(); + warning_area_coordinates.value = c.value().warning_area_coordinates(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -44732,7 +44580,7 @@ void write_replace_warning_request_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; write_replace_warning_resp_ies_container::write_replace_warning_resp_ies_container() : msg_id(35, crit_e::reject), @@ -44768,33 +44616,33 @@ SRSASN_CODE write_replace_warning_resp_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 35: nof_mandatory_ies--; - msg_id.id = c.id; - msg_id.crit = c.crit; - msg_id.value = c.value.msg_id(); + msg_id.id = c.id(); + msg_id.crit = c.crit(); + msg_id.value = c.value().msg_id(); break; case 95: nof_mandatory_ies--; - serial_num.id = c.id; - serial_num.crit = c.crit; - serial_num.value = c.value.serial_num(); + serial_num.id = c.id(); + serial_num.crit = c.crit(); + serial_num.value = c.value().serial_num(); break; case 13: broadcast_completed_area_list_present = true; - broadcast_completed_area_list.id = c.id; - broadcast_completed_area_list.crit = c.crit; - broadcast_completed_area_list.value = c.value.broadcast_completed_area_list(); + broadcast_completed_area_list.id = c.id(); + broadcast_completed_area_list.crit = c.crit(); + broadcast_completed_area_list.value = c.value().broadcast_completed_area_list(); break; case 19: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -49471,7 +49319,7 @@ const char* pdu_session_res_modify_ind_transfer_ext_ies_o::ext_c::types_opts::to return convert_enum_idx(options, 2, value, "pdu_session_res_modify_ind_transfer_ext_ies_o::ext_c::types"); } -template struct asn1::ngap::protocol_ext_field_s; +template struct asn1::protocol_ext_field_s; pdu_session_res_modify_ind_transfer_ext_ies_container::pdu_session_res_modify_ind_transfer_ext_ies_container() : secondary_ratusage_info(144, crit_e::ignore), security_result(156, crit_e::ignore) @@ -49500,21 +49348,21 @@ SRSASN_CODE pdu_session_res_modify_ind_transfer_ext_ies_container::unpack(cbit_r for (; nof_ies > 0; --nof_ies) { protocol_ext_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 144: secondary_ratusage_info_present = true; - secondary_ratusage_info.id = c.id; - secondary_ratusage_info.crit = c.crit; - secondary_ratusage_info.ext = c.ext_value.secondary_ratusage_info(); + secondary_ratusage_info.id = c.id(); + secondary_ratusage_info.crit = c.crit(); + secondary_ratusage_info.ext = c.value().secondary_ratusage_info(); break; case 156: security_result_present = true; - security_result.id = c.id; - security_result.crit = c.crit; - security_result.ext = c.ext_value.security_result(); + security_result.id = c.id(); + security_result.crit = c.crit(); + security_result.ext = c.value().security_result(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -50400,7 +50248,7 @@ uint8_t pdu_session_res_modify_request_transfer_ies_o::value_c::types_opts::to_n return 0; } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; pdu_session_res_modify_request_transfer_ies_container::pdu_session_res_modify_request_transfer_ies_container() : pdu_session_aggregate_maximum_bit_rate(130, crit_e::reject), @@ -50450,45 +50298,45 @@ SRSASN_CODE pdu_session_res_modify_request_transfer_ies_container::unpack(cbit_r for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 130: pdu_session_aggregate_maximum_bit_rate_present = true; - pdu_session_aggregate_maximum_bit_rate.id = c.id; - pdu_session_aggregate_maximum_bit_rate.crit = c.crit; - pdu_session_aggregate_maximum_bit_rate.value = c.value.pdu_session_aggregate_maximum_bit_rate(); + pdu_session_aggregate_maximum_bit_rate.id = c.id(); + pdu_session_aggregate_maximum_bit_rate.crit = c.crit(); + pdu_session_aggregate_maximum_bit_rate.value = c.value().pdu_session_aggregate_maximum_bit_rate(); break; case 140: ul_ngu_up_tnl_modify_list_present = true; - ul_ngu_up_tnl_modify_list.id = c.id; - ul_ngu_up_tnl_modify_list.crit = c.crit; - ul_ngu_up_tnl_modify_list.value = c.value.ul_ngu_up_tnl_modify_list(); + ul_ngu_up_tnl_modify_list.id = c.id(); + ul_ngu_up_tnl_modify_list.crit = c.crit(); + ul_ngu_up_tnl_modify_list.value = c.value().ul_ngu_up_tnl_modify_list(); break; case 129: network_instance_present = true; - network_instance.id = c.id; - network_instance.crit = c.crit; - network_instance.value = c.value.network_instance(); + network_instance.id = c.id(); + network_instance.crit = c.crit(); + network_instance.value = c.value().network_instance(); break; case 135: qos_flow_add_or_modify_request_list_present = true; - qos_flow_add_or_modify_request_list.id = c.id; - qos_flow_add_or_modify_request_list.crit = c.crit; - qos_flow_add_or_modify_request_list.value = c.value.qos_flow_add_or_modify_request_list(); + qos_flow_add_or_modify_request_list.id = c.id(); + qos_flow_add_or_modify_request_list.crit = c.crit(); + qos_flow_add_or_modify_request_list.value = c.value().qos_flow_add_or_modify_request_list(); break; case 137: qos_flow_to_release_list_present = true; - qos_flow_to_release_list.id = c.id; - qos_flow_to_release_list.crit = c.crit; - qos_flow_to_release_list.value = c.value.qos_flow_to_release_list(); + qos_flow_to_release_list.id = c.id(); + qos_flow_to_release_list.crit = c.crit(); + qos_flow_to_release_list.value = c.value().qos_flow_to_release_list(); break; case 126: add_ul_ngu_up_tnl_info_present = true; - add_ul_ngu_up_tnl_info.id = c.id; - add_ul_ngu_up_tnl_info.crit = c.crit; - add_ul_ngu_up_tnl_info.value = c.value.add_ul_ngu_up_tnl_info(); + add_ul_ngu_up_tnl_info.id = c.id(); + add_ul_ngu_up_tnl_info.crit = c.crit(); + add_ul_ngu_up_tnl_info.value = c.value().add_ul_ngu_up_tnl_info(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -51850,7 +51698,7 @@ uint8_t pdu_session_res_setup_request_transfer_ies_o::value_c::types_opts::to_nu return 0; } -template struct asn1::ngap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; pdu_session_res_setup_request_transfer_ies_container::pdu_session_res_setup_request_transfer_ies_container() : pdu_session_aggregate_maximum_bit_rate(130, crit_e::reject), @@ -51903,57 +51751,57 @@ SRSASN_CODE pdu_session_res_setup_request_transfer_ies_container::unpack(cbit_re for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 130: pdu_session_aggregate_maximum_bit_rate_present = true; - pdu_session_aggregate_maximum_bit_rate.id = c.id; - pdu_session_aggregate_maximum_bit_rate.crit = c.crit; - pdu_session_aggregate_maximum_bit_rate.value = c.value.pdu_session_aggregate_maximum_bit_rate(); + pdu_session_aggregate_maximum_bit_rate.id = c.id(); + pdu_session_aggregate_maximum_bit_rate.crit = c.crit(); + pdu_session_aggregate_maximum_bit_rate.value = c.value().pdu_session_aggregate_maximum_bit_rate(); break; case 139: nof_mandatory_ies--; - ul_ngu_up_tnl_info.id = c.id; - ul_ngu_up_tnl_info.crit = c.crit; - ul_ngu_up_tnl_info.value = c.value.ul_ngu_up_tnl_info(); + ul_ngu_up_tnl_info.id = c.id(); + ul_ngu_up_tnl_info.crit = c.crit(); + ul_ngu_up_tnl_info.value = c.value().ul_ngu_up_tnl_info(); break; case 126: add_ul_ngu_up_tnl_info_present = true; - add_ul_ngu_up_tnl_info.id = c.id; - add_ul_ngu_up_tnl_info.crit = c.crit; - add_ul_ngu_up_tnl_info.value = c.value.add_ul_ngu_up_tnl_info(); + add_ul_ngu_up_tnl_info.id = c.id(); + add_ul_ngu_up_tnl_info.crit = c.crit(); + add_ul_ngu_up_tnl_info.value = c.value().add_ul_ngu_up_tnl_info(); break; case 127: data_forwarding_not_possible_present = true; - data_forwarding_not_possible.id = c.id; - data_forwarding_not_possible.crit = c.crit; - data_forwarding_not_possible.value = c.value.data_forwarding_not_possible(); + data_forwarding_not_possible.id = c.id(); + data_forwarding_not_possible.crit = c.crit(); + data_forwarding_not_possible.value = c.value().data_forwarding_not_possible(); break; case 134: nof_mandatory_ies--; - pdu_session_type.id = c.id; - pdu_session_type.crit = c.crit; - pdu_session_type.value = c.value.pdu_session_type(); + pdu_session_type.id = c.id(); + pdu_session_type.crit = c.crit(); + pdu_session_type.value = c.value().pdu_session_type(); break; case 138: security_ind_present = true; - security_ind.id = c.id; - security_ind.crit = c.crit; - security_ind.value = c.value.security_ind(); + security_ind.id = c.id(); + security_ind.crit = c.crit(); + security_ind.value = c.value().security_ind(); break; case 129: network_instance_present = true; - network_instance.id = c.id; - network_instance.crit = c.crit; - network_instance.value = c.value.network_instance(); + network_instance.id = c.id(); + network_instance.crit = c.crit(); + network_instance.value = c.value().network_instance(); break; case 136: nof_mandatory_ies--; - qos_flow_setup_request_list.id = c.id; - qos_flow_setup_request_list.crit = c.crit; - qos_flow_setup_request_list.value = c.value.qos_flow_setup_request_list(); + qos_flow_setup_request_list.id = c.id(); + qos_flow_setup_request_list.crit = c.crit(); + qos_flow_setup_request_list.value = c.value().qos_flow_setup_request_list(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } diff --git a/lib/src/asn1/s1ap.cc b/lib/src/asn1/s1ap.cc index 8f063325f..caa868a6f 100644 --- a/lib/src/asn1/s1ap.cc +++ b/lib/src/asn1/s1ap.cc @@ -123,88 +123,6 @@ void private_ie_field_s::to_json(json_writer& j) const j.end_obj(); } -// ProtocolExtensionField{S1AP-PROTOCOL-EXTENSION : ExtensionSetParam} ::= SEQUENCE{{S1AP-PROTOCOL-EXTENSION}} -template -SRSASN_CODE protocol_ext_field_s::pack(bit_ref& bref) const -{ - HANDLE_CODE(pack_integer(bref, id, (uint32_t)0u, (uint32_t)65535u, false, true)); - warn_assert(crit != ext_set_paramT_::get_crit(id), __func__, __LINE__); - HANDLE_CODE(crit.pack(bref)); - HANDLE_CODE(ext_value.pack(bref)); - - return SRSASN_SUCCESS; -} -template -SRSASN_CODE protocol_ext_field_s::unpack(cbit_ref& bref) -{ - HANDLE_CODE(unpack_integer(id, bref, (uint32_t)0u, (uint32_t)65535u, false, true)); - HANDLE_CODE(crit.unpack(bref)); - ext_value = ext_set_paramT_::get_ext(id); - HANDLE_CODE(ext_value.unpack(bref)); - - return SRSASN_SUCCESS; -} -template -void protocol_ext_field_s::to_json(json_writer& j) const -{ - j.start_obj(); - j.write_int("id", id); - j.write_str("criticality", crit.to_string()); - j.end_obj(); -} -template -bool protocol_ext_field_s::load_info_obj(const uint32_t& id_) -{ - if (not ext_set_paramT_::is_id_valid(id_)) { - return false; - } - id = id_; - crit = ext_set_paramT_::get_crit(id); - ext_value = ext_set_paramT_::get_ext(id); - return ext_value.type().value != ext_set_paramT_::ext_c::types_opts::nulltype; -} - -// ProtocolIE-Field{S1AP-PROTOCOL-IES : IEsSetParam} ::= SEQUENCE{{S1AP-PROTOCOL-IES}} -template -SRSASN_CODE protocol_ie_field_s::pack(bit_ref& bref) const -{ - HANDLE_CODE(pack_integer(bref, id, (uint32_t)0u, (uint32_t)65535u, false, true)); - warn_assert(crit != ies_set_paramT_::get_crit(id), __func__, __LINE__); - HANDLE_CODE(crit.pack(bref)); - HANDLE_CODE(value.pack(bref)); - - return SRSASN_SUCCESS; -} -template -SRSASN_CODE protocol_ie_field_s::unpack(cbit_ref& bref) -{ - HANDLE_CODE(unpack_integer(id, bref, (uint32_t)0u, (uint32_t)65535u, false, true)); - HANDLE_CODE(crit.unpack(bref)); - value = ies_set_paramT_::get_value(id); - HANDLE_CODE(value.unpack(bref)); - - return SRSASN_SUCCESS; -} -template -void protocol_ie_field_s::to_json(json_writer& j) const -{ - j.start_obj(); - j.write_int("id", id); - j.write_str("criticality", crit.to_string()); - j.end_obj(); -} -template -bool protocol_ie_field_s::load_info_obj(const uint32_t& id_) -{ - if (not ies_set_paramT_::is_id_valid(id_)) { - return false; - } - id = id_; - crit = ies_set_paramT_::get_crit(id); - value = ies_set_paramT_::get_value(id); - return value.type().value != ies_set_paramT_::value_c::types_opts::nulltype; -} - // ProtocolIE-FieldPair{S1AP-PROTOCOL-IES-PAIR : IEsSetParam} ::= SEQUENCE{{S1AP-PROTOCOL-IES-PAIR}} template SRSASN_CODE protocol_ie_field_pair_s::pack(bit_ref& bref) const @@ -324,41 +242,6 @@ const char* s1ap_protocol_ext_empty_o::ext_c::types_opts::to_string() const return convert_enum_idx(options, 0, value, "s1ap_protocol_ext_empty_o::ext_c::types"); } -template -protocol_ext_container_item_s::protocol_ext_container_item_s(uint32_t id_, crit_e crit_) : id(id_), crit(crit_) - -{} -template -SRSASN_CODE protocol_ext_container_item_s::pack(bit_ref& bref) const -{ - HANDLE_CODE(pack_integer(bref, id, (uint32_t)0u, (uint32_t)65535u, false, true)); - HANDLE_CODE(crit.pack(bref)); - { - varlength_field_pack_guard varlen_scope(bref, true); - HANDLE_CODE(ext.pack(bref)); - } - return SRSASN_SUCCESS; -} -template -SRSASN_CODE protocol_ext_container_item_s::unpack(cbit_ref& bref) -{ - HANDLE_CODE(unpack_integer(id, bref, (uint32_t)0u, (uint32_t)65535u, false, true)); - HANDLE_CODE(crit.unpack(bref)); - { - varlength_field_unpack_guard varlen_scope(bref, true); - HANDLE_CODE(ext.unpack(bref)); - } - return SRSASN_SUCCESS; -} -template -void protocol_ext_container_item_s::to_json(json_writer& j) const -{ - j.start_obj(); - j.write_int("id", id); - j.write_str("criticality", crit.to_string()); - j.end_obj(); -} - SRSASN_CODE protocol_ext_container_empty_l::pack(bit_ref& bref) const { uint32_t nof_ies = 0; @@ -2126,7 +2009,7 @@ void coun_tvalue_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ext_field_s; +template struct asn1::protocol_ext_field_s; bearers_subject_to_status_transfer_item_ext_ies_container::bearers_subject_to_status_transfer_item_ext_ies_container() : ulcount_value_extended(179, crit_e::ignore), @@ -2176,45 +2059,45 @@ SRSASN_CODE bearers_subject_to_status_transfer_item_ext_ies_container::unpack(cb for (; nof_ies > 0; --nof_ies) { protocol_ext_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 179: ulcount_value_extended_present = true; - ulcount_value_extended.id = c.id; - ulcount_value_extended.crit = c.crit; - ulcount_value_extended.ext = c.ext_value.ulcount_value_extended(); + ulcount_value_extended.id = c.id(); + ulcount_value_extended.crit = c.crit(); + ulcount_value_extended.ext = c.value().ulcount_value_extended(); break; case 180: dlcount_value_extended_present = true; - dlcount_value_extended.id = c.id; - dlcount_value_extended.crit = c.crit; - dlcount_value_extended.ext = c.ext_value.dlcount_value_extended(); + dlcount_value_extended.id = c.id(); + dlcount_value_extended.crit = c.crit(); + dlcount_value_extended.ext = c.value().dlcount_value_extended(); break; case 181: receive_status_of_ulpdcpsdus_extended_present = true; - receive_status_of_ulpdcpsdus_extended.id = c.id; - receive_status_of_ulpdcpsdus_extended.crit = c.crit; - receive_status_of_ulpdcpsdus_extended.ext = c.ext_value.receive_status_of_ulpdcpsdus_extended(); + receive_status_of_ulpdcpsdus_extended.id = c.id(); + receive_status_of_ulpdcpsdus_extended.crit = c.crit(); + receive_status_of_ulpdcpsdus_extended.ext = c.value().receive_status_of_ulpdcpsdus_extended(); break; case 217: ulcount_value_pdcp_snlen18_present = true; - ulcount_value_pdcp_snlen18.id = c.id; - ulcount_value_pdcp_snlen18.crit = c.crit; - ulcount_value_pdcp_snlen18.ext = c.ext_value.ulcount_value_pdcp_snlen18(); + ulcount_value_pdcp_snlen18.id = c.id(); + ulcount_value_pdcp_snlen18.crit = c.crit(); + ulcount_value_pdcp_snlen18.ext = c.value().ulcount_value_pdcp_snlen18(); break; case 218: dlcount_value_pdcp_snlen18_present = true; - dlcount_value_pdcp_snlen18.id = c.id; - dlcount_value_pdcp_snlen18.crit = c.crit; - dlcount_value_pdcp_snlen18.ext = c.ext_value.dlcount_value_pdcp_snlen18(); + dlcount_value_pdcp_snlen18.id = c.id(); + dlcount_value_pdcp_snlen18.crit = c.crit(); + dlcount_value_pdcp_snlen18.ext = c.value().dlcount_value_pdcp_snlen18(); break; case 219: receive_status_of_ulpdcpsdus_pdcp_snlen18_present = true; - receive_status_of_ulpdcpsdus_pdcp_snlen18.id = c.id; - receive_status_of_ulpdcpsdus_pdcp_snlen18.crit = c.crit; - receive_status_of_ulpdcpsdus_pdcp_snlen18.ext = c.ext_value.receive_status_of_ulpdcpsdus_pdcp_snlen18(); + receive_status_of_ulpdcpsdus_pdcp_snlen18.id = c.id(); + receive_status_of_ulpdcpsdus_pdcp_snlen18.crit = c.crit(); + receive_status_of_ulpdcpsdus_pdcp_snlen18.ext = c.value().receive_status_of_ulpdcpsdus_pdcp_snlen18(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -4690,42 +4573,7 @@ const char* cell_traffic_trace_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 6, value, "cell_traffic_trace_ies_o::value_c::types"); } -template -protocol_ie_container_item_s::protocol_ie_container_item_s(uint32_t id_, crit_e crit_) : id(id_), crit(crit_) - -{} -template -SRSASN_CODE protocol_ie_container_item_s::pack(bit_ref& bref) const -{ - HANDLE_CODE(pack_integer(bref, id, (uint32_t)0u, (uint32_t)65535u, false, true)); - HANDLE_CODE(crit.pack(bref)); - { - varlength_field_pack_guard varlen_scope(bref, true); - HANDLE_CODE(value.pack(bref)); - } - return SRSASN_SUCCESS; -} -template -SRSASN_CODE protocol_ie_container_item_s::unpack(cbit_ref& bref) -{ - HANDLE_CODE(unpack_integer(id, bref, (uint32_t)0u, (uint32_t)65535u, false, true)); - HANDLE_CODE(crit.unpack(bref)); - { - varlength_field_unpack_guard varlen_scope(bref, true); - HANDLE_CODE(value.unpack(bref)); - } - return SRSASN_SUCCESS; -} -template -void protocol_ie_container_item_s::to_json(json_writer& j) const -{ - j.start_obj(); - j.write_int("id", id); - j.write_str("criticality", crit.to_string()); - j.end_obj(); -} - -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; cell_traffic_trace_ies_container::cell_traffic_trace_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -4762,45 +4610,45 @@ SRSASN_CODE cell_traffic_trace_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 86: nof_mandatory_ies--; - e_utran_trace_id.id = c.id; - e_utran_trace_id.crit = c.crit; - e_utran_trace_id.value = c.value.e_utran_trace_id(); + e_utran_trace_id.id = c.id(); + e_utran_trace_id.crit = c.crit(); + e_utran_trace_id.value = c.value().e_utran_trace_id(); break; case 100: nof_mandatory_ies--; - eutran_cgi.id = c.id; - eutran_cgi.crit = c.crit; - eutran_cgi.value = c.value.eutran_cgi(); + eutran_cgi.id = c.id(); + eutran_cgi.crit = c.crit(); + eutran_cgi.value = c.value().eutran_cgi(); break; case 131: nof_mandatory_ies--; - trace_collection_entity_ip_address.id = c.id; - trace_collection_entity_ip_address.crit = c.crit; - trace_collection_entity_ip_address.value = c.value.trace_collection_entity_ip_address(); + trace_collection_entity_ip_address.id = c.id(); + trace_collection_entity_ip_address.crit = c.crit(); + trace_collection_entity_ip_address.value = c.value().trace_collection_entity_ip_address(); break; case 166: privacy_ind_present = true; - privacy_ind.id = c.id; - privacy_ind.crit = c.crit; - privacy_ind.value = c.value.privacy_ind(); + privacy_ind.id = c.id(); + privacy_ind.crit = c.crit(); + privacy_ind.value = c.value().privacy_ind(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -5470,7 +5318,7 @@ const char* erab_qos_params_ext_ies_o::ext_c::types_opts::to_string() const return convert_enum_idx(options, 2, value, "erab_qos_params_ext_ies_o::ext_c::types"); } -template struct asn1::s1ap::protocol_ext_field_s; +template struct asn1::protocol_ext_field_s; gbr_qos_info_ext_ies_container::gbr_qos_info_ext_ies_container() : extended_erab_maximum_bitrate_dl(255, crit_e::ignore), @@ -5510,33 +5358,33 @@ SRSASN_CODE gbr_qos_info_ext_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ext_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 255: extended_erab_maximum_bitrate_dl_present = true; - extended_erab_maximum_bitrate_dl.id = c.id; - extended_erab_maximum_bitrate_dl.crit = c.crit; - extended_erab_maximum_bitrate_dl.ext = c.ext_value.extended_erab_maximum_bitrate_dl(); + extended_erab_maximum_bitrate_dl.id = c.id(); + extended_erab_maximum_bitrate_dl.crit = c.crit(); + extended_erab_maximum_bitrate_dl.ext = c.value().extended_erab_maximum_bitrate_dl(); break; case 256: extended_erab_maximum_bitrate_ul_present = true; - extended_erab_maximum_bitrate_ul.id = c.id; - extended_erab_maximum_bitrate_ul.crit = c.crit; - extended_erab_maximum_bitrate_ul.ext = c.ext_value.extended_erab_maximum_bitrate_ul(); + extended_erab_maximum_bitrate_ul.id = c.id(); + extended_erab_maximum_bitrate_ul.crit = c.crit(); + extended_erab_maximum_bitrate_ul.ext = c.value().extended_erab_maximum_bitrate_ul(); break; case 257: extended_erab_guaranteed_bitrate_dl_present = true; - extended_erab_guaranteed_bitrate_dl.id = c.id; - extended_erab_guaranteed_bitrate_dl.crit = c.crit; - extended_erab_guaranteed_bitrate_dl.ext = c.ext_value.extended_erab_guaranteed_bitrate_dl(); + extended_erab_guaranteed_bitrate_dl.id = c.id(); + extended_erab_guaranteed_bitrate_dl.crit = c.crit(); + extended_erab_guaranteed_bitrate_dl.ext = c.value().extended_erab_guaranteed_bitrate_dl(); break; case 258: extended_erab_guaranteed_bitrate_ul_present = true; - extended_erab_guaranteed_bitrate_ul.id = c.id; - extended_erab_guaranteed_bitrate_ul.crit = c.crit; - extended_erab_guaranteed_bitrate_ul.ext = c.ext_value.extended_erab_guaranteed_bitrate_ul(); + extended_erab_guaranteed_bitrate_ul.id = c.id(); + extended_erab_guaranteed_bitrate_ul.crit = c.crit(); + extended_erab_guaranteed_bitrate_ul.ext = c.value().extended_erab_guaranteed_bitrate_ul(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -5719,7 +5567,7 @@ void dl_cp_security_info_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ext_field_s; +template struct asn1::protocol_ext_field_s; erab_qos_params_ext_ies_container::erab_qos_params_ext_ies_container() : dl_packet_loss_rate(273, crit_e::ignore), ul_packet_loss_rate(274, crit_e::ignore) @@ -5748,21 +5596,21 @@ SRSASN_CODE erab_qos_params_ext_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ext_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 273: dl_packet_loss_rate_present = true; - dl_packet_loss_rate.id = c.id; - dl_packet_loss_rate.crit = c.crit; - dl_packet_loss_rate.ext = c.ext_value.dl_packet_loss_rate(); + dl_packet_loss_rate.id = c.id(); + dl_packet_loss_rate.crit = c.crit(); + dl_packet_loss_rate.ext = c.value().dl_packet_loss_rate(); break; case 274: ul_packet_loss_rate_present = true; - ul_packet_loss_rate.id = c.id; - ul_packet_loss_rate.crit = c.crit; - ul_packet_loss_rate.ext = c.ext_value.ul_packet_loss_rate(); + ul_packet_loss_rate.id = c.id(); + ul_packet_loss_rate.crit = c.crit(); + ul_packet_loss_rate.ext = c.value().ul_packet_loss_rate(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -6433,7 +6281,7 @@ const char* conn_establishment_ind_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 9, value, "conn_establishment_ind_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; conn_establishment_ind_ies_container::conn_establishment_ind_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), @@ -6494,63 +6342,63 @@ SRSASN_CODE conn_establishment_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 74: ue_radio_cap_present = true; - ue_radio_cap.id = c.id; - ue_radio_cap.crit = c.crit; - ue_radio_cap.value = c.value.ue_radio_cap(); + ue_radio_cap.id = c.id(); + ue_radio_cap.crit = c.crit(); + ue_radio_cap.value = c.value().ue_radio_cap(); break; case 251: enhanced_coverage_restricted_present = true; - enhanced_coverage_restricted.id = c.id; - enhanced_coverage_restricted.crit = c.crit; - enhanced_coverage_restricted.value = c.value.enhanced_coverage_restricted(); + enhanced_coverage_restricted.id = c.id(); + enhanced_coverage_restricted.crit = c.crit(); + enhanced_coverage_restricted.value = c.value().enhanced_coverage_restricted(); break; case 253: dl_cp_security_info_present = true; - dl_cp_security_info.id = c.id; - dl_cp_security_info.crit = c.crit; - dl_cp_security_info.value = c.value.dl_cp_security_info(); + dl_cp_security_info.id = c.id(); + dl_cp_security_info.crit = c.crit(); + dl_cp_security_info.value = c.value().dl_cp_security_info(); break; case 271: ce_mode_brestricted_present = true; - ce_mode_brestricted.id = c.id; - ce_mode_brestricted.crit = c.crit; - ce_mode_brestricted.value = c.value.ce_mode_brestricted(); + ce_mode_brestricted.id = c.id(); + ce_mode_brestricted.crit = c.crit(); + ce_mode_brestricted.value = c.value().ce_mode_brestricted(); break; case 280: end_ind_present = true; - end_ind.id = c.id; - end_ind.crit = c.crit; - end_ind.value = c.value.end_ind(); + end_ind.id = c.id(); + end_ind.crit = c.crit(); + end_ind.value = c.value().end_ind(); break; case 278: subscription_based_ue_differentiation_info_present = true; - subscription_based_ue_differentiation_info.id = c.id; - subscription_based_ue_differentiation_info.crit = c.crit; - subscription_based_ue_differentiation_info.value = c.value.subscription_based_ue_differentiation_info(); + subscription_based_ue_differentiation_info.id = c.id(); + subscription_based_ue_differentiation_info.crit = c.crit(); + subscription_based_ue_differentiation_info.value = c.value().subscription_based_ue_differentiation_info(); break; case 252: ue_level_qos_params_present = true; - ue_level_qos_params.id = c.id; - ue_level_qos_params.crit = c.crit; - ue_level_qos_params.value = c.value.ue_level_qos_params(); + ue_level_qos_params.id = c.id(); + ue_level_qos_params.crit = c.crit(); + ue_level_qos_params.value = c.value().ue_level_qos_params(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -7538,7 +7386,7 @@ const char* deactiv_trace_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 3, value, "deactiv_trace_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; deactiv_trace_ies_container::deactiv_trace_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), enb_ue_s1ap_id(8, crit_e::reject), e_utran_trace_id(86, crit_e::ignore) @@ -7564,27 +7412,27 @@ SRSASN_CODE deactiv_trace_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 86: nof_mandatory_ies--; - e_utran_trace_id.id = c.id; - e_utran_trace_id.crit = c.crit; - e_utran_trace_id.value = c.value.e_utran_trace_id(); + e_utran_trace_id.id = c.id(); + e_utran_trace_id.crit = c.crit(); + e_utran_trace_id.value = c.value().e_utran_trace_id(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -8073,7 +7921,7 @@ const char* dlnaspdu_delivery_ack_request_opts::to_string() const return convert_enum_idx(options, 1, value, "dlnaspdu_delivery_ack_request_e"); } -template struct asn1::s1ap::protocol_ext_field_s; +template struct asn1::protocol_ext_field_s; ho_restrict_list_ext_ies_container::ho_restrict_list_ext_ies_container() : nrrestrictin_ep_sas_secondary_rat(261, crit_e::ignore), @@ -8118,39 +7966,39 @@ SRSASN_CODE ho_restrict_list_ext_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ext_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 261: nrrestrictin_ep_sas_secondary_rat_present = true; - nrrestrictin_ep_sas_secondary_rat.id = c.id; - nrrestrictin_ep_sas_secondary_rat.crit = c.crit; - nrrestrictin_ep_sas_secondary_rat.ext = c.ext_value.nrrestrictin_ep_sas_secondary_rat(); + nrrestrictin_ep_sas_secondary_rat.id = c.id(); + nrrestrictin_ep_sas_secondary_rat.crit = c.crit(); + nrrestrictin_ep_sas_secondary_rat.ext = c.value().nrrestrictin_ep_sas_secondary_rat(); break; case 270: unlicensed_spec_restrict_present = true; - unlicensed_spec_restrict.id = c.id; - unlicensed_spec_restrict.crit = c.crit; - unlicensed_spec_restrict.ext = c.ext_value.unlicensed_spec_restrict(); + unlicensed_spec_restrict.id = c.id(); + unlicensed_spec_restrict.crit = c.crit(); + unlicensed_spec_restrict.ext = c.value().unlicensed_spec_restrict(); break; case 282: cn_type_restricts_present = true; - cn_type_restricts.id = c.id; - cn_type_restricts.crit = c.crit; - cn_type_restricts.ext = c.ext_value.cn_type_restricts(); + cn_type_restricts.id = c.id(); + cn_type_restricts.crit = c.crit(); + cn_type_restricts.ext = c.value().cn_type_restricts(); break; case 287: nrrestrictin5_gs_present = true; - nrrestrictin5_gs.id = c.id; - nrrestrictin5_gs.crit = c.crit; - nrrestrictin5_gs.ext = c.ext_value.nrrestrictin5_gs(); + nrrestrictin5_gs.id = c.id(); + nrrestrictin5_gs.crit = c.crit(); + nrrestrictin5_gs.ext = c.value().nrrestrictin5_gs(); break; case 290: last_ng_ranplmn_id_present = true; - last_ng_ranplmn_id.id = c.id; - last_ng_ranplmn_id.crit = c.crit; - last_ng_ranplmn_id.ext = c.ext_value.last_ng_ranplmn_id(); + last_ng_ranplmn_id.id = c.id(); + last_ng_ranplmn_id.crit = c.crit(); + last_ng_ranplmn_id.ext = c.value().last_ng_ranplmn_id(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -9046,7 +8894,7 @@ const char* dl_nas_transport_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 16, value, "dl_nas_transport_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; dl_nas_transport_ies_container::dl_nas_transport_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -9139,105 +8987,105 @@ SRSASN_CODE dl_nas_transport_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 26: nof_mandatory_ies--; - nas_pdu.id = c.id; - nas_pdu.crit = c.crit; - nas_pdu.value = c.value.nas_pdu(); + nas_pdu.id = c.id(); + nas_pdu.crit = c.crit(); + nas_pdu.value = c.value().nas_pdu(); break; case 41: ho_restrict_list_present = true; - ho_restrict_list.id = c.id; - ho_restrict_list.crit = c.crit; - ho_restrict_list.value = c.value.ho_restrict_list(); + ho_restrict_list.id = c.id(); + ho_restrict_list.crit = c.crit(); + ho_restrict_list.value = c.value().ho_restrict_list(); break; case 106: subscriber_profile_idfor_rfp_present = true; - subscriber_profile_idfor_rfp.id = c.id; - subscriber_profile_idfor_rfp.crit = c.crit; - subscriber_profile_idfor_rfp.value = c.value.subscriber_profile_idfor_rfp(); + subscriber_profile_idfor_rfp.id = c.id(); + subscriber_profile_idfor_rfp.crit = c.crit(); + subscriber_profile_idfor_rfp.value = c.value().subscriber_profile_idfor_rfp(); break; case 124: srvcc_operation_possible_present = true; - srvcc_operation_possible.id = c.id; - srvcc_operation_possible.crit = c.crit; - srvcc_operation_possible.value = c.value.srvcc_operation_possible(); + srvcc_operation_possible.id = c.id(); + srvcc_operation_possible.crit = c.crit(); + srvcc_operation_possible.value = c.value().srvcc_operation_possible(); break; case 74: ue_radio_cap_present = true; - ue_radio_cap.id = c.id; - ue_radio_cap.crit = c.crit; - ue_radio_cap.value = c.value.ue_radio_cap(); + ue_radio_cap.id = c.id(); + ue_radio_cap.crit = c.crit(); + ue_radio_cap.value = c.value().ue_radio_cap(); break; case 249: dlnaspdu_delivery_ack_request_present = true; - dlnaspdu_delivery_ack_request.id = c.id; - dlnaspdu_delivery_ack_request.crit = c.crit; - dlnaspdu_delivery_ack_request.value = c.value.dlnaspdu_delivery_ack_request(); + dlnaspdu_delivery_ack_request.id = c.id(); + dlnaspdu_delivery_ack_request.crit = c.crit(); + dlnaspdu_delivery_ack_request.value = c.value().dlnaspdu_delivery_ack_request(); break; case 251: enhanced_coverage_restricted_present = true; - enhanced_coverage_restricted.id = c.id; - enhanced_coverage_restricted.crit = c.crit; - enhanced_coverage_restricted.value = c.value.enhanced_coverage_restricted(); + enhanced_coverage_restricted.id = c.id(); + enhanced_coverage_restricted.crit = c.crit(); + enhanced_coverage_restricted.value = c.value().enhanced_coverage_restricted(); break; case 269: nrue_security_cap_present = true; - nrue_security_cap.id = c.id; - nrue_security_cap.crit = c.crit; - nrue_security_cap.value = c.value.nrue_security_cap(); + nrue_security_cap.id = c.id(); + nrue_security_cap.crit = c.crit(); + nrue_security_cap.value = c.value().nrue_security_cap(); break; case 271: ce_mode_brestricted_present = true; - ce_mode_brestricted.id = c.id; - ce_mode_brestricted.crit = c.crit; - ce_mode_brestricted.value = c.value.ce_mode_brestricted(); + ce_mode_brestricted.id = c.id(); + ce_mode_brestricted.crit = c.crit(); + ce_mode_brestricted.value = c.value().ce_mode_brestricted(); break; case 275: ue_cap_info_request_present = true; - ue_cap_info_request.id = c.id; - ue_cap_info_request.crit = c.crit; - ue_cap_info_request.value = c.value.ue_cap_info_request(); + ue_cap_info_request.id = c.id(); + ue_cap_info_request.crit = c.crit(); + ue_cap_info_request.value = c.value().ue_cap_info_request(); break; case 280: end_ind_present = true; - end_ind.id = c.id; - end_ind.crit = c.crit; - end_ind.value = c.value.end_ind(); + end_ind.id = c.id(); + end_ind.crit = c.crit(); + end_ind.value = c.value().end_ind(); break; case 283: pending_data_ind_present = true; - pending_data_ind.id = c.id; - pending_data_ind.crit = c.crit; - pending_data_ind.value = c.value.pending_data_ind(); + pending_data_ind.id = c.id(); + pending_data_ind.crit = c.crit(); + pending_data_ind.value = c.value().pending_data_ind(); break; case 278: subscription_based_ue_differentiation_info_present = true; - subscription_based_ue_differentiation_info.id = c.id; - subscription_based_ue_differentiation_info.crit = c.crit; - subscription_based_ue_differentiation_info.value = c.value.subscription_based_ue_differentiation_info(); + subscription_based_ue_differentiation_info.id = c.id(); + subscription_based_ue_differentiation_info.crit = c.crit(); + subscription_based_ue_differentiation_info.value = c.value().subscription_based_ue_differentiation_info(); break; case 299: add_rrm_prio_idx_present = true; - add_rrm_prio_idx.id = c.id; - add_rrm_prio_idx.crit = c.crit; - add_rrm_prio_idx.value = c.value.add_rrm_prio_idx(); + add_rrm_prio_idx.id = c.id(); + add_rrm_prio_idx.crit = c.crit(); + add_rrm_prio_idx.value = c.value().add_rrm_prio_idx(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -9537,7 +9385,7 @@ uint8_t dl_non_ueassociated_lp_pa_transport_ies_o::value_c::types_opts::to_numbe return map_enum_number(options, 1, value, "dl_non_ueassociated_lp_pa_transport_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; dl_non_ueassociated_lp_pa_transport_ies_container::dl_non_ueassociated_lp_pa_transport_ies_container() : routing_id(148, crit_e::reject), lp_pa_pdu(147, crit_e::reject) @@ -9562,21 +9410,21 @@ SRSASN_CODE dl_non_ueassociated_lp_pa_transport_ies_container::unpack(cbit_ref& for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 148: nof_mandatory_ies--; - routing_id.id = c.id; - routing_id.crit = c.crit; - routing_id.value = c.value.routing_id(); + routing_id.id = c.id(); + routing_id.crit = c.crit(); + routing_id.value = c.value().routing_id(); break; case 147: nof_mandatory_ies--; - lp_pa_pdu.id = c.id; - lp_pa_pdu.crit = c.crit; - lp_pa_pdu.value = c.value.lp_pa_pdu(); + lp_pa_pdu.id = c.id(); + lp_pa_pdu.crit = c.crit(); + lp_pa_pdu.value = c.value().lp_pa_pdu(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -10128,7 +9976,7 @@ const char* dl_s1cdma2000tunnelling_ies_o::value_c::types_opts::to_string() cons return convert_enum_idx(options, 6, value, "dl_s1cdma2000tunnelling_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; dl_s1cdma2000tunnelling_ies_container::dl_s1cdma2000tunnelling_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -10168,45 +10016,45 @@ SRSASN_CODE dl_s1cdma2000tunnelling_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 12: erab_subjectto_data_forwarding_list_present = true; - erab_subjectto_data_forwarding_list.id = c.id; - erab_subjectto_data_forwarding_list.crit = c.crit; - erab_subjectto_data_forwarding_list.value = c.value.erab_subjectto_data_forwarding_list(); + erab_subjectto_data_forwarding_list.id = c.id(); + erab_subjectto_data_forwarding_list.crit = c.crit(); + erab_subjectto_data_forwarding_list.value = c.value().erab_subjectto_data_forwarding_list(); break; case 83: cdma2000_ho_status_present = true; - cdma2000_ho_status.id = c.id; - cdma2000_ho_status.crit = c.crit; - cdma2000_ho_status.value = c.value.cdma2000_ho_status(); + cdma2000_ho_status.id = c.id(); + cdma2000_ho_status.crit = c.crit(); + cdma2000_ho_status.value = c.value().cdma2000_ho_status(); break; case 71: nof_mandatory_ies--; - cdma2000_rat_type.id = c.id; - cdma2000_rat_type.crit = c.crit; - cdma2000_rat_type.value = c.value.cdma2000_rat_type(); + cdma2000_rat_type.id = c.id(); + cdma2000_rat_type.crit = c.crit(); + cdma2000_rat_type.value = c.value().cdma2000_rat_type(); break; case 70: nof_mandatory_ies--; - cdma2000_pdu.id = c.id; - cdma2000_pdu.crit = c.crit; - cdma2000_pdu.value = c.value.cdma2000_pdu(); + cdma2000_pdu.id = c.id(); + cdma2000_pdu.crit = c.crit(); + cdma2000_pdu.value = c.value().cdma2000_pdu(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -10526,7 +10374,7 @@ const char* dl_ueassociated_lp_pa_transport_ies_o::value_c::types_opts::to_strin return convert_enum_idx(options, 4, value, "dl_ueassociated_lp_pa_transport_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; dl_ueassociated_lp_pa_transport_ies_container::dl_ueassociated_lp_pa_transport_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -10556,33 +10404,33 @@ SRSASN_CODE dl_ueassociated_lp_pa_transport_ies_container::unpack(cbit_ref& bref for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 148: nof_mandatory_ies--; - routing_id.id = c.id; - routing_id.crit = c.crit; - routing_id.value = c.value.routing_id(); + routing_id.id = c.id(); + routing_id.crit = c.crit(); + routing_id.value = c.value().routing_id(); break; case 147: nof_mandatory_ies--; - lp_pa_pdu.id = c.id; - lp_pa_pdu.crit = c.crit; - lp_pa_pdu.value = c.value.lp_pa_pdu(); + lp_pa_pdu.id = c.id(); + lp_pa_pdu.crit = c.crit(); + lp_pa_pdu.value = c.value().lp_pa_pdu(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -11805,7 +11653,7 @@ const char* erab_mod_confirm_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 7, value, "erab_mod_confirm_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; erab_mod_confirm_ies_container::erab_mod_confirm_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), @@ -11856,51 +11704,51 @@ SRSASN_CODE erab_mod_confirm_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 203: erab_modify_list_bearer_mod_conf_present = true; - erab_modify_list_bearer_mod_conf.id = c.id; - erab_modify_list_bearer_mod_conf.crit = c.crit; - erab_modify_list_bearer_mod_conf.value = c.value.erab_modify_list_bearer_mod_conf(); + erab_modify_list_bearer_mod_conf.id = c.id(); + erab_modify_list_bearer_mod_conf.crit = c.crit(); + erab_modify_list_bearer_mod_conf.value = c.value().erab_modify_list_bearer_mod_conf(); break; case 205: erab_failed_to_modify_list_bearer_mod_conf_present = true; - erab_failed_to_modify_list_bearer_mod_conf.id = c.id; - erab_failed_to_modify_list_bearer_mod_conf.crit = c.crit; - erab_failed_to_modify_list_bearer_mod_conf.value = c.value.erab_failed_to_modify_list_bearer_mod_conf(); + erab_failed_to_modify_list_bearer_mod_conf.id = c.id(); + erab_failed_to_modify_list_bearer_mod_conf.crit = c.crit(); + erab_failed_to_modify_list_bearer_mod_conf.value = c.value().erab_failed_to_modify_list_bearer_mod_conf(); break; case 210: erab_to_be_released_list_bearer_mod_conf_present = true; - erab_to_be_released_list_bearer_mod_conf.id = c.id; - erab_to_be_released_list_bearer_mod_conf.crit = c.crit; - erab_to_be_released_list_bearer_mod_conf.value = c.value.erab_to_be_released_list_bearer_mod_conf(); + erab_to_be_released_list_bearer_mod_conf.id = c.id(); + erab_to_be_released_list_bearer_mod_conf.crit = c.crit(); + erab_to_be_released_list_bearer_mod_conf.value = c.value().erab_to_be_released_list_bearer_mod_conf(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; case 146: csg_membership_status_present = true; - csg_membership_status.id = c.id; - csg_membership_status.crit = c.crit; - csg_membership_status.value = c.value.csg_membership_status(); + csg_membership_status.id = c.id(); + csg_membership_status.crit = c.crit(); + csg_membership_status.value = c.value().csg_membership_status(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -13066,7 +12914,7 @@ const char* erab_mod_ind_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 8, value, "erab_mod_ind_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; erab_mod_ind_ies_container::erab_mod_ind_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -13119,57 +12967,57 @@ SRSASN_CODE erab_mod_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 199: nof_mandatory_ies--; - erab_to_be_modified_list_bearer_mod_ind.id = c.id; - erab_to_be_modified_list_bearer_mod_ind.crit = c.crit; - erab_to_be_modified_list_bearer_mod_ind.value = c.value.erab_to_be_modified_list_bearer_mod_ind(); + erab_to_be_modified_list_bearer_mod_ind.id = c.id(); + erab_to_be_modified_list_bearer_mod_ind.crit = c.crit(); + erab_to_be_modified_list_bearer_mod_ind.value = c.value().erab_to_be_modified_list_bearer_mod_ind(); break; case 201: erab_not_to_be_modified_list_bearer_mod_ind_present = true; - erab_not_to_be_modified_list_bearer_mod_ind.id = c.id; - erab_not_to_be_modified_list_bearer_mod_ind.crit = c.crit; - erab_not_to_be_modified_list_bearer_mod_ind.value = c.value.erab_not_to_be_modified_list_bearer_mod_ind(); + erab_not_to_be_modified_list_bearer_mod_ind.id = c.id(); + erab_not_to_be_modified_list_bearer_mod_ind.crit = c.crit(); + erab_not_to_be_modified_list_bearer_mod_ind.value = c.value().erab_not_to_be_modified_list_bearer_mod_ind(); break; case 226: csg_membership_info_present = true; - csg_membership_info.id = c.id; - csg_membership_info.crit = c.crit; - csg_membership_info.value = c.value.csg_membership_info(); + csg_membership_info.id = c.id(); + csg_membership_info.crit = c.crit(); + csg_membership_info.value = c.value().csg_membership_info(); break; case 176: tunnel_info_for_bbf_present = true; - tunnel_info_for_bbf.id = c.id; - tunnel_info_for_bbf.crit = c.crit; - tunnel_info_for_bbf.value = c.value.tunnel_info_for_bbf(); + tunnel_info_for_bbf.id = c.id(); + tunnel_info_for_bbf.crit = c.crit(); + tunnel_info_for_bbf.value = c.value().tunnel_info_for_bbf(); break; case 264: secondary_rat_data_usage_report_list_present = true; - secondary_rat_data_usage_report_list.id = c.id; - secondary_rat_data_usage_report_list.crit = c.crit; - secondary_rat_data_usage_report_list.value = c.value.secondary_rat_data_usage_report_list(); + secondary_rat_data_usage_report_list.id = c.id(); + secondary_rat_data_usage_report_list.crit = c.crit(); + secondary_rat_data_usage_report_list.value = c.value().secondary_rat_data_usage_report_list(); break; case 189: user_location_info_present = true; - user_location_info.id = c.id; - user_location_info.crit = c.crit; - user_location_info.value = c.value.user_location_info(); + user_location_info.id = c.id(); + user_location_info.crit = c.crit(); + user_location_info.value = c.value().user_location_info(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -13715,7 +13563,7 @@ const char* secondary_rat_data_usage_request_opts::to_string() const return convert_enum_idx(options, 1, value, "secondary_rat_data_usage_request_e"); } -template struct asn1::s1ap::protocol_ext_field_s; +template struct asn1::protocol_ext_field_s; ue_aggregate_maximum_bitrates_ext_ies_container::ue_aggregate_maximum_bitrates_ext_ies_container() : extended_u_eaggregate_maximum_bit_rate_dl(259, crit_e::ignore), @@ -13745,21 +13593,21 @@ SRSASN_CODE ue_aggregate_maximum_bitrates_ext_ies_container::unpack(cbit_ref& br for (; nof_ies > 0; --nof_ies) { protocol_ext_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 259: extended_u_eaggregate_maximum_bit_rate_dl_present = true; - extended_u_eaggregate_maximum_bit_rate_dl.id = c.id; - extended_u_eaggregate_maximum_bit_rate_dl.crit = c.crit; - extended_u_eaggregate_maximum_bit_rate_dl.ext = c.ext_value.extended_u_eaggregate_maximum_bit_rate_dl(); + extended_u_eaggregate_maximum_bit_rate_dl.id = c.id(); + extended_u_eaggregate_maximum_bit_rate_dl.crit = c.crit(); + extended_u_eaggregate_maximum_bit_rate_dl.ext = c.value().extended_u_eaggregate_maximum_bit_rate_dl(); break; case 260: extended_u_eaggregate_maximum_bit_rate_ul_present = true; - extended_u_eaggregate_maximum_bit_rate_ul.id = c.id; - extended_u_eaggregate_maximum_bit_rate_ul.crit = c.crit; - extended_u_eaggregate_maximum_bit_rate_ul.ext = c.ext_value.extended_u_eaggregate_maximum_bit_rate_ul(); + extended_u_eaggregate_maximum_bit_rate_ul.id = c.id(); + extended_u_eaggregate_maximum_bit_rate_ul.crit = c.crit(); + extended_u_eaggregate_maximum_bit_rate_ul.ext = c.value().extended_u_eaggregate_maximum_bit_rate_ul(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -14130,7 +13978,7 @@ const char* erab_modify_request_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 5, value, "erab_modify_request_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; erab_modify_request_ies_container::erab_modify_request_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -14168,39 +14016,39 @@ SRSASN_CODE erab_modify_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 66: ueaggregate_maximum_bitrate_present = true; - ueaggregate_maximum_bitrate.id = c.id; - ueaggregate_maximum_bitrate.crit = c.crit; - ueaggregate_maximum_bitrate.value = c.value.ueaggregate_maximum_bitrate(); + ueaggregate_maximum_bitrate.id = c.id(); + ueaggregate_maximum_bitrate.crit = c.crit(); + ueaggregate_maximum_bitrate.value = c.value().ueaggregate_maximum_bitrate(); break; case 30: nof_mandatory_ies--; - erab_to_be_modified_list_bearer_mod_req.id = c.id; - erab_to_be_modified_list_bearer_mod_req.crit = c.crit; - erab_to_be_modified_list_bearer_mod_req.value = c.value.erab_to_be_modified_list_bearer_mod_req(); + erab_to_be_modified_list_bearer_mod_req.id = c.id(); + erab_to_be_modified_list_bearer_mod_req.crit = c.crit(); + erab_to_be_modified_list_bearer_mod_req.value = c.value().erab_to_be_modified_list_bearer_mod_req(); break; case 268: secondary_rat_data_usage_request_present = true; - secondary_rat_data_usage_request.id = c.id; - secondary_rat_data_usage_request.crit = c.crit; - secondary_rat_data_usage_request.value = c.value.secondary_rat_data_usage_request(); + secondary_rat_data_usage_request.id = c.id(); + secondary_rat_data_usage_request.crit = c.crit(); + secondary_rat_data_usage_request.value = c.value().secondary_rat_data_usage_request(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -14616,7 +14464,7 @@ const char* erab_modify_resp_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 6, value, "erab_modify_resp_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; erab_modify_resp_ies_container::erab_modify_resp_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), @@ -14662,45 +14510,45 @@ SRSASN_CODE erab_modify_resp_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 31: erab_modify_list_bearer_mod_res_present = true; - erab_modify_list_bearer_mod_res.id = c.id; - erab_modify_list_bearer_mod_res.crit = c.crit; - erab_modify_list_bearer_mod_res.value = c.value.erab_modify_list_bearer_mod_res(); + erab_modify_list_bearer_mod_res.id = c.id(); + erab_modify_list_bearer_mod_res.crit = c.crit(); + erab_modify_list_bearer_mod_res.value = c.value().erab_modify_list_bearer_mod_res(); break; case 32: erab_failed_to_modify_list_present = true; - erab_failed_to_modify_list.id = c.id; - erab_failed_to_modify_list.crit = c.crit; - erab_failed_to_modify_list.value = c.value.erab_failed_to_modify_list(); + erab_failed_to_modify_list.id = c.id(); + erab_failed_to_modify_list.crit = c.crit(); + erab_failed_to_modify_list.value = c.value().erab_failed_to_modify_list(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; case 264: secondary_rat_data_usage_report_list_present = true; - secondary_rat_data_usage_report_list.id = c.id; - secondary_rat_data_usage_report_list.crit = c.crit; - secondary_rat_data_usage_report_list.value = c.value.secondary_rat_data_usage_report_list(); + secondary_rat_data_usage_report_list.id = c.id(); + secondary_rat_data_usage_report_list.crit = c.crit(); + secondary_rat_data_usage_report_list.value = c.value().secondary_rat_data_usage_report_list(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -15071,7 +14919,7 @@ const char* erab_release_cmd_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 5, value, "erab_release_cmd_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; erab_release_cmd_ies_container::erab_release_cmd_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -15109,39 +14957,39 @@ SRSASN_CODE erab_release_cmd_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 66: ueaggregate_maximum_bitrate_present = true; - ueaggregate_maximum_bitrate.id = c.id; - ueaggregate_maximum_bitrate.crit = c.crit; - ueaggregate_maximum_bitrate.value = c.value.ueaggregate_maximum_bitrate(); + ueaggregate_maximum_bitrate.id = c.id(); + ueaggregate_maximum_bitrate.crit = c.crit(); + ueaggregate_maximum_bitrate.value = c.value().ueaggregate_maximum_bitrate(); break; case 33: nof_mandatory_ies--; - erab_to_be_released_list.id = c.id; - erab_to_be_released_list.crit = c.crit; - erab_to_be_released_list.value = c.value.erab_to_be_released_list(); + erab_to_be_released_list.id = c.id(); + erab_to_be_released_list.crit = c.crit(); + erab_to_be_released_list.value = c.value().erab_to_be_released_list(); break; case 26: nas_pdu_present = true; - nas_pdu.id = c.id; - nas_pdu.crit = c.crit; - nas_pdu.value = c.value.nas_pdu(); + nas_pdu.id = c.id(); + nas_pdu.crit = c.crit(); + nas_pdu.value = c.value().nas_pdu(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -15514,7 +15362,7 @@ const char* erab_release_ind_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 5, value, "erab_release_ind_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; erab_release_ind_ies_container::erab_release_ind_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -15552,39 +15400,39 @@ SRSASN_CODE erab_release_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 110: nof_mandatory_ies--; - erab_released_list.id = c.id; - erab_released_list.crit = c.crit; - erab_released_list.value = c.value.erab_released_list(); + erab_released_list.id = c.id(); + erab_released_list.crit = c.crit(); + erab_released_list.value = c.value().erab_released_list(); break; case 189: user_location_info_present = true; - user_location_info.id = c.id; - user_location_info.crit = c.crit; - user_location_info.value = c.value.user_location_info(); + user_location_info.id = c.id(); + user_location_info.crit = c.crit(); + user_location_info.value = c.value().user_location_info(); break; case 264: secondary_rat_data_usage_report_list_present = true; - secondary_rat_data_usage_report_list.id = c.id; - secondary_rat_data_usage_report_list.crit = c.crit; - secondary_rat_data_usage_report_list.value = c.value.secondary_rat_data_usage_report_list(); + secondary_rat_data_usage_report_list.id = c.id(); + secondary_rat_data_usage_report_list.crit = c.crit(); + secondary_rat_data_usage_report_list.value = c.value().secondary_rat_data_usage_report_list(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -16140,7 +15988,7 @@ const char* erab_release_resp_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 7, value, "erab_release_resp_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; erab_release_resp_ies_container::erab_release_resp_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), @@ -16191,51 +16039,51 @@ SRSASN_CODE erab_release_resp_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 69: erab_release_list_bearer_rel_comp_present = true; - erab_release_list_bearer_rel_comp.id = c.id; - erab_release_list_bearer_rel_comp.crit = c.crit; - erab_release_list_bearer_rel_comp.value = c.value.erab_release_list_bearer_rel_comp(); + erab_release_list_bearer_rel_comp.id = c.id(); + erab_release_list_bearer_rel_comp.crit = c.crit(); + erab_release_list_bearer_rel_comp.value = c.value().erab_release_list_bearer_rel_comp(); break; case 34: erab_failed_to_release_list_present = true; - erab_failed_to_release_list.id = c.id; - erab_failed_to_release_list.crit = c.crit; - erab_failed_to_release_list.value = c.value.erab_failed_to_release_list(); + erab_failed_to_release_list.id = c.id(); + erab_failed_to_release_list.crit = c.crit(); + erab_failed_to_release_list.value = c.value().erab_failed_to_release_list(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; case 189: user_location_info_present = true; - user_location_info.id = c.id; - user_location_info.crit = c.crit; - user_location_info.value = c.value.user_location_info(); + user_location_info.id = c.id(); + user_location_info.crit = c.crit(); + user_location_info.value = c.value().user_location_info(); break; case 264: secondary_rat_data_usage_report_list_present = true; - secondary_rat_data_usage_report_list.id = c.id; - secondary_rat_data_usage_report_list.crit = c.crit; - secondary_rat_data_usage_report_list.value = c.value.secondary_rat_data_usage_report_list(); + secondary_rat_data_usage_report_list.id = c.id(); + secondary_rat_data_usage_report_list.crit = c.crit(); + secondary_rat_data_usage_report_list.value = c.value().secondary_rat_data_usage_report_list(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -16753,7 +16601,7 @@ const char* erab_to_be_setup_item_bearer_su_req_ext_ies_o::ext_c::types_opts::to return convert_enum_idx(options, 3, value, "erab_to_be_setup_item_bearer_su_req_ext_ies_o::ext_c::types"); } -template struct asn1::s1ap::protocol_ext_field_s; +template struct asn1::protocol_ext_field_s; erab_to_be_setup_item_bearer_su_req_ext_ies_container::erab_to_be_setup_item_bearer_su_req_ext_ies_container() : correlation_id(156, crit_e::ignore), sipto_correlation_id(183, crit_e::ignore), bearer_type(233, crit_e::reject) @@ -16786,27 +16634,27 @@ SRSASN_CODE erab_to_be_setup_item_bearer_su_req_ext_ies_container::unpack(cbit_r for (; nof_ies > 0; --nof_ies) { protocol_ext_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 156: correlation_id_present = true; - correlation_id.id = c.id; - correlation_id.crit = c.crit; - correlation_id.ext = c.ext_value.correlation_id(); + correlation_id.id = c.id(); + correlation_id.crit = c.crit(); + correlation_id.ext = c.value().correlation_id(); break; case 183: sipto_correlation_id_present = true; - sipto_correlation_id.id = c.id; - sipto_correlation_id.crit = c.crit; - sipto_correlation_id.ext = c.ext_value.sipto_correlation_id(); + sipto_correlation_id.id = c.id(); + sipto_correlation_id.crit = c.crit(); + sipto_correlation_id.ext = c.value().sipto_correlation_id(); break; case 233: bearer_type_present = true; - bearer_type.id = c.id; - bearer_type.crit = c.crit; - bearer_type.ext = c.ext_value.bearer_type(); + bearer_type.id = c.id(); + bearer_type.crit = c.crit(); + bearer_type.ext = c.value().bearer_type(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -17219,7 +17067,7 @@ const char* erab_setup_request_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 4, value, "erab_setup_request_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; erab_setup_request_ies_container::erab_setup_request_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -17252,33 +17100,33 @@ SRSASN_CODE erab_setup_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 66: ueaggregate_maximum_bitrate_present = true; - ueaggregate_maximum_bitrate.id = c.id; - ueaggregate_maximum_bitrate.crit = c.crit; - ueaggregate_maximum_bitrate.value = c.value.ueaggregate_maximum_bitrate(); + ueaggregate_maximum_bitrate.id = c.id(); + ueaggregate_maximum_bitrate.crit = c.crit(); + ueaggregate_maximum_bitrate.value = c.value().ueaggregate_maximum_bitrate(); break; case 16: nof_mandatory_ies--; - erab_to_be_setup_list_bearer_su_req.id = c.id; - erab_to_be_setup_list_bearer_su_req.crit = c.crit; - erab_to_be_setup_list_bearer_su_req.value = c.value.erab_to_be_setup_list_bearer_su_req(); + erab_to_be_setup_list_bearer_su_req.id = c.id(); + erab_to_be_setup_list_bearer_su_req.crit = c.crit(); + erab_to_be_setup_list_bearer_su_req.value = c.value().erab_to_be_setup_list_bearer_su_req(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -17645,7 +17493,7 @@ const char* erab_setup_resp_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 5, value, "erab_setup_resp_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; erab_setup_resp_ies_container::erab_setup_resp_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), @@ -17686,39 +17534,39 @@ SRSASN_CODE erab_setup_resp_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 28: erab_setup_list_bearer_su_res_present = true; - erab_setup_list_bearer_su_res.id = c.id; - erab_setup_list_bearer_su_res.crit = c.crit; - erab_setup_list_bearer_su_res.value = c.value.erab_setup_list_bearer_su_res(); + erab_setup_list_bearer_su_res.id = c.id(); + erab_setup_list_bearer_su_res.crit = c.crit(); + erab_setup_list_bearer_su_res.value = c.value().erab_setup_list_bearer_su_res(); break; case 29: erab_failed_to_setup_list_bearer_su_res_present = true; - erab_failed_to_setup_list_bearer_su_res.id = c.id; - erab_failed_to_setup_list_bearer_su_res.crit = c.crit; - erab_failed_to_setup_list_bearer_su_res.value = c.value.erab_failed_to_setup_list_bearer_su_res(); + erab_failed_to_setup_list_bearer_su_res.id = c.id(); + erab_failed_to_setup_list_bearer_su_res.crit = c.crit(); + erab_failed_to_setup_list_bearer_su_res.value = c.value().erab_failed_to_setup_list_bearer_su_res(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -18009,7 +17857,7 @@ const char* erab_to_be_setup_item_ctxt_su_req_ext_ies_o::ext_c::types_opts::to_s return convert_enum_idx(options, 3, value, "erab_to_be_setup_item_ctxt_su_req_ext_ies_o::ext_c::types"); } -template struct asn1::s1ap::protocol_ext_field_s; +template struct asn1::protocol_ext_field_s; erab_to_be_setup_item_ctxt_su_req_ext_ies_container::erab_to_be_setup_item_ctxt_su_req_ext_ies_container() : correlation_id(156, crit_e::ignore), sipto_correlation_id(183, crit_e::ignore), bearer_type(233, crit_e::reject) @@ -18042,27 +17890,27 @@ SRSASN_CODE erab_to_be_setup_item_ctxt_su_req_ext_ies_container::unpack(cbit_ref for (; nof_ies > 0; --nof_ies) { protocol_ext_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 156: correlation_id_present = true; - correlation_id.id = c.id; - correlation_id.crit = c.crit; - correlation_id.ext = c.ext_value.correlation_id(); + correlation_id.id = c.id(); + correlation_id.crit = c.crit(); + correlation_id.ext = c.value().correlation_id(); break; case 183: sipto_correlation_id_present = true; - sipto_correlation_id.id = c.id; - sipto_correlation_id.crit = c.crit; - sipto_correlation_id.ext = c.ext_value.sipto_correlation_id(); + sipto_correlation_id.id = c.id(); + sipto_correlation_id.crit = c.crit(); + sipto_correlation_id.ext = c.value().sipto_correlation_id(); break; case 233: bearer_type_present = true; - bearer_type.id = c.id; - bearer_type.crit = c.crit; - bearer_type.ext = c.ext_value.bearer_type(); + bearer_type.id = c.id(); + bearer_type.crit = c.crit(); + bearer_type.ext = c.value().bearer_type(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -18389,7 +18237,7 @@ const char* erab_to_be_setup_item_ho_req_ext_ies_o::ext_c::types_opts::to_string return convert_enum_idx(options, 2, value, "erab_to_be_setup_item_ho_req_ext_ies_o::ext_c::types"); } -template struct asn1::s1ap::protocol_ext_field_s; +template struct asn1::protocol_ext_field_s; erab_to_be_setup_item_ho_req_ext_ies_container::erab_to_be_setup_item_ho_req_ext_ies_container() : data_forwarding_not_possible(143, crit_e::ignore), bearer_type(233, crit_e::reject) @@ -18418,21 +18266,21 @@ SRSASN_CODE erab_to_be_setup_item_ho_req_ext_ies_container::unpack(cbit_ref& bre for (; nof_ies > 0; --nof_ies) { protocol_ext_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 143: data_forwarding_not_possible_present = true; - data_forwarding_not_possible.id = c.id; - data_forwarding_not_possible.crit = c.crit; - data_forwarding_not_possible.ext = c.ext_value.data_forwarding_not_possible(); + data_forwarding_not_possible.id = c.id(); + data_forwarding_not_possible.crit = c.crit(); + data_forwarding_not_possible.ext = c.value().data_forwarding_not_possible(); break; case 233: bearer_type_present = true; - bearer_type.id = c.id; - bearer_type.crit = c.crit; - bearer_type.ext = c.ext_value.bearer_type(); + bearer_type.id = c.id(); + bearer_type.crit = c.crit(); + bearer_type.ext = c.value().bearer_type(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -19599,7 +19447,7 @@ const char* son_info_reply_ext_ies_o::ext_c::types_opts::to_string() const return convert_enum_idx(options, 1, value, "son_info_reply_ext_ies_o::ext_c::types"); } -template struct asn1::s1ap::protocol_ext_field_s; +template struct asn1::protocol_ext_field_s; x2_tnl_cfg_info_ext_ies_container::x2_tnl_cfg_info_ext_ies_container() : enbx2_extended_transport_layer_addresses(153, crit_e::ignore), @@ -19629,21 +19477,21 @@ SRSASN_CODE x2_tnl_cfg_info_ext_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ext_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 153: enbx2_extended_transport_layer_addresses_present = true; - enbx2_extended_transport_layer_addresses.id = c.id; - enbx2_extended_transport_layer_addresses.crit = c.crit; - enbx2_extended_transport_layer_addresses.ext = c.ext_value.enbx2_extended_transport_layer_addresses(); + enbx2_extended_transport_layer_addresses.id = c.id(); + enbx2_extended_transport_layer_addresses.crit = c.crit(); + enbx2_extended_transport_layer_addresses.ext = c.value().enbx2_extended_transport_layer_addresses(); break; case 193: enb_indirect_x2_transport_layer_addresses_present = true; - enb_indirect_x2_transport_layer_addresses.id = c.id; - enb_indirect_x2_transport_layer_addresses.crit = c.crit; - enb_indirect_x2_transport_layer_addresses.ext = c.ext_value.enb_indirect_x2_transport_layer_addresses(); + enb_indirect_x2_transport_layer_addresses.id = c.id(); + enb_indirect_x2_transport_layer_addresses.crit = c.crit(); + enb_indirect_x2_transport_layer_addresses.ext = c.value().enb_indirect_x2_transport_layer_addresses(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -20666,7 +20514,7 @@ uint8_t enbcp_relocation_ind_ies_o::value_c::types_opts::to_number() const return map_enum_number(options, 1, value, "enbcp_relocation_ind_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; enbcp_relocation_ind_ies_container::enbcp_relocation_ind_ies_container() : enb_ue_s1ap_id(8, crit_e::reject), @@ -20698,39 +20546,39 @@ SRSASN_CODE enbcp_relocation_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 96: nof_mandatory_ies--; - s_tmsi.id = c.id; - s_tmsi.crit = c.crit; - s_tmsi.value = c.value.s_tmsi(); + s_tmsi.id = c.id(); + s_tmsi.crit = c.crit(); + s_tmsi.value = c.value().s_tmsi(); break; case 100: nof_mandatory_ies--; - eutran_cgi.id = c.id; - eutran_cgi.crit = c.crit; - eutran_cgi.value = c.value.eutran_cgi(); + eutran_cgi.id = c.id(); + eutran_cgi.crit = c.crit(); + eutran_cgi.value = c.value().eutran_cgi(); break; case 67: nof_mandatory_ies--; - tai.id = c.id; - tai.crit = c.crit; - tai.value = c.value.tai(); + tai.id = c.id(); + tai.crit = c.crit(); + tai.value = c.value().tai(); break; case 254: nof_mandatory_ies--; - ul_cp_security_info.id = c.id; - ul_cp_security_info.crit = c.crit; - ul_cp_security_info.value = c.value.ul_cp_security_info(); + ul_cp_security_info.id = c.id(); + ul_cp_security_info.crit = c.crit(); + ul_cp_security_info.value = c.value().ul_cp_security_info(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -21187,7 +21035,7 @@ void targetenb_id_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ext_field_s; +template struct asn1::protocol_ext_field_s; son_cfg_transfer_ext_ies_container::son_cfg_transfer_ext_ies_container() : x2_tnl_cfg_info(152, crit_e::ignore), synchronisation_info(209, crit_e::ignore) @@ -21216,21 +21064,21 @@ SRSASN_CODE son_cfg_transfer_ext_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ext_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 152: x2_tnl_cfg_info_present = true; - x2_tnl_cfg_info.id = c.id; - x2_tnl_cfg_info.crit = c.crit; - x2_tnl_cfg_info.ext = c.ext_value.x2_tnl_cfg_info(); + x2_tnl_cfg_info.id = c.id(); + x2_tnl_cfg_info.crit = c.crit(); + x2_tnl_cfg_info.ext = c.value().x2_tnl_cfg_info(); break; case 209: synchronisation_info_present = true; - synchronisation_info.id = c.id; - synchronisation_info.crit = c.crit; - synchronisation_info.ext = c.ext_value.synchronisation_info(); + synchronisation_info.id = c.id(); + synchronisation_info.crit = c.crit(); + synchronisation_info.ext = c.value().synchronisation_info(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -21497,7 +21345,7 @@ const char* enb_cfg_transfer_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 2, value, "enb_cfg_transfer_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; enb_cfg_transfer_ies_container::enb_cfg_transfer_ies_container() : son_cfg_transfer_ect(129, crit_e::ignore), en_dcson_cfg_transfer_ect(294, crit_e::ignore) @@ -21526,21 +21374,21 @@ SRSASN_CODE enb_cfg_transfer_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 129: son_cfg_transfer_ect_present = true; - son_cfg_transfer_ect.id = c.id; - son_cfg_transfer_ect.crit = c.crit; - son_cfg_transfer_ect.value = c.value.son_cfg_transfer_ect(); + son_cfg_transfer_ect.id = c.id(); + son_cfg_transfer_ect.crit = c.crit(); + son_cfg_transfer_ect.value = c.value().son_cfg_transfer_ect(); break; case 294: en_dcson_cfg_transfer_ect_present = true; - en_dcson_cfg_transfer_ect.id = c.id; - en_dcson_cfg_transfer_ect.crit = c.crit; - en_dcson_cfg_transfer_ect.value = c.value.en_dcson_cfg_transfer_ect(); + en_dcson_cfg_transfer_ect.id = c.id(); + en_dcson_cfg_transfer_ect.crit = c.crit(); + en_dcson_cfg_transfer_ect.value = c.value().en_dcson_cfg_transfer_ect(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -22010,7 +21858,7 @@ const char* enb_cfg_upd_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 7, value, "enb_cfg_upd_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; enb_cfg_upd_ies_container::enb_cfg_upd_ies_container() : enbname(60, crit_e::ignore), @@ -22065,51 +21913,51 @@ SRSASN_CODE enb_cfg_upd_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 60: enbname_present = true; - enbname.id = c.id; - enbname.crit = c.crit; - enbname.value = c.value.enbname(); + enbname.id = c.id(); + enbname.crit = c.crit(); + enbname.value = c.value().enbname(); break; case 64: supported_tas_present = true; - supported_tas.id = c.id; - supported_tas.crit = c.crit; - supported_tas.value = c.value.supported_tas(); + supported_tas.id = c.id(); + supported_tas.crit = c.crit(); + supported_tas.value = c.value().supported_tas(); break; case 128: csg_id_list_present = true; - csg_id_list.id = c.id; - csg_id_list.crit = c.crit; - csg_id_list.value = c.value.csg_id_list(); + csg_id_list.id = c.id(); + csg_id_list.crit = c.crit(); + csg_id_list.value = c.value().csg_id_list(); break; case 137: default_paging_drx_present = true; - default_paging_drx.id = c.id; - default_paging_drx.crit = c.crit; - default_paging_drx.value = c.value.default_paging_drx(); + default_paging_drx.id = c.id(); + default_paging_drx.crit = c.crit(); + default_paging_drx.value = c.value().default_paging_drx(); break; case 234: nb_io_t_default_paging_drx_present = true; - nb_io_t_default_paging_drx.id = c.id; - nb_io_t_default_paging_drx.crit = c.crit; - nb_io_t_default_paging_drx.value = c.value.nb_io_t_default_paging_drx(); + nb_io_t_default_paging_drx.id = c.id(); + nb_io_t_default_paging_drx.crit = c.crit(); + nb_io_t_default_paging_drx.value = c.value().nb_io_t_default_paging_drx(); break; case 292: connectedeng_nb_to_add_list_present = true; - connectedeng_nb_to_add_list.id = c.id; - connectedeng_nb_to_add_list.crit = c.crit; - connectedeng_nb_to_add_list.value = c.value.connectedeng_nb_to_add_list(); + connectedeng_nb_to_add_list.id = c.id(); + connectedeng_nb_to_add_list.crit = c.crit(); + connectedeng_nb_to_add_list.value = c.value().connectedeng_nb_to_add_list(); break; case 293: connectedeng_nb_to_rem_list_present = true; - connectedeng_nb_to_rem_list.id = c.id; - connectedeng_nb_to_rem_list.crit = c.crit; - connectedeng_nb_to_rem_list.value = c.value.connectedeng_nb_to_rem_list(); + connectedeng_nb_to_rem_list.id = c.id(); + connectedeng_nb_to_rem_list.crit = c.crit(); + connectedeng_nb_to_rem_list.value = c.value().connectedeng_nb_to_rem_list(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -22504,7 +22352,7 @@ const char* enb_cfg_upd_fail_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 3, value, "enb_cfg_upd_fail_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; enb_cfg_upd_fail_ies_container::enb_cfg_upd_fail_ies_container() : cause(2, crit_e::ignore), time_to_wait(65, crit_e::ignore), crit_diagnostics(58, crit_e::ignore) @@ -22536,27 +22384,27 @@ SRSASN_CODE enb_cfg_upd_fail_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 2: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 65: time_to_wait_present = true; - time_to_wait.id = c.id; - time_to_wait.crit = c.crit; - time_to_wait.value = c.value.time_to_wait(); + time_to_wait.id = c.id(); + time_to_wait.crit = c.crit(); + time_to_wait.value = c.value().time_to_wait(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -23313,7 +23161,7 @@ const char* enb_status_transfer_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 3, value, "enb_status_transfer_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; enb_status_transfer_ies_container::enb_status_transfer_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -23341,27 +23189,27 @@ SRSASN_CODE enb_status_transfer_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 90: nof_mandatory_ies--; - enb_status_transfer_transparent_container.id = c.id; - enb_status_transfer_transparent_container.crit = c.crit; - enb_status_transfer_transparent_container.value = c.value.enb_status_transfer_transparent_container(); + enb_status_transfer_transparent_container.id = c.id(); + enb_status_transfer_transparent_container.crit = c.crit(); + enb_status_transfer_transparent_container.value = c.value().enb_status_transfer_transparent_container(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -23741,7 +23589,7 @@ const char* error_ind_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 5, value, "error_ind_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; error_ind_ies_container::error_ind_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), @@ -23786,39 +23634,39 @@ SRSASN_CODE error_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: mme_ue_s1ap_id_present = true; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: enb_ue_s1ap_id_present = true; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 2: cause_present = true; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; case 96: s_tmsi_present = true; - s_tmsi.id = c.id; - s_tmsi.crit = c.crit; - s_tmsi.value = c.value.s_tmsi(); + s_tmsi.id = c.id(); + s_tmsi.crit = c.crit(); + s_tmsi.value = c.value().s_tmsi(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -24467,7 +24315,7 @@ const char* ho_cancel_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 3, value, "ho_cancel_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ho_cancel_ies_container::ho_cancel_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), enb_ue_s1ap_id(8, crit_e::reject), cause(2, crit_e::ignore) @@ -24493,27 +24341,27 @@ SRSASN_CODE ho_cancel_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 2: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -24788,7 +24636,7 @@ const char* ho_cancel_ack_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 3, value, "ho_cancel_ack_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ho_cancel_ack_ies_container::ho_cancel_ack_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), enb_ue_s1ap_id(8, crit_e::ignore), crit_diagnostics(58, crit_e::ignore) @@ -24817,27 +24665,27 @@ SRSASN_CODE ho_cancel_ack_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -25373,7 +25221,7 @@ const char* ho_cmd_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 9, value, "ho_cmd_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ho_cmd_ies_container::ho_cmd_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -25428,64 +25276,64 @@ SRSASN_CODE ho_cmd_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 1: nof_mandatory_ies--; - handov_type.id = c.id; - handov_type.crit = c.crit; - handov_type.value = c.value.handov_type(); + handov_type.id = c.id(); + handov_type.crit = c.crit(); + handov_type.value = c.value().handov_type(); break; case 135: nas_security_paramsfrom_e_utran_present = true; - nas_security_paramsfrom_e_utran.id = c.id; - nas_security_paramsfrom_e_utran.crit = c.crit; - nas_security_paramsfrom_e_utran.value = c.value.nas_security_paramsfrom_e_utran(); + nas_security_paramsfrom_e_utran.id = c.id(); + nas_security_paramsfrom_e_utran.crit = c.crit(); + nas_security_paramsfrom_e_utran.value = c.value().nas_security_paramsfrom_e_utran(); break; case 12: erab_subjectto_data_forwarding_list_present = true; - erab_subjectto_data_forwarding_list.id = c.id; - erab_subjectto_data_forwarding_list.crit = c.crit; - erab_subjectto_data_forwarding_list.value = c.value.erab_subjectto_data_forwarding_list(); + erab_subjectto_data_forwarding_list.id = c.id(); + erab_subjectto_data_forwarding_list.crit = c.crit(); + erab_subjectto_data_forwarding_list.value = c.value().erab_subjectto_data_forwarding_list(); break; case 13: erab_to_release_list_ho_cmd_present = true; - erab_to_release_list_ho_cmd.id = c.id; - erab_to_release_list_ho_cmd.crit = c.crit; - erab_to_release_list_ho_cmd.value = c.value.erab_to_release_list_ho_cmd(); + erab_to_release_list_ho_cmd.id = c.id(); + erab_to_release_list_ho_cmd.crit = c.crit(); + erab_to_release_list_ho_cmd.value = c.value().erab_to_release_list_ho_cmd(); break; case 123: nof_mandatory_ies--; - target_to_source_transparent_container.id = c.id; - target_to_source_transparent_container.crit = c.crit; - target_to_source_transparent_container.value = c.value.target_to_source_transparent_container(); + target_to_source_transparent_container.id = c.id(); + target_to_source_transparent_container.crit = c.crit(); + target_to_source_transparent_container.value = c.value().target_to_source_transparent_container(); break; case 139: target_to_source_transparent_container_secondary_present = true; - target_to_source_transparent_container_secondary.id = c.id; - target_to_source_transparent_container_secondary.crit = c.crit; + target_to_source_transparent_container_secondary.id = c.id(); + target_to_source_transparent_container_secondary.crit = c.crit(); target_to_source_transparent_container_secondary.value = - c.value.target_to_source_transparent_container_secondary(); + c.value().target_to_source_transparent_container_secondary(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -25792,7 +25640,7 @@ uint8_t ho_fail_ies_o::value_c::types_opts::to_number() const return map_enum_number(options, 1, value, "ho_fail_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ho_fail_ies_container::ho_fail_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), cause(2, crit_e::ignore), crit_diagnostics(58, crit_e::ignore) @@ -25821,27 +25669,27 @@ SRSASN_CODE ho_fail_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 2: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -26279,7 +26127,7 @@ const char* ho_notify_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 7, value, "ho_notify_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ho_notify_ies_container::ho_notify_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -26324,51 +26172,51 @@ SRSASN_CODE ho_notify_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 100: nof_mandatory_ies--; - eutran_cgi.id = c.id; - eutran_cgi.crit = c.crit; - eutran_cgi.value = c.value.eutran_cgi(); + eutran_cgi.id = c.id(); + eutran_cgi.crit = c.crit(); + eutran_cgi.value = c.value().eutran_cgi(); break; case 67: nof_mandatory_ies--; - tai.id = c.id; - tai.crit = c.crit; - tai.value = c.value.tai(); + tai.id = c.id(); + tai.crit = c.crit(); + tai.value = c.value().tai(); break; case 176: tunnel_info_for_bbf_present = true; - tunnel_info_for_bbf.id = c.id; - tunnel_info_for_bbf.crit = c.crit; - tunnel_info_for_bbf.value = c.value.tunnel_info_for_bbf(); + tunnel_info_for_bbf.id = c.id(); + tunnel_info_for_bbf.crit = c.crit(); + tunnel_info_for_bbf.value = c.value().tunnel_info_for_bbf(); break; case 186: lhn_id_present = true; - lhn_id.id = c.id; - lhn_id.crit = c.crit; - lhn_id.value = c.value.lhn_id(); + lhn_id.id = c.id(); + lhn_id.crit = c.crit(); + lhn_id.value = c.value().lhn_id(); break; case 288: ps_cell_info_present = true; - ps_cell_info.id = c.id; - ps_cell_info.crit = c.crit; - ps_cell_info.value = c.value.ps_cell_info(); + ps_cell_info.id = c.id(); + ps_cell_info.crit = c.crit(); + ps_cell_info.value = c.value().ps_cell_info(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -26697,7 +26545,7 @@ const char* ho_prep_fail_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 4, value, "ho_prep_fail_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ho_prep_fail_ies_container::ho_prep_fail_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), @@ -26730,33 +26578,33 @@ SRSASN_CODE ho_prep_fail_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 2: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -28244,7 +28092,7 @@ const char* mdt_mode_ext_ie_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 1, value, "mdt_mode_ext_ie_o::value_c::types"); } -template struct asn1::s1ap::protocol_ext_field_s; +template struct asn1::protocol_ext_field_s; immediate_mdt_ext_ies_container::immediate_mdt_ext_ies_container() : m3_cfg(171, crit_e::ignore), @@ -28304,57 +28152,57 @@ SRSASN_CODE immediate_mdt_ext_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ext_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 171: m3_cfg_present = true; - m3_cfg.id = c.id; - m3_cfg.crit = c.crit; - m3_cfg.ext = c.ext_value.m3_cfg(); + m3_cfg.id = c.id(); + m3_cfg.crit = c.crit(); + m3_cfg.ext = c.value().m3_cfg(); break; case 172: m4_cfg_present = true; - m4_cfg.id = c.id; - m4_cfg.crit = c.crit; - m4_cfg.ext = c.ext_value.m4_cfg(); + m4_cfg.id = c.id(); + m4_cfg.crit = c.crit(); + m4_cfg.ext = c.value().m4_cfg(); break; case 173: m5_cfg_present = true; - m5_cfg.id = c.id; - m5_cfg.crit = c.crit; - m5_cfg.ext = c.ext_value.m5_cfg(); + m5_cfg.id = c.id(); + m5_cfg.crit = c.crit(); + m5_cfg.ext = c.value().m5_cfg(); break; case 174: mdt_location_info_present = true; - mdt_location_info.id = c.id; - mdt_location_info.crit = c.crit; - mdt_location_info.ext = c.ext_value.mdt_location_info(); + mdt_location_info.id = c.id(); + mdt_location_info.crit = c.crit(); + mdt_location_info.ext = c.value().mdt_location_info(); break; case 220: m6_cfg_present = true; - m6_cfg.id = c.id; - m6_cfg.crit = c.crit; - m6_cfg.ext = c.ext_value.m6_cfg(); + m6_cfg.id = c.id(); + m6_cfg.crit = c.crit(); + m6_cfg.ext = c.value().m6_cfg(); break; case 221: m7_cfg_present = true; - m7_cfg.id = c.id; - m7_cfg.crit = c.crit; - m7_cfg.ext = c.ext_value.m7_cfg(); + m7_cfg.id = c.id(); + m7_cfg.crit = c.crit(); + m7_cfg.ext = c.value().m7_cfg(); break; case 284: bluetooth_meas_cfg_present = true; - bluetooth_meas_cfg.id = c.id; - bluetooth_meas_cfg.crit = c.crit; - bluetooth_meas_cfg.ext = c.ext_value.bluetooth_meas_cfg(); + bluetooth_meas_cfg.id = c.id(); + bluetooth_meas_cfg.crit = c.crit(); + bluetooth_meas_cfg.ext = c.value().bluetooth_meas_cfg(); break; case 285: wlan_meas_cfg_present = true; - wlan_meas_cfg.id = c.id; - wlan_meas_cfg.crit = c.crit; - wlan_meas_cfg.ext = c.ext_value.wlan_meas_cfg(); + wlan_meas_cfg.id = c.id(); + wlan_meas_cfg.crit = c.crit(); + wlan_meas_cfg.ext = c.value().wlan_meas_cfg(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -28462,7 +28310,7 @@ void immediate_mdt_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ext_field_s; +template struct asn1::protocol_ext_field_s; logged_mdt_ext_ies_container::logged_mdt_ext_ies_container() : bluetooth_meas_cfg(284, crit_e::ignore), wlan_meas_cfg(285, crit_e::ignore) @@ -28491,21 +28339,21 @@ SRSASN_CODE logged_mdt_ext_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ext_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 284: bluetooth_meas_cfg_present = true; - bluetooth_meas_cfg.id = c.id; - bluetooth_meas_cfg.crit = c.crit; - bluetooth_meas_cfg.ext = c.ext_value.bluetooth_meas_cfg(); + bluetooth_meas_cfg.id = c.id(); + bluetooth_meas_cfg.crit = c.crit(); + bluetooth_meas_cfg.ext = c.value().bluetooth_meas_cfg(); break; case 285: wlan_meas_cfg_present = true; - wlan_meas_cfg.id = c.id; - wlan_meas_cfg.crit = c.crit; - wlan_meas_cfg.ext = c.ext_value.wlan_meas_cfg(); + wlan_meas_cfg.id = c.id(); + wlan_meas_cfg.crit = c.crit(); + wlan_meas_cfg.ext = c.value().wlan_meas_cfg(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -29496,7 +29344,7 @@ void security_context_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ext_field_s; +template struct asn1::protocol_ext_field_s; trace_activation_ext_ies_container::trace_activation_ext_ies_container() : mdt_cfg(162, crit_e::ignore), ue_app_layer_meas_cfg(262, crit_e::ignore) @@ -29525,21 +29373,21 @@ SRSASN_CODE trace_activation_ext_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ext_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 162: mdt_cfg_present = true; - mdt_cfg.id = c.id; - mdt_cfg.crit = c.crit; - mdt_cfg.ext = c.ext_value.mdt_cfg(); + mdt_cfg.id = c.id(); + mdt_cfg.crit = c.crit(); + mdt_cfg.ext = c.value().mdt_cfg(); break; case 262: ue_app_layer_meas_cfg_present = true; - ue_app_layer_meas_cfg.id = c.id; - ue_app_layer_meas_cfg.crit = c.crit; - ue_app_layer_meas_cfg.ext = c.ext_value.ue_app_layer_meas_cfg(); + ue_app_layer_meas_cfg.id = c.id(); + ue_app_layer_meas_cfg.crit = c.crit(); + ue_app_layer_meas_cfg.ext = c.value().ue_app_layer_meas_cfg(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -31093,7 +30941,7 @@ const char* ho_request_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 32, value, "ho_request_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ho_request_ies_container::ho_request_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -31251,201 +31099,201 @@ SRSASN_CODE ho_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 1: nof_mandatory_ies--; - handov_type.id = c.id; - handov_type.crit = c.crit; - handov_type.value = c.value.handov_type(); + handov_type.id = c.id(); + handov_type.crit = c.crit(); + handov_type.value = c.value().handov_type(); break; case 2: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 66: nof_mandatory_ies--; - ueaggregate_maximum_bitrate.id = c.id; - ueaggregate_maximum_bitrate.crit = c.crit; - ueaggregate_maximum_bitrate.value = c.value.ueaggregate_maximum_bitrate(); + ueaggregate_maximum_bitrate.id = c.id(); + ueaggregate_maximum_bitrate.crit = c.crit(); + ueaggregate_maximum_bitrate.value = c.value().ueaggregate_maximum_bitrate(); break; case 53: nof_mandatory_ies--; - erab_to_be_setup_list_ho_req.id = c.id; - erab_to_be_setup_list_ho_req.crit = c.crit; - erab_to_be_setup_list_ho_req.value = c.value.erab_to_be_setup_list_ho_req(); + erab_to_be_setup_list_ho_req.id = c.id(); + erab_to_be_setup_list_ho_req.crit = c.crit(); + erab_to_be_setup_list_ho_req.value = c.value().erab_to_be_setup_list_ho_req(); break; case 104: nof_mandatory_ies--; - source_to_target_transparent_container.id = c.id; - source_to_target_transparent_container.crit = c.crit; - source_to_target_transparent_container.value = c.value.source_to_target_transparent_container(); + source_to_target_transparent_container.id = c.id(); + source_to_target_transparent_container.crit = c.crit(); + source_to_target_transparent_container.value = c.value().source_to_target_transparent_container(); break; case 107: nof_mandatory_ies--; - ue_security_cap.id = c.id; - ue_security_cap.crit = c.crit; - ue_security_cap.value = c.value.ue_security_cap(); + ue_security_cap.id = c.id(); + ue_security_cap.crit = c.crit(); + ue_security_cap.value = c.value().ue_security_cap(); break; case 41: ho_restrict_list_present = true; - ho_restrict_list.id = c.id; - ho_restrict_list.crit = c.crit; - ho_restrict_list.value = c.value.ho_restrict_list(); + ho_restrict_list.id = c.id(); + ho_restrict_list.crit = c.crit(); + ho_restrict_list.value = c.value().ho_restrict_list(); break; case 25: trace_activation_present = true; - trace_activation.id = c.id; - trace_activation.crit = c.crit; - trace_activation.value = c.value.trace_activation(); + trace_activation.id = c.id(); + trace_activation.crit = c.crit(); + trace_activation.value = c.value().trace_activation(); break; case 98: request_type_present = true; - request_type.id = c.id; - request_type.crit = c.crit; - request_type.value = c.value.request_type(); + request_type.id = c.id(); + request_type.crit = c.crit(); + request_type.value = c.value().request_type(); break; case 124: srvcc_operation_possible_present = true; - srvcc_operation_possible.id = c.id; - srvcc_operation_possible.crit = c.crit; - srvcc_operation_possible.value = c.value.srvcc_operation_possible(); + srvcc_operation_possible.id = c.id(); + srvcc_operation_possible.crit = c.crit(); + srvcc_operation_possible.value = c.value().srvcc_operation_possible(); break; case 40: nof_mandatory_ies--; - security_context.id = c.id; - security_context.crit = c.crit; - security_context.value = c.value.security_context(); + security_context.id = c.id(); + security_context.crit = c.crit(); + security_context.value = c.value().security_context(); break; case 136: nas_security_paramsto_e_utran_present = true; - nas_security_paramsto_e_utran.id = c.id; - nas_security_paramsto_e_utran.crit = c.crit; - nas_security_paramsto_e_utran.value = c.value.nas_security_paramsto_e_utran(); + nas_security_paramsto_e_utran.id = c.id(); + nas_security_paramsto_e_utran.crit = c.crit(); + nas_security_paramsto_e_utran.value = c.value().nas_security_paramsto_e_utran(); break; case 127: csg_id_present = true; - csg_id.id = c.id; - csg_id.crit = c.crit; - csg_id.value = c.value.csg_id(); + csg_id.id = c.id(); + csg_id.crit = c.crit(); + csg_id.value = c.value().csg_id(); break; case 146: csg_membership_status_present = true; - csg_membership_status.id = c.id; - csg_membership_status.crit = c.crit; - csg_membership_status.value = c.value.csg_membership_status(); + csg_membership_status.id = c.id(); + csg_membership_status.crit = c.crit(); + csg_membership_status.value = c.value().csg_membership_status(); break; case 75: gummei_id_present = true; - gummei_id.id = c.id; - gummei_id.crit = c.crit; - gummei_id.value = c.value.gummei_id(); + gummei_id.id = c.id(); + gummei_id.crit = c.crit(); + gummei_id.value = c.value().gummei_id(); break; case 158: mme_ue_s1ap_id_minus2_present = true; - mme_ue_s1ap_id_minus2.id = c.id; - mme_ue_s1ap_id_minus2.crit = c.crit; - mme_ue_s1ap_id_minus2.value = c.value.mme_ue_s1ap_id_minus2(); + mme_ue_s1ap_id_minus2.id = c.id(); + mme_ue_s1ap_id_minus2.crit = c.crit(); + mme_ue_s1ap_id_minus2.value = c.value().mme_ue_s1ap_id_minus2(); break; case 165: management_based_mdt_allowed_present = true; - management_based_mdt_allowed.id = c.id; - management_based_mdt_allowed.crit = c.crit; - management_based_mdt_allowed.value = c.value.management_based_mdt_allowed(); + management_based_mdt_allowed.id = c.id(); + management_based_mdt_allowed.crit = c.crit(); + management_based_mdt_allowed.value = c.value().management_based_mdt_allowed(); break; case 177: management_based_mdtplmn_list_present = true; - management_based_mdtplmn_list.id = c.id; - management_based_mdtplmn_list.crit = c.crit; - management_based_mdtplmn_list.value = c.value.management_based_mdtplmn_list(); + management_based_mdtplmn_list.id = c.id(); + management_based_mdtplmn_list.crit = c.crit(); + management_based_mdtplmn_list.value = c.value().management_based_mdtplmn_list(); break; case 192: masked_imeisv_present = true; - masked_imeisv.id = c.id; - masked_imeisv.crit = c.crit; - masked_imeisv.value = c.value.masked_imeisv(); + masked_imeisv.id = c.id(); + masked_imeisv.crit = c.crit(); + masked_imeisv.value = c.value().masked_imeisv(); break; case 196: expected_ue_behaviour_present = true; - expected_ue_behaviour.id = c.id; - expected_ue_behaviour.crit = c.crit; - expected_ue_behaviour.value = c.value.expected_ue_behaviour(); + expected_ue_behaviour.id = c.id(); + expected_ue_behaviour.crit = c.crit(); + expected_ue_behaviour.value = c.value().expected_ue_behaviour(); break; case 195: pro_se_authorized_present = true; - pro_se_authorized.id = c.id; - pro_se_authorized.crit = c.crit; - pro_se_authorized.value = c.value.pro_se_authorized(); + pro_se_authorized.id = c.id(); + pro_se_authorized.crit = c.crit(); + pro_se_authorized.value = c.value().pro_se_authorized(); break; case 241: ueuser_plane_cio_tsupport_ind_present = true; - ueuser_plane_cio_tsupport_ind.id = c.id; - ueuser_plane_cio_tsupport_ind.crit = c.crit; - ueuser_plane_cio_tsupport_ind.value = c.value.ueuser_plane_cio_tsupport_ind(); + ueuser_plane_cio_tsupport_ind.id = c.id(); + ueuser_plane_cio_tsupport_ind.crit = c.crit(); + ueuser_plane_cio_tsupport_ind.value = c.value().ueuser_plane_cio_tsupport_ind(); break; case 240: v2xservices_authorized_present = true; - v2xservices_authorized.id = c.id; - v2xservices_authorized.crit = c.crit; - v2xservices_authorized.value = c.value.v2xservices_authorized(); + v2xservices_authorized.id = c.id(); + v2xservices_authorized.crit = c.crit(); + v2xservices_authorized.value = c.value().v2xservices_authorized(); break; case 248: ue_sidelink_aggregate_maximum_bitrate_present = true; - ue_sidelink_aggregate_maximum_bitrate.id = c.id; - ue_sidelink_aggregate_maximum_bitrate.crit = c.crit; - ue_sidelink_aggregate_maximum_bitrate.value = c.value.ue_sidelink_aggregate_maximum_bitrate(); + ue_sidelink_aggregate_maximum_bitrate.id = c.id(); + ue_sidelink_aggregate_maximum_bitrate.crit = c.crit(); + ue_sidelink_aggregate_maximum_bitrate.value = c.value().ue_sidelink_aggregate_maximum_bitrate(); break; case 251: enhanced_coverage_restricted_present = true; - enhanced_coverage_restricted.id = c.id; - enhanced_coverage_restricted.crit = c.crit; - enhanced_coverage_restricted.value = c.value.enhanced_coverage_restricted(); + enhanced_coverage_restricted.id = c.id(); + enhanced_coverage_restricted.crit = c.crit(); + enhanced_coverage_restricted.value = c.value().enhanced_coverage_restricted(); break; case 269: nrue_security_cap_present = true; - nrue_security_cap.id = c.id; - nrue_security_cap.crit = c.crit; - nrue_security_cap.value = c.value.nrue_security_cap(); + nrue_security_cap.id = c.id(); + nrue_security_cap.crit = c.crit(); + nrue_security_cap.value = c.value().nrue_security_cap(); break; case 271: ce_mode_brestricted_present = true; - ce_mode_brestricted.id = c.id; - ce_mode_brestricted.crit = c.crit; - ce_mode_brestricted.value = c.value.ce_mode_brestricted(); + ce_mode_brestricted.id = c.id(); + ce_mode_brestricted.crit = c.crit(); + ce_mode_brestricted.value = c.value().ce_mode_brestricted(); break; case 277: aerial_uesubscription_info_present = true; - aerial_uesubscription_info.id = c.id; - aerial_uesubscription_info.crit = c.crit; - aerial_uesubscription_info.value = c.value.aerial_uesubscription_info(); + aerial_uesubscription_info.id = c.id(); + aerial_uesubscription_info.crit = c.crit(); + aerial_uesubscription_info.value = c.value().aerial_uesubscription_info(); break; case 283: pending_data_ind_present = true; - pending_data_ind.id = c.id; - pending_data_ind.crit = c.crit; - pending_data_ind.value = c.value.pending_data_ind(); + pending_data_ind.id = c.id(); + pending_data_ind.crit = c.crit(); + pending_data_ind.value = c.value().pending_data_ind(); break; case 278: subscription_based_ue_differentiation_info_present = true; - subscription_based_ue_differentiation_info.id = c.id; - subscription_based_ue_differentiation_info.crit = c.crit; - subscription_based_ue_differentiation_info.value = c.value.subscription_based_ue_differentiation_info(); + subscription_based_ue_differentiation_info.id = c.id(); + subscription_based_ue_differentiation_info.crit = c.crit(); + subscription_based_ue_differentiation_info.value = c.value().subscription_based_ue_differentiation_info(); break; case 299: add_rrm_prio_idx_present = true; - add_rrm_prio_idx.id = c.id; - add_rrm_prio_idx.crit = c.crit; - add_rrm_prio_idx.value = c.value.add_rrm_prio_idx(); + add_rrm_prio_idx.id = c.id(); + add_rrm_prio_idx.crit = c.crit(); + add_rrm_prio_idx.value = c.value().add_rrm_prio_idx(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -32065,7 +31913,7 @@ const char* ho_request_ack_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 9, value, "ho_request_ack_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ho_request_ack_ies_container::ho_request_ack_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), @@ -32120,63 +31968,63 @@ SRSASN_CODE ho_request_ack_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 18: nof_mandatory_ies--; - erab_admitted_list.id = c.id; - erab_admitted_list.crit = c.crit; - erab_admitted_list.value = c.value.erab_admitted_list(); + erab_admitted_list.id = c.id(); + erab_admitted_list.crit = c.crit(); + erab_admitted_list.value = c.value().erab_admitted_list(); break; case 19: erab_failed_to_setup_list_ho_req_ack_present = true; - erab_failed_to_setup_list_ho_req_ack.id = c.id; - erab_failed_to_setup_list_ho_req_ack.crit = c.crit; - erab_failed_to_setup_list_ho_req_ack.value = c.value.erab_failed_to_setup_list_ho_req_ack(); + erab_failed_to_setup_list_ho_req_ack.id = c.id(); + erab_failed_to_setup_list_ho_req_ack.crit = c.crit(); + erab_failed_to_setup_list_ho_req_ack.value = c.value().erab_failed_to_setup_list_ho_req_ack(); break; case 123: nof_mandatory_ies--; - target_to_source_transparent_container.id = c.id; - target_to_source_transparent_container.crit = c.crit; - target_to_source_transparent_container.value = c.value.target_to_source_transparent_container(); + target_to_source_transparent_container.id = c.id(); + target_to_source_transparent_container.crit = c.crit(); + target_to_source_transparent_container.value = c.value().target_to_source_transparent_container(); break; case 127: csg_id_present = true; - csg_id.id = c.id; - csg_id.crit = c.crit; - csg_id.value = c.value.csg_id(); + csg_id.id = c.id(); + csg_id.crit = c.crit(); + csg_id.value = c.value().csg_id(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; case 145: cell_access_mode_present = true; - cell_access_mode.id = c.id; - cell_access_mode.crit = c.crit; - cell_access_mode.value = c.value.cell_access_mode(); + cell_access_mode.id = c.id(); + cell_access_mode.crit = c.crit(); + cell_access_mode.value = c.value().cell_access_mode(); break; case 242: ce_mode_b_support_ind_present = true; - ce_mode_b_support_ind.id = c.id; - ce_mode_b_support_ind.crit = c.crit; - ce_mode_b_support_ind.value = c.value.ce_mode_b_support_ind(); + ce_mode_b_support_ind.id = c.id(); + ce_mode_b_support_ind.crit = c.crit(); + ce_mode_b_support_ind.value = c.value().ce_mode_b_support_ind(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -33139,7 +32987,7 @@ const char* ho_required_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 14, value, "ho_required_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ho_required_ies_container::ho_required_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -33213,94 +33061,94 @@ SRSASN_CODE ho_required_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 1: nof_mandatory_ies--; - handov_type.id = c.id; - handov_type.crit = c.crit; - handov_type.value = c.value.handov_type(); + handov_type.id = c.id(); + handov_type.crit = c.crit(); + handov_type.value = c.value().handov_type(); break; case 2: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 4: nof_mandatory_ies--; - target_id.id = c.id; - target_id.crit = c.crit; - target_id.value = c.value.target_id(); + target_id.id = c.id(); + target_id.crit = c.crit(); + target_id.value = c.value().target_id(); break; case 79: direct_forwarding_path_availability_present = true; - direct_forwarding_path_availability.id = c.id; - direct_forwarding_path_availability.crit = c.crit; - direct_forwarding_path_availability.value = c.value.direct_forwarding_path_availability(); + direct_forwarding_path_availability.id = c.id(); + direct_forwarding_path_availability.crit = c.crit(); + direct_forwarding_path_availability.value = c.value().direct_forwarding_path_availability(); break; case 125: srvccho_ind_present = true; - srvccho_ind.id = c.id; - srvccho_ind.crit = c.crit; - srvccho_ind.value = c.value.srvccho_ind(); + srvccho_ind.id = c.id(); + srvccho_ind.crit = c.crit(); + srvccho_ind.value = c.value().srvccho_ind(); break; case 104: nof_mandatory_ies--; - source_to_target_transparent_container.id = c.id; - source_to_target_transparent_container.crit = c.crit; - source_to_target_transparent_container.value = c.value.source_to_target_transparent_container(); + source_to_target_transparent_container.id = c.id(); + source_to_target_transparent_container.crit = c.crit(); + source_to_target_transparent_container.value = c.value().source_to_target_transparent_container(); break; case 138: source_to_target_transparent_container_secondary_present = true; - source_to_target_transparent_container_secondary.id = c.id; - source_to_target_transparent_container_secondary.crit = c.crit; + source_to_target_transparent_container_secondary.id = c.id(); + source_to_target_transparent_container_secondary.crit = c.crit(); source_to_target_transparent_container_secondary.value = - c.value.source_to_target_transparent_container_secondary(); + c.value().source_to_target_transparent_container_secondary(); break; case 132: ms_classmark2_present = true; - ms_classmark2.id = c.id; - ms_classmark2.crit = c.crit; - ms_classmark2.value = c.value.ms_classmark2(); + ms_classmark2.id = c.id(); + ms_classmark2.crit = c.crit(); + ms_classmark2.value = c.value().ms_classmark2(); break; case 133: ms_classmark3_present = true; - ms_classmark3.id = c.id; - ms_classmark3.crit = c.crit; - ms_classmark3.value = c.value.ms_classmark3(); + ms_classmark3.id = c.id(); + ms_classmark3.crit = c.crit(); + ms_classmark3.value = c.value().ms_classmark3(); break; case 127: csg_id_present = true; - csg_id.id = c.id; - csg_id.crit = c.crit; - csg_id.value = c.value.csg_id(); + csg_id.id = c.id(); + csg_id.crit = c.crit(); + csg_id.value = c.value().csg_id(); break; case 145: cell_access_mode_present = true; - cell_access_mode.id = c.id; - cell_access_mode.crit = c.crit; - cell_access_mode.value = c.value.cell_access_mode(); + cell_access_mode.id = c.id(); + cell_access_mode.crit = c.crit(); + cell_access_mode.value = c.value().cell_access_mode(); break; case 150: ps_service_not_available_present = true; - ps_service_not_available.id = c.id; - ps_service_not_available.crit = c.crit; - ps_service_not_available.value = c.value.ps_service_not_available(); + ps_service_not_available.id = c.id(); + ps_service_not_available.crit = c.crit(); + ps_service_not_available.value = c.value().ps_service_not_available(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -33972,7 +33820,7 @@ const char* init_context_setup_fail_ies_o::value_c::types_opts::to_string() cons return convert_enum_idx(options, 4, value, "init_context_setup_fail_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; init_context_setup_fail_ies_container::init_context_setup_fail_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), @@ -34005,33 +33853,33 @@ SRSASN_CODE init_context_setup_fail_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 2: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -35436,7 +35284,7 @@ const char* init_context_setup_request_ies_o::value_c::types_opts::to_string() c return convert_enum_idx(options, 32, value, "init_context_setup_request_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; init_context_setup_request_ies_container::init_context_setup_request_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -35600,201 +35448,201 @@ SRSASN_CODE init_context_setup_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 66: nof_mandatory_ies--; - ueaggregate_maximum_bitrate.id = c.id; - ueaggregate_maximum_bitrate.crit = c.crit; - ueaggregate_maximum_bitrate.value = c.value.ueaggregate_maximum_bitrate(); + ueaggregate_maximum_bitrate.id = c.id(); + ueaggregate_maximum_bitrate.crit = c.crit(); + ueaggregate_maximum_bitrate.value = c.value().ueaggregate_maximum_bitrate(); break; case 24: nof_mandatory_ies--; - erab_to_be_setup_list_ctxt_su_req.id = c.id; - erab_to_be_setup_list_ctxt_su_req.crit = c.crit; - erab_to_be_setup_list_ctxt_su_req.value = c.value.erab_to_be_setup_list_ctxt_su_req(); + erab_to_be_setup_list_ctxt_su_req.id = c.id(); + erab_to_be_setup_list_ctxt_su_req.crit = c.crit(); + erab_to_be_setup_list_ctxt_su_req.value = c.value().erab_to_be_setup_list_ctxt_su_req(); break; case 107: nof_mandatory_ies--; - ue_security_cap.id = c.id; - ue_security_cap.crit = c.crit; - ue_security_cap.value = c.value.ue_security_cap(); + ue_security_cap.id = c.id(); + ue_security_cap.crit = c.crit(); + ue_security_cap.value = c.value().ue_security_cap(); break; case 73: nof_mandatory_ies--; - security_key.id = c.id; - security_key.crit = c.crit; - security_key.value = c.value.security_key(); + security_key.id = c.id(); + security_key.crit = c.crit(); + security_key.value = c.value().security_key(); break; case 25: trace_activation_present = true; - trace_activation.id = c.id; - trace_activation.crit = c.crit; - trace_activation.value = c.value.trace_activation(); + trace_activation.id = c.id(); + trace_activation.crit = c.crit(); + trace_activation.value = c.value().trace_activation(); break; case 41: ho_restrict_list_present = true; - ho_restrict_list.id = c.id; - ho_restrict_list.crit = c.crit; - ho_restrict_list.value = c.value.ho_restrict_list(); + ho_restrict_list.id = c.id(); + ho_restrict_list.crit = c.crit(); + ho_restrict_list.value = c.value().ho_restrict_list(); break; case 74: ue_radio_cap_present = true; - ue_radio_cap.id = c.id; - ue_radio_cap.crit = c.crit; - ue_radio_cap.value = c.value.ue_radio_cap(); + ue_radio_cap.id = c.id(); + ue_radio_cap.crit = c.crit(); + ue_radio_cap.value = c.value().ue_radio_cap(); break; case 106: subscriber_profile_idfor_rfp_present = true; - subscriber_profile_idfor_rfp.id = c.id; - subscriber_profile_idfor_rfp.crit = c.crit; - subscriber_profile_idfor_rfp.value = c.value.subscriber_profile_idfor_rfp(); + subscriber_profile_idfor_rfp.id = c.id(); + subscriber_profile_idfor_rfp.crit = c.crit(); + subscriber_profile_idfor_rfp.value = c.value().subscriber_profile_idfor_rfp(); break; case 108: cs_fallback_ind_present = true; - cs_fallback_ind.id = c.id; - cs_fallback_ind.crit = c.crit; - cs_fallback_ind.value = c.value.cs_fallback_ind(); + cs_fallback_ind.id = c.id(); + cs_fallback_ind.crit = c.crit(); + cs_fallback_ind.value = c.value().cs_fallback_ind(); break; case 124: srvcc_operation_possible_present = true; - srvcc_operation_possible.id = c.id; - srvcc_operation_possible.crit = c.crit; - srvcc_operation_possible.value = c.value.srvcc_operation_possible(); + srvcc_operation_possible.id = c.id(); + srvcc_operation_possible.crit = c.crit(); + srvcc_operation_possible.value = c.value().srvcc_operation_possible(); break; case 146: csg_membership_status_present = true; - csg_membership_status.id = c.id; - csg_membership_status.crit = c.crit; - csg_membership_status.value = c.value.csg_membership_status(); + csg_membership_status.id = c.id(); + csg_membership_status.crit = c.crit(); + csg_membership_status.value = c.value().csg_membership_status(); break; case 159: registered_lai_present = true; - registered_lai.id = c.id; - registered_lai.crit = c.crit; - registered_lai.value = c.value.registered_lai(); + registered_lai.id = c.id(); + registered_lai.crit = c.crit(); + registered_lai.value = c.value().registered_lai(); break; case 75: gummei_id_present = true; - gummei_id.id = c.id; - gummei_id.crit = c.crit; - gummei_id.value = c.value.gummei_id(); + gummei_id.id = c.id(); + gummei_id.crit = c.crit(); + gummei_id.value = c.value().gummei_id(); break; case 158: mme_ue_s1ap_id_minus2_present = true; - mme_ue_s1ap_id_minus2.id = c.id; - mme_ue_s1ap_id_minus2.crit = c.crit; - mme_ue_s1ap_id_minus2.value = c.value.mme_ue_s1ap_id_minus2(); + mme_ue_s1ap_id_minus2.id = c.id(); + mme_ue_s1ap_id_minus2.crit = c.crit(); + mme_ue_s1ap_id_minus2.value = c.value().mme_ue_s1ap_id_minus2(); break; case 165: management_based_mdt_allowed_present = true; - management_based_mdt_allowed.id = c.id; - management_based_mdt_allowed.crit = c.crit; - management_based_mdt_allowed.value = c.value.management_based_mdt_allowed(); + management_based_mdt_allowed.id = c.id(); + management_based_mdt_allowed.crit = c.crit(); + management_based_mdt_allowed.value = c.value().management_based_mdt_allowed(); break; case 177: management_based_mdtplmn_list_present = true; - management_based_mdtplmn_list.id = c.id; - management_based_mdtplmn_list.crit = c.crit; - management_based_mdtplmn_list.value = c.value.management_based_mdtplmn_list(); + management_based_mdtplmn_list.id = c.id(); + management_based_mdtplmn_list.crit = c.crit(); + management_based_mdtplmn_list.value = c.value().management_based_mdtplmn_list(); break; case 187: add_cs_fallback_ind_present = true; - add_cs_fallback_ind.id = c.id; - add_cs_fallback_ind.crit = c.crit; - add_cs_fallback_ind.value = c.value.add_cs_fallback_ind(); + add_cs_fallback_ind.id = c.id(); + add_cs_fallback_ind.crit = c.crit(); + add_cs_fallback_ind.value = c.value().add_cs_fallback_ind(); break; case 192: masked_imeisv_present = true; - masked_imeisv.id = c.id; - masked_imeisv.crit = c.crit; - masked_imeisv.value = c.value.masked_imeisv(); + masked_imeisv.id = c.id(); + masked_imeisv.crit = c.crit(); + masked_imeisv.value = c.value().masked_imeisv(); break; case 196: expected_ue_behaviour_present = true; - expected_ue_behaviour.id = c.id; - expected_ue_behaviour.crit = c.crit; - expected_ue_behaviour.value = c.value.expected_ue_behaviour(); + expected_ue_behaviour.id = c.id(); + expected_ue_behaviour.crit = c.crit(); + expected_ue_behaviour.value = c.value().expected_ue_behaviour(); break; case 195: pro_se_authorized_present = true; - pro_se_authorized.id = c.id; - pro_se_authorized.crit = c.crit; - pro_se_authorized.value = c.value.pro_se_authorized(); + pro_se_authorized.id = c.id(); + pro_se_authorized.crit = c.crit(); + pro_se_authorized.value = c.value().pro_se_authorized(); break; case 241: ueuser_plane_cio_tsupport_ind_present = true; - ueuser_plane_cio_tsupport_ind.id = c.id; - ueuser_plane_cio_tsupport_ind.crit = c.crit; - ueuser_plane_cio_tsupport_ind.value = c.value.ueuser_plane_cio_tsupport_ind(); + ueuser_plane_cio_tsupport_ind.id = c.id(); + ueuser_plane_cio_tsupport_ind.crit = c.crit(); + ueuser_plane_cio_tsupport_ind.value = c.value().ueuser_plane_cio_tsupport_ind(); break; case 240: v2xservices_authorized_present = true; - v2xservices_authorized.id = c.id; - v2xservices_authorized.crit = c.crit; - v2xservices_authorized.value = c.value.v2xservices_authorized(); + v2xservices_authorized.id = c.id(); + v2xservices_authorized.crit = c.crit(); + v2xservices_authorized.value = c.value().v2xservices_authorized(); break; case 248: ue_sidelink_aggregate_maximum_bitrate_present = true; - ue_sidelink_aggregate_maximum_bitrate.id = c.id; - ue_sidelink_aggregate_maximum_bitrate.crit = c.crit; - ue_sidelink_aggregate_maximum_bitrate.value = c.value.ue_sidelink_aggregate_maximum_bitrate(); + ue_sidelink_aggregate_maximum_bitrate.id = c.id(); + ue_sidelink_aggregate_maximum_bitrate.crit = c.crit(); + ue_sidelink_aggregate_maximum_bitrate.value = c.value().ue_sidelink_aggregate_maximum_bitrate(); break; case 251: enhanced_coverage_restricted_present = true; - enhanced_coverage_restricted.id = c.id; - enhanced_coverage_restricted.crit = c.crit; - enhanced_coverage_restricted.value = c.value.enhanced_coverage_restricted(); + enhanced_coverage_restricted.id = c.id(); + enhanced_coverage_restricted.crit = c.crit(); + enhanced_coverage_restricted.value = c.value().enhanced_coverage_restricted(); break; case 269: nrue_security_cap_present = true; - nrue_security_cap.id = c.id; - nrue_security_cap.crit = c.crit; - nrue_security_cap.value = c.value.nrue_security_cap(); + nrue_security_cap.id = c.id(); + nrue_security_cap.crit = c.crit(); + nrue_security_cap.value = c.value().nrue_security_cap(); break; case 271: ce_mode_brestricted_present = true; - ce_mode_brestricted.id = c.id; - ce_mode_brestricted.crit = c.crit; - ce_mode_brestricted.value = c.value.ce_mode_brestricted(); + ce_mode_brestricted.id = c.id(); + ce_mode_brestricted.crit = c.crit(); + ce_mode_brestricted.value = c.value().ce_mode_brestricted(); break; case 277: aerial_uesubscription_info_present = true; - aerial_uesubscription_info.id = c.id; - aerial_uesubscription_info.crit = c.crit; - aerial_uesubscription_info.value = c.value.aerial_uesubscription_info(); + aerial_uesubscription_info.id = c.id(); + aerial_uesubscription_info.crit = c.crit(); + aerial_uesubscription_info.value = c.value().aerial_uesubscription_info(); break; case 283: pending_data_ind_present = true; - pending_data_ind.id = c.id; - pending_data_ind.crit = c.crit; - pending_data_ind.value = c.value.pending_data_ind(); + pending_data_ind.id = c.id(); + pending_data_ind.crit = c.crit(); + pending_data_ind.value = c.value().pending_data_ind(); break; case 278: subscription_based_ue_differentiation_info_present = true; - subscription_based_ue_differentiation_info.id = c.id; - subscription_based_ue_differentiation_info.crit = c.crit; - subscription_based_ue_differentiation_info.value = c.value.subscription_based_ue_differentiation_info(); + subscription_based_ue_differentiation_info.id = c.id(); + subscription_based_ue_differentiation_info.crit = c.crit(); + subscription_based_ue_differentiation_info.value = c.value().subscription_based_ue_differentiation_info(); break; case 299: add_rrm_prio_idx_present = true; - add_rrm_prio_idx.id = c.id; - add_rrm_prio_idx.crit = c.crit; - add_rrm_prio_idx.value = c.value.add_rrm_prio_idx(); + add_rrm_prio_idx.id = c.id(); + add_rrm_prio_idx.crit = c.crit(); + add_rrm_prio_idx.value = c.value().add_rrm_prio_idx(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -36268,7 +36116,7 @@ const char* init_context_setup_resp_ies_o::value_c::types_opts::to_string() cons return convert_enum_idx(options, 5, value, "init_context_setup_resp_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; init_context_setup_resp_ies_container::init_context_setup_resp_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), @@ -36306,39 +36154,39 @@ SRSASN_CODE init_context_setup_resp_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 51: nof_mandatory_ies--; - erab_setup_list_ctxt_su_res.id = c.id; - erab_setup_list_ctxt_su_res.crit = c.crit; - erab_setup_list_ctxt_su_res.value = c.value.erab_setup_list_ctxt_su_res(); + erab_setup_list_ctxt_su_res.id = c.id(); + erab_setup_list_ctxt_su_res.crit = c.crit(); + erab_setup_list_ctxt_su_res.value = c.value().erab_setup_list_ctxt_su_res(); break; case 48: erab_failed_to_setup_list_ctxt_su_res_present = true; - erab_failed_to_setup_list_ctxt_su_res.id = c.id; - erab_failed_to_setup_list_ctxt_su_res.crit = c.crit; - erab_failed_to_setup_list_ctxt_su_res.value = c.value.erab_failed_to_setup_list_ctxt_su_res(); + erab_failed_to_setup_list_ctxt_su_res.id = c.id(); + erab_failed_to_setup_list_ctxt_su_res.crit = c.crit(); + erab_failed_to_setup_list_ctxt_su_res.value = c.value().erab_failed_to_setup_list_ctxt_su_res(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -37388,7 +37236,7 @@ const char* init_ue_msg_ies_o::value_c::types_opts::to_string() const return convert_enum_idx(options, 22, value, "init_ue_msg_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; init_ue_msg_ies_container::init_ue_msg_ies_container() : enb_ue_s1ap_id(8, crit_e::reject), @@ -37505,141 +37353,141 @@ SRSASN_CODE init_ue_msg_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 26: nof_mandatory_ies--; - nas_pdu.id = c.id; - nas_pdu.crit = c.crit; - nas_pdu.value = c.value.nas_pdu(); + nas_pdu.id = c.id(); + nas_pdu.crit = c.crit(); + nas_pdu.value = c.value().nas_pdu(); break; case 67: nof_mandatory_ies--; - tai.id = c.id; - tai.crit = c.crit; - tai.value = c.value.tai(); + tai.id = c.id(); + tai.crit = c.crit(); + tai.value = c.value().tai(); break; case 100: nof_mandatory_ies--; - eutran_cgi.id = c.id; - eutran_cgi.crit = c.crit; - eutran_cgi.value = c.value.eutran_cgi(); + eutran_cgi.id = c.id(); + eutran_cgi.crit = c.crit(); + eutran_cgi.value = c.value().eutran_cgi(); break; case 134: nof_mandatory_ies--; - rrc_establishment_cause.id = c.id; - rrc_establishment_cause.crit = c.crit; - rrc_establishment_cause.value = c.value.rrc_establishment_cause(); + rrc_establishment_cause.id = c.id(); + rrc_establishment_cause.crit = c.crit(); + rrc_establishment_cause.value = c.value().rrc_establishment_cause(); break; case 96: s_tmsi_present = true; - s_tmsi.id = c.id; - s_tmsi.crit = c.crit; - s_tmsi.value = c.value.s_tmsi(); + s_tmsi.id = c.id(); + s_tmsi.crit = c.crit(); + s_tmsi.value = c.value().s_tmsi(); break; case 127: csg_id_present = true; - csg_id.id = c.id; - csg_id.crit = c.crit; - csg_id.value = c.value.csg_id(); + csg_id.id = c.id(); + csg_id.crit = c.crit(); + csg_id.value = c.value().csg_id(); break; case 75: gummei_id_present = true; - gummei_id.id = c.id; - gummei_id.crit = c.crit; - gummei_id.value = c.value.gummei_id(); + gummei_id.id = c.id(); + gummei_id.crit = c.crit(); + gummei_id.value = c.value().gummei_id(); break; case 145: cell_access_mode_present = true; - cell_access_mode.id = c.id; - cell_access_mode.crit = c.crit; - cell_access_mode.value = c.value.cell_access_mode(); + cell_access_mode.id = c.id(); + cell_access_mode.crit = c.crit(); + cell_access_mode.value = c.value().cell_access_mode(); break; case 155: gw_transport_layer_address_present = true; - gw_transport_layer_address.id = c.id; - gw_transport_layer_address.crit = c.crit; - gw_transport_layer_address.value = c.value.gw_transport_layer_address(); + gw_transport_layer_address.id = c.id(); + gw_transport_layer_address.crit = c.crit(); + gw_transport_layer_address.value = c.value().gw_transport_layer_address(); break; case 160: relay_node_ind_present = true; - relay_node_ind.id = c.id; - relay_node_ind.crit = c.crit; - relay_node_ind.value = c.value.relay_node_ind(); + relay_node_ind.id = c.id(); + relay_node_ind.crit = c.crit(); + relay_node_ind.value = c.value().relay_node_ind(); break; case 170: gummei_type_present = true; - gummei_type.id = c.id; - gummei_type.crit = c.crit; - gummei_type.value = c.value.gummei_type(); + gummei_type.id = c.id(); + gummei_type.crit = c.crit(); + gummei_type.value = c.value().gummei_type(); break; case 176: tunnel_info_for_bbf_present = true; - tunnel_info_for_bbf.id = c.id; - tunnel_info_for_bbf.crit = c.crit; - tunnel_info_for_bbf.value = c.value.tunnel_info_for_bbf(); + tunnel_info_for_bbf.id = c.id(); + tunnel_info_for_bbf.crit = c.crit(); + tunnel_info_for_bbf.value = c.value().tunnel_info_for_bbf(); break; case 184: sipto_l_gw_transport_layer_address_present = true; - sipto_l_gw_transport_layer_address.id = c.id; - sipto_l_gw_transport_layer_address.crit = c.crit; - sipto_l_gw_transport_layer_address.value = c.value.sipto_l_gw_transport_layer_address(); + sipto_l_gw_transport_layer_address.id = c.id(); + sipto_l_gw_transport_layer_address.crit = c.crit(); + sipto_l_gw_transport_layer_address.value = c.value().sipto_l_gw_transport_layer_address(); break; case 186: lhn_id_present = true; - lhn_id.id = c.id; - lhn_id.crit = c.crit; - lhn_id.value = c.value.lhn_id(); + lhn_id.id = c.id(); + lhn_id.crit = c.crit(); + lhn_id.value = c.value().lhn_id(); break; case 223: mme_group_id_present = true; - mme_group_id.id = c.id; - mme_group_id.crit = c.crit; - mme_group_id.value = c.value.mme_group_id(); + mme_group_id.id = c.id(); + mme_group_id.crit = c.crit(); + mme_group_id.value = c.value().mme_group_id(); break; case 230: ue_usage_type_present = true; - ue_usage_type.id = c.id; - ue_usage_type.crit = c.crit; - ue_usage_type.value = c.value.ue_usage_type(); + ue_usage_type.id = c.id(); + ue_usage_type.crit = c.crit(); + ue_usage_type.value = c.value().ue_usage_type(); break; case 242: ce_mode_b_support_ind_present = true; - ce_mode_b_support_ind.id = c.id; - ce_mode_b_support_ind.crit = c.crit; - ce_mode_b_support_ind.value = c.value.ce_mode_b_support_ind(); + ce_mode_b_support_ind.id = c.id(); + ce_mode_b_support_ind.crit = c.crit(); + ce_mode_b_support_ind.value = c.value().ce_mode_b_support_ind(); break; case 246: dcn_id_present = true; - dcn_id.id = c.id; - dcn_id.crit = c.crit; - dcn_id.value = c.value.dcn_id(); + dcn_id.id = c.id(); + dcn_id.crit = c.crit(); + dcn_id.value = c.value().dcn_id(); break; case 250: coverage_level_present = true; - coverage_level.id = c.id; - coverage_level.crit = c.crit; - coverage_level.value = c.value.coverage_level(); + coverage_level.id = c.id(); + coverage_level.crit = c.crit(); + coverage_level.value = c.value().coverage_level(); break; case 263: ue_application_layer_meas_cap_present = true; - ue_application_layer_meas_cap.id = c.id; - ue_application_layer_meas_cap.crit = c.crit; - ue_application_layer_meas_cap.value = c.value.ue_application_layer_meas_cap(); + ue_application_layer_meas_cap.id = c.id(); + ue_application_layer_meas_cap.crit = c.crit(); + ue_application_layer_meas_cap.value = c.value().ue_application_layer_meas_cap(); break; case 281: edt_session_present = true; - edt_session.id = c.id; - edt_session.crit = c.crit; - edt_session.value = c.value.edt_session(); + edt_session.id = c.id(); + edt_session.crit = c.crit(); + edt_session.value = c.value().edt_session(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -56021,7 +55869,7 @@ const char* write_replace_warning_resp_ies_o::value_c::types_opts::to_string() c return convert_enum_idx(options, 4, value, "write_replace_warning_resp_ies_o::value_c::types"); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; kill_request_ies_container::kill_request_ies_container() : msg_id(111, crit_e::reject), @@ -56057,33 +55905,33 @@ SRSASN_CODE kill_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 111: nof_mandatory_ies--; - msg_id.id = c.id; - msg_id.crit = c.crit; - msg_id.value = c.value.msg_id(); + msg_id.id = c.id(); + msg_id.crit = c.crit(); + msg_id.value = c.value().msg_id(); break; case 112: nof_mandatory_ies--; - serial_num.id = c.id; - serial_num.crit = c.crit; - serial_num.value = c.value.serial_num(); + serial_num.id = c.id(); + serial_num.crit = c.crit(); + serial_num.value = c.value().serial_num(); break; case 113: warning_area_list_present = true; - warning_area_list.id = c.id; - warning_area_list.crit = c.crit; - warning_area_list.value = c.value.warning_area_list(); + warning_area_list.id = c.id(); + warning_area_list.crit = c.crit(); + warning_area_list.value = c.value().warning_area_list(); break; case 191: kill_all_warning_msgs_present = true; - kill_all_warning_msgs.id = c.id; - kill_all_warning_msgs.crit = c.crit; - kill_all_warning_msgs.value = c.value.kill_all_warning_msgs(); + kill_all_warning_msgs.id = c.id(); + kill_all_warning_msgs.crit = c.crit(); + kill_all_warning_msgs.value = c.value().kill_all_warning_msgs(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -56135,7 +55983,7 @@ void kill_request_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; kill_resp_ies_container::kill_resp_ies_container() : msg_id(111, crit_e::reject), @@ -56171,33 +56019,33 @@ SRSASN_CODE kill_resp_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 111: nof_mandatory_ies--; - msg_id.id = c.id; - msg_id.crit = c.crit; - msg_id.value = c.value.msg_id(); + msg_id.id = c.id(); + msg_id.crit = c.crit(); + msg_id.value = c.value().msg_id(); break; case 112: nof_mandatory_ies--; - serial_num.id = c.id; - serial_num.crit = c.crit; - serial_num.value = c.value.serial_num(); + serial_num.id = c.id(); + serial_num.crit = c.crit(); + serial_num.value = c.value().serial_num(); break; case 141: broadcast_cancelled_area_list_present = true; - broadcast_cancelled_area_list.id = c.id; - broadcast_cancelled_area_list.crit = c.crit; - broadcast_cancelled_area_list.value = c.value.broadcast_cancelled_area_list(); + broadcast_cancelled_area_list.id = c.id(); + broadcast_cancelled_area_list.crit = c.crit(); + broadcast_cancelled_area_list.value = c.value().broadcast_cancelled_area_list(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -56249,7 +56097,7 @@ void kill_resp_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; location_report_ies_container::location_report_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -56286,45 +56134,45 @@ SRSASN_CODE location_report_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 100: nof_mandatory_ies--; - eutran_cgi.id = c.id; - eutran_cgi.crit = c.crit; - eutran_cgi.value = c.value.eutran_cgi(); + eutran_cgi.id = c.id(); + eutran_cgi.crit = c.crit(); + eutran_cgi.value = c.value().eutran_cgi(); break; case 67: nof_mandatory_ies--; - tai.id = c.id; - tai.crit = c.crit; - tai.value = c.value.tai(); + tai.id = c.id(); + tai.crit = c.crit(); + tai.value = c.value().tai(); break; case 98: nof_mandatory_ies--; - request_type.id = c.id; - request_type.crit = c.crit; - request_type.value = c.value.request_type(); + request_type.id = c.id(); + request_type.crit = c.crit(); + request_type.value = c.value().request_type(); break; case 288: ps_cell_info_present = true; - ps_cell_info.id = c.id; - ps_cell_info.crit = c.crit; - ps_cell_info.value = c.value.ps_cell_info(); + ps_cell_info.id = c.id(); + ps_cell_info.crit = c.crit(); + ps_cell_info.value = c.value().ps_cell_info(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -56378,7 +56226,7 @@ void location_report_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; location_report_ctrl_ies_container::location_report_ctrl_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), enb_ue_s1ap_id(8, crit_e::reject), request_type(98, crit_e::ignore) @@ -56404,27 +56252,27 @@ SRSASN_CODE location_report_ctrl_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 98: nof_mandatory_ies--; - request_type.id = c.id; - request_type.crit = c.crit; - request_type.value = c.value.request_type(); + request_type.id = c.id(); + request_type.crit = c.crit(); + request_type.value = c.value().request_type(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -56470,7 +56318,7 @@ void location_report_ctrl_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; location_report_fail_ind_ies_container::location_report_fail_ind_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), enb_ue_s1ap_id(8, crit_e::reject), cause(2, crit_e::ignore) @@ -56496,27 +56344,27 @@ SRSASN_CODE location_report_fail_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 2: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -56562,7 +56410,7 @@ void location_report_fail_ind_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; mmecp_relocation_ind_ies_container::mmecp_relocation_ind_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), enb_ue_s1ap_id(8, crit_e::reject) @@ -56587,21 +56435,21 @@ SRSASN_CODE mmecp_relocation_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -56645,7 +56493,7 @@ void mmecp_relocation_ind_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; mme_cfg_transfer_ies_container::mme_cfg_transfer_ies_container() : son_cfg_transfer_mct(130, crit_e::ignore), en_dcson_cfg_transfer_mct(295, crit_e::ignore) @@ -56674,21 +56522,21 @@ SRSASN_CODE mme_cfg_transfer_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 130: son_cfg_transfer_mct_present = true; - son_cfg_transfer_mct.id = c.id; - son_cfg_transfer_mct.crit = c.crit; - son_cfg_transfer_mct.value = c.value.son_cfg_transfer_mct(); + son_cfg_transfer_mct.id = c.id(); + son_cfg_transfer_mct.crit = c.crit(); + son_cfg_transfer_mct.value = c.value().son_cfg_transfer_mct(); break; case 295: en_dcson_cfg_transfer_mct_present = true; - en_dcson_cfg_transfer_mct.id = c.id; - en_dcson_cfg_transfer_mct.crit = c.crit; - en_dcson_cfg_transfer_mct.value = c.value.en_dcson_cfg_transfer_mct(); + en_dcson_cfg_transfer_mct.id = c.id(); + en_dcson_cfg_transfer_mct.crit = c.crit(); + en_dcson_cfg_transfer_mct.value = c.value().en_dcson_cfg_transfer_mct(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -56732,7 +56580,7 @@ void mme_cfg_transfer_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; mme_cfg_upd_ies_container::mme_cfg_upd_ies_container() : mm_ename(61, crit_e::ignore), @@ -56772,33 +56620,33 @@ SRSASN_CODE mme_cfg_upd_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 61: mm_ename_present = true; - mm_ename.id = c.id; - mm_ename.crit = c.crit; - mm_ename.value = c.value.mm_ename(); + mm_ename.id = c.id(); + mm_ename.crit = c.crit(); + mm_ename.value = c.value().mm_ename(); break; case 105: served_gummeis_present = true; - served_gummeis.id = c.id; - served_gummeis.crit = c.crit; - served_gummeis.value = c.value.served_gummeis(); + served_gummeis.id = c.id(); + served_gummeis.crit = c.crit(); + served_gummeis.value = c.value().served_gummeis(); break; case 87: relative_mme_capacity_present = true; - relative_mme_capacity.id = c.id; - relative_mme_capacity.crit = c.crit; - relative_mme_capacity.value = c.value.relative_mme_capacity(); + relative_mme_capacity.id = c.id(); + relative_mme_capacity.crit = c.crit(); + relative_mme_capacity.value = c.value().relative_mme_capacity(); break; case 247: served_dcns_present = true; - served_dcns.id = c.id; - served_dcns.crit = c.crit; - served_dcns.value = c.value.served_dcns(); + served_dcns.id = c.id(); + served_dcns.crit = c.crit(); + served_dcns.value = c.value().served_dcns(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -56872,7 +56720,7 @@ void mme_cfg_upd_ack_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; mme_cfg_upd_fail_ies_container::mme_cfg_upd_fail_ies_container() : cause(2, crit_e::ignore), time_to_wait(65, crit_e::ignore), crit_diagnostics(58, crit_e::ignore) @@ -56904,27 +56752,27 @@ SRSASN_CODE mme_cfg_upd_fail_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 2: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 65: time_to_wait_present = true; - time_to_wait.id = c.id; - time_to_wait.crit = c.crit; - time_to_wait.value = c.value.time_to_wait(); + time_to_wait.id = c.id(); + time_to_wait.crit = c.crit(); + time_to_wait.value = c.value().time_to_wait(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -56996,7 +56844,7 @@ void mme_direct_info_transfer_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; mme_status_transfer_ies_container::mme_status_transfer_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -57024,27 +56872,27 @@ SRSASN_CODE mme_status_transfer_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 90: nof_mandatory_ies--; - enb_status_transfer_transparent_container.id = c.id; - enb_status_transfer_transparent_container.crit = c.crit; - enb_status_transfer_transparent_container.value = c.value.enb_status_transfer_transparent_container(); + enb_status_transfer_transparent_container.id = c.id(); + enb_status_transfer_transparent_container.crit = c.crit(); + enb_status_transfer_transparent_container.value = c.value().enb_status_transfer_transparent_container(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -57090,7 +56938,7 @@ void mme_status_transfer_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; nas_delivery_ind_ies_container::nas_delivery_ind_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), enb_ue_s1ap_id(8, crit_e::reject) @@ -57115,21 +56963,21 @@ SRSASN_CODE nas_delivery_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -57173,7 +57021,7 @@ void nas_delivery_ind_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; nas_non_delivery_ind_ies_container::nas_non_delivery_ind_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -57203,33 +57051,33 @@ SRSASN_CODE nas_non_delivery_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 26: nof_mandatory_ies--; - nas_pdu.id = c.id; - nas_pdu.crit = c.crit; - nas_pdu.value = c.value.nas_pdu(); + nas_pdu.id = c.id(); + nas_pdu.crit = c.crit(); + nas_pdu.value = c.value().nas_pdu(); break; case 2: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -57277,7 +57125,7 @@ void nas_non_delivery_ind_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; overload_start_ies_container::overload_start_ies_container() : overload_resp(101, crit_e::reject), gummei_list(154, crit_e::ignore), traffic_load_reduction_ind(161, crit_e::ignore) @@ -57309,27 +57157,27 @@ SRSASN_CODE overload_start_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 101: nof_mandatory_ies--; - overload_resp.id = c.id; - overload_resp.crit = c.crit; - overload_resp.value = c.value.overload_resp(); + overload_resp.id = c.id(); + overload_resp.crit = c.crit(); + overload_resp.value = c.value().overload_resp(); break; case 154: gummei_list_present = true; - gummei_list.id = c.id; - gummei_list.crit = c.crit; - gummei_list.value = c.value.gummei_list(); + gummei_list.id = c.id(); + gummei_list.crit = c.crit(); + gummei_list.value = c.value().gummei_list(); break; case 161: traffic_load_reduction_ind_present = true; - traffic_load_reduction_ind.id = c.id; - traffic_load_reduction_ind.crit = c.crit; - traffic_load_reduction_ind.value = c.value.traffic_load_reduction_ind(); + traffic_load_reduction_ind.id = c.id(); + traffic_load_reduction_ind.crit = c.crit(); + traffic_load_reduction_ind.value = c.value().traffic_load_reduction_ind(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -57401,7 +57249,7 @@ void overload_stop_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; pws_fail_ind_ies_container::pws_fail_ind_ies_container() : pw_sfailed_ecgi_list(222, crit_e::reject), global_enb_id(59, crit_e::reject) @@ -57426,21 +57274,21 @@ SRSASN_CODE pws_fail_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 222: nof_mandatory_ies--; - pw_sfailed_ecgi_list.id = c.id; - pw_sfailed_ecgi_list.crit = c.crit; - pw_sfailed_ecgi_list.value = c.value.pw_sfailed_ecgi_list(); + pw_sfailed_ecgi_list.id = c.id(); + pw_sfailed_ecgi_list.crit = c.crit(); + pw_sfailed_ecgi_list.value = c.value().pw_sfailed_ecgi_list(); break; case 59: nof_mandatory_ies--; - global_enb_id.id = c.id; - global_enb_id.crit = c.crit; - global_enb_id.value = c.value.global_enb_id(); + global_enb_id.id = c.id(); + global_enb_id.crit = c.crit(); + global_enb_id.value = c.value().global_enb_id(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -57484,7 +57332,7 @@ void pws_fail_ind_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; pws_restart_ind_ies_container::pws_restart_ind_ies_container() : ecgi_list_for_restart(182, crit_e::reject), @@ -57517,33 +57365,33 @@ SRSASN_CODE pws_restart_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 182: nof_mandatory_ies--; - ecgi_list_for_restart.id = c.id; - ecgi_list_for_restart.crit = c.crit; - ecgi_list_for_restart.value = c.value.ecgi_list_for_restart(); + ecgi_list_for_restart.id = c.id(); + ecgi_list_for_restart.crit = c.crit(); + ecgi_list_for_restart.value = c.value().ecgi_list_for_restart(); break; case 59: nof_mandatory_ies--; - global_enb_id.id = c.id; - global_enb_id.crit = c.crit; - global_enb_id.value = c.value.global_enb_id(); + global_enb_id.id = c.id(); + global_enb_id.crit = c.crit(); + global_enb_id.value = c.value().global_enb_id(); break; case 188: nof_mandatory_ies--; - tai_list_for_restart.id = c.id; - tai_list_for_restart.crit = c.crit; - tai_list_for_restart.value = c.value.tai_list_for_restart(); + tai_list_for_restart.id = c.id(); + tai_list_for_restart.crit = c.crit(); + tai_list_for_restart.value = c.value().tai_list_for_restart(); break; case 190: emergency_area_id_list_for_restart_present = true; - emergency_area_id_list_for_restart.id = c.id; - emergency_area_id_list_for_restart.crit = c.crit; - emergency_area_id_list_for_restart.value = c.value.emergency_area_id_list_for_restart(); + emergency_area_id_list_for_restart.id = c.id(); + emergency_area_id_list_for_restart.crit = c.crit(); + emergency_area_id_list_for_restart.value = c.value().emergency_area_id_list_for_restart(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -57593,7 +57441,7 @@ void pws_restart_ind_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; paging_ies_container::paging_ies_container() : ue_id_idx_value(80, crit_e::ignore), @@ -57678,99 +57526,99 @@ SRSASN_CODE paging_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 80: nof_mandatory_ies--; - ue_id_idx_value.id = c.id; - ue_id_idx_value.crit = c.crit; - ue_id_idx_value.value = c.value.ue_id_idx_value(); + ue_id_idx_value.id = c.id(); + ue_id_idx_value.crit = c.crit(); + ue_id_idx_value.value = c.value().ue_id_idx_value(); break; case 43: nof_mandatory_ies--; - ue_paging_id.id = c.id; - ue_paging_id.crit = c.crit; - ue_paging_id.value = c.value.ue_paging_id(); + ue_paging_id.id = c.id(); + ue_paging_id.crit = c.crit(); + ue_paging_id.value = c.value().ue_paging_id(); break; case 44: paging_drx_present = true; - paging_drx.id = c.id; - paging_drx.crit = c.crit; - paging_drx.value = c.value.paging_drx(); + paging_drx.id = c.id(); + paging_drx.crit = c.crit(); + paging_drx.value = c.value().paging_drx(); break; case 109: nof_mandatory_ies--; - cn_domain.id = c.id; - cn_domain.crit = c.crit; - cn_domain.value = c.value.cn_domain(); + cn_domain.id = c.id(); + cn_domain.crit = c.crit(); + cn_domain.value = c.value().cn_domain(); break; case 46: nof_mandatory_ies--; - tai_list.id = c.id; - tai_list.crit = c.crit; - tai_list.value = c.value.tai_list(); + tai_list.id = c.id(); + tai_list.crit = c.crit(); + tai_list.value = c.value().tai_list(); break; case 128: csg_id_list_present = true; - csg_id_list.id = c.id; - csg_id_list.crit = c.crit; - csg_id_list.value = c.value.csg_id_list(); + csg_id_list.id = c.id(); + csg_id_list.crit = c.crit(); + csg_id_list.value = c.value().csg_id_list(); break; case 151: paging_prio_present = true; - paging_prio.id = c.id; - paging_prio.crit = c.crit; - paging_prio.value = c.value.paging_prio(); + paging_prio.id = c.id(); + paging_prio.crit = c.crit(); + paging_prio.value = c.value().paging_prio(); break; case 198: ue_radio_cap_for_paging_present = true; - ue_radio_cap_for_paging.id = c.id; - ue_radio_cap_for_paging.crit = c.crit; - ue_radio_cap_for_paging.value = c.value.ue_radio_cap_for_paging(); + ue_radio_cap_for_paging.id = c.id(); + ue_radio_cap_for_paging.crit = c.crit(); + ue_radio_cap_for_paging.value = c.value().ue_radio_cap_for_paging(); break; case 211: assist_data_for_paging_present = true; - assist_data_for_paging.id = c.id; - assist_data_for_paging.crit = c.crit; - assist_data_for_paging.value = c.value.assist_data_for_paging(); + assist_data_for_paging.id = c.id(); + assist_data_for_paging.crit = c.crit(); + assist_data_for_paging.value = c.value().assist_data_for_paging(); break; case 227: paging_e_drx_info_present = true; - paging_e_drx_info.id = c.id; - paging_e_drx_info.crit = c.crit; - paging_e_drx_info.value = c.value.paging_e_drx_info(); + paging_e_drx_info.id = c.id(); + paging_e_drx_info.crit = c.crit(); + paging_e_drx_info.value = c.value().paging_e_drx_info(); break; case 231: extended_ue_id_idx_value_present = true; - extended_ue_id_idx_value.id = c.id; - extended_ue_id_idx_value.crit = c.crit; - extended_ue_id_idx_value.value = c.value.extended_ue_id_idx_value(); + extended_ue_id_idx_value.id = c.id(); + extended_ue_id_idx_value.crit = c.crit(); + extended_ue_id_idx_value.value = c.value().extended_ue_id_idx_value(); break; case 239: nb_io_t_paging_e_drx_info_present = true; - nb_io_t_paging_e_drx_info.id = c.id; - nb_io_t_paging_e_drx_info.crit = c.crit; - nb_io_t_paging_e_drx_info.value = c.value.nb_io_t_paging_e_drx_info(); + nb_io_t_paging_e_drx_info.id = c.id(); + nb_io_t_paging_e_drx_info.crit = c.crit(); + nb_io_t_paging_e_drx_info.value = c.value().nb_io_t_paging_e_drx_info(); break; case 244: nb_io_t_ue_id_idx_value_present = true; - nb_io_t_ue_id_idx_value.id = c.id; - nb_io_t_ue_id_idx_value.crit = c.crit; - nb_io_t_ue_id_idx_value.value = c.value.nb_io_t_ue_id_idx_value(); + nb_io_t_ue_id_idx_value.id = c.id(); + nb_io_t_ue_id_idx_value.crit = c.crit(); + nb_io_t_ue_id_idx_value.value = c.value().nb_io_t_ue_id_idx_value(); break; case 251: enhanced_coverage_restricted_present = true; - enhanced_coverage_restricted.id = c.id; - enhanced_coverage_restricted.crit = c.crit; - enhanced_coverage_restricted.value = c.value.enhanced_coverage_restricted(); + enhanced_coverage_restricted.id = c.id(); + enhanced_coverage_restricted.crit = c.crit(); + enhanced_coverage_restricted.value = c.value().enhanced_coverage_restricted(); break; case 271: ce_mode_brestricted_present = true; - ce_mode_brestricted.id = c.id; - ce_mode_brestricted.crit = c.crit; - ce_mode_brestricted.value = c.value.ce_mode_brestricted(); + ce_mode_brestricted.id = c.id(); + ce_mode_brestricted.crit = c.crit(); + ce_mode_brestricted.value = c.value().ce_mode_brestricted(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -57862,7 +57710,7 @@ void paging_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; path_switch_request_ies_container::path_switch_request_ies_container() : enb_ue_s1ap_id(8, crit_e::reject), @@ -57941,99 +57789,99 @@ SRSASN_CODE path_switch_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 22: nof_mandatory_ies--; - erab_to_be_switched_dl_list.id = c.id; - erab_to_be_switched_dl_list.crit = c.crit; - erab_to_be_switched_dl_list.value = c.value.erab_to_be_switched_dl_list(); + erab_to_be_switched_dl_list.id = c.id(); + erab_to_be_switched_dl_list.crit = c.crit(); + erab_to_be_switched_dl_list.value = c.value().erab_to_be_switched_dl_list(); break; case 88: nof_mandatory_ies--; - source_mme_ue_s1ap_id.id = c.id; - source_mme_ue_s1ap_id.crit = c.crit; - source_mme_ue_s1ap_id.value = c.value.source_mme_ue_s1ap_id(); + source_mme_ue_s1ap_id.id = c.id(); + source_mme_ue_s1ap_id.crit = c.crit(); + source_mme_ue_s1ap_id.value = c.value().source_mme_ue_s1ap_id(); break; case 100: nof_mandatory_ies--; - eutran_cgi.id = c.id; - eutran_cgi.crit = c.crit; - eutran_cgi.value = c.value.eutran_cgi(); + eutran_cgi.id = c.id(); + eutran_cgi.crit = c.crit(); + eutran_cgi.value = c.value().eutran_cgi(); break; case 67: nof_mandatory_ies--; - tai.id = c.id; - tai.crit = c.crit; - tai.value = c.value.tai(); + tai.id = c.id(); + tai.crit = c.crit(); + tai.value = c.value().tai(); break; case 107: nof_mandatory_ies--; - ue_security_cap.id = c.id; - ue_security_cap.crit = c.crit; - ue_security_cap.value = c.value.ue_security_cap(); + ue_security_cap.id = c.id(); + ue_security_cap.crit = c.crit(); + ue_security_cap.value = c.value().ue_security_cap(); break; case 127: csg_id_present = true; - csg_id.id = c.id; - csg_id.crit = c.crit; - csg_id.value = c.value.csg_id(); + csg_id.id = c.id(); + csg_id.crit = c.crit(); + csg_id.value = c.value().csg_id(); break; case 145: cell_access_mode_present = true; - cell_access_mode.id = c.id; - cell_access_mode.crit = c.crit; - cell_access_mode.value = c.value.cell_access_mode(); + cell_access_mode.id = c.id(); + cell_access_mode.crit = c.crit(); + cell_access_mode.value = c.value().cell_access_mode(); break; case 157: source_mme_gummei_present = true; - source_mme_gummei.id = c.id; - source_mme_gummei.crit = c.crit; - source_mme_gummei.value = c.value.source_mme_gummei(); + source_mme_gummei.id = c.id(); + source_mme_gummei.crit = c.crit(); + source_mme_gummei.value = c.value().source_mme_gummei(); break; case 146: csg_membership_status_present = true; - csg_membership_status.id = c.id; - csg_membership_status.crit = c.crit; - csg_membership_status.value = c.value.csg_membership_status(); + csg_membership_status.id = c.id(); + csg_membership_status.crit = c.crit(); + csg_membership_status.value = c.value().csg_membership_status(); break; case 176: tunnel_info_for_bbf_present = true; - tunnel_info_for_bbf.id = c.id; - tunnel_info_for_bbf.crit = c.crit; - tunnel_info_for_bbf.value = c.value.tunnel_info_for_bbf(); + tunnel_info_for_bbf.id = c.id(); + tunnel_info_for_bbf.crit = c.crit(); + tunnel_info_for_bbf.value = c.value().tunnel_info_for_bbf(); break; case 186: lhn_id_present = true; - lhn_id.id = c.id; - lhn_id.crit = c.crit; - lhn_id.value = c.value.lhn_id(); + lhn_id.id = c.id(); + lhn_id.crit = c.crit(); + lhn_id.value = c.value().lhn_id(); break; case 245: rrc_resume_cause_present = true; - rrc_resume_cause.id = c.id; - rrc_resume_cause.crit = c.crit; - rrc_resume_cause.value = c.value.rrc_resume_cause(); + rrc_resume_cause.id = c.id(); + rrc_resume_cause.crit = c.crit(); + rrc_resume_cause.value = c.value().rrc_resume_cause(); break; case 269: nrue_security_cap_present = true; - nrue_security_cap.id = c.id; - nrue_security_cap.crit = c.crit; - nrue_security_cap.value = c.value.nrue_security_cap(); + nrue_security_cap.id = c.id(); + nrue_security_cap.crit = c.crit(); + nrue_security_cap.value = c.value().nrue_security_cap(); break; case 288: ps_cell_info_present = true; - ps_cell_info.id = c.id; - ps_cell_info.crit = c.crit; - ps_cell_info.value = c.value.ps_cell_info(); + ps_cell_info.id = c.id(); + ps_cell_info.crit = c.crit(); + ps_cell_info.value = c.value().ps_cell_info(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -58121,7 +57969,7 @@ void path_switch_request_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; path_switch_request_ack_ies_container::path_switch_request_ack_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), @@ -58239,135 +58087,135 @@ SRSASN_CODE path_switch_request_ack_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 66: ueaggregate_maximum_bitrate_present = true; - ueaggregate_maximum_bitrate.id = c.id; - ueaggregate_maximum_bitrate.crit = c.crit; - ueaggregate_maximum_bitrate.value = c.value.ueaggregate_maximum_bitrate(); + ueaggregate_maximum_bitrate.id = c.id(); + ueaggregate_maximum_bitrate.crit = c.crit(); + ueaggregate_maximum_bitrate.value = c.value().ueaggregate_maximum_bitrate(); break; case 95: erab_to_be_switched_ul_list_present = true; - erab_to_be_switched_ul_list.id = c.id; - erab_to_be_switched_ul_list.crit = c.crit; - erab_to_be_switched_ul_list.value = c.value.erab_to_be_switched_ul_list(); + erab_to_be_switched_ul_list.id = c.id(); + erab_to_be_switched_ul_list.crit = c.crit(); + erab_to_be_switched_ul_list.value = c.value().erab_to_be_switched_ul_list(); break; case 33: erab_to_be_released_list_present = true; - erab_to_be_released_list.id = c.id; - erab_to_be_released_list.crit = c.crit; - erab_to_be_released_list.value = c.value.erab_to_be_released_list(); + erab_to_be_released_list.id = c.id(); + erab_to_be_released_list.crit = c.crit(); + erab_to_be_released_list.value = c.value().erab_to_be_released_list(); break; case 40: nof_mandatory_ies--; - security_context.id = c.id; - security_context.crit = c.crit; - security_context.value = c.value.security_context(); + security_context.id = c.id(); + security_context.crit = c.crit(); + security_context.value = c.value().security_context(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; case 158: mme_ue_s1ap_id_minus2_present = true; - mme_ue_s1ap_id_minus2.id = c.id; - mme_ue_s1ap_id_minus2.crit = c.crit; - mme_ue_s1ap_id_minus2.value = c.value.mme_ue_s1ap_id_minus2(); + mme_ue_s1ap_id_minus2.id = c.id(); + mme_ue_s1ap_id_minus2.crit = c.crit(); + mme_ue_s1ap_id_minus2.value = c.value().mme_ue_s1ap_id_minus2(); break; case 146: csg_membership_status_present = true; - csg_membership_status.id = c.id; - csg_membership_status.crit = c.crit; - csg_membership_status.value = c.value.csg_membership_status(); + csg_membership_status.id = c.id(); + csg_membership_status.crit = c.crit(); + csg_membership_status.value = c.value().csg_membership_status(); break; case 195: pro_se_authorized_present = true; - pro_se_authorized.id = c.id; - pro_se_authorized.crit = c.crit; - pro_se_authorized.value = c.value.pro_se_authorized(); + pro_se_authorized.id = c.id(); + pro_se_authorized.crit = c.crit(); + pro_se_authorized.value = c.value().pro_se_authorized(); break; case 241: ueuser_plane_cio_tsupport_ind_present = true; - ueuser_plane_cio_tsupport_ind.id = c.id; - ueuser_plane_cio_tsupport_ind.crit = c.crit; - ueuser_plane_cio_tsupport_ind.value = c.value.ueuser_plane_cio_tsupport_ind(); + ueuser_plane_cio_tsupport_ind.id = c.id(); + ueuser_plane_cio_tsupport_ind.crit = c.crit(); + ueuser_plane_cio_tsupport_ind.value = c.value().ueuser_plane_cio_tsupport_ind(); break; case 240: v2xservices_authorized_present = true; - v2xservices_authorized.id = c.id; - v2xservices_authorized.crit = c.crit; - v2xservices_authorized.value = c.value.v2xservices_authorized(); + v2xservices_authorized.id = c.id(); + v2xservices_authorized.crit = c.crit(); + v2xservices_authorized.value = c.value().v2xservices_authorized(); break; case 248: ue_sidelink_aggregate_maximum_bitrate_present = true; - ue_sidelink_aggregate_maximum_bitrate.id = c.id; - ue_sidelink_aggregate_maximum_bitrate.crit = c.crit; - ue_sidelink_aggregate_maximum_bitrate.value = c.value.ue_sidelink_aggregate_maximum_bitrate(); + ue_sidelink_aggregate_maximum_bitrate.id = c.id(); + ue_sidelink_aggregate_maximum_bitrate.crit = c.crit(); + ue_sidelink_aggregate_maximum_bitrate.value = c.value().ue_sidelink_aggregate_maximum_bitrate(); break; case 251: enhanced_coverage_restricted_present = true; - enhanced_coverage_restricted.id = c.id; - enhanced_coverage_restricted.crit = c.crit; - enhanced_coverage_restricted.value = c.value.enhanced_coverage_restricted(); + enhanced_coverage_restricted.id = c.id(); + enhanced_coverage_restricted.crit = c.crit(); + enhanced_coverage_restricted.value = c.value().enhanced_coverage_restricted(); break; case 269: nrue_security_cap_present = true; - nrue_security_cap.id = c.id; - nrue_security_cap.crit = c.crit; - nrue_security_cap.value = c.value.nrue_security_cap(); + nrue_security_cap.id = c.id(); + nrue_security_cap.crit = c.crit(); + nrue_security_cap.value = c.value().nrue_security_cap(); break; case 271: ce_mode_brestricted_present = true; - ce_mode_brestricted.id = c.id; - ce_mode_brestricted.crit = c.crit; - ce_mode_brestricted.value = c.value.ce_mode_brestricted(); + ce_mode_brestricted.id = c.id(); + ce_mode_brestricted.crit = c.crit(); + ce_mode_brestricted.value = c.value().ce_mode_brestricted(); break; case 277: aerial_uesubscription_info_present = true; - aerial_uesubscription_info.id = c.id; - aerial_uesubscription_info.crit = c.crit; - aerial_uesubscription_info.value = c.value.aerial_uesubscription_info(); + aerial_uesubscription_info.id = c.id(); + aerial_uesubscription_info.crit = c.crit(); + aerial_uesubscription_info.value = c.value().aerial_uesubscription_info(); break; case 283: pending_data_ind_present = true; - pending_data_ind.id = c.id; - pending_data_ind.crit = c.crit; - pending_data_ind.value = c.value.pending_data_ind(); + pending_data_ind.id = c.id(); + pending_data_ind.crit = c.crit(); + pending_data_ind.value = c.value().pending_data_ind(); break; case 278: subscription_based_ue_differentiation_info_present = true; - subscription_based_ue_differentiation_info.id = c.id; - subscription_based_ue_differentiation_info.crit = c.crit; - subscription_based_ue_differentiation_info.value = c.value.subscription_based_ue_differentiation_info(); + subscription_based_ue_differentiation_info.id = c.id(); + subscription_based_ue_differentiation_info.crit = c.crit(); + subscription_based_ue_differentiation_info.value = c.value().subscription_based_ue_differentiation_info(); break; case 41: ho_restrict_list_present = true; - ho_restrict_list.id = c.id; - ho_restrict_list.crit = c.crit; - ho_restrict_list.value = c.value.ho_restrict_list(); + ho_restrict_list.id = c.id(); + ho_restrict_list.crit = c.crit(); + ho_restrict_list.value = c.value().ho_restrict_list(); break; case 299: add_rrm_prio_idx_present = true; - add_rrm_prio_idx.id = c.id; - add_rrm_prio_idx.crit = c.crit; - add_rrm_prio_idx.value = c.value.add_rrm_prio_idx(); + add_rrm_prio_idx.id = c.id(); + add_rrm_prio_idx.crit = c.crit(); + add_rrm_prio_idx.value = c.value().add_rrm_prio_idx(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -58485,7 +58333,7 @@ void path_switch_request_ack_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; path_switch_request_fail_ies_container::path_switch_request_fail_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), @@ -58518,33 +58366,33 @@ SRSASN_CODE path_switch_request_fail_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 2: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -58684,7 +58532,7 @@ void private_msg_s::to_json(json_writer& j) const j.end_array(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; reroute_nas_request_ies_container::reroute_nas_request_ies_container() : enb_ue_s1ap_id(8, crit_e::reject), @@ -58727,45 +58575,45 @@ SRSASN_CODE reroute_nas_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 0: mme_ue_s1ap_id_present = true; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 225: nof_mandatory_ies--; - s1_msg.id = c.id; - s1_msg.crit = c.crit; - s1_msg.value = c.value.s1_msg(); + s1_msg.id = c.id(); + s1_msg.crit = c.crit(); + s1_msg.value = c.value().s1_msg(); break; case 223: nof_mandatory_ies--; - mme_group_id.id = c.id; - mme_group_id.crit = c.crit; - mme_group_id.value = c.value.mme_group_id(); + mme_group_id.id = c.id(); + mme_group_id.crit = c.crit(); + mme_group_id.value = c.value().mme_group_id(); break; case 224: add_guti_present = true; - add_guti.id = c.id; - add_guti.crit = c.crit; - add_guti.value = c.value.add_guti(); + add_guti.id = c.id(); + add_guti.crit = c.crit(); + add_guti.value = c.value().add_guti(); break; case 230: ue_usage_type_present = true; - ue_usage_type.id = c.id; - ue_usage_type.crit = c.crit; - ue_usage_type.value = c.value.ue_usage_type(); + ue_usage_type.id = c.id(); + ue_usage_type.crit = c.crit(); + ue_usage_type.value = c.value().ue_usage_type(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -58823,7 +58671,7 @@ void reroute_nas_request_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; reset_ies_container::reset_ies_container() : cause(2, crit_e::ignore), reset_type(92, crit_e::reject) {} SRSASN_CODE reset_ies_container::pack(bit_ref& bref) const @@ -58846,21 +58694,21 @@ SRSASN_CODE reset_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 2: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 92: nof_mandatory_ies--; - reset_type.id = c.id; - reset_type.crit = c.crit; - reset_type.value = c.value.reset_type(); + reset_type.id = c.id(); + reset_type.crit = c.crit(); + reset_type.value = c.value().reset_type(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -58904,7 +58752,7 @@ void reset_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; reset_ack_ies_container::reset_ack_ies_container() : ue_associated_lc_s1_conn_list_res_ack(93, crit_e::ignore), crit_diagnostics(58, crit_e::ignore) @@ -58933,21 +58781,21 @@ SRSASN_CODE reset_ack_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 93: ue_associated_lc_s1_conn_list_res_ack_present = true; - ue_associated_lc_s1_conn_list_res_ack.id = c.id; - ue_associated_lc_s1_conn_list_res_ack.crit = c.crit; - ue_associated_lc_s1_conn_list_res_ack.value = c.value.ue_associated_lc_s1_conn_list_res_ack(); + ue_associated_lc_s1_conn_list_res_ack.id = c.id(); + ue_associated_lc_s1_conn_list_res_ack.crit = c.crit(); + ue_associated_lc_s1_conn_list_res_ack.value = c.value().ue_associated_lc_s1_conn_list_res_ack(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -59013,7 +58861,7 @@ void retrieve_ue_info_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; s1_setup_fail_ies_container::s1_setup_fail_ies_container() : cause(2, crit_e::ignore), time_to_wait(65, crit_e::ignore), crit_diagnostics(58, crit_e::ignore) @@ -59045,27 +58893,27 @@ SRSASN_CODE s1_setup_fail_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 2: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 65: time_to_wait_present = true; - time_to_wait.id = c.id; - time_to_wait.crit = c.crit; - time_to_wait.value = c.value.time_to_wait(); + time_to_wait.id = c.id(); + time_to_wait.crit = c.crit(); + time_to_wait.value = c.value().time_to_wait(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -59115,7 +58963,7 @@ void s1_setup_fail_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; s1_setup_request_ies_container::s1_setup_request_ies_container() : global_enb_id(59, crit_e::reject), @@ -59168,57 +59016,57 @@ SRSASN_CODE s1_setup_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 59: nof_mandatory_ies--; - global_enb_id.id = c.id; - global_enb_id.crit = c.crit; - global_enb_id.value = c.value.global_enb_id(); + global_enb_id.id = c.id(); + global_enb_id.crit = c.crit(); + global_enb_id.value = c.value().global_enb_id(); break; case 60: enbname_present = true; - enbname.id = c.id; - enbname.crit = c.crit; - enbname.value = c.value.enbname(); + enbname.id = c.id(); + enbname.crit = c.crit(); + enbname.value = c.value().enbname(); break; case 64: nof_mandatory_ies--; - supported_tas.id = c.id; - supported_tas.crit = c.crit; - supported_tas.value = c.value.supported_tas(); + supported_tas.id = c.id(); + supported_tas.crit = c.crit(); + supported_tas.value = c.value().supported_tas(); break; case 137: nof_mandatory_ies--; - default_paging_drx.id = c.id; - default_paging_drx.crit = c.crit; - default_paging_drx.value = c.value.default_paging_drx(); + default_paging_drx.id = c.id(); + default_paging_drx.crit = c.crit(); + default_paging_drx.value = c.value().default_paging_drx(); break; case 128: csg_id_list_present = true; - csg_id_list.id = c.id; - csg_id_list.crit = c.crit; - csg_id_list.value = c.value.csg_id_list(); + csg_id_list.id = c.id(); + csg_id_list.crit = c.crit(); + csg_id_list.value = c.value().csg_id_list(); break; case 228: ue_retention_info_present = true; - ue_retention_info.id = c.id; - ue_retention_info.crit = c.crit; - ue_retention_info.value = c.value.ue_retention_info(); + ue_retention_info.id = c.id(); + ue_retention_info.crit = c.crit(); + ue_retention_info.value = c.value().ue_retention_info(); break; case 234: nb_io_t_default_paging_drx_present = true; - nb_io_t_default_paging_drx.id = c.id; - nb_io_t_default_paging_drx.crit = c.crit; - nb_io_t_default_paging_drx.value = c.value.nb_io_t_default_paging_drx(); + nb_io_t_default_paging_drx.id = c.id(); + nb_io_t_default_paging_drx.crit = c.crit(); + nb_io_t_default_paging_drx.value = c.value().nb_io_t_default_paging_drx(); break; case 291: connectedeng_nb_list_present = true; - connectedeng_nb_list.id = c.id; - connectedeng_nb_list.crit = c.crit; - connectedeng_nb_list.value = c.value.connectedeng_nb_list(); + connectedeng_nb_list.id = c.id(); + connectedeng_nb_list.crit = c.crit(); + connectedeng_nb_list.value = c.value().connectedeng_nb_list(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -59284,7 +59132,7 @@ void s1_setup_request_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; s1_setup_resp_ies_container::s1_setup_resp_ies_container() : mm_ename(61, crit_e::ignore), @@ -59335,51 +59183,51 @@ SRSASN_CODE s1_setup_resp_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 61: mm_ename_present = true; - mm_ename.id = c.id; - mm_ename.crit = c.crit; - mm_ename.value = c.value.mm_ename(); + mm_ename.id = c.id(); + mm_ename.crit = c.crit(); + mm_ename.value = c.value().mm_ename(); break; case 105: nof_mandatory_ies--; - served_gummeis.id = c.id; - served_gummeis.crit = c.crit; - served_gummeis.value = c.value.served_gummeis(); + served_gummeis.id = c.id(); + served_gummeis.crit = c.crit(); + served_gummeis.value = c.value().served_gummeis(); break; case 87: nof_mandatory_ies--; - relative_mme_capacity.id = c.id; - relative_mme_capacity.crit = c.crit; - relative_mme_capacity.value = c.value.relative_mme_capacity(); + relative_mme_capacity.id = c.id(); + relative_mme_capacity.crit = c.crit(); + relative_mme_capacity.value = c.value().relative_mme_capacity(); break; case 163: mme_relay_support_ind_present = true; - mme_relay_support_ind.id = c.id; - mme_relay_support_ind.crit = c.crit; - mme_relay_support_ind.value = c.value.mme_relay_support_ind(); + mme_relay_support_ind.id = c.id(); + mme_relay_support_ind.crit = c.crit(); + mme_relay_support_ind.value = c.value().mme_relay_support_ind(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; case 228: ue_retention_info_present = true; - ue_retention_info.id = c.id; - ue_retention_info.crit = c.crit; - ue_retention_info.value = c.value.ue_retention_info(); + ue_retention_info.id = c.id(); + ue_retention_info.crit = c.crit(); + ue_retention_info.value = c.value().ue_retention_info(); break; case 247: served_dcns_present = true; - served_dcns.id = c.id; - served_dcns.crit = c.crit; - served_dcns.value = c.value.served_dcns(); + served_dcns.id = c.id(); + served_dcns.crit = c.crit(); + served_dcns.value = c.value().served_dcns(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -59443,7 +59291,7 @@ void s1_setup_resp_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; secondary_rat_data_usage_report_ies_container::secondary_rat_data_usage_report_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), @@ -59486,45 +59334,45 @@ SRSASN_CODE secondary_rat_data_usage_report_ies_container::unpack(cbit_ref& bref for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 264: nof_mandatory_ies--; - secondary_rat_data_usage_report_list.id = c.id; - secondary_rat_data_usage_report_list.crit = c.crit; - secondary_rat_data_usage_report_list.value = c.value.secondary_rat_data_usage_report_list(); + secondary_rat_data_usage_report_list.id = c.id(); + secondary_rat_data_usage_report_list.crit = c.crit(); + secondary_rat_data_usage_report_list.value = c.value().secondary_rat_data_usage_report_list(); break; case 266: ho_flag_present = true; - ho_flag.id = c.id; - ho_flag.crit = c.crit; - ho_flag.value = c.value.ho_flag(); + ho_flag.id = c.id(); + ho_flag.crit = c.crit(); + ho_flag.value = c.value().ho_flag(); break; case 189: user_location_info_present = true; - user_location_info.id = c.id; - user_location_info.crit = c.crit; - user_location_info.value = c.value.user_location_info(); + user_location_info.id = c.id(); + user_location_info.crit = c.crit(); + user_location_info.value = c.value().user_location_info(); break; case 297: time_since_secondary_node_release_present = true; - time_since_secondary_node_release.id = c.id; - time_since_secondary_node_release.crit = c.crit; - time_since_secondary_node_release.value = c.value.time_since_secondary_node_release(); + time_since_secondary_node_release.id = c.id(); + time_since_secondary_node_release.crit = c.crit(); + time_since_secondary_node_release.value = c.value().time_since_secondary_node_release(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -59582,7 +59430,7 @@ void secondary_rat_data_usage_report_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; trace_fail_ind_ies_container::trace_fail_ind_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -59612,33 +59460,33 @@ SRSASN_CODE trace_fail_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 86: nof_mandatory_ies--; - e_utran_trace_id.id = c.id; - e_utran_trace_id.crit = c.crit; - e_utran_trace_id.value = c.value.e_utran_trace_id(); + e_utran_trace_id.id = c.id(); + e_utran_trace_id.crit = c.crit(); + e_utran_trace_id.value = c.value().e_utran_trace_id(); break; case 2: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -59686,7 +59534,7 @@ void trace_fail_ind_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; trace_start_ies_container::trace_start_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), enb_ue_s1ap_id(8, crit_e::reject), trace_activation(25, crit_e::ignore) @@ -59712,27 +59560,27 @@ SRSASN_CODE trace_start_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 25: nof_mandatory_ies--; - trace_activation.id = c.id; - trace_activation.crit = c.crit; - trace_activation.value = c.value.trace_activation(); + trace_activation.id = c.id(); + trace_activation.crit = c.crit(); + trace_activation.value = c.value().trace_activation(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -59778,7 +59626,7 @@ void trace_start_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_cap_info_ind_ies_container::ue_cap_info_ind_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -59821,45 +59669,45 @@ SRSASN_CODE ue_cap_info_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 74: nof_mandatory_ies--; - ue_radio_cap.id = c.id; - ue_radio_cap.crit = c.crit; - ue_radio_cap.value = c.value.ue_radio_cap(); + ue_radio_cap.id = c.id(); + ue_radio_cap.crit = c.crit(); + ue_radio_cap.value = c.value().ue_radio_cap(); break; case 198: ue_radio_cap_for_paging_present = true; - ue_radio_cap_for_paging.id = c.id; - ue_radio_cap_for_paging.crit = c.crit; - ue_radio_cap_for_paging.value = c.value.ue_radio_cap_for_paging(); + ue_radio_cap_for_paging.id = c.id(); + ue_radio_cap_for_paging.crit = c.crit(); + ue_radio_cap_for_paging.value = c.value().ue_radio_cap_for_paging(); break; case 263: ue_application_layer_meas_cap_present = true; - ue_application_layer_meas_cap.id = c.id; - ue_application_layer_meas_cap.crit = c.crit; - ue_application_layer_meas_cap.value = c.value.ue_application_layer_meas_cap(); + ue_application_layer_meas_cap.id = c.id(); + ue_application_layer_meas_cap.crit = c.crit(); + ue_application_layer_meas_cap.value = c.value().ue_application_layer_meas_cap(); break; case 272: lte_m_ind_present = true; - lte_m_ind.id = c.id; - lte_m_ind.crit = c.crit; - lte_m_ind.value = c.value.lte_m_ind(); + lte_m_ind.id = c.id(); + lte_m_ind.crit = c.crit(); + lte_m_ind.value = c.value().lte_m_ind(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -59917,7 +59765,7 @@ void ue_cap_info_ind_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_context_mod_confirm_ies_container::ue_context_mod_confirm_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), @@ -59953,33 +59801,33 @@ SRSASN_CODE ue_context_mod_confirm_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 146: csg_membership_status_present = true; - csg_membership_status.id = c.id; - csg_membership_status.crit = c.crit; - csg_membership_status.value = c.value.csg_membership_status(); + csg_membership_status.id = c.id(); + csg_membership_status.crit = c.crit(); + csg_membership_status.value = c.value().csg_membership_status(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -60031,7 +59879,7 @@ void ue_context_mod_confirm_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_context_mod_fail_ies_container::ue_context_mod_fail_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), @@ -60064,33 +59912,33 @@ SRSASN_CODE ue_context_mod_fail_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 2: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -60140,7 +59988,7 @@ void ue_context_mod_fail_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_context_mod_ind_ies_container::ue_context_mod_ind_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), enb_ue_s1ap_id(8, crit_e::reject), csg_membership_info(226, crit_e::reject) @@ -60169,27 +60017,27 @@ SRSASN_CODE ue_context_mod_ind_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 226: csg_membership_info_present = true; - csg_membership_info.id = c.id; - csg_membership_info.crit = c.crit; - csg_membership_info.value = c.value.csg_membership_info(); + csg_membership_info.id = c.id(); + csg_membership_info.crit = c.crit(); + csg_membership_info.value = c.value().csg_membership_info(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -60237,7 +60085,7 @@ void ue_context_mod_ind_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_context_mod_request_ies_container::ue_context_mod_request_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -60343,117 +60191,117 @@ SRSASN_CODE ue_context_mod_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 73: security_key_present = true; - security_key.id = c.id; - security_key.crit = c.crit; - security_key.value = c.value.security_key(); + security_key.id = c.id(); + security_key.crit = c.crit(); + security_key.value = c.value().security_key(); break; case 106: subscriber_profile_idfor_rfp_present = true; - subscriber_profile_idfor_rfp.id = c.id; - subscriber_profile_idfor_rfp.crit = c.crit; - subscriber_profile_idfor_rfp.value = c.value.subscriber_profile_idfor_rfp(); + subscriber_profile_idfor_rfp.id = c.id(); + subscriber_profile_idfor_rfp.crit = c.crit(); + subscriber_profile_idfor_rfp.value = c.value().subscriber_profile_idfor_rfp(); break; case 66: ueaggregate_maximum_bitrate_present = true; - ueaggregate_maximum_bitrate.id = c.id; - ueaggregate_maximum_bitrate.crit = c.crit; - ueaggregate_maximum_bitrate.value = c.value.ueaggregate_maximum_bitrate(); + ueaggregate_maximum_bitrate.id = c.id(); + ueaggregate_maximum_bitrate.crit = c.crit(); + ueaggregate_maximum_bitrate.value = c.value().ueaggregate_maximum_bitrate(); break; case 108: cs_fallback_ind_present = true; - cs_fallback_ind.id = c.id; - cs_fallback_ind.crit = c.crit; - cs_fallback_ind.value = c.value.cs_fallback_ind(); + cs_fallback_ind.id = c.id(); + cs_fallback_ind.crit = c.crit(); + cs_fallback_ind.value = c.value().cs_fallback_ind(); break; case 107: ue_security_cap_present = true; - ue_security_cap.id = c.id; - ue_security_cap.crit = c.crit; - ue_security_cap.value = c.value.ue_security_cap(); + ue_security_cap.id = c.id(); + ue_security_cap.crit = c.crit(); + ue_security_cap.value = c.value().ue_security_cap(); break; case 146: csg_membership_status_present = true; - csg_membership_status.id = c.id; - csg_membership_status.crit = c.crit; - csg_membership_status.value = c.value.csg_membership_status(); + csg_membership_status.id = c.id(); + csg_membership_status.crit = c.crit(); + csg_membership_status.value = c.value().csg_membership_status(); break; case 159: registered_lai_present = true; - registered_lai.id = c.id; - registered_lai.crit = c.crit; - registered_lai.value = c.value.registered_lai(); + registered_lai.id = c.id(); + registered_lai.crit = c.crit(); + registered_lai.value = c.value().registered_lai(); break; case 187: add_cs_fallback_ind_present = true; - add_cs_fallback_ind.id = c.id; - add_cs_fallback_ind.crit = c.crit; - add_cs_fallback_ind.value = c.value.add_cs_fallback_ind(); + add_cs_fallback_ind.id = c.id(); + add_cs_fallback_ind.crit = c.crit(); + add_cs_fallback_ind.value = c.value().add_cs_fallback_ind(); break; case 195: pro_se_authorized_present = true; - pro_se_authorized.id = c.id; - pro_se_authorized.crit = c.crit; - pro_se_authorized.value = c.value.pro_se_authorized(); + pro_se_authorized.id = c.id(); + pro_se_authorized.crit = c.crit(); + pro_se_authorized.value = c.value().pro_se_authorized(); break; case 124: srvcc_operation_possible_present = true; - srvcc_operation_possible.id = c.id; - srvcc_operation_possible.crit = c.crit; - srvcc_operation_possible.value = c.value.srvcc_operation_possible(); + srvcc_operation_possible.id = c.id(); + srvcc_operation_possible.crit = c.crit(); + srvcc_operation_possible.value = c.value().srvcc_operation_possible(); break; case 243: srvcc_operation_not_possible_present = true; - srvcc_operation_not_possible.id = c.id; - srvcc_operation_not_possible.crit = c.crit; - srvcc_operation_not_possible.value = c.value.srvcc_operation_not_possible(); + srvcc_operation_not_possible.id = c.id(); + srvcc_operation_not_possible.crit = c.crit(); + srvcc_operation_not_possible.value = c.value().srvcc_operation_not_possible(); break; case 240: v2xservices_authorized_present = true; - v2xservices_authorized.id = c.id; - v2xservices_authorized.crit = c.crit; - v2xservices_authorized.value = c.value.v2xservices_authorized(); + v2xservices_authorized.id = c.id(); + v2xservices_authorized.crit = c.crit(); + v2xservices_authorized.value = c.value().v2xservices_authorized(); break; case 248: ue_sidelink_aggregate_maximum_bitrate_present = true; - ue_sidelink_aggregate_maximum_bitrate.id = c.id; - ue_sidelink_aggregate_maximum_bitrate.crit = c.crit; - ue_sidelink_aggregate_maximum_bitrate.value = c.value.ue_sidelink_aggregate_maximum_bitrate(); + ue_sidelink_aggregate_maximum_bitrate.id = c.id(); + ue_sidelink_aggregate_maximum_bitrate.crit = c.crit(); + ue_sidelink_aggregate_maximum_bitrate.value = c.value().ue_sidelink_aggregate_maximum_bitrate(); break; case 269: nrue_security_cap_present = true; - nrue_security_cap.id = c.id; - nrue_security_cap.crit = c.crit; - nrue_security_cap.value = c.value.nrue_security_cap(); + nrue_security_cap.id = c.id(); + nrue_security_cap.crit = c.crit(); + nrue_security_cap.value = c.value().nrue_security_cap(); break; case 277: aerial_uesubscription_info_present = true; - aerial_uesubscription_info.id = c.id; - aerial_uesubscription_info.crit = c.crit; - aerial_uesubscription_info.value = c.value.aerial_uesubscription_info(); + aerial_uesubscription_info.id = c.id(); + aerial_uesubscription_info.crit = c.crit(); + aerial_uesubscription_info.value = c.value().aerial_uesubscription_info(); break; case 299: add_rrm_prio_idx_present = true; - add_rrm_prio_idx.id = c.id; - add_rrm_prio_idx.crit = c.crit; - add_rrm_prio_idx.value = c.value.add_rrm_prio_idx(); + add_rrm_prio_idx.id = c.id(); + add_rrm_prio_idx.crit = c.crit(); + add_rrm_prio_idx.value = c.value().add_rrm_prio_idx(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -60561,7 +60409,7 @@ void ue_context_mod_request_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_context_mod_resp_ies_container::ue_context_mod_resp_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), enb_ue_s1ap_id(8, crit_e::ignore), crit_diagnostics(58, crit_e::ignore) @@ -60590,27 +60438,27 @@ SRSASN_CODE ue_context_mod_resp_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -60658,7 +60506,7 @@ void ue_context_mod_resp_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_context_release_cmd_ies_container::ue_context_release_cmd_ies_container() : ue_s1ap_ids(99, crit_e::reject), cause(2, crit_e::ignore) @@ -60683,21 +60531,21 @@ SRSASN_CODE ue_context_release_cmd_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 99: nof_mandatory_ies--; - ue_s1ap_ids.id = c.id; - ue_s1ap_ids.crit = c.crit; - ue_s1ap_ids.value = c.value.ue_s1ap_ids(); + ue_s1ap_ids.id = c.id(); + ue_s1ap_ids.crit = c.crit(); + ue_s1ap_ids.value = c.value().ue_s1ap_ids(); break; case 2: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -60741,7 +60589,7 @@ void ue_context_release_cmd_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_context_release_complete_ies_container::ue_context_release_complete_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), @@ -60797,57 +60645,57 @@ SRSASN_CODE ue_context_release_complete_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; case 189: user_location_info_present = true; - user_location_info.id = c.id; - user_location_info.crit = c.crit; - user_location_info.value = c.value.user_location_info(); + user_location_info.id = c.id(); + user_location_info.crit = c.crit(); + user_location_info.value = c.value().user_location_info(); break; case 213: info_on_recommended_cells_and_enbs_for_paging_present = true; - info_on_recommended_cells_and_enbs_for_paging.id = c.id; - info_on_recommended_cells_and_enbs_for_paging.crit = c.crit; - info_on_recommended_cells_and_enbs_for_paging.value = c.value.info_on_recommended_cells_and_enbs_for_paging(); + info_on_recommended_cells_and_enbs_for_paging.id = c.id(); + info_on_recommended_cells_and_enbs_for_paging.crit = c.crit(); + info_on_recommended_cells_and_enbs_for_paging.value = c.value().info_on_recommended_cells_and_enbs_for_paging(); break; case 212: cell_id_and_ce_level_for_ce_capable_ues_present = true; - cell_id_and_ce_level_for_ce_capable_ues.id = c.id; - cell_id_and_ce_level_for_ce_capable_ues.crit = c.crit; - cell_id_and_ce_level_for_ce_capable_ues.value = c.value.cell_id_and_ce_level_for_ce_capable_ues(); + cell_id_and_ce_level_for_ce_capable_ues.id = c.id(); + cell_id_and_ce_level_for_ce_capable_ues.crit = c.crit(); + cell_id_and_ce_level_for_ce_capable_ues.value = c.value().cell_id_and_ce_level_for_ce_capable_ues(); break; case 264: secondary_rat_data_usage_report_list_present = true; - secondary_rat_data_usage_report_list.id = c.id; - secondary_rat_data_usage_report_list.crit = c.crit; - secondary_rat_data_usage_report_list.value = c.value.secondary_rat_data_usage_report_list(); + secondary_rat_data_usage_report_list.id = c.id(); + secondary_rat_data_usage_report_list.crit = c.crit(); + secondary_rat_data_usage_report_list.value = c.value().secondary_rat_data_usage_report_list(); break; case 297: time_since_secondary_node_release_present = true; - time_since_secondary_node_release.id = c.id; - time_since_secondary_node_release.crit = c.crit; - time_since_secondary_node_release.value = c.value.time_since_secondary_node_release(); + time_since_secondary_node_release.id = c.id(); + time_since_secondary_node_release.crit = c.crit(); + time_since_secondary_node_release.value = c.value().time_since_secondary_node_release(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -60915,7 +60763,7 @@ void ue_context_release_complete_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_context_release_request_ies_container::ue_context_release_request_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -60953,39 +60801,39 @@ SRSASN_CODE ue_context_release_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 2: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 164: gw_context_release_ind_present = true; - gw_context_release_ind.id = c.id; - gw_context_release_ind.crit = c.crit; - gw_context_release_ind.value = c.value.gw_context_release_ind(); + gw_context_release_ind.id = c.id(); + gw_context_release_ind.crit = c.crit(); + gw_context_release_ind.value = c.value().gw_context_release_ind(); break; case 264: secondary_rat_data_usage_report_list_present = true; - secondary_rat_data_usage_report_list.id = c.id; - secondary_rat_data_usage_report_list.crit = c.crit; - secondary_rat_data_usage_report_list.value = c.value.secondary_rat_data_usage_report_list(); + secondary_rat_data_usage_report_list.id = c.id(); + secondary_rat_data_usage_report_list.crit = c.crit(); + secondary_rat_data_usage_report_list.value = c.value().secondary_rat_data_usage_report_list(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -61039,7 +60887,7 @@ void ue_context_release_request_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_context_resume_fail_ies_container::ue_context_resume_fail_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), @@ -61072,33 +60920,33 @@ SRSASN_CODE ue_context_resume_fail_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 2: nof_mandatory_ies--; - cause.id = c.id; - cause.crit = c.crit; - cause.value = c.value.cause(); + cause.id = c.id(); + cause.crit = c.crit(); + cause.value = c.value().cause(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -61148,7 +60996,7 @@ void ue_context_resume_fail_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_context_resume_request_ies_container::ue_context_resume_request_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -61184,33 +61032,33 @@ SRSASN_CODE ue_context_resume_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 235: erab_failed_to_resume_list_resume_req_present = true; - erab_failed_to_resume_list_resume_req.id = c.id; - erab_failed_to_resume_list_resume_req.crit = c.crit; - erab_failed_to_resume_list_resume_req.value = c.value.erab_failed_to_resume_list_resume_req(); + erab_failed_to_resume_list_resume_req.id = c.id(); + erab_failed_to_resume_list_resume_req.crit = c.crit(); + erab_failed_to_resume_list_resume_req.value = c.value().erab_failed_to_resume_list_resume_req(); break; case 245: rrc_resume_cause_present = true; - rrc_resume_cause.id = c.id; - rrc_resume_cause.crit = c.crit; - rrc_resume_cause.value = c.value.rrc_resume_cause(); + rrc_resume_cause.id = c.id(); + rrc_resume_cause.crit = c.crit(); + rrc_resume_cause.value = c.value().rrc_resume_cause(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -61262,7 +61110,7 @@ void ue_context_resume_request_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_context_resume_resp_ies_container::ue_context_resume_resp_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), @@ -61308,45 +61156,45 @@ SRSASN_CODE ue_context_resume_resp_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 237: erab_failed_to_resume_list_resume_res_present = true; - erab_failed_to_resume_list_resume_res.id = c.id; - erab_failed_to_resume_list_resume_res.crit = c.crit; - erab_failed_to_resume_list_resume_res.value = c.value.erab_failed_to_resume_list_resume_res(); + erab_failed_to_resume_list_resume_res.id = c.id(); + erab_failed_to_resume_list_resume_res.crit = c.crit(); + erab_failed_to_resume_list_resume_res.value = c.value().erab_failed_to_resume_list_resume_res(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; case 40: security_context_present = true; - security_context.id = c.id; - security_context.crit = c.crit; - security_context.value = c.value.security_context(); + security_context.id = c.id(); + security_context.crit = c.crit(); + security_context.value = c.value().security_context(); break; case 283: pending_data_ind_present = true; - pending_data_ind.id = c.id; - pending_data_ind.crit = c.crit; - pending_data_ind.value = c.value.pending_data_ind(); + pending_data_ind.id = c.id(); + pending_data_ind.crit = c.crit(); + pending_data_ind.value = c.value().pending_data_ind(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -61406,7 +61254,7 @@ void ue_context_resume_resp_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_context_suspend_request_ies_container::ue_context_suspend_request_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -61457,51 +61305,51 @@ SRSASN_CODE ue_context_suspend_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 213: info_on_recommended_cells_and_enbs_for_paging_present = true; - info_on_recommended_cells_and_enbs_for_paging.id = c.id; - info_on_recommended_cells_and_enbs_for_paging.crit = c.crit; - info_on_recommended_cells_and_enbs_for_paging.value = c.value.info_on_recommended_cells_and_enbs_for_paging(); + info_on_recommended_cells_and_enbs_for_paging.id = c.id(); + info_on_recommended_cells_and_enbs_for_paging.crit = c.crit(); + info_on_recommended_cells_and_enbs_for_paging.value = c.value().info_on_recommended_cells_and_enbs_for_paging(); break; case 212: cell_id_and_ce_level_for_ce_capable_ues_present = true; - cell_id_and_ce_level_for_ce_capable_ues.id = c.id; - cell_id_and_ce_level_for_ce_capable_ues.crit = c.crit; - cell_id_and_ce_level_for_ce_capable_ues.value = c.value.cell_id_and_ce_level_for_ce_capable_ues(); + cell_id_and_ce_level_for_ce_capable_ues.id = c.id(); + cell_id_and_ce_level_for_ce_capable_ues.crit = c.crit(); + cell_id_and_ce_level_for_ce_capable_ues.value = c.value().cell_id_and_ce_level_for_ce_capable_ues(); break; case 264: secondary_rat_data_usage_report_list_present = true; - secondary_rat_data_usage_report_list.id = c.id; - secondary_rat_data_usage_report_list.crit = c.crit; - secondary_rat_data_usage_report_list.value = c.value.secondary_rat_data_usage_report_list(); + secondary_rat_data_usage_report_list.id = c.id(); + secondary_rat_data_usage_report_list.crit = c.crit(); + secondary_rat_data_usage_report_list.value = c.value().secondary_rat_data_usage_report_list(); break; case 189: user_location_info_present = true; - user_location_info.id = c.id; - user_location_info.crit = c.crit; - user_location_info.value = c.value.user_location_info(); + user_location_info.id = c.id(); + user_location_info.crit = c.crit(); + user_location_info.value = c.value().user_location_info(); break; case 297: time_since_secondary_node_release_present = true; - time_since_secondary_node_release.id = c.id; - time_since_secondary_node_release.crit = c.crit; - time_since_secondary_node_release.value = c.value.time_since_secondary_node_release(); + time_since_secondary_node_release.id = c.id(); + time_since_secondary_node_release.crit = c.crit(); + time_since_secondary_node_release.value = c.value().time_since_secondary_node_release(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -61565,7 +61413,7 @@ void ue_context_suspend_request_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_context_suspend_resp_ies_container::ue_context_suspend_resp_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), @@ -61601,33 +61449,33 @@ SRSASN_CODE ue_context_suspend_resp_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; case 40: security_context_present = true; - security_context.id = c.id; - security_context.crit = c.crit; - security_context.value = c.value.security_context(); + security_context.id = c.id(); + security_context.crit = c.crit(); + security_context.value = c.value().security_context(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -61679,7 +61527,7 @@ void ue_context_suspend_resp_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_info_transfer_ies_container::ue_info_transfer_ies_container() : s_tmsi(96, crit_e::reject), @@ -61723,39 +61571,39 @@ SRSASN_CODE ue_info_transfer_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 96: nof_mandatory_ies--; - s_tmsi.id = c.id; - s_tmsi.crit = c.crit; - s_tmsi.value = c.value.s_tmsi(); + s_tmsi.id = c.id(); + s_tmsi.crit = c.crit(); + s_tmsi.value = c.value().s_tmsi(); break; case 252: ue_level_qos_params_present = true; - ue_level_qos_params.id = c.id; - ue_level_qos_params.crit = c.crit; - ue_level_qos_params.value = c.value.ue_level_qos_params(); + ue_level_qos_params.id = c.id(); + ue_level_qos_params.crit = c.crit(); + ue_level_qos_params.value = c.value().ue_level_qos_params(); break; case 74: ue_radio_cap_present = true; - ue_radio_cap.id = c.id; - ue_radio_cap.crit = c.crit; - ue_radio_cap.value = c.value.ue_radio_cap(); + ue_radio_cap.id = c.id(); + ue_radio_cap.crit = c.crit(); + ue_radio_cap.value = c.value().ue_radio_cap(); break; case 278: subscription_based_ue_differentiation_info_present = true; - subscription_based_ue_differentiation_info.id = c.id; - subscription_based_ue_differentiation_info.crit = c.crit; - subscription_based_ue_differentiation_info.value = c.value.subscription_based_ue_differentiation_info(); + subscription_based_ue_differentiation_info.id = c.id(); + subscription_based_ue_differentiation_info.crit = c.crit(); + subscription_based_ue_differentiation_info.value = c.value().subscription_based_ue_differentiation_info(); break; case 283: pending_data_ind_present = true; - pending_data_ind.id = c.id; - pending_data_ind.crit = c.crit; - pending_data_ind.value = c.value.pending_data_ind(); + pending_data_ind.id = c.id(); + pending_data_ind.crit = c.crit(); + pending_data_ind.value = c.value().pending_data_ind(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -61813,7 +61661,7 @@ void ue_info_transfer_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_radio_cap_match_request_ies_container::ue_radio_cap_match_request_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), enb_ue_s1ap_id(8, crit_e::reject), ue_radio_cap(74, crit_e::ignore) @@ -61842,27 +61690,27 @@ SRSASN_CODE ue_radio_cap_match_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 74: ue_radio_cap_present = true; - ue_radio_cap.id = c.id; - ue_radio_cap.crit = c.crit; - ue_radio_cap.value = c.value.ue_radio_cap(); + ue_radio_cap.id = c.id(); + ue_radio_cap.crit = c.crit(); + ue_radio_cap.value = c.value().ue_radio_cap(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -61910,7 +61758,7 @@ void ue_radio_cap_match_request_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ue_radio_cap_match_resp_ies_container::ue_radio_cap_match_resp_ies_container() : mme_ue_s1ap_id(0, crit_e::ignore), @@ -61943,33 +61791,33 @@ SRSASN_CODE ue_radio_cap_match_resp_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 169: nof_mandatory_ies--; - voice_support_match_ind.id = c.id; - voice_support_match_ind.crit = c.crit; - voice_support_match_ind.value = c.value.voice_support_match_ind(); + voice_support_match_ind.id = c.id(); + voice_support_match_ind.crit = c.crit(); + voice_support_match_ind.value = c.value().voice_support_match_ind(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -62019,7 +61867,7 @@ void ue_radio_cap_match_resp_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ul_nas_transport_ies_container::ul_nas_transport_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -62071,63 +61919,63 @@ SRSASN_CODE ul_nas_transport_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 26: nof_mandatory_ies--; - nas_pdu.id = c.id; - nas_pdu.crit = c.crit; - nas_pdu.value = c.value.nas_pdu(); + nas_pdu.id = c.id(); + nas_pdu.crit = c.crit(); + nas_pdu.value = c.value().nas_pdu(); break; case 100: nof_mandatory_ies--; - eutran_cgi.id = c.id; - eutran_cgi.crit = c.crit; - eutran_cgi.value = c.value.eutran_cgi(); + eutran_cgi.id = c.id(); + eutran_cgi.crit = c.crit(); + eutran_cgi.value = c.value().eutran_cgi(); break; case 67: nof_mandatory_ies--; - tai.id = c.id; - tai.crit = c.crit; - tai.value = c.value.tai(); + tai.id = c.id(); + tai.crit = c.crit(); + tai.value = c.value().tai(); break; case 155: gw_transport_layer_address_present = true; - gw_transport_layer_address.id = c.id; - gw_transport_layer_address.crit = c.crit; - gw_transport_layer_address.value = c.value.gw_transport_layer_address(); + gw_transport_layer_address.id = c.id(); + gw_transport_layer_address.crit = c.crit(); + gw_transport_layer_address.value = c.value().gw_transport_layer_address(); break; case 184: sipto_l_gw_transport_layer_address_present = true; - sipto_l_gw_transport_layer_address.id = c.id; - sipto_l_gw_transport_layer_address.crit = c.crit; - sipto_l_gw_transport_layer_address.value = c.value.sipto_l_gw_transport_layer_address(); + sipto_l_gw_transport_layer_address.id = c.id(); + sipto_l_gw_transport_layer_address.crit = c.crit(); + sipto_l_gw_transport_layer_address.value = c.value().sipto_l_gw_transport_layer_address(); break; case 186: lhn_id_present = true; - lhn_id.id = c.id; - lhn_id.crit = c.crit; - lhn_id.value = c.value.lhn_id(); + lhn_id.id = c.id(); + lhn_id.crit = c.crit(); + lhn_id.value = c.value().lhn_id(); break; case 288: ps_cell_info_present = true; - ps_cell_info.id = c.id; - ps_cell_info.crit = c.crit; - ps_cell_info.value = c.value.ps_cell_info(); + ps_cell_info.id = c.id(); + ps_cell_info.crit = c.crit(); + ps_cell_info.value = c.value().ps_cell_info(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -62193,7 +62041,7 @@ void ul_nas_transport_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ul_non_ueassociated_lp_pa_transport_ies_container::ul_non_ueassociated_lp_pa_transport_ies_container() : routing_id(148, crit_e::reject), lp_pa_pdu(147, crit_e::reject) @@ -62218,21 +62066,21 @@ SRSASN_CODE ul_non_ueassociated_lp_pa_transport_ies_container::unpack(cbit_ref& for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 148: nof_mandatory_ies--; - routing_id.id = c.id; - routing_id.crit = c.crit; - routing_id.value = c.value.routing_id(); + routing_id.id = c.id(); + routing_id.crit = c.crit(); + routing_id.value = c.value().routing_id(); break; case 147: nof_mandatory_ies--; - lp_pa_pdu.id = c.id; - lp_pa_pdu.crit = c.crit; - lp_pa_pdu.value = c.value.lp_pa_pdu(); + lp_pa_pdu.id = c.id(); + lp_pa_pdu.crit = c.crit(); + lp_pa_pdu.value = c.value().lp_pa_pdu(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -62276,7 +62124,7 @@ void ul_non_ueassociated_lp_pa_transport_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ul_s1cdma2000tunnelling_ies_container::ul_s1cdma2000tunnelling_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -62328,63 +62176,63 @@ SRSASN_CODE ul_s1cdma2000tunnelling_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 71: nof_mandatory_ies--; - cdma2000_rat_type.id = c.id; - cdma2000_rat_type.crit = c.crit; - cdma2000_rat_type.value = c.value.cdma2000_rat_type(); + cdma2000_rat_type.id = c.id(); + cdma2000_rat_type.crit = c.crit(); + cdma2000_rat_type.value = c.value().cdma2000_rat_type(); break; case 72: nof_mandatory_ies--; - cdma2000_sector_id.id = c.id; - cdma2000_sector_id.crit = c.crit; - cdma2000_sector_id.value = c.value.cdma2000_sector_id(); + cdma2000_sector_id.id = c.id(); + cdma2000_sector_id.crit = c.crit(); + cdma2000_sector_id.value = c.value().cdma2000_sector_id(); break; case 84: cdma2000_ho_required_ind_present = true; - cdma2000_ho_required_ind.id = c.id; - cdma2000_ho_required_ind.crit = c.crit; - cdma2000_ho_required_ind.value = c.value.cdma2000_ho_required_ind(); + cdma2000_ho_required_ind.id = c.id(); + cdma2000_ho_required_ind.crit = c.crit(); + cdma2000_ho_required_ind.value = c.value().cdma2000_ho_required_ind(); break; case 102: cdma2000_one_xsrvcc_info_present = true; - cdma2000_one_xsrvcc_info.id = c.id; - cdma2000_one_xsrvcc_info.crit = c.crit; - cdma2000_one_xsrvcc_info.value = c.value.cdma2000_one_xsrvcc_info(); + cdma2000_one_xsrvcc_info.id = c.id(); + cdma2000_one_xsrvcc_info.crit = c.crit(); + cdma2000_one_xsrvcc_info.value = c.value().cdma2000_one_xsrvcc_info(); break; case 97: cdma2000_one_xrand_present = true; - cdma2000_one_xrand.id = c.id; - cdma2000_one_xrand.crit = c.crit; - cdma2000_one_xrand.value = c.value.cdma2000_one_xrand(); + cdma2000_one_xrand.id = c.id(); + cdma2000_one_xrand.crit = c.crit(); + cdma2000_one_xrand.value = c.value().cdma2000_one_xrand(); break; case 70: nof_mandatory_ies--; - cdma2000_pdu.id = c.id; - cdma2000_pdu.crit = c.crit; - cdma2000_pdu.value = c.value.cdma2000_pdu(); + cdma2000_pdu.id = c.id(); + cdma2000_pdu.crit = c.crit(); + cdma2000_pdu.value = c.value().cdma2000_pdu(); break; case 140: eutran_round_trip_delay_estimation_info_present = true; - eutran_round_trip_delay_estimation_info.id = c.id; - eutran_round_trip_delay_estimation_info.crit = c.crit; - eutran_round_trip_delay_estimation_info.value = c.value.eutran_round_trip_delay_estimation_info(); + eutran_round_trip_delay_estimation_info.id = c.id(); + eutran_round_trip_delay_estimation_info.crit = c.crit(); + eutran_round_trip_delay_estimation_info.value = c.value().eutran_round_trip_delay_estimation_info(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -62450,7 +62298,7 @@ void ul_s1cdma2000tunnelling_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; ul_ueassociated_lp_pa_transport_ies_container::ul_ueassociated_lp_pa_transport_ies_container() : mme_ue_s1ap_id(0, crit_e::reject), @@ -62480,33 +62328,33 @@ SRSASN_CODE ul_ueassociated_lp_pa_transport_ies_container::unpack(cbit_ref& bref for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 0: nof_mandatory_ies--; - mme_ue_s1ap_id.id = c.id; - mme_ue_s1ap_id.crit = c.crit; - mme_ue_s1ap_id.value = c.value.mme_ue_s1ap_id(); + mme_ue_s1ap_id.id = c.id(); + mme_ue_s1ap_id.crit = c.crit(); + mme_ue_s1ap_id.value = c.value().mme_ue_s1ap_id(); break; case 8: nof_mandatory_ies--; - enb_ue_s1ap_id.id = c.id; - enb_ue_s1ap_id.crit = c.crit; - enb_ue_s1ap_id.value = c.value.enb_ue_s1ap_id(); + enb_ue_s1ap_id.id = c.id(); + enb_ue_s1ap_id.crit = c.crit(); + enb_ue_s1ap_id.value = c.value().enb_ue_s1ap_id(); break; case 148: nof_mandatory_ies--; - routing_id.id = c.id; - routing_id.crit = c.crit; - routing_id.value = c.value.routing_id(); + routing_id.id = c.id(); + routing_id.crit = c.crit(); + routing_id.value = c.value().routing_id(); break; case 147: nof_mandatory_ies--; - lp_pa_pdu.id = c.id; - lp_pa_pdu.crit = c.crit; - lp_pa_pdu.value = c.value.lp_pa_pdu(); + lp_pa_pdu.id = c.id(); + lp_pa_pdu.crit = c.crit(); + lp_pa_pdu.value = c.value().lp_pa_pdu(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -62554,7 +62402,7 @@ void ul_ueassociated_lp_pa_transport_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; write_replace_warning_request_ies_container::write_replace_warning_request_ies_container() : msg_id(111, crit_e::reject), @@ -62624,81 +62472,81 @@ SRSASN_CODE write_replace_warning_request_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 111: nof_mandatory_ies--; - msg_id.id = c.id; - msg_id.crit = c.crit; - msg_id.value = c.value.msg_id(); + msg_id.id = c.id(); + msg_id.crit = c.crit(); + msg_id.value = c.value().msg_id(); break; case 112: nof_mandatory_ies--; - serial_num.id = c.id; - serial_num.crit = c.crit; - serial_num.value = c.value.serial_num(); + serial_num.id = c.id(); + serial_num.crit = c.crit(); + serial_num.value = c.value().serial_num(); break; case 113: warning_area_list_present = true; - warning_area_list.id = c.id; - warning_area_list.crit = c.crit; - warning_area_list.value = c.value.warning_area_list(); + warning_area_list.id = c.id(); + warning_area_list.crit = c.crit(); + warning_area_list.value = c.value().warning_area_list(); break; case 114: nof_mandatory_ies--; - repeat_period.id = c.id; - repeat_period.crit = c.crit; - repeat_period.value = c.value.repeat_period(); + repeat_period.id = c.id(); + repeat_period.crit = c.crit(); + repeat_period.value = c.value().repeat_period(); break; case 144: extended_repeat_period_present = true; - extended_repeat_period.id = c.id; - extended_repeat_period.crit = c.crit; - extended_repeat_period.value = c.value.extended_repeat_period(); + extended_repeat_period.id = c.id(); + extended_repeat_period.crit = c.crit(); + extended_repeat_period.value = c.value().extended_repeat_period(); break; case 115: nof_mandatory_ies--; - numof_broadcast_request.id = c.id; - numof_broadcast_request.crit = c.crit; - numof_broadcast_request.value = c.value.numof_broadcast_request(); + numof_broadcast_request.id = c.id(); + numof_broadcast_request.crit = c.crit(); + numof_broadcast_request.value = c.value().numof_broadcast_request(); break; case 116: warning_type_present = true; - warning_type.id = c.id; - warning_type.crit = c.crit; - warning_type.value = c.value.warning_type(); + warning_type.id = c.id(); + warning_type.crit = c.crit(); + warning_type.value = c.value().warning_type(); break; case 117: warning_security_info_present = true; - warning_security_info.id = c.id; - warning_security_info.crit = c.crit; - warning_security_info.value = c.value.warning_security_info(); + warning_security_info.id = c.id(); + warning_security_info.crit = c.crit(); + warning_security_info.value = c.value().warning_security_info(); break; case 118: data_coding_scheme_present = true; - data_coding_scheme.id = c.id; - data_coding_scheme.crit = c.crit; - data_coding_scheme.value = c.value.data_coding_scheme(); + data_coding_scheme.id = c.id(); + data_coding_scheme.crit = c.crit(); + data_coding_scheme.value = c.value().data_coding_scheme(); break; case 119: warning_msg_contents_present = true; - warning_msg_contents.id = c.id; - warning_msg_contents.crit = c.crit; - warning_msg_contents.value = c.value.warning_msg_contents(); + warning_msg_contents.id = c.id(); + warning_msg_contents.crit = c.crit(); + warning_msg_contents.value = c.value().warning_msg_contents(); break; case 142: concurrent_warning_msg_ind_present = true; - concurrent_warning_msg_ind.id = c.id; - concurrent_warning_msg_ind.crit = c.crit; - concurrent_warning_msg_ind.value = c.value.concurrent_warning_msg_ind(); + concurrent_warning_msg_ind.id = c.id(); + concurrent_warning_msg_ind.crit = c.crit(); + concurrent_warning_msg_ind.value = c.value().concurrent_warning_msg_ind(); break; case 286: warning_area_coordinates_present = true; - warning_area_coordinates.id = c.id; - warning_area_coordinates.crit = c.crit; - warning_area_coordinates.value = c.value.warning_area_coordinates(); + warning_area_coordinates.id = c.id(); + warning_area_coordinates.crit = c.crit(); + warning_area_coordinates.value = c.value().warning_area_coordinates(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -62778,7 +62626,7 @@ void write_replace_warning_request_s::to_json(json_writer& j) const j.end_obj(); } -template struct asn1::s1ap::protocol_ie_field_s; +template struct asn1::protocol_ie_field_s; write_replace_warning_resp_ies_container::write_replace_warning_resp_ies_container() : msg_id(111, crit_e::reject), @@ -62814,33 +62662,33 @@ SRSASN_CODE write_replace_warning_resp_ies_container::unpack(cbit_ref& bref) for (; nof_ies > 0; --nof_ies) { protocol_ie_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 111: nof_mandatory_ies--; - msg_id.id = c.id; - msg_id.crit = c.crit; - msg_id.value = c.value.msg_id(); + msg_id.id = c.id(); + msg_id.crit = c.crit(); + msg_id.value = c.value().msg_id(); break; case 112: nof_mandatory_ies--; - serial_num.id = c.id; - serial_num.crit = c.crit; - serial_num.value = c.value.serial_num(); + serial_num.id = c.id(); + serial_num.crit = c.crit(); + serial_num.value = c.value().serial_num(); break; case 120: broadcast_completed_area_list_present = true; - broadcast_completed_area_list.id = c.id; - broadcast_completed_area_list.crit = c.crit; - broadcast_completed_area_list.value = c.value.broadcast_completed_area_list(); + broadcast_completed_area_list.id = c.id(); + broadcast_completed_area_list.crit = c.crit(); + broadcast_completed_area_list.value = c.value().broadcast_completed_area_list(); break; case 58: crit_diagnostics_present = true; - crit_diagnostics.id = c.id; - crit_diagnostics.crit = c.crit; - crit_diagnostics.value = c.value.crit_diagnostics(); + crit_diagnostics.id = c.id(); + crit_diagnostics.crit = c.crit(); + crit_diagnostics.value = c.value().crit_diagnostics(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -65980,7 +65828,7 @@ uint8_t last_visited_eutran_cell_info_ext_ies_o::ext_c::types_opts::to_number() return map_enum_number(options, 1, value, "last_visited_eutran_cell_info_ext_ies_o::ext_c::types"); } -template struct asn1::s1ap::protocol_ext_field_s; +template struct asn1::protocol_ext_field_s; last_visited_eutran_cell_info_ext_ies_container::last_visited_eutran_cell_info_ext_ies_container() : time_ue_stayed_in_cell_enhanced_granularity(167, crit_e::ignore), ho_cause(168, crit_e::ignore) @@ -66009,21 +65857,21 @@ SRSASN_CODE last_visited_eutran_cell_info_ext_ies_container::unpack(cbit_ref& br for (; nof_ies > 0; --nof_ies) { protocol_ext_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 167: time_ue_stayed_in_cell_enhanced_granularity_present = true; - time_ue_stayed_in_cell_enhanced_granularity.id = c.id; - time_ue_stayed_in_cell_enhanced_granularity.crit = c.crit; - time_ue_stayed_in_cell_enhanced_granularity.ext = c.ext_value.time_ue_stayed_in_cell_enhanced_granularity(); + time_ue_stayed_in_cell_enhanced_granularity.id = c.id(); + time_ue_stayed_in_cell_enhanced_granularity.crit = c.crit(); + time_ue_stayed_in_cell_enhanced_granularity.ext = c.value().time_ue_stayed_in_cell_enhanced_granularity(); break; case 168: ho_cause_present = true; - ho_cause.id = c.id; - ho_cause.crit = c.crit; - ho_cause.ext = c.ext_value.ho_cause(); + ho_cause.id = c.id(); + ho_cause.crit = c.crit(); + ho_cause.ext = c.value().ho_cause(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } } @@ -67920,7 +67768,7 @@ uint8_t sourceenb_to_targetenb_transparent_container_ext_ies_o::ext_c::types_opt return 0; } -template struct asn1::s1ap::protocol_ext_field_s; +template struct asn1::protocol_ext_field_s; sourceenb_to_targetenb_transparent_container_ext_ies_container:: sourceenb_to_targetenb_transparent_container_ext_ies_container() : @@ -67966,39 +67814,39 @@ SRSASN_CODE sourceenb_to_targetenb_transparent_container_ext_ies_container::unpa for (; nof_ies > 0; --nof_ies) { protocol_ext_field_s c; HANDLE_CODE(c.unpack(bref)); - switch (c.id) { + switch (c.id()) { case 175: mob_info_present = true; - mob_info.id = c.id; - mob_info.crit = c.crit; - mob_info.ext = c.ext_value.mob_info(); + mob_info.id = c.id(); + mob_info.crit = c.crit(); + mob_info.ext = c.value().mob_info(); break; case 194: ue_history_info_from_the_ue_present = true; - ue_history_info_from_the_ue.id = c.id; - ue_history_info_from_the_ue.crit = c.crit; - ue_history_info_from_the_ue.ext = c.ext_value.ue_history_info_from_the_ue(); + ue_history_info_from_the_ue.id = c.id(); + ue_history_info_from_the_ue.crit = c.crit(); + ue_history_info_from_the_ue.ext = c.value().ue_history_info_from_the_ue(); break; case 296: im_svoice_ep_sfallbackfrom5_g_present = true; - im_svoice_ep_sfallbackfrom5_g.id = c.id; - im_svoice_ep_sfallbackfrom5_g.crit = c.crit; - im_svoice_ep_sfallbackfrom5_g.ext = c.ext_value.im_svoice_ep_sfallbackfrom5_g(); + im_svoice_ep_sfallbackfrom5_g.id = c.id(); + im_svoice_ep_sfallbackfrom5_g.crit = c.crit(); + im_svoice_ep_sfallbackfrom5_g.ext = c.value().im_svoice_ep_sfallbackfrom5_g(); break; case 299: add_rrm_prio_idx_present = true; - add_rrm_prio_idx.id = c.id; - add_rrm_prio_idx.crit = c.crit; - add_rrm_prio_idx.ext = c.ext_value.add_rrm_prio_idx(); + add_rrm_prio_idx.id = c.id(); + add_rrm_prio_idx.crit = c.crit(); + add_rrm_prio_idx.ext = c.value().add_rrm_prio_idx(); break; case 300: contextat_source_present = true; - contextat_source.id = c.id; - contextat_source.crit = c.crit; - contextat_source.ext = c.ext_value.contextat_source(); + contextat_source.id = c.id(); + contextat_source.crit = c.crit(); + contextat_source.ext = c.value().contextat_source(); break; default: - asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id); + asn1::log_error("Unpacked object ID=%d is not recognized\n", c.id()); return SRSASN_ERROR_DECODE_FAIL; } }