Change in osmo-ttcn3-hacks[master]: gbproxy: call 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 19:15:34 UTC 2020


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

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

gbproxy: call f_client_register() only on connected ports

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

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified



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: 2
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-CC: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201117/75bb8c23/attachment.htm>


More information about the gerrit-log mailing list