<p>ipse has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore.git/+/17331">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gb: Logging improvements.<br><br>1. Print signalling and data weights on NS-VC creation.<br><br>2. Print an INFO message when we receive a NS-ALIVE from an unknown<br>IP:port. Before that it was ignored silently which was making<br>configuration debugging difficult for standard-compliant Gb over IP.<br>Now you can easily see that an SGSN is trying to connect to us.<br><br>Change-Id: Ic145bcc54e3f0779ea9e284216831b17ab22eb91<br>---<br>M src/gb/gprs_ns.c<br>1 file changed, 10 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore.git refs/changes/31/17331/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gb/gprs_ns.c b/src/gb/gprs_ns.c</span><br><span>index 2701d72..26c80c4 100644</span><br><span>--- a/src/gb/gprs_ns.c</span><br><span>+++ b/src/gb/gprs_ns.c</span><br><span>@@ -318,7 +318,8 @@</span><br><span>                 return NULL;</span><br><span>         }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   LOGP(DNS, LOGL_INFO, "NSVCI=%u Creating NS-VC\n", nsvci);</span><br><span style="color: hsl(120, 100%, 40%);">+   LOGP(DNS, LOGL_INFO, "NSVCI=%u Creating NS-VC Signal weight %d, Data weight %d\n",</span><br><span style="color: hsl(120, 100%, 40%);">+       nsvci, sig_weight, data_weight);</span><br><span> </span><br><span>    nsvc = talloc_zero(nsi, struct gprs_nsvc);</span><br><span>   if (!nsvc)</span><br><span>@@ -1632,6 +1633,14 @@</span><br><span>          return GPRS_NS_CS_SKIPPED;</span><br><span>   }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ if (nsh->pdu_type == NS_PDUT_ALIVE) {</span><br><span style="color: hsl(120, 100%, 40%);">+              /* Ignore this, see 3GPP TS 08.16, 7.4.1 */</span><br><span style="color: hsl(120, 100%, 40%);">+           LOGP(DNS, LOGL_INFO, "Ignoring NS ALIVE from %s "</span><br><span style="color: hsl(120, 100%, 40%);">+                "for non-existing NS-VC\n",</span><br><span style="color: hsl(120, 100%, 40%);">+                 gprs_ns_ll_str(fallback_nsvc));</span><br><span style="color: hsl(120, 100%, 40%);">+          return GPRS_NS_CS_SKIPPED;</span><br><span style="color: hsl(120, 100%, 40%);">+    }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>  if (nsh->pdu_type == NS_PDUT_ALIVE_ACK) {</span><br><span>                 /* Ignore this, see 3GPP TS 08.16, 7.4.1 */</span><br><span>          LOGP(DNS, LOGL_INFO, "Ignoring NS ALIVE ACK from %s "</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore.git/+/17331">change 17331</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.git/+/17331"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore.git </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ic145bcc54e3f0779ea9e284216831b17ab22eb91 </div>
<div style="display:none"> Gerrit-Change-Number: 17331 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: ipse <Alexander.Chemeris@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>