<p style="white-space: pre-wrap; word-wrap: break-word;">I would have simply moved the IMEI CHECK unconditionally to the start, but maybe that violates some GSM MAP related spec?</p><p style="white-space: pre-wrap; word-wrap: break-word;">Either way, I'm happy with this approach, aside from the minor comments below.</p><p>Patch set 1:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #d4ffd4;">Code-Review +1</span></p><p><a href="https://gerrit.osmocom.org/13894">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/13894/1/src/libvlr/vlr_lu_fsm.c">File src/libvlr/vlr_lu_fsm.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/13894/1/src/libvlr/vlr_lu_fsm.c@955">Patch Set #1, Line 955:</a> <code style="font-family:monospace,monospace">event without effect</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I guess if this happens, then we have a bug somewhere? I would rather OSMO_ASSERT(0) here... […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">There's two cases:<br>1) the event is permitted in in_event_mask of the state, but we don't handle it here.  Then it's a bug of the code and the code is incomplete, hence we normally put a "default: OSMO_ASSERT(0)" here</p><p style="white-space: pre-wrap; word-wrap: break-word;">2) the event is not permitted in in_event_mask of the state.  In this case, the osmo_fsm core will already print a message about an 'unhandled event' and discard the event.</p><p style="white-space: pre-wrap; word-wrap: break-word;">So in either case, the logging here is not needed/intended.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/13894">change 13894</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/13894"/><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: I88283cad23793b475445d814ff49db534cb41244 </div>
<div style="display:none"> Gerrit-Change-Number: 13894 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-CC: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 08 May 2019 06:46:48 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>