<p>daniel has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26382">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">BSSGP_Emulation: Handle FLUSH_LL_ACK differently<br><br>The BVCI that this message might contain should not be used to route it.<br>It referes to the BVCI that the PDUs were transferred to (BVCI (new)).<br><br>Instead broadcast to all components.<br><br>Change-Id: Ia1df35da44ef28d91501bb898e1059bf1390129b<br>---<br>M library/BSSGP_Emulation.ttcnpp<br>1 file changed, 23 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/82/26382/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/library/BSSGP_Emulation.ttcnpp b/library/BSSGP_Emulation.ttcnpp</span><br><span>index 8d27fd1..23c8d03 100644</span><br><span>--- a/library/BSSGP_Emulation.ttcnpp</span><br><span>+++ b/library/BSSGP_Emulation.ttcnpp</span><br><span>@@ -333,6 +333,16 @@</span><br><span>          }</span><br><span>            }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ /* Broadcast FLUSH_LL_ACK no matter the BVCI */</span><br><span style="color: hsl(120, 100%, 40%);">+       [] BSCP.receive(f_BnsUdInd(tr_BSSGP_FLUSH_LL_ACK(?, ?, ?), 0)) -> value udi {</span><br><span style="color: hsl(120, 100%, 40%);">+              log("Rx FLUSH_LL_ACK: broadcasting");</span><br><span style="color: hsl(120, 100%, 40%);">+               for (var integer i := 0; i < lengthof(BvcTable); i := i+1) {</span><br><span style="color: hsl(120, 100%, 40%);">+                       if (isbound(BvcTable[i].comp_ref) and BvcTable[i].comp_ref != null) {</span><br><span style="color: hsl(120, 100%, 40%);">+                         BVC.send(udi) to BvcTable[i].comp_ref;</span><br><span style="color: hsl(120, 100%, 40%);">+                        }</span><br><span style="color: hsl(120, 100%, 40%);">+             }</span><br><span style="color: hsl(120, 100%, 40%);">+     }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>  /* Route based on PTP BVCI in payload/IE of signaling PDU */</span><br><span>         [] BSCP.receive(f_BnsUdInd(?, 0)) -> value udi {</span><br><span>          var template (omit) BssgpBvci ptp_bvci := f_BSSGP_BVCI_get(udi.bssgp);</span><br><span>@@ -1163,6 +1173,19 @@</span><br><span>              }</span><br><span>    }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ [] BVC.receive(tr_ptp_BnsUdInd(tr_BSSGP_FLUSH_LL_ACK(?, ?, ?), 0)) -> value udi {</span><br><span style="color: hsl(120, 100%, 40%);">+          var BssgpDecoded dec := f_dec_bssgp(udi.bssgp);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+             log("Broadcasting FLUSH_LL_ACK ", dec);</span><br><span style="color: hsl(120, 100%, 40%);">+             /* broadcast this message to all components */</span><br><span style="color: hsl(120, 100%, 40%);">+                // TITAN DOESN'T DO THIS, *SIGH*: "BSSGP_SP.send(dec) to all component;"</span><br><span style="color: hsl(120, 100%, 40%);">+                for (var integer i := 0; i < sizeof(ClientTable); i := i+1) {</span><br><span style="color: hsl(120, 100%, 40%);">+                      if (isbound(ClientTable[i].comp_ref) and ClientTable[i].comp_ref != null) {</span><br><span style="color: hsl(120, 100%, 40%);">+                           f_send_bssgp_dec(dec, ClientTable[i].comp_ref, BSSGP_SP_SIG);</span><br><span style="color: hsl(120, 100%, 40%);">+                 }</span><br><span style="color: hsl(120, 100%, 40%);">+             }</span><br><span style="color: hsl(120, 100%, 40%);">+     }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>  /* Any other SIG BSSGP message: If it has TLLI, route to component; otherwise broadcast */</span><br><span>   [] BVC.receive(tr_ptp_BnsUdInd(?, 0)) -> value udi {</span><br><span>              var BssgpDecoded dec := f_dec_bssgp(udi.bssgp);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26382">change 26382</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-ttcn3-hacks/+/26382"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ttcn3-hacks </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ia1df35da44ef28d91501bb898e1059bf1390129b </div>
<div style="display:none"> Gerrit-Change-Number: 26382 </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>