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/.
Harald Welte gerrit-no-reply at lists.osmocom.org
Review at https://gerrit.osmocom.org/6142
GSUP: Initialize ExpectTable
For some reason TITAN 6.1.0 requires the table to be explicitly
initialized, while 6.3.0 is happy without it.
Change-Id: I4f9ac98fb60ad16b98acd627efd617bfb4f6abcb
---
M library/GSUP_Emulation.ttcn
1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/42/6142/1
diff --git a/library/GSUP_Emulation.ttcn b/library/GSUP_Emulation.ttcn
index e1a515c..3990b73 100644
--- a/library/GSUP_Emulation.ttcn
+++ b/library/GSUP_Emulation.ttcn
@@ -124,6 +124,14 @@
}
}
+private function f_expect_table_init()
+runs on GSUP_Emulation_CT {
+ for (var integer i := 0; i < sizeof(GsupExpectTable); i := i+1) {
+ GsupExpectTable[i].vc_conn := null;
+ GsupExpectTable[i].imsi := omit;
+ }
+}
+
private function f_imsi_table_add(GSUP_ConnHdlr comp_ref, charstring imsi)
runs on GSUP_Emulation_CT {
for (var integer i := 0; i < sizeof(GsupImsiTable); i := i+1) {
@@ -168,6 +176,7 @@
function main(GsupOps ops, charstring id) runs on GSUP_Emulation_CT {
f_imsi_table_init();
+ f_expect_table_init();
while (true) {
var GSUP_ConnHdlr vc_conn;
--
To view, visit https://gerrit.osmocom.org/6142
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4f9ac98fb60ad16b98acd627efd617bfb4f6abcb
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>