<p>Patch set 6:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #d4ffd4;">Code-Review +2</span></p><p><a href="https://gerrit.osmocom.org/11728">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/11728/6/include/osmocom/gsm/gsm0808.h">File include/osmocom/gsm/gsm0808.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/11728/6/include/osmocom/gsm/gsm0808.h@188">Patch Set #6, Line 188:</a> <code style="font-family:monospace,monospace"> bool lcls_bss_status_present;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">You can use GSM0808_LCLS_STS_NA - no need in separate bool variable.</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">my problem with that is that GSM0808_LCLS_STS_NA is != 0. So if I create a gsm0808_handover_performed struct, this would be the only item where I need to set something in order to disable the IE. So I'm -1 on using the STS_NA and +1 the current patch version.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Also re: adding struct osmo_lcls suggested earlier, that would be a bit of a layer violation. This function should only encode specific values, not query a status struct and so forth. So again IMHO this patch version is better.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/11728/6/src/gsm/gsm0808.c">File src/gsm/gsm0808.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/11728/6/src/gsm/gsm0808.c@913">Patch Set #6, Line 913:</a> <code style="font-family:monospace,monospace"> msgb_tlv_put(msg, GSM0808_IE_CAUSE, gsm0808_cause_ext(params->cause) ? 2 : 1, (const uint8_t *)&params->cause);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">it was suggested to look at gsm0808_create_cipher_reject_ext(), but clearly that is about an unrelated IE, the implementation also just "manually" encodes the length and can obviously not be re-used here.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Hence I would prefer to merge this as it is, and possibly unify the length finnacky stuff as a general-purpose function in a separate patch, which would then also include some .c regression test.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11728/6/src/gsm/gsm0808.c@935">Patch Set #6, Line 935:</a> <code style="font-family:monospace,monospace">    if (params->lcls_bss_status_present)</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Same here - check for GSM0808_LCLS_STS_NA and add if it differs.</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">(same, I like the current patch version better)</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/11728">change 11728</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/11728"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I825106858bd89afc9837811b8fed2e8accc82441 </div>
<div style="display:none"> Gerrit-Change-Number: 11728 </div>
<div style="display:none"> Gerrit-PatchSet: 6 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Max <msuraev@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 30 Nov 2018 15:13:20 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>