Setting UE and nrUE IP address in config file.
1. Removed hard coded IP address in the code for UE and nrUE's remote address. 2. Read IP address from config file for UE and nrUE's remote address.
This commit is contained in:
@@ -420,10 +420,9 @@ void init_UE_stub_single_thread(int nb_inst,
|
||||
|
||||
void init_UE_standalone_thread(int ue_idx)
|
||||
{
|
||||
const char *standalone_addr = "127.0.0.1"; // these two lines go into init
|
||||
int standalone_tx_port = 3211 + ue_idx * 2;
|
||||
int standalone_rx_port = 3212 + ue_idx * 2;
|
||||
ue_init_standalone_socket(standalone_addr, standalone_tx_port, standalone_rx_port);
|
||||
ue_init_standalone_socket(standalone_tx_port, standalone_rx_port);
|
||||
|
||||
pthread_t thread;
|
||||
if (pthread_create(&thread, NULL, ue_standalone_pnf_task, NULL) != 0) {
|
||||
|
||||
@@ -727,7 +727,7 @@ int main( int argc, char **argv ) {
|
||||
exit(-1); // need a softer mode
|
||||
}
|
||||
|
||||
if (NFAPI_MODE==NFAPI_UE_STUB_PNF) { // UE-STUB-PNF
|
||||
if (NFAPI_MODE==NFAPI_UE_STUB_PNF || NFAPI_MODE==NFAPI_MODE_STANDALONE_PNF) { // UE-STUB-PNF
|
||||
UE_config_stub_pnf();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user