Change in osmo-ttcn3-hacks[master]: BSC_Tests: parametrize f_mo_l3_transceive()

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

fixeria gerrit-no-reply at lists.osmocom.org
Thu Oct 1 15:53:58 UTC 2020


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


Change subject: BSC_Tests: parametrize f_mo_l3_transceive()
......................................................................

BSC_Tests: parametrize f_mo_l3_transceive()

Change-Id: I617a103e9dae8f16e3f3996c89e53ace49f7bfa8
Related: OS#3716
---
M bsc/BSC_Tests.ttcn
1 file changed, 7 insertions(+), 6 deletions(-)



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

diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index 2efe2fd..544e79b 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -4464,17 +4464,18 @@
 	f_shutdown_helper();
 }
 
-private function f_mo_l3_transceive() runs on MSC_ConnHdlr
-{
+private function f_mo_l3_transceive(template (value) RslLinkId link_id := ts_RslLinkID_DCCH(0),
+				    template (present) OCT1 dlci := '00'O,
+				    octetstring l3 := '0123456789'O)
+runs on MSC_ConnHdlr {
 	/* The old lchan and conn should still be active. See that arbitrary L3
 	 * is still going through. */
-	var octetstring l3 := '0123456789'O;
-	RSL.send(ts_RSL_DATA_IND(g_chan_nr, valueof(ts_RslLinkID_DCCH(0)), l3));
+	RSL.send(ts_RSL_DATA_IND(g_chan_nr, link_id, l3));
 	var template PDU_BSSAP exp_data := {
 		    discriminator := '1'B,
 		    spare := '0000000'B,
-		    dlci := '00'O,
-		    lengthIndicator := 5,
+		    dlci := dlci,
+		    lengthIndicator := lengthof(l3),
 		    pdu := {
 			dtap := l3
 		    }

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20383
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: I617a103e9dae8f16e3f3996c89e53ace49f7bfa8
Gerrit-Change-Number: 20383
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201001/1610bff1/attachment.htm>


More information about the gerrit-log mailing list