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

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">library/GSM_RR_Types.ttcn: fix: apply BYTEORDER(last) globally<br><br>By default, the BYTEORDER for BIT1..N sub-types is set to 'first'.<br>This may result in incorrect decoding of bit-fields located on the<br>boundary of two octets. For example:<br><br>  IA Rest Octets<br>    L... .... = First Discriminator Bit: Low<br>    .H.. .... = Second Discriminator Bit: High<br>    ..0. .... = Discriminator bit: EGPRS Packet Uplink Assignment<br>    ...0 .... = Downlink/Uplink: EGPRS Packet Uplink Assignment<br>    EGPRS Packet Uplink Assignment<br>      .... 0001  1... .... = Extended_RA: 3  // <------------ (!)<br>      .0.. .... = Access Technologies Request: Not Present<br>      ..1. .... = TFI/Multiblock: TFI Assignment Present<br>      ...0 0000 = TFI_Assignment: 0<br><br>As can be seen, the field 'Extended_RA' in this particular case<br>occupies 4 LSBs of the first octet and 1 MSB of the second. So<br>instead of '00011'B, TITAN's RAW codec decodes '10001'B.<br><br>For more details, see:<br><br>https://www.eclipse.org/forums/index.php/m/1826511/<br>https://bugs.eclipse.org/bugs/show_bug.cgi?id=562488<br><br>Change-Id: I481a40daef3eed4a3daa687ad87c4128a13181b4<br>---<br>M library/GSM_RR_Types.ttcn<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/library/GSM_RR_Types.ttcn b/library/GSM_RR_Types.ttcn</span><br><span>index 9d71f80..a7d927a 100644</span><br><span>--- a/library/GSM_RR_Types.ttcn</span><br><span>+++ b/library/GSM_RR_Types.ttcn</span><br><span>@@ -1029,4 +1029,4 @@</span><br><span>                 }</span><br><span>    };</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-} with { encode "RAW" ; variant "FIELDORDER(msb)" }</span><br><span style="color: hsl(120, 100%, 40%);">+} with { encode "RAW" ; variant "FIELDORDER(msb)" variant "BYTEORDER(last)" }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/17958">change 17958</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/+/17958"/><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: I481a40daef3eed4a3daa687ad87c4128a13181b4 </div>
<div style="display:none"> Gerrit-Change-Number: 17958 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </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: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>