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
This commit is contained in:
Alexander Couzens 2020-09-07 05:38:17 +02:00 committed by laforge
parent 3e99736933
commit b3d4c670ad
1 changed files with 2 additions and 2 deletions

View File

@ -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);