<p><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/15487">View Change</a></p><p>8 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/+/15487/1/include/osmocom/sgsn/gprs_mm_state_iu_fsm.h">File include/osmocom/sgsn/gprs_mm_state_iu_fsm.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-sgsn/+/15487/1/include/osmocom/sgsn/gprs_mm_state_iu_fsm.h@23">Patch Set #1, Line 23:</a> <code style="font-family:monospace,monospace">E_PMM_RAN_CHANGE</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">still not adressed in current patch.</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/15487/1/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/+/15487/1/src/sgsn/gprs_gmm.c@1108">Patch Set #1, Line 1108:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">if (ctx->ran_type == MM_CTX_T_GERAN_Gb)<br>           osmo_fsm_inst_dispatch(ctx->gb.mm_state_fsm, E_MM_RAN_CHANGE, NULL);<br><br>     if (ctx->ran_type == MM_CTX_T_UTRAN_Iu)<br></pre></blockquote></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">that could be a switch/case statement, or at least an if/else, as both conditions cannot be true at  […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/15487/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/+/15487/2/src/sgsn/gprs_gmm.c@1105">Patch Set #2, Line 1105:</a> <code style="font-family:monospace,monospace">       if (ctx->ran_type == new_ran)</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">i think it's better this way.</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">These are obsolete now.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/15487/2/src/sgsn/gprs_gmm.c@1247">Patch Set #2, Line 1247:</a> <code style="font-family:monospace,monospace">   if (MSG_IU_UE_CTX(msg))</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">if (ctx->ran_type == MM_CTX_T_GERAN_Gb && MSG_IU_UE_CTX(msg)) […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/15487/2/src/sgsn/gprs_gmm.c@1660">Patch Set #2, Line 1660:</a> <code style="font-family:monospace,monospace">  if (MSG_IU_UE_CTX(msg))</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Same</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/15487/2/src/sgsn/gprs_mm_state_gb_fsm.c">File src/sgsn/gprs_mm_state_gb_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/osmo-sgsn/+/15487/2/src/sgsn/gprs_mm_state_gb_fsm.c@49">Patch Set #2, Line 49:</a> <code style="font-family:monospace,monospace">    case E_MM_RAN_CHANGE:</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">right. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I think this is handled correctly in newer patches where the RAT change detection logic is directly inside gprs_gsm_fsm and not inside the gb/iu ones.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/15487/2/src/sgsn/gprs_mm_state_iu_fsm.c">File src/sgsn/gprs_mm_state_iu_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/osmo-sgsn/+/15487/2/src/sgsn/gprs_mm_state_iu_fsm.c@56">Patch Set #2, Line 56:</a> <code style="font-family:monospace,monospace">    case E_PMM_RAN_CHANGE:</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Same: it can probably be received in DETACHED state.</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/15487/9/src/sgsn/gprs_mm_state_iu_fsm.c">File src/sgsn/gprs_mm_state_iu_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/osmo-sgsn/+/15487/9/src/sgsn/gprs_mm_state_iu_fsm.c@116">Patch Set #9, Line 116:</a> <code style="font-family:monospace,monospace">E_PMM_RAN_CHANGE</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I don't see where in the code you dispatch this event. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Your're right, I think this is leftover from before.<br>The RAT_CHANGE detection is now inside gprs_gmm_fsm.c and handles both the Gb and Iu cases. Removing E_PMM_RAN_CHANGE</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/15487">change 15487</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/+/15487"/><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: I3fc614da6ba137e871ee0fe86ca22b6a4a354dd2 </div>
<div style="display:none"> Gerrit-Change-Number: 15487 </div>
<div style="display:none"> Gerrit-PatchSet: 9 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </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: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-CC: fixeria <axilirator@gmail.com> </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: Wed, 22 Jan 2020 16:32:13 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Comment-In-Reply-To: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Comment-In-Reply-To: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Comment-In-Reply-To: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>