Adjusted UDP port ids for multiple UE connection with proxy

This commit is contained in:
Deokseong "David" Kim
2021-06-16 16:06:38 -07:00
committed by Melissa
parent 777bcc6c37
commit 591e0e1f36
7 changed files with 34 additions and 17 deletions
+3 -2
View File
@@ -129,8 +129,8 @@ void init_nr_ue_vars(PHY_VARS_NR_UE *ue,
void init_nrUE_standalone_thread(int ue_idx)
{
const char *standalone_addr = "127.0.0.1";
int standalone_tx_port = 3611 + (ue_idx)*2;
int standalone_rx_port = 3612 + (ue_idx)*2;
int standalone_tx_port = 3611 + ue_idx * 2;
int standalone_rx_port = 3612 + ue_idx * 2;
nrue_init_standalone_socket(standalone_addr, standalone_tx_port, standalone_rx_port);
pthread_t thread;
@@ -252,6 +252,7 @@ static void *NRUE_phy_stub_standalone_pnf_task(void *arg)
}
}
}
return NULL;
}