<p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/17617">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/17617/1/src/gprs_bssgp_pcu.cpp">File src/gprs_bssgp_pcu.cpp:</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-pcu/+/17617/1/src/gprs_bssgp_pcu.cpp@173">Patch Set #1, Line 173:</a> <code style="font-family:monospace,monospace"> static uint8_t tmsi_buf[GSM48_TMSI_LEN];</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">OSMO_ASSERT(GSM48_TMSI_LEN > GSM23003_TMSI_NUM_BYTES)</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">GSM48_TMSI_LEN == GSM23003_TMSI_NUM_BYTES + 1, that's exactly what we need.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/17617/1/src/gprs_bssgp_pcu.cpp@180">Patch Set #1, Line 180:</a> <code style="font-family:monospace,monospace">                    return BSSGP_CAUSE_COND_IE_ERR;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">We could try harder to succeed by trying to return the IMSI instead (fine logging an error though of […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I also thought about that. But this can be done later. At the moment I don't see an easy way to do that (using goto?).</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/17617/1/src/gprs_bssgp_pcu.cpp@185">Patch Set #1, Line 185:</a> <code style="font-family:monospace,monospace">                tmsi_buf[0] = 0xf0 | GSM_MI_TYPE_TMSI;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">why is this 0xf0 needed? no define for it?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">In case of IMSI, this nibble is used for octet alignment. In case of TMSI it's unused and should be filled with '1'B. I think there is no define, because I copy-pasted it from libosmocore's osmo_mi_name_buf().</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/17617">change 17617</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-pcu/+/17617"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I97fd5ffc15a4a58112d7c37c69b7ac42b0741a0e </div>
<div style="display:none"> Gerrit-Change-Number: 17617 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 26 Mar 2020 07:21:34 +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>