<p>dexter <strong>uploaded patch set #4</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/12044">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gsm0808: add encoder for cause codes and use it<br><br>At the moment the all gsm0808 cause codes are encoded directly using the<br>tlv API directly to put a one byte TLV field. This works ok for most<br>situations where the cause code consists of a single byte. However,<br>gsm0808 specifies a two byte cause code model where cause codes may be<br>extended up to two bytes. Instead of implementing the encoding over and<br>over and again, let's rather have an encoder function we can call.<br><br>- Add an encoder function that can generate single byte and extended<br>  cause codeds and makes the length decision automatically.<br><br>- Use only this function to append cause codes<br><br>Change-Id: I71d58fad89502a43532f60717ca022c15c73f8bb<br>---<br>M include/osmocom/gsm/gsm0808_utils.h<br>M src/gsm/gsm0808.c<br>M src/gsm/gsm0808_utils.c<br>M src/gsm/libosmogsm.map<br>M tests/gsm0808/gsm0808_test.c<br>M tests/gsm0808/gsm0808_test.ok<br>6 files changed, 75 insertions(+), 19 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/44/12044/4</pre><p>To view, visit <a href="https://gerrit.osmocom.org/12044">change 12044</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/12044"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: I71d58fad89502a43532f60717ca022c15c73f8bb </div>
<div style="display:none"> Gerrit-Change-Number: 12044 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Max <msuraev@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>