<p><a href="https://gerrit.osmocom.org/8054">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/8054/2/src/libmsc/a_reset.c">File src/libmsc/a_reset.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/8054/2/src/libmsc/a_reset.c@34">Patch Set #2, Line 34:</a> <code style="font-family:monospace,monospace">enum fsm_states {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">(name is too general, has always been, but not that important; same for fsm_evt)</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/8054/2/src/libmsc/a_reset.c@90">Patch Set #2, Line 90:</a> <code style="font-family:monospace,monospace">                .in_event_mask = (1 << EV_CONN_ACK),</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">As I asked before: we allow repeated Conn ACKs? Is that a real thing?</p><p style="white-space: pre-wrap; word-wrap: break-word;">And even if yes, AFAICT this state doesn't need an action cb, because the osmo_fsm_* code already logs the event, and fsm_conn_cb() does nothing but trivial logging.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/8054/2/src/libmsc/a_reset.c@91">Patch Set #2, Line 91:</a> <code style="font-family:monospace,monospace">              .out_state_mask = 0,</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">('.member = 0' can be omitted, happens implicitly)</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/8054/2/src/libmsc/a_reset.c@125">Patch Set #2, Line 125:</a> <code style="font-family:monospace,monospace">        reset_fsm = osmo_fsm_inst_alloc(&fsm, NULL, NULL, LOGL_DEBUG, name);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">use priv arg of osmo_fsm_inst_alloc() (unless you want to use reset_fsm as talloc parent for reset_ctx)</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/8054">change 8054</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/8054"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-msc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I8e489eb494d358d130e51cb2167929edeaa12e92 </div>
<div style="display:none"> Gerrit-Change-Number: 8054 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 14 May 2018 17:59:03 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>