Fix not checking initialization of S11 in MME. Fixed typo.

master
Pedro Alvarez 3 years ago
parent 7155de91ca
commit 65a2b35f09

@ -122,8 +122,8 @@ int test_sctp_bind_error()
&sock, srsran::net_utils::socket_type::seqpacket, "1.1.1.1", 8000)); // Bogus IP address &sock, srsran::net_utils::socket_type::seqpacket, "1.1.1.1", 8000)); // Bogus IP address
// should not be able to bind // should not be able to bind
TESTASSERT(srsran::net_utils::sctp_init_socket( TESTASSERT(srsran::net_utils::sctp_init_socket(
&sock, srsran::net_utils::socket_type::seqpacket, "127.0.0.1", 8000)); // Bogus IP address &sock, srsran::net_utils::socket_type::seqpacket, "127.0.0.1", 8000)); // Good IP address
// should not be able to bind // should be able to bind
return SRSRAN_SUCCESS; return SRSRAN_SUCCESS;
} }

@ -78,8 +78,12 @@ int s1ap::init(const s1ap_args_t& s1ap_args)
// Get pointer to GTP-C class // Get pointer to GTP-C class
m_mme_gtpc = mme_gtpc::get_instance(); m_mme_gtpc = mme_gtpc::get_instance();
// Initialize S1-MME // Initialize S1-MME
m_s1mme = enb_listen(); m_s1mme = enb_listen();
if (m_s1mme == SRSRAN_ERROR) {
return SRSRAN_ERROR;
}
// Init PCAP // Init PCAP
m_pcap_enable = s1ap_args.pcap_enable; m_pcap_enable = s1ap_args.pcap_enable;

Loading…
Cancel
Save