<p><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/24304">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/24304/2/src/sgsn/gprs_gmm.c">File src/sgsn/gprs_gmm.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/osmo-sgsn/+/24304/2/src/sgsn/gprs_gmm.c@452">Patch Set #2, Line 452:</a> <code style="font-family:monospace,monospace">>>=</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I have to admit I don't think I've ever seen this construct before. At least I am not able to read this without thinking rather hard what is happening here... But maybe that's just me.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/24304/2/src/sgsn/sgsn_vty.c">File src/sgsn/sgsn_vty.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/osmo-sgsn/+/24304/2/src/sgsn/sgsn_vty.c@732">Patch Set #2, Line 732:</a> <code style="font-family:monospace,monospace">(GEA0-4) [GEA0-4] [GEA0-4] [GEA0-4] [GEA0-4]</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I don't think this works as expected, does it? all-caps tokens in VTY parser syntax are typically "accept any string".  I would go for something that's in-line with e.g. osmo-bsc for A5:</p><p style="white-space: pre-wrap; word-wrap: break-word;">"encryption a5 <0-3> [<0-3>] [<0-3>] [<0-3>]"</p><p style="white-space: pre-wrap; word-wrap: break-word;">Here the <> indicates that it's an integer range and the VTY parser will ensure you cannot enter anything else.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/24304">change 24304</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-sgsn/+/24304"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-sgsn </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ie6700c4e9d2df1eb5fde1b971e287b62668cc2de </div>
<div style="display:none"> Gerrit-Change-Number: 24304 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Hoernchen <ewild@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-CC: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Sun, 23 May 2021 10:29:40 +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>