<p>Harald Welte has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13295">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pcu: Verify IPv4 address communicated in PCU-originated SNS-CONFIG PDU<br><br>Prior to this patch, the test accepted anything as list of IPv4<br>endpoints in the PCU-originated SNS-CONFIG PDU.  Using this patch,<br>the corect IPv4 address and UDP port number is verified.<br><br>Change-Id: Ia57100c7833bebc8d77118968c19ab12a3834036<br>Related: OS#3845<br>---<br>M pcu/PCU_Tests_RAW_SNS.ttcn<br>1 file changed, 3 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/95/13295/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pcu/PCU_Tests_RAW_SNS.ttcn b/pcu/PCU_Tests_RAW_SNS.ttcn</span><br><span>index a216dbe..7f71744 100644</span><br><span>--- a/pcu/PCU_Tests_RAW_SNS.ttcn</span><br><span>+++ b/pcu/PCU_Tests_RAW_SNS.ttcn</span><br><span>@@ -39,7 +39,9 @@</span><br><span> runs on RAW_NS_CT {</span><br><span>      log("f_incoming_sns_config(idx=", idx, ")");</span><br><span>     var PDU_NS rx;</span><br><span style="color: hsl(0, 100%, 40%);">-  rx := f_ns_exp(tr_SNS_CONFIG(g_nsconfig[idx].nsei, end_flag := true, v4 := ?), idx);</span><br><span style="color: hsl(120, 100%, 40%);">+  var template IP4_Elements v4_elem := { tr_SNS_IPv4(mp_nsconfig.remote_ip,</span><br><span style="color: hsl(120, 100%, 40%);">+                                                        mp_nsconfig.remote_udp_port) };</span><br><span style="color: hsl(120, 100%, 40%);">+    rx := f_ns_exp(tr_SNS_CONFIG(g_nsconfig[idx].nsei, end_flag := true, v4 := v4_elem), idx);</span><br><span>   NSCP[idx].send(t_NS_Send(g_ns_conn_id[idx], ts_SNS_CONFIG_ACK(g_nsconfig[idx].nsei, cause)));</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13295">change 13295</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/13295"/><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: Ia57100c7833bebc8d77118968c19ab12a3834036 </div>
<div style="display:none"> Gerrit-Change-Number: 13295 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>