From b3d4c670adf8302d1053ff536573a69deacdbf21 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Mon, 7 Sep 2020 05:38:17 +0200 Subject: RAW_NS: f_init_ns_codec: add argument tc_idx to modify the port In preparation for the SGSN tests allow to change the source udp port for every test case. Change-Id: I465ad2c8580e74cce4dab46f4ec29a9043df9938 --- pcu/RAW_NS.ttcn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcu/RAW_NS.ttcn b/pcu/RAW_NS.ttcn index ec484ba2..43003767 100644 --- a/pcu/RAW_NS.ttcn +++ b/pcu/RAW_NS.ttcn @@ -38,7 +38,7 @@ public altstep as_Tguard() runs on RAW_NS_CT { } } -function f_init_ns_codec(integer idx := 0, float guard_secs := 60.0) runs on RAW_NS_CT { +function f_init_ns_codec(integer idx := 0, float guard_secs := 60.0, integer tc_offset := 0) runs on RAW_NS_CT { var Result res; if (not g_T_guard.running) { @@ -51,7 +51,7 @@ function f_init_ns_codec(integer idx := 0, float guard_secs := 60.0) runs on RAW g_nsconfig[idx] := mp_nsconfig; /* adjust those parts different for each NS-VC */ g_nsconfig[idx].nsvci := mp_nsconfig.nsvci + idx; - g_nsconfig[idx].local_udp_port := mp_nsconfig.local_udp_port + idx; + g_nsconfig[idx].local_udp_port := mp_nsconfig.local_udp_port + idx + tc_offset; } map(self:NSCP[idx], system:NSCP); -- cgit v1.2.3