@@ -207,9 +207,9 @@ class dummy_cu_cp_handler : public f1ap_message_notifier
207207 response.pdu .set_init_msg ().load_info_obj (ASN1_F1AP_ID_DL_RRC_MSG_TRANSFER);
208208
209209 auto & resp = response.pdu .init_msg ().value .dl_rrc_msg_transfer ();
210- resp->gnb_du_ue_f1ap_id -> value = msg.pdu .init_msg ().value .init_ul_rrc_msg_transfer ()->gnb_du_ue_f1ap_id -> value ;
211- resp->gnb_cu_ue_f1ap_id -> value = 0 ;
212- resp->srb_id -> value = srb_id_to_uint (srb_id_t ::srb0);
210+ resp->gnb_du_ue_f1ap_id = msg.pdu .init_msg ().value .init_ul_rrc_msg_transfer ()->gnb_du_ue_f1ap_id ;
211+ resp->gnb_cu_ue_f1ap_id = 0 ;
212+ resp->srb_id = srb_id_to_uint (srb_id_t ::srb0);
213213 static constexpr uint8_t msg4[] = {
214214 0x20 , 0x40 , 0x03 , 0x82 , 0xe0 , 0x05 , 0x80 , 0x08 , 0x8b , 0xd7 , 0x63 , 0x80 , 0x83 , 0x0f , 0x00 , 0x03 , 0xe1 ,
215215 0x02 , 0x04 , 0x68 , 0x3c , 0x08 , 0x01 , 0x05 , 0x10 , 0x48 , 0x24 , 0x06 , 0x54 , 0x00 , 0x07 , 0xc0 , 0x00 , 0x00 ,
@@ -227,7 +227,7 @@ class dummy_cu_cp_handler : public f1ap_message_notifier
227227
228228 // Copy DU-to-CU RRC container stored in the F1AP "INITIAL UL RRC MESSAGE TRANSFER" to masterCellGroup field of
229229 // the unpacked RRC Setup message.
230- const auto & src = msg.pdu .init_msg ().value .init_ul_rrc_msg_transfer ()->du_to_cu_rrc_container . value ;
230+ const auto & src = msg.pdu .init_msg ().value .init_ul_rrc_msg_transfer ()->du_to_cu_rrc_container ;
231231 asn1::dyn_octstring& dest = msg4_rrc.msg .c1 ().rrc_setup ().crit_exts .rrc_setup ().master_cell_group ;
232232 dest = src.copy ();
233233
@@ -237,8 +237,8 @@ class dummy_cu_cp_handler : public f1ap_message_notifier
237237 msg4_rrc.pack (w_bref);
238238
239239 // Store the packed RRC setup message in the RRC container field of the F1 DL RRC Message that is sent to the DU.
240- resp->rrc_container .value . resize (msg4_pdu.length ());
241- std::copy (msg4_pdu.begin (), msg4_pdu.end (), resp->rrc_container .value . begin ());
240+ resp->rrc_container .resize (msg4_pdu.length ());
241+ std::copy (msg4_pdu.begin (), msg4_pdu.end (), resp->rrc_container .begin ());
242242 } else if (msg.pdu .init_msg ().value .type ().value ==
243243 asn1::f1ap::f1ap_elem_procs_o::init_msg_c::types_opts::f1_setup_request) {
244244 // Generate a dummy F1 Setup response message and pass it back to the DU.
@@ -247,10 +247,10 @@ class dummy_cu_cp_handler : public f1ap_message_notifier
247247
248248 auto & setup_res = response.pdu .successful_outcome ().value .f1_setup_resp ();
249249 // Use the same transaction ID as in the request message.
250- setup_res->transaction_id . value = msg.pdu .init_msg ().value .f1_setup_request ()->transaction_id . value ;
251- setup_res->gnb_cu_name_present = true ;
252- setup_res->gnb_cu_name .value . from_string (" srsCU" );
253- setup_res->gnb_cu_rrc_version .value . latest_rrc_version .from_number (2 );
250+ setup_res->transaction_id = msg.pdu .init_msg ().value .f1_setup_request ()->transaction_id ;
251+ setup_res->gnb_cu_name_present = true ;
252+ setup_res->gnb_cu_name .from_string (" srsCU" );
253+ setup_res->gnb_cu_rrc_version .latest_rrc_version .from_number (2 );
254254 } else {
255255 srsran::byte_buffer buffer;
256256 asn1::bit_ref bref (buffer);
0 commit comments