Change in osmo-ttcn3-hacks[master]: msc: Introduce test TC_lu_and_mo_call_ipv6

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

pespin gerrit-no-reply at lists.osmocom.org
Thu Sep 3 15:45:39 UTC 2020


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


Change subject: msc: Introduce test TC_lu_and_mo_call_ipv6
......................................................................

msc: Introduce test TC_lu_and_mo_call_ipv6

It tests IPv6 Transport Address are passed correctly through BSSAP.

Change-Id: Id616926dd4a9febc4268eea2ee1e377b2d22753a
---
M msc/BSC_ConnectionHandler.ttcn
M msc/MSC_Tests.ttcn
2 files changed, 22 insertions(+), 2 deletions(-)



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

diff --git a/msc/BSC_ConnectionHandler.ttcn b/msc/BSC_ConnectionHandler.ttcn
index 053a5f6..471996f 100644
--- a/msc/BSC_ConnectionHandler.ttcn
+++ b/msc/BSC_ConnectionHandler.ttcn
@@ -1324,8 +1324,12 @@
 		return;
 	}
 
-	var template BSSMAP_IE_AoIP_TransportLayerAddress tla_ass :=
-		tr_BSSMAP_IE_AoIP_TLA4(f_inet_addr(cpars.mgw_conn_1.mgw_rtp_ip), ?);
+	var template BSSMAP_IE_AoIP_TransportLayerAddress tla_ass;
+	if (f_mgcp_addr2addrtype(cpars.mgw_conn_1.mgw_rtp_ip) == "IP6") {
+		tla_ass := tr_BSSMAP_IE_AoIP_TLA6(f_inet6_addr(cpars.mgw_conn_1.mgw_rtp_ip), ?);
+	} else {
+		tla_ass := tr_BSSMAP_IE_AoIP_TLA4(f_inet_addr(cpars.mgw_conn_1.mgw_rtp_ip), ?);
+	}
 
 	var default mdcx := activate(as_optional_mgcp_mdcx(cpars.mgw_conn_2.mgw_rtp_ip, cpars.mgw_conn_2.mgw_rtp_port));
 	var boolean got_mncc_setup_compl_ind := false;
diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn
index 2a9b23a..5930fe9 100644
--- a/msc/MSC_Tests.ttcn
+++ b/msc/MSC_Tests.ttcn
@@ -767,6 +767,21 @@
 	vc_conn := f_start_handler(refers(f_tc_lu_and_mo_call), 7);
 	vc_conn.done;
 }
+friend function f_tc_lu_and_mo_call_ipv6(charstring id, BSC_ConnHdlrPars pars) runs on BSC_ConnHdlr {
+	f_init_handler(pars);
+	var CallParameters cpars := valueof(t_CallParams);
+	cpars.mgw_conn_1.mgw_rtp_ip := "::1";
+	cpars.mgw_conn_2.mgw_rtp_ip := "::2";
+	f_perform_lu();
+	f_mo_call(cpars);
+}
+testcase TC_lu_and_mo_call_ipv6() runs on MTC_CT {
+	var BSC_ConnHdlr vc_conn;
+	f_init();
+
+	vc_conn := f_start_handler(refers(f_tc_lu_and_mo_call_ipv6), 7);
+	vc_conn.done;
+}
 
 /* Verify T(iar) triggers and releases the channel */
 friend function f_lu_and_mo_call_sccp_tiar_timeout(charstring id, BSC_ConnHdlrPars pars) runs on BSC_ConnHdlr {
@@ -6242,6 +6257,7 @@
 	execute( TC_cmserv_imsi_unknown() );
 	execute( TC_cmserv_tmsi_unknown() );
 	execute( TC_lu_and_mo_call() );
+	execute( TC_lu_and_mo_call_ipv6() );
 	execute( TC_lu_and_mo_call_sccp_tiar_timeout() );
 	execute( TC_lu_auth_sai_timeout() );
 	execute( TC_lu_auth_sai_err() );

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/19974
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: Id616926dd4a9febc4268eea2ee1e377b2d22753a
Gerrit-Change-Number: 19974
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200903/084de8b8/attachment.htm>


More information about the gerrit-log mailing list