Change in osmo-ttcn3-hacks[master]: sccp: Rename module param sccp_cfg to mp_sccp_cfg

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
Fri Jan 17 21:08:47 UTC 2020


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

Change subject: sccp: Rename module param sccp_cfg to mp_sccp_cfg
......................................................................

sccp: Rename module param sccp_cfg to mp_sccp_cfg

Change-Id: Ied9fbfb9bd35a99205ca13db033dd9ea03d51238
---
M sccp/SCCP_Tests.default
M sccp/SCCP_Tests.ttcn
M sccp/SCCP_Tests_RAW.ttcn
3 files changed, 10 insertions(+), 10 deletions(-)

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



diff --git a/sccp/SCCP_Tests.default b/sccp/SCCP_Tests.default
index a051517..6dda647 100644
--- a/sccp/SCCP_Tests.default
+++ b/sccp/SCCP_Tests.default
@@ -16,7 +16,7 @@
 M3UA_Emulation.tsp_logVerbose := true;
 M3UA_Emulation.tsp_SCTP_Server_Mode := false;
 M3UA_Emulation.tsp_M3UA_Server_Mode := false;
-SCCP_Tests.sccp_cfg := {
+SCCP_Tests.mp_sccp_cfg := {
 	{
 			sccp_service_type := "mtp3_itu",
 			sctp_addr := { 2905, "127.0.0.1", 2905, "127.0.0.2" },
diff --git a/sccp/SCCP_Tests.ttcn b/sccp/SCCP_Tests.ttcn
index 835c934..62c62c6 100644
--- a/sccp/SCCP_Tests.ttcn
+++ b/sccp/SCCP_Tests.ttcn
@@ -55,7 +55,7 @@
 
 type record of SCCP_Configuration SCCP_Configurations;
 modulepar {
-	SCCP_Configurations sccp_cfg;
+	SCCP_Configurations mp_sccp_cfg;
 }
 
 function f_init(SCCP_Configuration cfg) runs on MTC_CT {
@@ -106,13 +106,13 @@
 	var octetstring vl_userdata :='12345678901234567890'O;
 	var ASP_SCCP_N_UNITDATA_ind vl_N_UNITDATA_ind;
 
-	f_init(sccp_cfg[0]);
+	f_init(mp_sccp_cfg[0]);
 
 	/* Called address with routing indicator set to Global Title Address. This used to trigger the crash. */
 	v_CalledAddress := valueof(ts_SccpAddr_GT('012345'H));
 
-	v_CallingAddress := valueof(ts_SccpAddr_PC_SSN(sccp_cfg[0].own_pc, sccp_cfg[0].own_ssn,
-						       sccp_cfg[0].sio, sccp_cfg[0].sccp_service_type));
+	v_CallingAddress := valueof(ts_SccpAddr_PC_SSN(mp_sccp_cfg[0].own_pc, mp_sccp_cfg[0].own_ssn,
+						       mp_sccp_cfg[0].sio, mp_sccp_cfg[0].sccp_service_type));
 	A_PORT.send(t_ASP_N_UNITDATA_req(v_CalledAddress, v_CallingAddress, '00000001'B /* sequence control */,
 					 '00000001'B /* return option */, vl_userdata, omit));
 
diff --git a/sccp/SCCP_Tests_RAW.ttcn b/sccp/SCCP_Tests_RAW.ttcn
index 78ce80f..0091cb4 100644
--- a/sccp/SCCP_Tests_RAW.ttcn
+++ b/sccp/SCCP_Tests_RAW.ttcn
@@ -156,11 +156,11 @@
 /* Verify sccp_demo_user answers a CR with a CC for PC and SSN set up to echo back */
 testcase TC_cr_cc() runs on SCCP_Test_RAW_CT {
 	var SCCP_PAR_Address calling, called;
-	called := valueof(ts_SccpAddr_PC_SSN(sccp_cfg[0].peer_pc, sccp_cfg[0].peer_ssn,
-					     sccp_cfg[0].sio, sccp_cfg[0].sccp_service_type));
-	calling := valueof(ts_SccpAddr_PC_SSN(sccp_cfg[0].own_pc, sccp_cfg[0].own_ssn,
-					     sccp_cfg[0].sio, sccp_cfg[0].sccp_service_type));
-	f_init_raw(sccp_cfg[0]);
+	called := valueof(ts_SccpAddr_PC_SSN(mp_sccp_cfg[0].peer_pc, mp_sccp_cfg[0].peer_ssn,
+					     mp_sccp_cfg[0].sio, mp_sccp_cfg[0].sccp_service_type));
+	calling := valueof(ts_SccpAddr_PC_SSN(mp_sccp_cfg[0].own_pc, mp_sccp_cfg[0].own_ssn,
+					     mp_sccp_cfg[0].sio, mp_sccp_cfg[0].sccp_service_type));
+	f_init_raw(mp_sccp_cfg[0]);
 	f_sleep(1.0);
 	f_send_sccp(ts_SCCP_CR('000001'O, calling, called));
 	f_exp_sccp(tr_SCCP_CC('000001'O, ?));

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/16921
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: Ied9fbfb9bd35a99205ca13db033dd9ea03d51238
Gerrit-Change-Number: 16921
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200117/9419c7b3/attachment.htm>


More information about the gerrit-log mailing list