<p><a href="https://gerrit.osmocom.org/13006">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/13006/13/src/hlr.c">File src/hlr.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/13006/13/src/hlr.c@469">Patch Set #13, Line 469:</a> <code style="font-family:monospace,monospace">session_id</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">AFAIR, libosmocore doesn't encode the OSMO_GSUP_SESSION_ID_IE if gsup_msg->session_state == 0. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">(So far none of the forwarded messages use a session id or session state.<br>For MAP/DIAMETER compatibility, that might be necessary/nice-to-have in the future though)</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/13006/13/src/hlr.c@485">Patch Set #13, Line 485:</a> <code style="font-family:monospace,monospace">if (!msgb_l2(msg) || !msgb_l2len(msg)) </code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">This check is redundant and not actually needed, since we do osmo_gsup_decode(msgb_l2(msg), msgb_l2l […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I see it as an initial sanity check. If msgb_l2() is NULL, we may run into segfaults, if the len is 0, we should reject it. I'd rather keep this check. This comes from buggy code actually killing osmo-hlr, instead it should merely complain and continue to run.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/13006/13/src/hlr.c@501">Patch Set #13, Line 501:</a> <code style="font-family:monospace,monospace">LOGP_GSUP_FWD</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Here we would see 'OSMO_GSUP_MSGT_E_ROUTING_ERROR' as the message name, because we don't store the o […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Ok, you are saying the logging fails to log the initial message, and instead logs the Routing Error reply.<br>Nice catch.</p><p style="white-space: pre-wrap; word-wrap: break-word;">The problem is that at this point the initial msg has already been discarded...<br>maybe LOG_GSUP_FWD should have a separate arg passing the original message type?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/13006">change 13006</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/13006"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-hlr </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ia4f345abc877baaf0a8f73b8988e6514d9589bf5 </div>
<div style="display:none"> Gerrit-Change-Number: 13006 </div>
<div style="display:none"> Gerrit-PatchSet: 13 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </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: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 07 May 2019 13:38:52 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>