Change in osmo-ttcn3-hacks[master]: RAW_NS: don't expect hard-coded number of NSVC/endpoints in SNS-SIZE

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Tue Mar 23 12:14:30 UTC 2021


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/23470 )


Change subject: RAW_NS: don't expect hard-coded number of NSVC/endpoints in SNS-SIZE
......................................................................

RAW_NS: don't expect hard-coded number of NSVC/endpoints in SNS-SIZE

Change-Id: I5d567582db18be0f875e8e2ba380a04a1a838350
---
M library/RAW_NS.ttcnpp
1 file changed, 6 insertions(+), 5 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/70/23470/1

diff --git a/library/RAW_NS.ttcnpp b/library/RAW_NS.ttcnpp
index c5b0d50..58910d9 100644
--- a/library/RAW_NS.ttcnpp
+++ b/library/RAW_NS.ttcnpp
@@ -271,7 +271,8 @@
  **********************************************************************************/
 
 /* perform inbound SNS-SIZE procedure */
-function f_incoming_sns_size(template (omit) NsCause cause := omit, integer idx := 0)
+function f_incoming_sns_size(template (omit) NsCause cause := omit, integer idx := 0,
+			     template integer num_max_nsvcs := ?, template integer num_ep := ?)
 runs on RAW_NS_CT {
 	log("f_incoming_sns_size(idx=", idx, ")");
 	var PDU_NS rx;
@@ -279,12 +280,12 @@
 
 	if (nsvc_cfg.provider.ip.address_family == AF_INET) {
 		/* expect one single SNS-SIZE with RESET flag; 4x v4 EP; no v6 EP */
-		rx := f_ns_exp(tr_SNS_SIZE(g_nsconfig.nsei, rst_flag := true, max_nsvcs := 8,
-					   num_v4 := 4, num_v6 := omit), idx);
+		rx := f_ns_exp(tr_SNS_SIZE(g_nsconfig.nsei, rst_flag := true, max_nsvcs := num_max_nsvcs,
+					   num_v4 := num_ep, num_v6 := omit), idx);
 	} else {
 		/* expect one single SNS-SIZE with RESET flag; no v4 EP; 4x v6 EP */
-		rx := f_ns_exp(tr_SNS_SIZE(g_nsconfig.nsei, rst_flag := true, max_nsvcs := 8,
-					   num_v4 := omit, num_v6 := 4), idx);
+		rx := f_ns_exp(tr_SNS_SIZE(g_nsconfig.nsei, rst_flag := true, max_nsvcs := num_max_nsvcs,
+					   num_v4 := omit, num_v6 := num_ep), idx);
 	}
 	NSCP[idx].send(ts_SNS_SIZE_ACK(g_nsconfig.nsei, cause));
 }

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/23470
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I5d567582db18be0f875e8e2ba380a04a1a838350
Gerrit-Change-Number: 23470
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210323/87de0a29/attachment.htm>


More information about the gerrit-log mailing list