Fix NGAP valgrind test

master
David Rupprecht 3 years ago committed by Andre Puschmann
parent eb7980f2b3
commit ec19919246

@ -18,16 +18,16 @@
namespace srsenb {
struct ngap_args_t {
uint32_t gnb_id; // 20-bit id (lsb bits)
uint8_t cell_id; // 8-bit cell id
uint16_t tac; // 16-bit tac
uint16_t mcc; // BCD-coded with 0xF filler
uint16_t mnc; // BCD-coded with 0xF filler
std::string amf_addr;
std::string gtp_bind_addr;
std::string gtp_advertise_addr;
std::string ngc_bind_addr;
std::string gnb_name;
uint32_t gnb_id = 0; // 20-bit id (lsb bits)
uint8_t cell_id = 0; // 8-bit cell id
uint16_t tac = 0; // 16-bit tac
uint16_t mcc = 0; // BCD-coded with 0xF filler
uint16_t mnc = 0; // BCD-coded with 0xF filler
std::string amf_addr = "";
std::string gtp_bind_addr = "";
std::string gtp_advertise_addr = "";
std::string ngc_bind_addr = "";
std::string gnb_name = "";
};
// NGAP interface for RRC

@ -77,7 +77,7 @@ private:
// args
rrc_interface_ngap_nr* rrc = nullptr;
ngap_args_t args;
ngap_args_t args = {};
srslog::basic_logger& logger;
srsran::task_sched_handle task_sched;
srsran::task_queue_handle amf_task_queue;

@ -86,7 +86,7 @@ struct dummy_socket_manager : public srsran::socket_manager_itf {
return true;
}
int s1u_fd;
int s1u_fd = 0;
recv_callback_t callback;
};
@ -141,7 +141,7 @@ int main(int argc, char** argv)
args.ngc_bind_addr = "127.0.0.100";
args.tac = 7;
args.gtp_bind_addr = "127.0.0.100";
args.amf_addr = amf_addr_str;
args.amf_addr = "127.0.0.1";
args.gnb_name = "srsgnb01";
rrc_interface_ngap_nr rrc;
ngap_obj.init(args, &rrc);

Loading…
Cancel
Save