Change in osmo-ttcn3-hacks[master]: stp: Bind to free SCTP port instead of hardcoded 9999

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/.

laforge gerrit-no-reply at lists.osmocom.org
Fri Aug 21 18:06:38 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19759 )

Change subject: stp: Bind to free SCTP port instead of hardcoded 9999
......................................................................

stp: Bind to free SCTP port instead of hardcoded 9999

TTCN3 transforms -1 internally to 9999. We don't care about the src port
here since we are a client, so let's simple take a randomly free one.

Change-Id: I6665e628c5f1db31731d092f58d0bd2520f65ee6
---
M stp/STP_Tests_M3UA.ttcn
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/stp/STP_Tests_M3UA.ttcn b/stp/STP_Tests_M3UA.ttcn
index 58e52d3..68cea2a 100644
--- a/stp/STP_Tests_M3UA.ttcn
+++ b/stp/STP_Tests_M3UA.ttcn
@@ -95,7 +95,7 @@
 friend function f_M3UA_connect(integer i) runs on RAW_M3UA_CT {
 	var Result res;
 	res := M3UA_CodecPort_CtrlFunct.f_IPL4_connect(M3UA[i], mp_stp_ip, mp_stp_m3ua_port,
-						       mp_local_ip, mp_local_m3ua_port+i, -1,
+						       mp_local_ip, mp_local_m3ua_port+i, 0,
 							{sctp:=valueof(ts_SCTP)});
 	if (not ispresent(res.connId)) {
 		setverdict(fail, "Could not connect M3UA socket, check your configuration");

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19759
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I6665e628c5f1db31731d092f58d0bd2520f65ee6
Gerrit-Change-Number: 19759
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200821/b30c85a8/attachment.htm>


More information about the gerrit-log mailing list