<p>Harald Welte <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/13291">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gprs_ns: Don't use initial IP/port for anything but SNS<br><br>Section 6.2.1 of 3GPP TS 48.016 states:<br>> A pre-configured endpoint shall not be used for NSE data or signalling<br>> traffic (with the exception of Size and Configuration procedures) unless<br>> it is configured by the SGSN using the auto-configuration procedures.<br><br>However, in the current SNS implementation, the initial IP/Port over<br>which we perform the SNS-SIZE + SNS-CONFIG are treated as one of the<br>normal NS-VCs. Specifically, we also perform the NS-ALIVE procedure on<br>it, which is clearly wrong.<br><br>Let's explicitly create the "initial" NS-VC with data and signalling<br>weight of 0, and ensure we never start the alive timer or send any<br>non-SNS PDUs on this connection as long as SNS was not used to change<br>either of the two weights to non-zero.<br><br>While at it, also safeguard against processing any incoming non-SNS<br>messages on such a all-zero-weight connection.<br><br>Change-Id: I16a91a07e5914d123b2ea2f8413b94e7cd518628<br>Closes: OS#3844<br>---<br>M src/gb/gprs_ns.c<br>1 file changed, 55 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/91/13291/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/13291">change 13291</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/13291"/><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-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: I16a91a07e5914d123b2ea2f8413b94e7cd518628 </div>
<div style="display:none"> Gerrit-Change-Number: 13291 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-CC: Alexander Chemeris <Alexander.Chemeris@gmail.com> </div>