<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/23482">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">BTS_Tests: fix IPv4 matching in TC_pcu_socket_{nsvc_ipv4,two_nsvc}<br><br>This commit fixes a regression introduced in [1]<br><br>Change-Id: I107039f1ff44ae8c41d690f5f293ed136c17586b<br>Fixes: [1] Ia9f366ca1fdad700a90ca3367e43523f7bac39a1<br>---<br>M bts/BTS_Tests.ttcn<br>1 file changed, 5 insertions(+), 2 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/23482/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn</span><br><span>index 58947c5..c0ec728 100644</span><br><span>--- a/bts/BTS_Tests.ttcn</span><br><span>+++ b/bts/BTS_Tests.ttcn</span><br><span>@@ -5728,7 +5728,7 @@</span><br><span>     var PCUIF_RemoteAddr remote_addr := g_pcu_last_info.u.info_ind.remote_addr;</span><br><span>  var template PCUIF_RemoteAddr tr_remote_addr := {</span><br><span>            addr_type := { PCUIF_ADDR_TYPE_IPV4, ? },</span><br><span style="color: hsl(0, 100%, 40%);">-               addr := { f_inet_addr("127.127.127.127"), ? }</span><br><span style="color: hsl(120, 100%, 40%);">+               addr := { f_pad_oct(f_inet_addr("127.127.127.127"), 16, '00'O), ? }</span><br><span>        };</span><br><span> </span><br><span>       if (not match(remote_addr, tr_remote_addr)) {</span><br><span>@@ -5778,7 +5778,10 @@</span><br><span>       var PCUIF_RemoteAddr remote_addr := info_ind.remote_addr;</span><br><span>    var template PCUIF_RemoteAddr tr_remote_addr := {</span><br><span>            addr_type := { PCUIF_ADDR_TYPE_IPV4, PCUIF_ADDR_TYPE_IPV6 },</span><br><span style="color: hsl(0, 100%, 40%);">-            addr := { f_inet_addr("127.127.127.127"), f_inet6_addr("fd00::ca:ff:ee") }</span><br><span style="color: hsl(120, 100%, 40%);">+                addr := {</span><br><span style="color: hsl(120, 100%, 40%);">+                     f_pad_oct(f_inet_addr("127.127.127.127"), 16, '00'O),</span><br><span style="color: hsl(120, 100%, 40%);">+                       f_inet6_addr("fd00::ca:ff:ee")</span><br><span style="color: hsl(120, 100%, 40%);">+              }</span><br><span>    };</span><br><span> </span><br><span>       if (not match(info_ind.nsvci, { 1234, 5678 }))</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/23482">change 23482</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/+/23482"/><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: I107039f1ff44ae8c41d690f5f293ed136c17586b </div>
<div style="display:none"> Gerrit-Change-Number: 23482 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>