<p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/20414">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/20414/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/+/20414/1/include/osmocom/bsc/gsm_data.h@54">Patch Set #1, Line 54:</a> <code style="font-family:monospace,monospace"> </code></p><p style="white-space: pre-wrap; word-wrap: break-word;">JFYI: I am not the author of this code, and not trying to advocate the current approach.</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">We should *either* we always store a RSL link ID, *or* we store a DLCI.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">As far as I understand, this is exactly what we're doing. A given msgb is either an RSL message or a BSSAP message, so we store either RSL Link ID or DLCI respectively. Not both at the same time. The code simply makes use of msgb->cb[3] for both identifiers.</p><p style="white-space: pre-wrap; word-wrap: break-word;">I agree that the macro name is confusing, and I guess this lead to direct RSL Link ID / DLCI assignment bugs. This is why I introduced an alias. Of course, we can use a different location, but what would we benefit? A message cannot be RSL and BSSAP at the same time.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/20414">change 20414</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/+/20414"/><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: I41e34670a4e173cdbd9617d2c7f7c49b1f5ab46c </div>
<div style="display:none"> Gerrit-Change-Number: 20414 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Sat, 03 Oct 2020 07:53:47 +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: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>