<p>Harald Welte has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13377">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">BSSGP_Emulation: Handle incoming BVCI=0 messages<br><br>Like BVCI=PTP, the BVCI=0 messages must be dispatched by their<br>TLLI, but using the BSSGP_SP_SIG port instead of BSSGP_SP.<br><br>Change-Id: Ic456d43ec07600162991698ec3d75d36785b2fb8<br>---<br>M library/BSSGP_Emulation.ttcn<br>1 file changed, 21 insertions(+), 1 deletion(-)<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/77/13377/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/library/BSSGP_Emulation.ttcn b/library/BSSGP_Emulation.ttcn</span><br><span>index fa33f51..8988926 100644</span><br><span>--- a/library/BSSGP_Emulation.ttcn</span><br><span>+++ b/library/BSSGP_Emulation.ttcn</span><br><span>@@ -532,7 +532,7 @@</span><br><span>           BSSGP_SP.send(f_dec_bssgp(udi.bssgp)) to vc_conn;</span><br><span>    }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   /* Any other BSSGP message: If it has TLLi, route to component; otherwise broadcast */</span><br><span style="color: hsl(120, 100%, 40%);">+        /* Any other PTP BSSGP message: If it has TLLi, route to component; otherwise broadcast */</span><br><span>   [] BSCP.receive(f_BnsUdInd(?, g_cfg.bvci)) -> value udi {</span><br><span>                 var BssgpDecoded dec := f_dec_bssgp(udi.bssgp);</span><br><span>              var template OCT4 tlli := f_bssgp_get_tlli(udi.bssgp);</span><br><span>@@ -551,6 +551,26 @@</span><br><span>                }</span><br><span>    }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ /* Any other SIG BSSGP message: If it has TLLi, route to component; otherwise broadcast */</span><br><span style="color: hsl(120, 100%, 40%);">+    [] BSCP.receive(f_BnsUdInd(?, 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%);">+               var template OCT4 tlli := f_bssgp_get_tlli(udi.bssgp);</span><br><span style="color: hsl(120, 100%, 40%);">+                if (isvalue(tlli)) {</span><br><span style="color: hsl(120, 100%, 40%);">+                  vc_conn := f_tbl_comp_by_tlli(valueof(tlli));</span><br><span style="color: hsl(120, 100%, 40%);">+                 BSSGP_SP_SIG.send(dec) to vc_conn;</span><br><span style="color: hsl(120, 100%, 40%);">+            } else {</span><br><span style="color: hsl(120, 100%, 40%);">+                      log("No TLLI: Broadcasting ", 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)) {</span><br><span style="color: hsl(120, 100%, 40%);">+                                       BSSGP_SP_SIG.send(dec) to ClientTable[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 style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>        [] BSSGP_SP_SIG.receive(PDU_BSSGP:?)-> value bs_pdu sender vc_conn {</span><br><span>              BSCP.send(f_BnsUdReq(bs_pdu, 0));</span><br><span>    }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13377">change 13377</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/13377"/><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-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ic456d43ec07600162991698ec3d75d36785b2fb8 </div>
<div style="display:none"> Gerrit-Change-Number: 13377 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>