<p>Neels Hofmeyr <strong>uploaded patch set #3</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/13123">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">add osmo_ip_port API<br><br>For handling RTP IP addresses and ports, osmo-mgw, osmo-bsc and osmo-msc so far<br>have their own separate shims and code duplication around inet_ntoa(), htons(),<br>sockaddr conversions etc. Unify and standardize with this common API.<br><br>In the MGW endpoint FSM that was introduced in osmo-bsc and which I would like<br>to re-use for osmo-msc (upcoming patch moving that to osmo-mgw), it has turned<br>out that using char* IP address and uint16_t port number types are a convenient<br>common denominator for logging, MGCP message composition and GSM48. Ongoing<br>osmo-msc work also uses this for MNCC.<br><br>This is of course potentially useful for any other IP+port combinations besides<br>RTP stream handling.<br><br>Needless to say that most current implementations will probably stay with their<br>current own conversion code for a long time; for current osmo-{bsc,msc,mgw}<br>work (MGW endpoint FSM) though, I would like to move to this API here.<br><br>Change-Id: Id617265337f09dfb6ddfe111ef5e578cd3dc9f63<br>---<br>M include/Makefile.am<br>A include/osmocom/core/ip_port.h<br>M src/Makefile.am<br>A src/ip_port.c<br>M tests/Makefile.am<br>A tests/ip_port/ip_port_test.c<br>A tests/ip_port/ip_port_test.ok<br>M tests/testsuite.at<br>8 files changed, 995 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/23/13123/3</pre><p>To view, visit <a href="https://gerrit.osmocom.org/13123">change 13123</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/13123"/><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: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: Id617265337f09dfb6ddfe111ef5e578cd3dc9f63 </div>
<div style="display:none"> Gerrit-Change-Number: 13123 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>