summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2020-09-07 05:38:17 +0200
committerlaforge <laforge@osmocom.org>2020-09-14 12:01:42 +0000
commitb3d4c670adf8302d1053ff536573a69deacdbf21 (patch)
treef3f6dcb165c3644a9f0a7f6994ac17c059c4c0f8
parent3e997369336b1391d5498ba31b7b82f42cbfb8b9 (diff)
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
-rw-r--r--pcu/RAW_NS.ttcn4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcu/RAW_NS.ttcn b/pcu/RAW_NS.ttcn
index ec484ba..4300376 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);