summaryrefslogtreecommitdiffstats
path: root/stp
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-08-21 13:54:27 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2020-08-21 14:03:51 +0200
commit9a1aa59023a40e63ee3f08da383edd57b7acc9a1 (patch)
tree17c8c2a0019ec046034d5e5c44e1b997a54c9ba1 /stp
parent0d5908046980e32dd09d5bf43ba61ff095102a21 (diff)
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
Diffstat (limited to 'stp')
-rw-r--r--stp/STP_Tests_M3UA.ttcn2
1 files changed, 1 insertions, 1 deletions
diff --git a/stp/STP_Tests_M3UA.ttcn b/stp/STP_Tests_M3UA.ttcn
index 58e52d3e..68cea2a7 100644
--- a/stp/STP_Tests_M3UA.ttcn
+++ b/stp/STP_Tests_M3UA.ttcn
@@ -95,7 +95,7 @@ friend function f_M3UA_exp(integer idx, template (present) PDU_M3UA msg) runs on
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");