Change in osmo-ttcn3-hacks[master]: gbproxy: fall f_client_register() only on connected ports

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
Tue Nov 17 18:23:52 UTC 2020


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21221 )


Change subject: gbproxy: fall f_client_register() only on connected ports
......................................................................

gbproxy: fall f_client_register() only on connected ports

Change-Id: I845d566172918e1948db0579fa846e0972e532c3
---
M gbproxy/GBProxy_Tests.ttcn
1 file changed, 6 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/21/21221/1

diff --git a/gbproxy/GBProxy_Tests.ttcn b/gbproxy/GBProxy_Tests.ttcn
index e6c07d7..7dd2c17 100644
--- a/gbproxy/GBProxy_Tests.ttcn
+++ b/gbproxy/GBProxy_Tests.ttcn
@@ -469,10 +469,14 @@
 
 	/* register for our IMSI + TLLI */
 	for (i := 0; i < sizeof(SGSN_PROC); i := i+1) {
-		f_client_register(g_pars.imsi, g_pars.tlli, SGSN_PROC[i]);
+		if (SGSN_PROC[i].checkstate("Connected")) {
+			f_client_register(g_pars.imsi, g_pars.tlli, SGSN_PROC[i]);
+		}
 	}
 	for (i := 0; i < sizeof(PCU_PROC); i := i+1) {
-		f_client_register(g_pars.imsi, g_pars.tlli, PCU_PROC[i]);
+		if (PCU_PROC[i].checkstate("Connected")) {
+			f_client_register(g_pars.imsi, g_pars.tlli, PCU_PROC[i]);
+		}
 	}
 
 	g_Tguard.start(pars.t_guard);

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21221
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: I845d566172918e1948db0579fa846e0972e532c3
Gerrit-Change-Number: 21221
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201117/87a7e164/attachment.htm>


More information about the gerrit-log mailing list