<p><a href="https://gerrit.osmocom.org/c/libosmocore/+/20333">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/libosmocore/+/20333/1/include/osmocom/gsm/bsslap.h">File include/osmocom/gsm/bsslap.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/libosmocore/+/20333/1/include/osmocom/gsm/bsslap.h@37">Patch Set #1, Line 37:</a> <code style="font-family:monospace,monospace">enum osmo_bsslap_msgt {</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">are those defintiions from the protocol spec, or are they osmocom specific? […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">of course 3GPP spec as the doxygen file comment indicates</p><p style="white-space: pre-wrap; word-wrap: break-word;">I thought not using an OSMO_ prefix is deprecated legacy style??<br>I assumed it's about keeping a sane namespace rather than indicating who invented it.<br>What if some other library also decides to implement BSSLAP coding and uses the same names?</p><p style="white-space: pre-wrap; word-wrap: break-word;">I can easily move this to protocol/ but do i really have to rename *everything*? :(</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/20333/1/include/osmocom/gsm/bsslap.h@71">Patch Set #1, Line 71:</a> <code style="font-family:monospace,monospace"></code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">why spaces in all these structs?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">the blank line separates the actual coded elements from the flag indicating future additions.<br>the more_items flag doesn't get encoded, it simply indicates to a future user that the struct has more elements that were added in a later version of libosmocore (which we don't need yet)</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/20333/1/src/gsm/bsslap.c">File src/gsm/bsslap.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/libosmocore/+/20333/1/src/gsm/bsslap.c@38">Patch Set #1, Line 38:</a> <code style="font-family:monospace,monospace">    OSMO_BSSLAP_IEI_TA = 0x1,</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">those look like 3GPP constants? see my earlier comment.</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">yes of course</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/20333/1/src/gsm/bsslap.c@183">Patch Set #1, Line 183:</a> <code style="font-family:monospace,monospace">#define PARSE_ERR(errmsg) \</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Not sure what the benefit for this macro is... […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">it allows me to not repeat "Decoding BSSLAP TA Response: " all over the place,<br>and that then again allows me to copy-paste parsing error messages from other _dec_ functions without forgetting to adjust the message type name as well.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Hm, duplicating ';', right.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/20333/1/src/gsm/bsslap.c@458">Patch Set #1, Line 458:</a> <code style="font-family:monospace,monospace">       {}</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">IIRC we had problems with this not finished in 0x00 and NULL? maybe some libosmocore linter?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">no problems at all. I wrote verify_value_string_arrays_are_terminated.py myself</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/20333">change 20333</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/libosmocore/+/20333"/><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-Change-Id: I6409c4bcac402dc7626a3afce9081c59cd715fe8 </div>
<div style="display:none"> Gerrit-Change-Number: 20333 </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: laforge <laforge@osmocom.org> </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 13:15:32 +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"> Comment-In-Reply-To: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>