<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/23470">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">RAW_NS: don't expect hard-coded number of NSVC/endpoints in SNS-SIZE<br><br>Change-Id: I5d567582db18be0f875e8e2ba380a04a1a838350<br>---<br>M library/RAW_NS.ttcnpp<br>1 file changed, 6 insertions(+), 5 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/70/23470/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/library/RAW_NS.ttcnpp b/library/RAW_NS.ttcnpp</span><br><span>index c5b0d50..58910d9 100644</span><br><span>--- a/library/RAW_NS.ttcnpp</span><br><span>+++ b/library/RAW_NS.ttcnpp</span><br><span>@@ -271,7 +271,8 @@</span><br><span>  **********************************************************************************/</span><br><span> </span><br><span> /* perform inbound SNS-SIZE procedure */</span><br><span style="color: hsl(0, 100%, 40%);">-function f_incoming_sns_size(template (omit) NsCause cause := omit, integer idx := 0)</span><br><span style="color: hsl(120, 100%, 40%);">+function f_incoming_sns_size(template (omit) NsCause cause := omit, integer idx := 0,</span><br><span style="color: hsl(120, 100%, 40%);">+                      template integer num_max_nsvcs := ?, template integer num_ep := ?)</span><br><span> runs on RAW_NS_CT {</span><br><span>       log("f_incoming_sns_size(idx=", idx, ")");</span><br><span>       var PDU_NS rx;</span><br><span>@@ -279,12 +280,12 @@</span><br><span> </span><br><span>   if (nsvc_cfg.provider.ip.address_family == AF_INET) {</span><br><span>                /* expect one single SNS-SIZE with RESET flag; 4x v4 EP; no v6 EP */</span><br><span style="color: hsl(0, 100%, 40%);">-            rx := 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), idx);</span><br><span style="color: hsl(120, 100%, 40%);">+                rx := f_ns_exp(tr_SNS_SIZE(g_nsconfig.nsei, rst_flag := true, max_nsvcs := num_max_nsvcs,</span><br><span style="color: hsl(120, 100%, 40%);">+                                        num_v4 := num_ep, num_v6 := omit), idx);</span><br><span>  } else {</span><br><span>             /* expect one single SNS-SIZE with RESET flag; no v4 EP; 4x v6 EP */</span><br><span style="color: hsl(0, 100%, 40%);">-            rx := 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 := omit, num_v6 := 4), idx);</span><br><span style="color: hsl(120, 100%, 40%);">+                rx := f_ns_exp(tr_SNS_SIZE(g_nsconfig.nsei, rst_flag := true, max_nsvcs := num_max_nsvcs,</span><br><span style="color: hsl(120, 100%, 40%);">+                                        num_v4 := omit, num_v6 := num_ep), idx);</span><br><span>  }</span><br><span>    NSCP[idx].send(ts_SNS_SIZE_ACK(g_nsconfig.nsei, cause));</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/23470">change 23470</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/+/23470"/><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: I5d567582db18be0f875e8e2ba380a04a1a838350 </div>
<div style="display:none"> Gerrit-Change-Number: 23470 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>