<p>neels has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18848">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">RAN_Emulation: only respond to RESET with correct PC<br><br>While trying to add multiple MSCs on SCCPlite, I noticed that the MSC emulation<br>responds to RESET regardless of the PC. Only respond when the point-codes match<br>the configured ones.<br><br>Change-Id: Ia1f94c4fc99ca18196f3fd5c5efe26b7309df499<br>---<br>M library/RAN_Emulation.ttcnpp<br>1 file changed, 4 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/48/18848/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/library/RAN_Emulation.ttcnpp b/library/RAN_Emulation.ttcnpp</span><br><span>index a400dcd..7032607 100644</span><br><span>--- a/library/RAN_Emulation.ttcnpp</span><br><span>+++ b/library/RAN_Emulation.ttcnpp</span><br><span>@@ -790,16 +790,16 @@</span><br><span>   var RANAP_N_UNITDATA_ind rud_ind;</span><br><span> #endif</span><br><span> #ifdef RAN_EMULATION_BSSAP</span><br><span style="color: hsl(0, 100%, 40%);">-       [] BSSAP.receive(tr_BSSAP_UNITDATA_ind(?, ?, tr_BSSMAP_Reset(append_osmux_support))) -> value ud_ind {</span><br><span style="color: hsl(0, 100%, 40%);">-               log("Respoding to inbound RESET with RESET-ACK");</span><br><span style="color: hsl(120, 100%, 40%);">+   [] 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 {</span><br><span style="color: hsl(120, 100%, 40%);">+              log("Respoding to inbound RESET from ", g_ran_ops.sccp_addr_peer, " to ", g_ran_ops.sccp_addr_local, " with RESET-ACK");</span><br><span>               BSSAP.send(ts_BSSAP_UNITDATA_req(ud_ind.callingAddress, ud_ind.calledAddress,</span><br><span>                           ts_BSSMAP_ResetAck(append_osmux_support)));</span><br><span>               repeat;</span><br><span>      }</span><br><span> #endif</span><br><span> #ifdef RAN_EMULATION_RANAP</span><br><span style="color: hsl(0, 100%, 40%);">-       [] RANAP.receive(tr_RANAP_UNITDATA_ind(?, ?, tr_RANAP_Reset)) -> value rud_ind {</span><br><span style="color: hsl(0, 100%, 40%);">-             log("Respoding to inbound IuRESET with IuRESET-ACK");</span><br><span style="color: hsl(120, 100%, 40%);">+       [] RANAP.receive(tr_RANAP_UNITDATA_ind(g_ran_ops.sccp_addr_local, g_ran_ops.sccp_addr_peer, tr_RANAP_Reset)) -> value rud_ind {</span><br><span style="color: hsl(120, 100%, 40%);">+            log("Respoding to inbound IuRESET from ", g_ran_ops.sccp_addr_peer, " to ", g_ran_ops.sccp_addr_local, " with IuRESET-ACK");</span><br><span>           var CN_DomainIndicator dom;</span><br><span>          dom := rud_ind.userData.initiatingMessage.value_.Reset.protocolIEs[1].value_.cN_DomainIndicator;</span><br><span>             RANAP.send(ts_RANAP_UNITDATA_req(rud_ind.callingAddress, rud_ind.calledAddress,</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18848">change 18848</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18848"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ia1f94c4fc99ca18196f3fd5c5efe26b7309df499 </div>
<div style="display:none"> Gerrit-Change-Number: 18848 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>