<p>Harald Welte has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13863">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">BSSGP_Emulation: Implement LLC sending also for SGSN-role<br><br>We used to support sending of LLC messages only for the MS role,<br>where we generated BSSGP UL UNITDATA.  Let's also support the<br>SGSN role, where we have to generate BSSGP DL UNITDATA<br><br>Change-Id: If86f4b7c9e7c3c799c274f37a350dec4a788f124<br>---<br>M library/BSSGP_Emulation.ttcn<br>1 file changed, 8 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/63/13863/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 849e147..c60868e 100644</span><br><span>--- a/library/BSSGP_Emulation.ttcn</span><br><span>+++ b/library/BSSGP_Emulation.ttcn</span><br><span>@@ -597,11 +597,18 @@</span><br><span>                BSCP.send(f_BnsUdReq(ts_BSSGP_UL_UD(ClientTable[idx].tlli, ClientTable[idx].cell_id, llc_enc), g_cfg.bvci));</span><br><span>         }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   [] BSSGP_SP.receive(PDU_LLC:?) -> value llc sender vc_conn {</span><br><span style="color: hsl(120, 100%, 40%);">+       /* ConnHdlr sends raw LLC: Encode and send as UL_UD / DL_UD */</span><br><span style="color: hsl(120, 100%, 40%);">+        [not g_cfg.sgsn_role] BSSGP_SP.receive(PDU_LLC:?) -> value llc sender vc_conn {</span><br><span>           var integer idx := f_tbl_idx_by_comp(vc_conn);</span><br><span>               var octetstring llc_enc := enc_PDU_LLC(llc);</span><br><span>                 BSCP.send(f_BnsUdReq(ts_BSSGP_UL_UD(ClientTable[idx].tlli, ClientTable[idx].cell_id, llc_enc), g_cfg.bvci));</span><br><span>         }</span><br><span style="color: hsl(120, 100%, 40%);">+     [g_cfg.sgsn_role] BSSGP_SP.receive(PDU_LLC:?) -> value llc sender vc_conn {</span><br><span style="color: hsl(120, 100%, 40%);">+                var integer idx := f_tbl_idx_by_comp(vc_conn);</span><br><span style="color: hsl(120, 100%, 40%);">+                var octetstring llc_enc := enc_PDU_LLC(llc);</span><br><span style="color: hsl(120, 100%, 40%);">+          BSCP.send(f_BnsUdReq(ts_BSSGP_DL_UD(ClientTable[idx].tlli, llc_enc), g_cfg.bvci));</span><br><span style="color: hsl(120, 100%, 40%);">+    }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> }</span><br><span> </span><br><span> function f_llc_get_n_u_tx(inout LLC_Entity llc) return uint9_t {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13863">change 13863</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/13863"/><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: If86f4b7c9e7c3c799c274f37a350dec4a788f124 </div>
<div style="display:none"> Gerrit-Change-Number: 13863 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>