Change in osmo-ttcn3-hacks[master]: Osmocom_CTRL_Adapter: Let the OS decide over the local port number

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Tue Dec 18 16:44:06 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/12348 )

Change subject: Osmocom_CTRL_Adapter: Let the OS decide over the local port number
......................................................................

Osmocom_CTRL_Adapter: Let the OS decide over the local port number

At the moment the function f_ipa_ctrl_start() is starting the IPA
emulation client with parameter -1 for local port. This is internally
translated to port number 9999, which is a fixed number. This makes
it impossible to have two control interfaces at the same time.

Lets use 0 as local port, so that the OS is selecting a free port
number automatically.

Change-Id: Ie6648f8f4c1e065c174868c35eb64ee034ace3ce
Related: OS#3645
---
M library/Osmocom_CTRL_Adapter.ttcn
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/library/Osmocom_CTRL_Adapter.ttcn b/library/Osmocom_CTRL_Adapter.ttcn
index a98ac29..f1002bd 100644
--- a/library/Osmocom_CTRL_Adapter.ttcn
+++ b/library/Osmocom_CTRL_Adapter.ttcn
@@ -29,7 +29,7 @@
 	map(vc_CTRL_IPA:IPA_PORT, system:IPA_CODEC_PT);
 	connect(vc_CTRL_IPA:IPA_CTRL_PORT, self:IPA_CTRL);
 
-	vc_CTRL_IPA.start(IPA_Emulation.main_client(bsc_host, bsc_port, "", -1,
+	vc_CTRL_IPA.start(IPA_Emulation.main_client(bsc_host, bsc_port, "", 0,
 						    c_IPA_default_ccm_pars, false));
 
 	/* wait for IPA CTRL link to connect and send UP */

-- 
To view, visit https://gerrit.osmocom.org/12348
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie6648f8f4c1e065c174868c35eb64ee034ace3ce
Gerrit-Change-Number: 12348
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181218/af3b6471/attachment.htm>


More information about the gerrit-log mailing list