Change in osmo-ttcn3-hacks[master]: RAN_Emulation: only respond to RESET with correct PC

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 Jun 15 22:41:46 UTC 2020


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


Change subject: RAN_Emulation: only respond to RESET with correct PC
......................................................................

RAN_Emulation: only respond to RESET with correct PC

While trying to add multiple MSCs on SCCPlite, I noticed that the MSC emulation
responds to RESET regardless of the PC. Only respond when the point-codes match
the configured ones.

Change-Id: Ia1f94c4fc99ca18196f3fd5c5efe26b7309df499
---
M library/RAN_Emulation.ttcnpp
1 file changed, 4 insertions(+), 4 deletions(-)



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

diff --git a/library/RAN_Emulation.ttcnpp b/library/RAN_Emulation.ttcnpp
index a400dcd..7032607 100644
--- a/library/RAN_Emulation.ttcnpp
+++ b/library/RAN_Emulation.ttcnpp
@@ -790,16 +790,16 @@
 	var RANAP_N_UNITDATA_ind rud_ind;
 #endif
 #ifdef RAN_EMULATION_BSSAP
-	[] BSSAP.receive(tr_BSSAP_UNITDATA_ind(?, ?, tr_BSSMAP_Reset(append_osmux_support))) -> value ud_ind {
-		log("Respoding to inbound RESET with RESET-ACK");
+	[] BSSAP.receive(tr_BSSAP_UNITDATA_ind(g_ran_ops.sccp_addr_local, g_ran_ops.sccp_addr_peer, tr_BSSMAP_Reset(append_osmux_support))) -> value ud_ind {
+		log("Respoding to inbound RESET from ", g_ran_ops.sccp_addr_peer, " to ", g_ran_ops.sccp_addr_local, " with RESET-ACK");
 		BSSAP.send(ts_BSSAP_UNITDATA_req(ud_ind.callingAddress, ud_ind.calledAddress,
 			   ts_BSSMAP_ResetAck(append_osmux_support)));
 		repeat;
 	}
 #endif
 #ifdef RAN_EMULATION_RANAP
-	[] RANAP.receive(tr_RANAP_UNITDATA_ind(?, ?, tr_RANAP_Reset)) -> value rud_ind {
-		log("Respoding to inbound IuRESET with IuRESET-ACK");
+	[] RANAP.receive(tr_RANAP_UNITDATA_ind(g_ran_ops.sccp_addr_local, g_ran_ops.sccp_addr_peer, tr_RANAP_Reset)) -> value rud_ind {
+		log("Respoding to inbound IuRESET from ", g_ran_ops.sccp_addr_peer, " to ", g_ran_ops.sccp_addr_local, " with IuRESET-ACK");
 		var CN_DomainIndicator dom;
 		dom := rud_ind.userData.initiatingMessage.value_.Reset.protocolIEs[1].value_.cN_DomainIndicator;
 		RANAP.send(ts_RANAP_UNITDATA_req(rud_ind.callingAddress, rud_ind.calledAddress,

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18848
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: Ia1f94c4fc99ca18196f3fd5c5efe26b7309df499
Gerrit-Change-Number: 18848
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/20200615/d168ca1c/attachment.htm>


More information about the gerrit-log mailing list