<p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18465">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18465/1/library/RSL_Emulation.ttcn">File library/RSL_Emulation.ttcn:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18465/1/library/RSL_Emulation.ttcn@335">Patch Set #1, Line 335:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">/* Find IPAC_IDTAG_UNITID in the IPA IDENTITY RESPONSE */<br>     for (var integer i := 0; i < sizeof(id_resp); i := i + 1) {<br>                if (id_resp[i].tag == IPAC_IDTAG_UNITID) {<br>                    unit_id := oct2char(id_resp[i].data);<br>                 break;<br>                }<br><br>           /* If this is the last element, nothing is found */<br>           if (i + 1 == sizeof(id_resp)) {<br>                       testcase.stop("IPA IDENTITY RESPONSE contains no unit-id");<br>         }<br>     }<br></pre></blockquote></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">could probably be generalized into a function that finds/extracts any TLV/IE. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18465/1/library/RSL_Emulation.ttcn@353">Patch Set #1, Line 353:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">/* Parse transceiver number (site/bts/trx) */<br>       unit_id := regexp(unit_id, unit_id_fmt, 2);<br>   trx_nr  := str2int(unit_id);<br></pre></blockquote></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">probably better to introduce an abstract type that represents the tuple (site_id, bts_id, trx_id)?   […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I'll add a FIXME comment for now, if you don't mind. Draft implementation can be found here: https://git.osmocom.org/osmo-ttcn3-hacks/log/?h=fixeria/ipa_unit_id. Unfortunately TITAN fails to decode a valid unit-id string, so we would probably have to write the codec by hand.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18465">change 18465</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/+/18465"/><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: I86afb55ecc6703ce7a229aaa626223f9331a4778 </div>
<div style="display:none"> Gerrit-Change-Number: 18465 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-CC: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 26 May 2020 13:00:00 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>