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

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gprs_ns2: sns: remove the initial SNS NSVC if it's not part<br><br>A SNS configuration can be done over a NSVC, however this initial NSVC doesn't<br>need to be part of the configuration.<br>Those NSVC need to be removed when the configuration is done.<br>This wrong behaviour can be seen in the vty `show ns` on<br><br>NSEI 00001: UDP, ALIVE<br> FSM Instance Name: 'GPRS-NS2-SNS-BSS(NSE00001-SNS)[0x55c72c09b420]', ID: 'NSE00001-SNS'<br>  Log-Level: 'DEBUG', State: 'CONFIGURED'<br> Maximum number of remote  NS-VCs: 8192, IPv4 Endpoints: 8192, IPv6 Endpoints: 8192<br> Local IPv4 Endpoints:<br>  10.0.0.1:23000, Signalling Weight: 1, Data Weight: 1<br> Remote IPv4 Endpoints:<br>  10.0.2.2:23000, Signalling Weight: 1, Data Weight: 0<br>  10.0.2.2:23001, Signalling Weight: 0, Data Weight: 1<br>  3 NS-VC:<br>   NSVCI none: UNBLOCKED DYNAMIC data_weight=1 sig_weight=0 udp)[10.0.0.1]:23000<>[10.0.2.2]:23000<br>   NSVCI none: UNBLOCKED DYNAMIC data_weight=0 sig_weight=1 udp)[10.0.0.1]:23000<>[10.0.2.2]:23001<br>   NSVCI none: UNCONFIGURED DYNAMIC data_weight=1 sig_weight=1 udp)[10.0.0.1]:23000<>[10.0.2.2]:8888<br><br>The UNCONFIGURED NSVC should not be present in when SNS is in CONFIGURED.<br><br>Related: SYS#5416<br>Change-Id: I4045ac6c033ae084743b17a16eef4fcff76589b9<br>---<br>M src/gb/gprs_ns2_sns.c<br>1 file changed, 4 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gb/gprs_ns2_sns.c b/src/gb/gprs_ns2_sns.c</span><br><span>index 552e4b8..18f388d 100644</span><br><span>--- a/src/gb/gprs_ns2_sns.c</span><br><span>+++ b/src/gb/gprs_ns2_sns.c</span><br><span>@@ -1368,6 +1368,10 @@</span><br><span>             }</span><br><span>    }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ /* remove the initial NSVC if the NSVC isn't part of the configuration */</span><br><span style="color: hsl(120, 100%, 40%);">+ if (gss->sns_nsvc->sns_only)</span><br><span style="color: hsl(120, 100%, 40%);">+            gprs_ns2_free_nsvc(gss->sns_nsvc);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>      ns2_prim_status_ind(nse, NULL, 0, GPRS_NS2_AFF_CAUSE_SNS_CONFIGURED);</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/23675">change 23675</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/+/23675"/><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-Change-Id: I4045ac6c033ae084743b17a16eef4fcff76589b9 </div>
<div style="display:none"> Gerrit-Change-Number: 23675 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </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: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>