<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/21824">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gprs_ns2: don't start unconfigured fsm via FORCE_UNCONFIGURED<br><br>IP-SNS NSVC are unconfigured and not started when the IP-SNS is doing the SNS configuration.<br>If those NSVC would be started it would result in unsolicitated NS-Alive PDUs.<br><br>Change-Id: Ifec7288dbe71f10109e8b5c3849bf8f23ac7b557<br>---<br>M src/gb/gprs_ns2_vc_fsm.c<br>1 file changed, 6 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/24/21824/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gb/gprs_ns2_vc_fsm.c b/src/gb/gprs_ns2_vc_fsm.c</span><br><span>index 0f6eeab..d5f134e 100644</span><br><span>--- a/src/gb/gprs_ns2_vc_fsm.c</span><br><span>+++ b/src/gb/gprs_ns2_vc_fsm.c</span><br><span>@@ -566,10 +566,12 @@</span><br><span>               msgb_free(msg);</span><br><span>              break;</span><br><span>       case GPRS_NS2_EV_FORCE_UNCONFIGURED:</span><br><span style="color: hsl(0, 100%, 40%);">-            /* Force the NSVC back to its initial state */</span><br><span style="color: hsl(0, 100%, 40%);">-          osmo_fsm_inst_state_chg(fi, GPRS_NS2_ST_UNCONFIGURED, 0, 0);</span><br><span style="color: hsl(0, 100%, 40%);">-            osmo_fsm_inst_dispatch(fi, GPRS_NS2_EV_START, NULL);</span><br><span style="color: hsl(0, 100%, 40%);">-            return;</span><br><span style="color: hsl(120, 100%, 40%);">+               if (fi->state != GPRS_NS2_ST_UNCONFIGURED) {</span><br><span style="color: hsl(120, 100%, 40%);">+                       /* Force the NSVC back to its initial state */</span><br><span style="color: hsl(120, 100%, 40%);">+                        osmo_fsm_inst_state_chg(fi, GPRS_NS2_ST_UNCONFIGURED, 0, 0);</span><br><span style="color: hsl(120, 100%, 40%);">+                  osmo_fsm_inst_dispatch(fi, GPRS_NS2_EV_START, NULL);</span><br><span style="color: hsl(120, 100%, 40%);">+                  return;</span><br><span style="color: hsl(120, 100%, 40%);">+               }</span><br><span>            break;</span><br><span>       }</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/21824">change 21824</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/+/21824"/><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: Ifec7288dbe71f10109e8b5c3849bf8f23ac7b557 </div>
<div style="display:none"> Gerrit-Change-Number: 21824 </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-MessageType: newchange </div>