<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/20082">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">abis_nm: make a HACK in abis_nm_ipaccess_cgi() less confusing<br><br>Change-Id: Ideed271ca7453e98d153deb8aa0aefa7020b75ec<br>Fixes: CID#208178<br>---<br>M src/osmo-bsc/abis_nm.c<br>1 file changed, 4 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/82/20082/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/abis_nm.c b/src/osmo-bsc/abis_nm.c</span><br><span>index d88ce24..01b304e 100644</span><br><span>--- a/src/osmo-bsc/abis_nm.c</span><br><span>+++ b/src/osmo-bsc/abis_nm.c</span><br><span>@@ -3014,10 +3014,11 @@</span><br><span> {</span><br><span>      struct gsm48_ra_id *_buf = (struct gsm48_ra_id*)buf;</span><br><span>         uint16_t ci = htons(bts->cell_identity);</span><br><span style="color: hsl(0, 100%, 40%);">-     /* we simply reuse the GSM48 function and write the Cell ID over the position where the RAC</span><br><span style="color: hsl(0, 100%, 40%);">-      * starts */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+        /* HACK: we simply reuse the existing GSM48 function and write</span><br><span style="color: hsl(120, 100%, 40%);">+         * the Cell ID over the position where the RAC starts. */</span><br><span>    gsm48_ra_id_by_bts(_buf, bts);</span><br><span style="color: hsl(0, 100%, 40%);">-  memcpy(&_buf->rac, &ci, sizeof(ci));</span><br><span style="color: hsl(120, 100%, 40%);">+       memcpy(buf + sizeof(struct gsm48_ra_id) - 1, &ci, sizeof(ci));</span><br><span> }</span><br><span> </span><br><span> static const struct value_string ipacc_testres_names[] = {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/20082">change 20082</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-bsc/+/20082"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ideed271ca7453e98d153deb8aa0aefa7020b75ec </div>
<div style="display:none"> Gerrit-Change-Number: 20082 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>