<p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/24600">View Change</a></p><p>4 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/24600/6/include/osmocom/bsc/handover_cfg.h">File include/osmocom/bsc/handover_cfg.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/osmo-bsc/+/24600/6/include/osmocom/bsc/handover_cfg.h@264">Patch Set #6, Line 264:</a> <code style="font-family:monospace,monospace">             "handover2 min-free-slots tch-h\0") \</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">you should not need to include '\0' because a terminating nul is present in every string constant</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/24600/6/src/osmo-bsc/handover_ctrl.c">File src/osmo-bsc/handover_ctrl.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-bsc/+/24600/6/src/osmo-bsc/handover_ctrl.c@32">Patch Set #6, Line 32:</a> <code style="font-family:monospace,monospace">/* Verify a VTY command argument against its value specification, the value</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Here we could add:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;"> In handover_cfg.h the config items are described in VTY syntax. To be able to use those here<br> in the CTRL interface, we parse the config arguments like the VTY would.</pre></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/24600/6/src/osmo-bsc/handover_ctrl.c@73">Patch Set #6, Line 73:</a> <code style="font-family:monospace,monospace">CTRL_CMD_DEFINE(NAME, CTRL_CMD VTY_CMD_PREFIX VTY_CMD); \</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Hm, I don't understand how this works.</p><p style="white-space: pre-wrap; word-wrap: break-word;">so CTRL_CMD is mostly "", so the name becomes like</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  "" "handover 2 " "power budget hysteresis"<br>  = "handover 2 power budget hysteresis"</pre><p style="white-space: pre-wrap; word-wrap: break-word;">But how about "handover2 min-free-slots tch-f"?<br>IIUC this should become</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  "handover2 min-free-slots tch-f" "handover2 " "min-free-slots tch/f"<br>  = "handover2 min-free-slots tch-fhandover2 min-free-slots tch/f"</pre></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/24600/6/src/osmo-bsc/handover_ctrl.c@114">Patch Set #6, Line 114:</a> <code style="font-family:monospace,monospace">                cmd->reply = talloc_asprintf(cmd, "%s", #DEFAULT_VAL); \</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">(we would usually also put { } around the else-scope)</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/24600">change 24600</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-bsc/+/24600"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I12f143906818fd6b16e8783157cbb1eb51e49ffc </div>
<div style="display:none"> Gerrit-Change-Number: 24600 </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-Assignee: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </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-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 05 Jul 2021 21:42:37 +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>