Change in osmo-ttcn3-hacks[master]: gbproxy: Unregister IMSI from BSSGP before termination of ConnHdlr

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/.

laforge gerrit-no-reply at lists.osmocom.org
Sat Jan 16 22:02:53 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22238 )

Change subject: gbproxy: Unregister IMSI from BSSGP before termination of ConnHdlr
......................................................................

gbproxy: Unregister IMSI from BSSGP before termination of ConnHdlr

Otherwise we may run into problems where the BSSGP_Emulation still
has references to longer existing components in its ClientTable.

Change-Id: Iee54e93e6ae1b3e40f502d5ba2499e9eb03bf203
---
M gbproxy/GBProxy_Tests.ttcn
1 file changed, 12 insertions(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  daniel: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/gbproxy/GBProxy_Tests.ttcn b/gbproxy/GBProxy_Tests.ttcn
index caf4c66..6141f6a 100644
--- a/gbproxy/GBProxy_Tests.ttcn
+++ b/gbproxy/GBProxy_Tests.ttcn
@@ -713,6 +713,18 @@
 
 	/* call the user-supplied test case function */
 	fn.apply(id);
+
+	for (i := 0; i < NUM_SGSN; i := i+1) {
+		if (SGSN_PROC[i].checkstate("Connected")) {
+			f_client_unregister(g_pars.imsi, SGSN_PROC[i])
+		}
+	}
+
+	for (i := 0; i < NUM_PCU; i := i+1) {
+		if (PCU_PROC[i].checkstate("Connected")) {
+			f_client_unregister(g_pars.imsi, PCU_PROC[i])
+		}
+	}
 }
 
 private function f_client_register(hexstring imsi, OCT4 tlli, BSSGP_PROC_PT PT)

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22238
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: Iee54e93e6ae1b3e40f502d5ba2499e9eb03bf203
Gerrit-Change-Number: 22238
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210116/3fdd7889/attachment.htm>


More information about the gerrit-log mailing list