<p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/20356">View Change</a></p><p>4 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/20356/1/include/osmocom/bsc/gsm_data.h">File include/osmocom/bsc/gsm_data.h:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/20356/1/include/osmocom/bsc/gsm_data.h@53">Patch Set #1, Line 53:</a> <code style="font-family:monospace,monospace">struct osmo_sccp_instance;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Add header of dependancy library instead.</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">no, we discussed before. you should talk to some OpenBSD guys once in a while :)</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/20356/1/src/osmo-bsc/bsc_sccp.c">File src/osmo-bsc/bsc_sccp.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/20356/1/src/osmo-bsc/bsc_sccp.c@36">Patch Set #1, Line 36:</a> <code style="font-family:monospace,monospace">     for (i = 0; i < 0xFFFFFF; i++) {</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">you use a uint32_t but check against 8*3=24 bits? is this wrong? please document otherwise where doe […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">yea not sure about that, apparently SCCP conn ids are 24 bit. adopted that from earlier code</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/20356/1/src/osmo-bsc/bsc_sccp.c@43">Patch Set #1, Line 43:</a> <code style="font-family:monospace,monospace">                   if (conn->sccp.msc && conn->sccp.msc->a.sccp == sccp) {</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">does it need to be uniqe per MSC? or for all MSCs?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">for *all* SCCP connections across all SSNs, so not only all MSCs but also the Lb interface.<br>(But limited per cs7 instance.)</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/20356/1/src/osmo-bsc/bsc_sccp.c@45">Patch Set #1, Line 45:</a> <code style="font-family:monospace,monospace">                                      conn_id_already_used = true;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Shouldn't you try harder here? by incrementing next_id again until a whole loop is done. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">believe me i cracked my head and it's a hard problem. in the end i realized: in practice this will be quite optimal because by the time we wrap back to a zero conn_id, those old ones will have long become unused, so we will simply iterate once on all conns just to be sure it is really unused.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/20356">change 20356</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/+/20356"/><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: I12fcb18f6e4380f72929cfe7681bac05330a8c9a </div>
<div style="display:none"> Gerrit-Change-Number: 20356 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 01 Oct 2020 14:35:15 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>