<p>pespin <strong>uploaded patch set #6</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/libosmo-netif/+/26435">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">prim: Add internal CTL SAPI to negotiate SAP versions<br><br>This commits adds a generic mechansim for applications to validate<br>support for SAPs and specific versions of them.<br><br>A new special SAPI is introduced to manage inbound control messages for<br>the protocol.<br>In that SAPI a new primitive HELLO.ind/.cnf is added to negotiate<br>support for versions of any given SAP.<br>The idea is that the client upon connecting submits a HELLO.ind(SAP,<br>VER) for each SAP it plans to use, including the version of the special<br>CTL SAPI itself (preferrably to be checked first).<br>Upon receiving such a message, osmo_prim_srv handles it using a special<br>path, which ends up calling the user provided rx_sapi_version_cb(SAP,<br>VER). In there, the user can either:<br>* Accept the version (return same VER value)<br>* Reject the requested version but propose another candidate version<br> (return some positive VER value other than received VER). In this<br> case, the client can decide whether to request another VER or close the<br> connection.<br>* Reject the proposed version and close the connection.<br><br>Change-Id: I0c2d92cfdb5433e3caab51d712fd947d51eeef23<br>---<br>M include/osmocom/netif/prim.h<br>M src/prim.c<br>2 files changed, 122 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/35/26435/6</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-netif/+/26435">change 26435</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/libosmo-netif/+/26435"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: libosmo-netif </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I0c2d92cfdb5433e3caab51d712fd947d51eeef23 </div>
<div style="display:none"> Gerrit-Change-Number: 26435 </div>
<div style="display:none"> Gerrit-PatchSet: 6 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>