<p><a href="https://gerrit.osmocom.org/11562">View Change</a></p><p>4 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/11562/2/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/11562/2/library/RSL_Emulation.ttcn@192">Patch Set #2, Line 192:</a> <code style="font-family:monospace,monospace">private function f_cid_by_ra_fn2(OCT1 ra, RSL_IE_FrameNumber fn)</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Why are you using RSL_IE_FrameNumber here, but f_cid_by_ra_fn is using GsmFrameNumber? […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Regarding fn parameter:<br>I'm using RSL_IE_FrameNumber because that's what I was getting during receive of tr_RSL_CHAN_RQD.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Other way would have been to transform what I received in tr_RSL_CHAN_RQD into a GsmFrameNumber, but the function doing the opposite cnversion was already available for a similar structure [function f_compute_ReqRef(uint8_t ra, GsmFrameNumber fn) return RequestReference] so it was easir to follow this path.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Regarding replacement:<br>It's not a replacement, as the logic to find/match it's not exactly the same as in f_cid_by_ra_fn, since this one is more relaxed. Of course f_cid_by_ra_fn2 could also be used in other places were f_cid_by_ra_fn is used, but in other places f_cid_by_ra_fn is better because we can match for fn in all cases there (BSC tests).</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11562/2/library/RSL_Emulation.ttcn@194">Patch Set #2, Line 194:</a> <code style="font-family:monospace,monospace">       var RSL_IE_FrameNumber ct_fn;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">unused variable</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I'll remove it, thanks, that's a leftover from an older version of the patch.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11562/2/library/RSL_Emulation.ttcn@427">Patch Set #2, Line 427:</a> <code style="font-family:monospace,monospace">                       var GsmFrameNumber fn;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Unused?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I'll remove, leftover from old version of patch.<br>I think both ra and fn can be removed.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/11562/2/library/RSL_Types.ttcn">File library/RSL_Types.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/11562/2/library/RSL_Types.ttcn@462">Patch Set #2, Line 462:</a> <code style="font-family:monospace,monospace">       template (value) RSL_IE_FrameNumber ts_RSL_IE_FrameNumber(GsmFrameNumber fn) := {</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">...right here. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Nice thanks for pointing out.</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">A I said I was inspired by:<br> function tr_compute_ReqRef(template uint8_t ra, template GsmFrameNumber fn)</pre></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/11562">change 11562</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/11562"/><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: comment </div>
<div style="display:none"> Gerrit-Change-Id: I438fd3ee82d88498d928dbcc89ce9bd80d37ab64 </div>
<div style="display:none"> Gerrit-Change-Number: 11562 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 02 Nov 2018 07:58:24 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>