<p>Harald Welte has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/14278">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">LAPDm_RAW_PT: Always pad MAC blocks to their size<br><br>If a LAPDm message is shorter than the MAC block size, we must pad<br>it before seding it to L1.  trxcon e.g. would ignore any frames with<br>the wrong length since Change-Id I258ee9f6d0124b183b1db23a73f1e523fcea89a8<br><br>Change-Id: I30bcce27f95974eaca4168a156d1548586c924d6<br>Related: OS#3415<br>---<br>M library/LAPDm_RAW_PT.ttcn<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-ttcn3-hacks refs/changes/78/14278/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/library/LAPDm_RAW_PT.ttcn b/library/LAPDm_RAW_PT.ttcn</span><br><span>index 164d31a..fe2d321 100644</span><br><span>--- a/library/LAPDm_RAW_PT.ttcn</span><br><span>+++ b/library/LAPDm_RAW_PT.ttcn</span><br><span>@@ -453,10 +453,11 @@</span><br><span>                            var RslLinkId link_id;</span><br><span>                               if (lpd.sacch) {</span><br><span>                                     link_id := valueof(ts_RslLinkID_SACCH(lpd.sapi));</span><br><span style="color: hsl(120, 100%, 40%);">+                                     buf := f_pad_oct(enc_LapdmFrame(lpd.lapdm), 21, '2B'O);</span><br><span>                              } else {</span><br><span>                                     link_id := valueof(ts_RslLinkID_DCCH(lpd.sapi));</span><br><span style="color: hsl(120, 100%, 40%);">+                                      buf := f_pad_oct(enc_LapdmFrame(lpd.lapdm), 23, '2B'O);</span><br><span>                              }</span><br><span style="color: hsl(0, 100%, 40%);">-                               buf := enc_LapdmFrame(lpd.lapdm);</span><br><span>                            L1CTL.send(ts_L1CTL_DATA_REQ(chan_desc.chan_nr, link_id, buf));</span><br><span>                      }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/14278">change 14278</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/14278"/><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: I30bcce27f95974eaca4168a156d1548586c924d6 </div>
<div style="display:none"> Gerrit-Change-Number: 14278 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>