<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/21451">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">OML: sysmobts: add state to track feature negotiation<br><br>Add variables to track feature negotiation for sysmobts. In preparation<br>for the NSVC MO which need to check for IPv6 feature.<br><br>Change-Id: I7c207eee0e331995ae04acec014fbd13d4d16280<br>---<br>M include/osmocom/bsc/bts.h<br>M src/osmo-bsc/abis_nm.c<br>M src/osmo-bsc/bts_ipaccess_nanobts.c<br>3 files changed, 9 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/51/21451/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/bsc/bts.h b/include/osmocom/bsc/bts.h</span><br><span>index 22839d6..de0994f 100644</span><br><span>--- a/include/osmocom/bsc/bts.h</span><br><span>+++ b/include/osmocom/bsc/bts.h</span><br><span>@@ -295,6 +295,8 @@</span><br><span>                  uint16_t bts_id;</span><br><span>                     uint32_t flags;</span><br><span>                      uint32_t rsl_ip;</span><br><span style="color: hsl(120, 100%, 40%);">+                      bool feature_dynamic;</span><br><span style="color: hsl(120, 100%, 40%);">+                 bool feature_negotiated;</span><br><span>             } ip_access;</span><br><span>                 struct {</span><br><span>                     struct {</span><br><span>diff --git a/src/osmo-bsc/abis_nm.c b/src/osmo-bsc/abis_nm.c</span><br><span>index 73dc2d0..dab5bb6 100644</span><br><span>--- a/src/osmo-bsc/abis_nm.c</span><br><span>+++ b/src/osmo-bsc/abis_nm.c</span><br><span>@@ -596,6 +596,8 @@</span><br><span>                               osmo_bts_has_feature(&bts->features, i), osmo_bts_has_feature(&bts->model->features, i));</span><br><span>                      }</span><br><span>            }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+           bts->ip_access.feature_negotiated = true;</span><br><span>         }</span><br><span> </span><br><span>        /* Parse Attribute Response Info content for 3GPP TS 52.021 ยง9.4.28 Manufacturer Dependent State */</span><br><span>diff --git a/src/osmo-bsc/bts_ipaccess_nanobts.c b/src/osmo-bsc/bts_ipaccess_nanobts.c</span><br><span>index f9dc8b3..32823bb 100644</span><br><span>--- a/src/osmo-bsc/bts_ipaccess_nanobts.c</span><br><span>+++ b/src/osmo-bsc/bts_ipaccess_nanobts.c</span><br><span>@@ -502,6 +502,11 @@</span><br><span>         /* First of all, remove deferred drop if enabled */</span><br><span>  osmo_timer_del(&bts->oml_drop_link_timer);</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ if (is_sysmobts_v2(bts)) {</span><br><span style="color: hsl(120, 100%, 40%);">+            bts->ip_access.feature_negotiated = false;</span><br><span style="color: hsl(120, 100%, 40%);">+         bts->ip_access.feature_dynamic = true;</span><br><span style="color: hsl(120, 100%, 40%);">+     }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>  if (!bts->oml_link)</span><br><span>               return;</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/21451">change 21451</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-bsc/+/21451"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I7c207eee0e331995ae04acec014fbd13d4d16280 </div>
<div style="display:none"> Gerrit-Change-Number: 21451 </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>