<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22898">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">NS_Emulation: factor-out as_ns_common_status() altstep<br><br>This is a new altstep which groups all handling of NsStatusInd.<br>Right now it's only used from one place, but upcoming patches<br>will re-use it elsewhere.<br><br>Change-Id: I4e8e7d19c764cc977beb84a6859c9ce73518b653<br>---<br>M library/NS_Emulation.ttcnpp<br>1 file changed, 10 insertions(+), 6 deletions(-)<br><br></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 24c9941..1b9b1df 100644</span><br><span>--- a/library/NS_Emulation.ttcnpp</span><br><span>+++ b/library/NS_Emulation.ttcnpp</span><br><span>@@ -352,13 +352,8 @@</span><br><span> return res;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">- private altstep as_ns_common() runs on NS_CT {</span><br><span style="color: hsl(120, 100%, 40%);">+ private altstep as_ns_common_status() runs on NS_CT {</span><br><span> var NsStatusIndication rx_nssi;</span><br><span style="color: hsl(0, 100%, 40%);">- var NsUnitdataIndication rx_nsudi;</span><br><span style="color: hsl(0, 100%, 40%);">- var NsUnitdataRequest rx_nsudr;</span><br><span style="color: hsl(0, 100%, 40%);">- var NsDisableVcRequest rx_disar;</span><br><span style="color: hsl(0, 100%, 40%);">- var NsEnableVcRequest rx_enar;</span><br><span style="color: hsl(0, 100%, 40%);">- /* pass from NS-VCs up to user */</span><br><span> [] NSVC.receive(tr_NsStsInd(g_config.nsei, ?, ?, NSVC_S_ALIVE_UNBLOCKED)) -> value rx_nssi {</span><br><span> /* check if this one is the first to be unblocked */</span><br><span> var integer num_nsvc_unblocked := f_count_nsvcs_in_state(NSVC_S_ALIVE_UNBLOCKED);</span><br><span>@@ -385,6 +380,15 @@</span><br><span> Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail,</span><br><span> log2str("Received NsStatusInd for invalid NSEI: ", rx_nssi));</span><br><span> }</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%);">+ private altstep as_ns_common() runs on NS_CT {</span><br><span style="color: hsl(120, 100%, 40%);">+ var NsUnitdataIndication rx_nsudi;</span><br><span style="color: hsl(120, 100%, 40%);">+ var NsUnitdataRequest rx_nsudr;</span><br><span style="color: hsl(120, 100%, 40%);">+ var NsDisableVcRequest rx_disar;</span><br><span style="color: hsl(120, 100%, 40%);">+ var NsEnableVcRequest rx_enar;</span><br><span style="color: hsl(120, 100%, 40%);">+ /* pass from NS-VCs up to user */</span><br><span style="color: hsl(120, 100%, 40%);">+ [] as_ns_common_status();</span><br><span> [] NSVC.receive(tr_NsUdInd(g_config.nsei, ?, ?)) -> value rx_nsudi {</span><br><span> NS_SP.send(rx_nsudi);</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22898">change 22898</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/+/22898"/><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: I4e8e7d19c764cc977beb84a6859c9ce73518b653 </div>
<div style="display:none"> Gerrit-Change-Number: 22898 </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-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>