<p>daniel has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/22363">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gbproxy: Fix radio status routing by TMSI<br><br>If a radio status message contains a TMSI it should be routed as if it<br>was a TLLI. Convert the TMSI to (foreign) TLLI so NRI-routing works.<br><br>Both foreign and local TLLIs are routed the same.<br><br>Fixes: OS#4954<br>Change-Id: Ifd64f02fa16b44f8e2e19eb8ba973f50a829ead5<br>---<br>M src/gbproxy/gb_proxy.c<br>1 file changed, 2 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/63/22363/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gbproxy/gb_proxy.c b/src/gbproxy/gb_proxy.c</span><br><span>index be8602e..99efa4e 100644</span><br><span>--- a/src/gbproxy/gb_proxy.c</span><br><span>+++ b/src/gbproxy/gb_proxy.c</span><br><span>@@ -417,11 +417,12 @@</span><br><span>               } else if (TLVP_PRESENT(&tp, BSSGP_IE_TMSI)) {</span><br><span>                   /* we treat the TMSI like a TLLI and extract the NRI from it */</span><br><span>                      tlli = osmo_load32be(TLVP_VAL(&tp, BSSGP_IE_TMSI));</span><br><span style="color: hsl(120, 100%, 40%);">+                       /* Convert the TMSI into a FOREIGN TLLI so it is routed appropriately */</span><br><span style="color: hsl(120, 100%, 40%);">+                      tlli = gprs_tmsi2tlli(tlli, TLLI_FOREIGN);</span><br><span>                   rc = gbprox_bss2sgsn_tlli(bss_bvc->cell, msg, &tlli, false);</span><br><span>          } else if (TLVP_PRESENT(&tp, BSSGP_IE_IMSI)) {</span><br><span>                   /* FIXME: Use the IMSI as selector? */</span><br><span>                       rc = gbprox_bss2sgsn_tlli(bss_bvc->cell, msg, NULL, false);</span><br><span style="color: hsl(0, 100%, 40%);">-                  /* rc = gbprox_bss2sgsn_hashed(bss_bvc->cell, msg, NULL); */</span><br><span>              } else</span><br><span>                       LOGPBVC(bss_bvc, LOGL_ERROR, "Rx RADIO-STATUS without any of the conditional IEs\n");</span><br><span>              break;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/22363">change 22363</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/+/22363"/><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: Ifd64f02fa16b44f8e2e19eb8ba973f50a829ead5 </div>
<div style="display:none"> Gerrit-Change-Number: 22363 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>