<p><a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/25689">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/libosmo-sccp/+/25689/1/src/osmo_ss7.c">File src/osmo_ss7.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/libosmo-sccp/+/25689/1/src/osmo_ss7.c@1257">Patch Set #1, Line 1257:</a> <code style="font-family:monospace,monospace">oterwise</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">otherwise</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/25689/1/src/osmo_ss7.c@1279">Patch Set #1, Line 1279:</a> <code style="font-family:monospace,monospace">!(rem_has_v4 && !rem_has_v6)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Can it be that no remote addr is set and no local addr is set? if that is the case, it seems that it will because of rem_has_v6 == false, use "0.0.0.0" for the local addr even if IPv6 is supported.</p><p style="white-space: pre-wrap; word-wrap: break-word;">So maybe it makes more sense to switch the "if (!asp->cfg.local.host_cnt)" and "if (!asp->cfg.remote.host_cnt)" blocks?</p><p style="white-space: pre-wrap; word-wrap: break-word;">I know that this is existing code that was only moved around in this patch, so if this is a problem it should probably be fixed in a follow up patch.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/25689">change 25689</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/libosmo-sccp/+/25689"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-sccp </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I82e203612571b7651d758d8148661f706a1642ba </div>
<div style="display:none"> Gerrit-Change-Number: 25689 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </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: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: dexter <pmaier@sysmocom.de> </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-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 07 Oct 2021 11:28:40 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>