Change in osmo-ttcn3-hacks[master]: BSSGP_Emulation: Introduce a GLOBAL port in the BSSGP_CT

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 24 18:06:43 UTC 2020


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


Change subject: BSSGP_Emulation: Introduce a GLOBAL port in the BSSGP_CT
......................................................................

BSSGP_Emulation: Introduce a GLOBAL port in the BSSGP_CT

The per-NSE BSSGP_CT gets a new GLOBAL port which is used for procedures
that are not specific to one BVC, such as the SUSPEND/RESUME related
PDUs, which all are on the signalling BVC without any BVCI in the BSSGP.

Change-Id: I40d973d80709f5d56f59247e8647b52754f09bc8
---
M library/BSSGP_Emulation.ttcnpp
1 file changed, 17 insertions(+), 0 deletions(-)



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

diff --git a/library/BSSGP_Emulation.ttcnpp b/library/BSSGP_Emulation.ttcnpp
index 898b38d..a9a15f5 100644
--- a/library/BSSGP_Emulation.ttcnpp
+++ b/library/BSSGP_Emulation.ttcnpp
@@ -233,6 +233,10 @@
 	/* control by the user */
 	port BSSGP_CT_PROC_PT PROC;
 
+	/* global port for procedures without any relation to a BVC
+	 * (currently only) SUSPEND/RESUME */
+	port BSSGP_SP_PT GLOBAL;
+
 	var BssgpConfig g_cfg;
 
 	/* Signaling BVC (BVCI=0) */
@@ -286,12 +290,18 @@
 	}
 }
 
+private template PDU_BSSGP tr_GLOBAL := (
+	{pDU_BSSGP_SUSPEND:=?}, {pDU_BSSGP_SUSPEND_ACK:=?}, {pDU_BSSGP_SUSPEND_NACK:=?},
+	{pDU_BSSGP_RESUME:=?}, {pDU_BSSGP_RESUME_ACK:=?}, {pDU_BSSGP_RESUME_NACK:=?}
+);
+
 /* We are in BVC_S_UNBLOCKED state */
 altstep as_sig_unblocked() runs on BSSGP_CT {
 	var BSSGP_BVC_CT bvc_comp_ref;
 	var BSSGP_Client_CT vc_conn;
 	var NsUnitdataIndication udi;
 	var NsUnitdataRequest udr;
+	var PDU_BSSGP bssgp;
 
 	/* Messages PTP BVCI in BVCI field of NS: dispatch by that */
 	[] BSCP.receive(f_BnsUdInd(?, (2..65535))) -> value udi {
@@ -306,6 +316,9 @@
 	}
 
 	/* Messages with BVCI = 0 (Signaling) in BVCI field of NS */
+	[] BSCP.receive(f_BnsUdInd(tr_GLOBAL, 0)) -> value udi {
+		GLOBAL.send(udi.bssgp);
+		}
 
 	/* Route based on PTP BVCI in payload/IE of signaling PDU */
 	[] BSCP.receive(f_BnsUdInd(?, 0)) -> value udi {
@@ -354,6 +367,10 @@
 		udr.nsei := g_cfg.nsei;
 		BSCP.send(udr);
 	}
+
+	[] GLOBAL.receive(tr_GLOBAL) -> value bssgp {
+		BSCP.send(f_BnsUdReq(bssgp, 0, 0));
+		}
 }
 
 /* We are in BVC_S_WAIT_NS_ALIVE_UNBLOCKED (only happens in BSS role) */

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21324
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: I40d973d80709f5d56f59247e8647b52754f09bc8
Gerrit-Change-Number: 21324
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/20201124/5d1c166a/attachment.htm>


More information about the gerrit-log mailing list