<p>fixeria <strong>uploaded patch set #4</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/19787">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">encoding: use CSN.1 codec to generate Packet Uplink Assignment<br><br>It's quite odd to see that in write_packet_downlink_assignment()<br>we initialize an 'RlcMacDownlink_t', so then the caller can use<br>the power of CSN.1 codec to generate the final sequence of bytes<br>to be transmitted, while in write_packet_uplink_assignment() we<br>already compose the final RLC/MAC message straight away using<br>the low-level bitvec API (like bitvec_write_field()).<br><br>I guess the reason is that at the time of writing this code, the<br>CSN.1 codec was not stable enough, so it was safer to generate<br>the message 'by hand'.  This would also explain why we *decode*<br>the final RLC/MAC message in create_ul_ass() right after encoding.<br><br>Rewrite write_packet_uplink_assignment(), so now it initializes<br>a caller-provided 'RlcMacDownlink_t' structure.  Given that it's<br>allocated on heap using talloc_zero(), do not initialize presence<br>indicators of fields that are not present in the message.<br><br>This would facilitate handling of frequency hopping parameters<br>in the upcoming changes, in particular we can now introduce a<br>function that would compose Frequency Parameters IE for both<br>write_packet_{downlink,uplink}_assignment().<br><br>Tested manually by running a GPRS-enabled network, as well as by<br>running test cases from ttcn3-pcu-test => no regressions observed.<br><br>Change-Id: I2850b91e0043cdca8ae7498a5fc727eeedd029b6<br>Related: SYS#4868, OS#4547<br>---<br>M src/encoding.cpp<br>M src/encoding.h<br>M src/tbf.cpp<br>3 files changed, 108 insertions(+), 78 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/87/19787/4</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/19787">change 19787</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-pcu/+/19787"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I2850b91e0043cdca8ae7498a5fc727eeedd029b6 </div>
<div style="display:none"> Gerrit-Change-Number: 19787 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>