<p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/15683">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/15683/1/src/pcu_l1_if.cpp">File src/pcu_l1_if.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/15683/1/src/pcu_l1_if.cpp@a212">Patch Set #1, Line 212:</a> <code style="font-family:monospace,monospace"></code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Unrelated ws fix.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15683/1/src/pcu_l1_if.cpp@226">Patch Set #1, Line 226:</a> <code style="font-family:monospace,monospace">1 + 22</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I would not separate PLEN from Immediate Assignment, it's a mandatory part of that message. To me 3 + 23 looks cleaner, because I know that 23 is the default GSM MAC block length. Moreover, I would use GSM_MACBLOCK_LEN macro here.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15683/1/src/pcu_l1_if.cpp@237">Patch Set #1, Line 237:</a> <code style="font-family:monospace,monospace">3 + 1</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Here it's logical (maybe worth adding a comment): we skip 3 octets of paging group, and the first octet of the MAC block (Immediate Assignment message), because bitvec_pack() does not write plen for us.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15683/1/src/pcu_l1_if.cpp@241">Patch Set #1, Line 241:</a> <code style="font-family:monospace,monospace">1 + 22</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">GSM_MACBLOCK_LEN</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15683/1/src/pcu_l1_if.cpp@243">Patch Set #1, Line 243:</a> <code style="font-family:monospace,monospace">1 + 22</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">GSM_MACBLOCK_LEN</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/15683">change 15683</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/+/15683"/><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: I32876858e3e93951e965b0fc7875c95c1f36f3ac </div>
<div style="display:none"> Gerrit-Change-Number: 15683 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-CC: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 07 Oct 2019 16:45:33 +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>