<p>Hoernchen would like Ruben Undheim to <strong>review</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/14811">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Fix one struct for big-endian archs<br><br>Change-Id: Ic6e654e0d95d662942c6485097f0b96e1fa46ead<br>---<br>M src/ipaccess/network_listen.c<br>1 file changed, 7 insertions(+), 0 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/11/14811/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/ipaccess/network_listen.c b/src/ipaccess/network_listen.c</span><br><span>index bbaf798..d4fa4de 100644</span><br><span>--- a/src/ipaccess/network_listen.c</span><br><span>+++ b/src/ipaccess/network_listen.c</span><br><span>@@ -39,6 +39,8 @@</span><br><span> #include <osmocom/bsc/debug.h></span><br><span> #include <osmocom/abis/e1_input.h></span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+#include <osmocom/core/endian.h></span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> #define WHITELIST_MAX_SIZE ((NUM_ARFCNS*2)+2+1)</span><br><span> </span><br><span> int ipac_rxlevstat2whitelist(uint16_t *buf, const struct rxlev_stats *st, uint8_t min_rxlev,</span><br><span>@@ -119,8 +121,13 @@</span><br><span> } __attribute__((packed));</span><br><span> </span><br><span> struct ipacc_cusage_elem {</span><br><span style="color: hsl(120, 100%, 40%);">+#if OSMO_IS_LITTLE_ENDIAN == 1</span><br><span>      uint16_t arfcn:10,</span><br><span>             rxlev:6;</span><br><span style="color: hsl(120, 100%, 40%);">+#else</span><br><span style="color: hsl(120, 100%, 40%);">+     uint16_t rxlev:6,</span><br><span style="color: hsl(120, 100%, 40%);">+      arfcn:10;</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span> } __attribute__ ((packed));</span><br><span> </span><br><span> static int test_rep(void *_msg)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/14811">change 14811</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/+/14811"/><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: Ic6e654e0d95d662942c6485097f0b96e1fa46ead </div>
<div style="display:none"> Gerrit-Change-Number: 14811 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Hoernchen <ewild@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Ruben Undheim <ruben.undheim@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>