<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22897">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">NS_Emulation: Factor-out function to broadcast to all NS_VCs<br><br>Change-Id: I8cd16031dbbd244dcff74fc8a1cd69e9f8a06dbf<br>---<br>M library/NS_Emulation.ttcnpp<br>1 file changed, 7 insertions(+), 3 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/97/22897/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/library/NS_Emulation.ttcnpp b/library/NS_Emulation.ttcnpp</span><br><span>index 6d8113c..24c9941 100644</span><br><span>--- a/library/NS_Emulation.ttcnpp</span><br><span>+++ b/library/NS_Emulation.ttcnpp</span><br><span>@@ -461,6 +461,12 @@</span><br><span>                 }</span><br><span>    }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ private function f_broadcast_ns_ctrl(template (value) NsCtrlRequest req) runs on NS_CT {</span><br><span style="color: hsl(120, 100%, 40%);">+              for (var integer i := 0; i < lengthof(g_nsvcs); i := i+1) {</span><br><span style="color: hsl(120, 100%, 40%);">+                        NSVC.send(req) to g_nsvcs[i].vc_conn;</span><br><span style="color: hsl(120, 100%, 40%);">+         }</span><br><span style="color: hsl(120, 100%, 40%);">+     }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>  /* simple IP Sub-Network Service responder for the SGSN side. This is not a full implementation</span><br><span>       * of the protocol, merely sufficient to make the PCU/BSS side happy to proceed */</span><br><span>   private altstep as_vcg_sns_sgsn() runs on NS_CT {</span><br><span>@@ -489,9 +495,7 @@</span><br><span>                              /* success */</span><br><span>                                log("SNS Config succeeded. Sending Alive");</span><br><span>                                /* inform all NS-VC that they are now considered alive */</span><br><span style="color: hsl(0, 100%, 40%);">-                               for (var integer i := 0; i < lengthof(g_nsvcs); i := i+1) {</span><br><span style="color: hsl(0, 100%, 40%);">-                                  NSVC.send(NsCtrlRequest:StartAliveProcedure) to g_nsvcs[i].vc_conn;</span><br><span style="color: hsl(0, 100%, 40%);">-                                     }</span><br><span style="color: hsl(120, 100%, 40%);">+                             f_broadcast_ns_ctrl(NsCtrlRequest:StartAliveProcedure);</span><br><span>                              }</span><br><span>                    [] NSVC.receive(SnsIndication:{sind.nsvci,</span><br><span>                                                   tr_SNS_CONFIG_ACK(g_config.nsei, ?)}) from vc {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22897">change 22897</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/+/22897"/><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: I8cd16031dbbd244dcff74fc8a1cd69e9f8a06dbf </div>
<div style="display:none"> Gerrit-Change-Number: 22897 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>