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/.
lynxis lazus gerrit-no-reply at lists.osmocom.orglynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20009 ) Change subject: RAW_NS: f_init_ns_codec: add argument tc_idx to modify the port ...................................................................... RAW_NS: f_init_ns_codec: add argument tc_idx to modify the port When using RAW_NS for the SGSN this allows to change the source udp port for every test case Change-Id: I465ad2c8580e74cce4dab46f4ec29a9043df9938 --- M pcu/RAW_NS.ttcn M sgsn/SGSN_Tests_NS.ttcn 2 files changed, 4 insertions(+), 4 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/09/20009/1 diff --git a/pcu/RAW_NS.ttcn b/pcu/RAW_NS.ttcn index 15a0226..5a68565 100644 --- a/pcu/RAW_NS.ttcn +++ b/pcu/RAW_NS.ttcn @@ -38,7 +38,7 @@ } } -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 @@ 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); diff --git a/sgsn/SGSN_Tests_NS.ttcn b/sgsn/SGSN_Tests_NS.ttcn index 376245f..c7d0aac 100644 --- a/sgsn/SGSN_Tests_NS.ttcn +++ b/sgsn/SGSN_Tests_NS.ttcn @@ -23,7 +23,7 @@ testcase TC_NS_connect_reset() runs on RAW_Test_CT { f_init_vty(); - f_init_ns_codec(guard_secs := 10.0); + f_init_ns_codec(guard_secs := 10.0, tc_offset := 10); f_vty_config(SGSNVTY, "ns", "encapsulation udp use-reset-block-unblock enabled"); /* Send a NS-ALIVE */ @@ -35,7 +35,7 @@ testcase TC_NS_connect_alive() runs on RAW_Test_CT { f_init_vty(); - f_init_ns_codec(guard_secs := 10.0); + f_init_ns_codec(guard_secs := 10.0, tc_offset := 20); f_vty_config(SGSNVTY, "ns", "encapsulation udp use-reset-block-unblock disabled"); /* Send a NS-ALIVE */ -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20009 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: I465ad2c8580e74cce4dab46f4ec29a9043df9938 Gerrit-Change-Number: 20009 Gerrit-PatchSet: 1 Gerrit-Owner: lynxis lazus <lynxis at fe80.eu> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200907/e8c30525/attachment.htm>