Change in osmo-ttcn3-hacks[master]: BSSAP_LE_Emulation: configure sending vs receiving RESET

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

neels gerrit-no-reply at lists.osmocom.org
Mon Oct 12 18:58:34 UTC 2020


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


Change subject: BSSAP_LE_Emulation: configure sending vs receiving RESET
......................................................................

BSSAP_LE_Emulation: configure sending vs receiving RESET

Expecting OsmoBSC to send a RESET to the SMLC implies that the virtual SMLC
stays quiet until a RESET is received. Add flag to configure RESET behavior of
BSSMAP-LE.

Change-Id: I49a749b037b614f922044165a4357fe20b68860b
---
M library/BSSAP_LE_Emulation.ttcn
1 file changed, 6 insertions(+), 2 deletions(-)



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

diff --git a/library/BSSAP_LE_Emulation.ttcn b/library/BSSAP_LE_Emulation.ttcn
index 294ac62..4965856 100644
--- a/library/BSSAP_LE_Emulation.ttcn
+++ b/library/BSSAP_LE_Emulation.ttcn
@@ -339,7 +339,8 @@
 	boolean role_ms,
 	/* needed for performing BSSMAP RESET */
 	SCCP_PAR_Address sccp_addr_local optional,
-	SCCP_PAR_Address sccp_addr_peer optional
+	SCCP_PAR_Address sccp_addr_peer optional,
+	boolean send_reset
 }
 
 private altstep as_reset_ack() runs on BSSAP_LE_Emulation_CT {
@@ -501,7 +502,8 @@
 	f_conn_table_init();
 	f_expect_table_init();
 
-	if (isvalue(ops.sccp_addr_peer) and isvalue(ops.sccp_addr_local)) {
+	if (g_ran_ops.send_reset
+	    and isvalue(ops.sccp_addr_peer) and isvalue(ops.sccp_addr_local)) {
 		f_sleep(1.0);	/* HACK to wait for M3UA/ASP to be ACTIVE */
 		f_bssap_le_reset(ops.sccp_addr_peer, ops.sccp_addr_local);
 	}
@@ -517,6 +519,8 @@
 		var integer targetPointCode;
 
 		alt {
+		[not g_ran_ops.send_reset] as_reset_ack();
+
 		[] as_main_bssap_le();
 
 		[g_ran_ops.role_ms] CLIENT.receive(PDU_DTAP_MO:?) -> value dtap_mo sender vc_conn {

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20617
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: I49a749b037b614f922044165a4357fe20b68860b
Gerrit-Change-Number: 20617
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201012/67e8a8f1/attachment.htm>


More information about the gerrit-log mailing list