<p>Patch set 2:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20968">View Change</a></p><p>10 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/+/20968/2/pcu/GPRS_Components.ttcn">File pcu/GPRS_Components.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/+/20968/2/pcu/GPRS_Components.ttcn@205">Patch Set #2, Line 205:</a> <code style="font-family:monospace,monospace">uint10_t</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">GsmArfcn</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/+/20968/2/pcu/GPRS_Components.ttcn@213">Patch Set #2, Line 213:</a> <code style="font-family:monospace,monospace">uint10_t</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">GsmArfcn</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/+/20968/2/pcu/GPRS_Components.ttcn@370">Patch Set #2, Line 370:</a> <code style="font-family:monospace,monospace">inout</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">in (a.k.a. the 'const')</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/+/20968/2/pcu/GPRS_Components.ttcn@375">Patch Set #2, Line 375:</a> <code style="font-family:monospace,monospace">arfcn != 0</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">ARFCN 0 is a valid ARFCN. Maybe rather make it 'optional' and call ispresent() here?</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/+/20968/2/pcu/GPRS_Components.ttcn@379">Patch Set #2, Line 379:</a> <code style="font-family:monospace,monospace">trx_nr := 7;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I am afraid it would be hard to debug this if some day we decide to add some new hopping test cases, so I would setverdict(fail, ...) and call f_shutdown() here.</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/+/20968/2/pcu/GPRS_Components.ttcn@384">Patch Set #2, Line 384:</a> <code style="font-family:monospace,monospace">inout</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">in (a.k.a. the 'const')</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/+/20968/2/pcu/GPRS_Components.ttcn@386">Patch Set #2, Line 386:</a> <code style="font-family:monospace,monospace">uint3_t</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">You're using restricted types without the need... Maximum number of slots would be 8, while the UINT8_MAX is 7. Let's better use integer. It's not a protocol definition after all.</p><p style="white-space: pre-wrap; word-wrap: break-word;">P.S. I am now wondering how TITAN handles integer overflows. Would it throw a DTE?</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/+/20968/2/pcu/GPRS_Components.ttcn@401">Patch Set #2, Line 401:</a> <code style="font-family:monospace,monospace">inout</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">in (a.k.a. the 'const')</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/+/20968/2/pcu/GPRS_Components.ttcn@415">Patch Set #2, Line 415:</a> <code style="font-family:monospace,monospace">inout</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">in (a.k.a. the 'const')</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/+/20968/2/pcu/GPRS_Components.ttcn@417">Patch Set #2, Line 417:</a> <code style="font-family:monospace,monospace">uint3_t</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Again, integer overflow if pdch_mask == '11111111'B.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20968">change 20968</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/+/20968"/><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: I28430e6d8c77d2b7dc630d186d425a5d82587b82 </div>
<div style="display:none"> Gerrit-Change-Number: 20968 </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: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Sat, 31 Oct 2020 11:42:40 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Gerrit-MessageType: comment </div>