<p>pespin <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/14510">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">lib/bssmap: Introduce function f_bssmap_ie_cic_2_int()<br><br>Function will be re-used in forthcoming commits.<br><br>Change-Id: Ifc7444ecca1571959ed83b43d3c7461c637686ae<br>---<br>M library/BSSMAP_Templates.ttcn<br>M library/RAN_Emulation.ttcnpp<br>2 files changed, 6 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/library/BSSMAP_Templates.ttcn b/library/BSSMAP_Templates.ttcn</span><br><span>index b377358..9015680 100644</span><br><span>--- a/library/BSSMAP_Templates.ttcn</span><br><span>+++ b/library/BSSMAP_Templates.ttcn</span><br><span>@@ -402,6 +402,11 @@</span><br><span>   cicLow := bit2oct((substr(int2bit(span, 11), 8, 3) << 5) & int2bit(ts, 5))</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+function f_bssmap_ie_cic_2_int(BSSMAP_IE_CircuitIdentityCode cic_ie) return integer {</span><br><span style="color: hsl(120, 100%, 40%);">+  var integer cic := (oct2int(cic_ie.cicHigh) * 256) + oct2int(cic_ie.cicLow);</span><br><span style="color: hsl(120, 100%, 40%);">+  return cic;</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> template (value) BSSMAP_IE_AoIP_TransportLayerAddress ts_BSSMAP_IE_AoIP_TLA(BSSMAP_FIELD_IPAddress addr,</span><br><span>                                                                             uint16_t udp_port,</span><br><span>                                                                           integer len) := {</span><br><span>diff --git a/library/RAN_Emulation.ttcnpp b/library/RAN_Emulation.ttcnpp</span><br><span>index cd0c867..de5b7f3 100644</span><br><span>--- a/library/RAN_Emulation.ttcnpp</span><br><span>+++ b/library/RAN_Emulation.ttcnpp</span><br><span>@@ -422,7 +422,7 @@</span><br><span>                 ispresent(bssap.pdu.bssmap.assignmentRequest.circuitIdentityCode)) {</span><br><span>                     var BSSMAP_IE_CircuitIdentityCode cic_ie :=</span><br><span>                          bssap.pdu.bssmap.assignmentRequest.circuitIdentityCode;</span><br><span style="color: hsl(0, 100%, 40%);">-                 var integer cic := (oct2int(cic_ie.cicHigh) * 256) + oct2int(cic_ie.cicLow);</span><br><span style="color: hsl(120, 100%, 40%);">+                  var integer cic := f_bssmap_ie_cic_2_int(cic_ie);</span><br><span>                    f_comp_store_cic(client, cic);</span><br><span>               }</span><br><span>    }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/14510">change 14510</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/+/14510"/><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: Ifc7444ecca1571959ed83b43d3c7461c637686ae </div>
<div style="display:none"> Gerrit-Change-Number: 14510 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>