<p style="white-space: pre-wrap; word-wrap: break-word;">strlen party!!!! Let's rename MGW to SCW: String Counting Gateway</p><p><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/25426">View Change</a></p><p>10 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/25426/9/include/osmocom/mgcp/mgcp.h">File include/osmocom/mgcp/mgcp.h:</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/osmo-mgw/+/25426/9/include/osmocom/mgcp/mgcp.h@97">Patch Set #9, Line 97:</a> <code style="font-family:monospace,monospace">   /* addr or NULL to fall-back to default */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">"addr or empty"</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/25426/9/src/libosmo-mgcp/mgcp_network.c">File src/libosmo-mgcp/mgcp_network.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/osmo-mgw/+/25426/9/src/libosmo-mgcp/mgcp_network.c@138">Patch Set #9, Line 138:</a> <code style="font-family:monospace,monospace">                if (!strlen(bind_addr))</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">bind_addr[0] == '\0'</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/25426/9/src/libosmo-mgcp/mgcp_network.c@141">Patch Set #9, Line 141:</a> <code style="font-family:monospace,monospace">       if (strlen(bind_addr)) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">bind_addr[0] != '\0'</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/25426/9/src/libosmo-mgcp/mgcp_protocol.c">File src/libosmo-mgcp/mgcp_protocol.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/osmo-mgw/+/25426/9/src/libosmo-mgcp/mgcp_protocol.c@276">Patch Set #9, Line 276:</a> <code style="font-family:monospace,monospace">    const char *addr = strlen(endp->cfg->local_ip) ? endp->cfg->local_ip : conn->end.local_addr;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">endp->cfg->local_ip[0] != '\0'</p><p style="white-space: pre-wrap; word-wrap: break-word;">We have better stuff to do than counting lengths of strings everywhere for no good use.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/25426/9/src/libosmo-mgcp/mgcp_vty.c">File src/libosmo-mgcp/mgcp_vty.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/osmo-mgw/+/25426/9/src/libosmo-mgcp/mgcp_vty.c@68">Patch Set #9, Line 68:</a> <code style="font-family:monospace,monospace">        if (strlen(g_cfg->local_ip))</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">[0] != '\0'</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/25426/9/src/libosmo-mgcp/mgcp_vty.c@75">Patch Set #9, Line 75:</a> <code style="font-family:monospace,monospace">      if (strlen(g_cfg->net_ports.bind_addr_v4))</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">same</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/25426/9/src/libosmo-mgcp/mgcp_vty.c@78">Patch Set #9, Line 78:</a> <code style="font-family:monospace,monospace">       if (strlen(g_cfg->net_ports.bind_addr_v6))</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">same</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/25426/9/src/libosmo-mgcp/mgcp_vty.c@1749">Patch Set #9, Line 1749:</a> <code style="font-family:monospace,monospace">   if (!strlen(g_cfg->source_addr)) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">same</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/25426/9/src/osmo-mgw/mgw_main.c">File src/osmo-mgw/mgw_main.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/osmo-mgw/+/25426/9/src/osmo-mgw/mgw_main.c@372">Patch Set #9, Line 372:</a> <code style="font-family:monospace,monospace">  if (strlen(cfg->call_agent_addr))</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">same</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/25426/9/src/osmo-mgw/mgw_main.c@377">Patch Set #9, Line 377:</a> <code style="font-family:monospace,monospace">                          cfg->call_agent_addr, strlen(cfg->call_agent_addr) ? 2727 : 0, flags);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">same</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-mgw/+/25426">change 25426</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-mgw/+/25426"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-mgw </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I7b46d531c5d3b53984f2ce44538116973f6a074d </div>
<div style="display:none"> Gerrit-Change-Number: 25426 </div>
<div style="display:none"> Gerrit-PatchSet: 9 </div>
<div style="display:none"> Gerrit-Owner: Hoernchen <ewild@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 10 Sep 2021 11:32:13 +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>