<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-iuh/+/19742">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  fixeria: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Change default SCTP conn NULL->127.0.0.1 to localhost->localhost<br><br>"127.0.0.1" is changed to "localhost" to let local NSS decide whether to<br>use IPv4 or IPv6. In newish systems, IPv6 ::1 will be selected since<br>IPv6 takes precedence over IPv4.<br><br>Similarly, the default source addr needs to be changed from NULL to "localhost"<br>since for some yet unknwon reason, getaddrinfo(AF_UNSPEC, NULL) returns<br>first IPv4 "0.0.0.0" and later "::", which is inconsistent with<br>getaddrinfo("localhost") result, resulting in src=IPv4(0.0.0.0) and<br>dst=IPv6(::1), which is incompatible and will fail. In any case, since<br>the default remote address is a local one and it's the client side,<br>there's no real logical change since the kernel would anyway should have<br>taken a local address anyway.<br><br>Change-Id: I3c07e6aa0c87b752c9ea22eb4936f6993de6571f<br>---<br>M src/hnbgw.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/hnbgw.c b/src/hnbgw.c</span><br><span>index a47decd..9e0b33b 100644</span><br><span>--- a/src/hnbgw.c</span><br><span>+++ b/src/hnbgw.c</span><br><span>@@ -598,7 +598,7 @@</span><br><span> </span><br><span>        ranap_set_log_area(DRANAP);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">- rc = hnbgw_cnlink_init(g_hnb_gw, "127.0.0.1", M3UA_PORT, NULL);</span><br><span style="color: hsl(120, 100%, 40%);">+     rc = hnbgw_cnlink_init(g_hnb_gw, "localhost", M3UA_PORT, "localhost");</span><br><span>   if (rc < 0) {</span><br><span>             LOGP(DMAIN, LOGL_ERROR, "Failed to initialize SCCP link to CN\n");</span><br><span>                 exit(1);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-iuh/+/19742">change 19742</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-iuh/+/19742"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-iuh </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I3c07e6aa0c87b752c9ea22eb4936f6993de6571f </div>
<div style="display:none"> Gerrit-Change-Number: 19742 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>