<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/23755">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ns: TC_sns_bss_change_weight_timeout: fix expected SNS_SIZE PDU<br><br>Allow to work with IPv4 and IPv6 endpoints and only expected known required<br>fields (e.g. NSEI and rst_flag).<br><br>Related: OS#5036<br>Change-Id: I60f669d7c8838d460a14c6604c4375a8d47f5149<br>---<br>M ns/NS_Tests.ttcn<br>1 file changed, 9 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/55/23755/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/ns/NS_Tests.ttcn b/ns/NS_Tests.ttcn</span><br><span>index 1715b2e..eaf3c60 100644</span><br><span>--- a/ns/NS_Tests.ttcn</span><br><span>+++ b/ns/NS_Tests.ttcn</span><br><span>@@ -517,8 +517,15 @@</span><br><span>     [] as_rx_alive_tx_ack();</span><br><span>     }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   f_ns_exp(tr_SNS_SIZE(g_nsconfig.nsei, rst_flag := true, max_nsvcs := 8,</span><br><span style="color: hsl(0, 100%, 40%);">-                            num_v4 := 4, num_v6 := omit), 0);</span><br><span style="color: hsl(120, 100%, 40%);">+  if (nsvc_cfg.provider.ip.address_family == AF_INET) {</span><br><span style="color: hsl(120, 100%, 40%);">+         /* expect one single SNS-SIZE with RESET flag; 4x v4 EP; no v6 EP */</span><br><span style="color: hsl(120, 100%, 40%);">+          rx := f_ns_exp(tr_SNS_SIZE(g_nsconfig.nsei, rst_flag := true, max_nsvcs := ?,</span><br><span style="color: hsl(120, 100%, 40%);">+                                    num_v4 := ?, num_v6 := omit), 0);</span><br><span style="color: hsl(120, 100%, 40%);">+  } else {</span><br><span style="color: hsl(120, 100%, 40%);">+              /* expect one single SNS-SIZE with RESET flag; no v4 EP; 4x v6 EP */</span><br><span style="color: hsl(120, 100%, 40%);">+          rx := f_ns_exp(tr_SNS_SIZE(g_nsconfig.nsei, rst_flag := true, max_nsvcs := ?,</span><br><span style="color: hsl(120, 100%, 40%);">+                                    num_v4 := omit, num_v6 := ?), 0);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>       setverdict(pass);</span><br><span>    f_clean_ns_codec();</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/23755">change 23755</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/+/23755"/><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: I60f669d7c8838d460a14c6604c4375a8d47f5149 </div>
<div style="display:none"> Gerrit-Change-Number: 23755 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>