From b8a66a0f4a76112cae22f3cb7a461c4878acfc7c Mon Sep 17 00:00:00 2001 From: winckel <winckel@eurecom.fr> Date: Tue, 19 Nov 2013 15:08:14 +0000 Subject: [PATCH] Use command line option for MME IP address when available. git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4434 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- targets/SIMU/USER/oaisim.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/targets/SIMU/USER/oaisim.c b/targets/SIMU/USER/oaisim.c index ad5471fb1d..3a86f6e57b 100644 --- a/targets/SIMU/USER/oaisim.c +++ b/targets/SIMU/USER/oaisim.c @@ -391,8 +391,17 @@ void *l2l1_task(void *args_p) { (eNB_id < (oai_emulation.info.first_enb_local + oai_emulation.info.nb_enb_local)) && (oai_emulation.info.cli_start_enb[eNB_id] == 1); eNB_id++) { - /* FIXME: acquire MMEs IP address by XML file or command line */ - char *mme_address_v4 = "192.168.12.87"; + char *mme_address_v4; + + if (oai_emulation.info.mme_enabled) + { + mme_address_v4 = oai_emulation.info.mme_ip_address; + } + else + { + /* FIXME: acquire MMEs IP address by XML file or command line */ + mme_address_v4 = "192.168.12.87"; + } char *mme_address_v6 = "2001:660:5502:12:30da:829a:2343:b6cf"; s1ap_register_eNB_t *s1ap_register_eNB; uint32_t hash; -- GitLab