<p>neels <strong>uploaded patch set #5</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/16030">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo_sockaddr_str: API doc: fix 32bit addr mixup of host/network byte order<br><br>Of course both v4 and v6 addresses are kept in network byte order when<br>represented in bytes, but when writing, I somehow must have assumed that<br>inet_pton() returns host byte order. Fix that mixup in the API docs:<br><br>osmo_sockaddr_str_from_32() and osmo_sockaddr_str_to_32() actually use network<br>byte order.<br><br>osmo_sockaddr_str_from_32n() and osmo_sockaddr_str_to_32n() actually use host<br>byte order, though reflecting 'n' in their name.<br><br>sockaddr_str_test: use hexdump instead of %x to show the<br>osmo_sockaddr_str_to_32*() conversions so that the error becomes obvious.<br>(Printing %x reverses the bytes again and made it look correct.)<br><br>Change-Id: I3cf150cc0cc06dd36039fbde091bc71b01697322<br>---<br>M src/sockaddr_str.c<br>M tests/sockaddr_str/sockaddr_str_test.c<br>M tests/sockaddr_str/sockaddr_str_test.ok<br>3 files changed, 58 insertions(+), 54 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/30/16030/5</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/16030">change 16030</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/libosmocore/+/16030"/><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-Change-Id: I3cf150cc0cc06dd36039fbde091bc71b01697322 </div>
<div style="display:none"> Gerrit-Change-Number: 16030 </div>
<div style="display:none"> Gerrit-PatchSet: 5 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>