<p><a href="https://gerrit.osmocom.org/13418">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/13418/1/src/osmo-bsc/bts_ipaccess_nanobts_omlattr.c">File src/osmo-bsc/bts_ipaccess_nanobts_omlattr.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/13418/1/src/osmo-bsc/bts_ipaccess_nanobts_omlattr.c@202">Patch Set #1, Line 202:</a> <code style="font-family:monospace,monospace"> buf[0] = bts->gprs.nsvc[0].nsvci >> 8;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Aren't these 2 lines assuming the code runs on a little endian system? afaiu it converts nsvci to big endian to store it in the message, but that's wrong on BE system. I think we need here something like this:<br>osmo_store16be(&bts->gprs.nsvc[0].nsvci, &buf[0])</p><p style="white-space: pre-wrap; word-wrap: break-word;">Or maybe specs just expect something special?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/13418/1/src/osmo-bsc/bts_ipaccess_nanobts_omlattr.c@207">Patch Set #1, Line 207:</a> <code style="font-family:monospace,monospace"> osmo_store16be(bts->gprs.nsvc[0].remote_port, &buf[0]);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Be careful, you are changing the result/encoding here. Either before there was a bug or you are introducing it now. In any of the cases, please describe and state so in the commit log.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Before it used to memcpy, and now you are mangling what you store on little endian systems, so there's a change.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/13418">change 13418</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/13418"/><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-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I28cfb09f224072db9889a89923a3da15a6070e2a </div>
<div style="display:none"> Gerrit-Change-Number: 13418 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Max <msuraev@sysmocom.de> </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: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 26 Mar 2019 16:15:44 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>