<p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/20356">View Change</a></p><p>5 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 style="white-space: pre-wrap; word-wrap: break-word;">Add header of dependancy library instead.</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@28">Patch Set #1, Line 28:</a> <code style="font-family:monospace,monospace">int bsc_sccp_inst_next_conn_id(struct osmo_sccp_instance *sccp)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Header file for "struct osmo_sccp_instance" missing.</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@36">Patch Set #1, Line 36:</a> <code style="font-family:monospace,monospace">    for (i = 0; i < 0xFFFFFF; i++) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">you use a uint32_t but check against 8*3=24 bits? is this wrong? please document otherwise where does this value come from, and if possible use a define.</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 style="white-space: pre-wrap; word-wrap: break-word;">does it need to be uniqe per MSC? or for all MSCs?</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 style="white-space: pre-wrap; word-wrap: break-word;">Shouldn't you try harder here? by incrementing next_id again until a whole loop is done.<br>You could optimize with a bit mask on a bitvec perhaps, or an rb_tree/hashtable.</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-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 01 Oct 2020 11:12:45 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>