<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10381">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">sgsn: add f_cellid_to_RAI()<br><br>Returns a RoutingAreaIdentificationV from GbInstance. This will be useful<br>when using multiple BSSGP and the g_pars.ra field is not the needed ra.<br><br>Change-Id: Ide96213ab2f210590b86deaf370486c8a0a78058<br>---<br>M sgsn/SGSN_Tests.ttcn<br>1 file changed, 16 insertions(+), 0 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/81/10381/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn</span><br><span>index ab6f651..54a5fe1 100644</span><br><span>--- a/sgsn/SGSN_Tests.ttcn</span><br><span>+++ b/sgsn/SGSN_Tests.ttcn</span><br><span>@@ -101,6 +101,22 @@</span><br><span>      float t_guard</span><br><span> };</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+private function f_cellid_to_RAI(in BssgpCellId cell_id) return RoutingAreaIdentificationV {</span><br><span style="color: hsl(120, 100%, 40%);">+ var BcdMccMnc mcc_mnc := cell_id.ra_id.lai.mcc_mnc;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+        var RoutingAreaIdentificationV ret := {</span><br><span style="color: hsl(120, 100%, 40%);">+                mccDigit1 := mcc_mnc[0],</span><br><span style="color: hsl(120, 100%, 40%);">+                mccDigit2 := mcc_mnc[1],</span><br><span style="color: hsl(120, 100%, 40%);">+                mccDigit3 := mcc_mnc[2],</span><br><span style="color: hsl(120, 100%, 40%);">+                mncDigit3 := mcc_mnc[5],</span><br><span style="color: hsl(120, 100%, 40%);">+                mncDigit1 := mcc_mnc[3],</span><br><span style="color: hsl(120, 100%, 40%);">+                mncDigit2 := mcc_mnc[4],</span><br><span style="color: hsl(120, 100%, 40%);">+                lac := int2oct(cell_id.ra_id.lai.lac, 16),</span><br><span style="color: hsl(120, 100%, 40%);">+                rac := int2oct(cell_id.ra_id.rac, 8)</span><br><span style="color: hsl(120, 100%, 40%);">+        }</span><br><span style="color: hsl(120, 100%, 40%);">+        return ret;</span><br><span style="color: hsl(120, 100%, 40%);">+};</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> private function f_init_gb(inout GbInstance gb, charstring id, integer offset) runs on test_CT {</span><br><span>       gb.vc_NS := NS_CT.create(id & "-NS" & int2str(offset));</span><br><span>    gb.vc_BSSGP := BSSGP_CT.create(id & "-BSSGP" & int2str(offset));</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10381">change 10381</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/10381"/><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-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ide96213ab2f210590b86deaf370486c8a0a78058 </div>
<div style="display:none"> Gerrit-Change-Number: 10381 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>