<p>Harald Welte has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/12932">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gsm0808: comment about difference of gsm0808_create_clear_command()<br><br>This single function has a quite different behavior than the other<br>gsm0808_ functions in terms of how the resulting msgb l2h and l3h<br>pointers are set.  Let's document that to avoid more confusion.<br><br>Change-Id: I0367760a588fc968c5a2dea46001ef1ee7965c8c<br>---<br>M src/gsm/gsm0808.c<br>1 file changed, 4 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/32/12932/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gsm/gsm0808.c b/src/gsm/gsm0808.c</span><br><span>index 86b6c05..5be227e 100644</span><br><span>--- a/src/gsm/gsm0808.c</span><br><span>+++ b/src/gsm/gsm0808.c</span><br><span>@@ -178,7 +178,10 @@</span><br><span>    return msg;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-/*! Create BSSMAP Clear Command message</span><br><span style="color: hsl(120, 100%, 40%);">+/*! Create BSSMAP Clear Command message with BSSAP header in l2h and BSSMAP in l3h.</span><br><span style="color: hsl(120, 100%, 40%);">+ *  This is quite different from most (all?) other gsm0808_create_* which have l3h</span><br><span style="color: hsl(120, 100%, 40%);">+ *  point to the BSSAP header.  However, we have to keep this for backwards compatibility.</span><br><span style="color: hsl(120, 100%, 40%);">+ *  Use gsm0808_create_clear_command2() for a 'modern' implementation.</span><br><span>  *  \param[in] cause TS 08.08 cause value</span><br><span>  *  \returns callee-allocated msgb with BSSMAP Clear Command message */</span><br><span> struct msgb *gsm0808_create_clear_command(uint8_t cause)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12932">change 12932</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/12932"/><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: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I0367760a588fc968c5a2dea46001ef1ee7965c8c </div>
<div style="display:none"> Gerrit-Change-Number: 12932 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>