Change in libosmocore[master]: gprs_ns2: Add comments explaining the nsvc->sns_only field

laforge gerrit-no-reply at lists.osmocom.org
Fri Mar 19 12:38:57 UTC 2021


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/23416 )


Change subject: gprs_ns2: Add comments explaining the nsvc->sns_only field
......................................................................

gprs_ns2: Add comments explaining the nsvc->sns_only field

Change-Id: I16009a1b03d8027de2be56b7d5013b755c9550fd
---
M src/gb/gprs_ns2.c
M src/gb/gprs_ns2_internal.h
M src/gb/gprs_ns2_sns.c
3 files changed, 7 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/16/23416/1

diff --git a/src/gb/gprs_ns2.c b/src/gb/gprs_ns2.c
index 7fe3956..ec2451c 100644
--- a/src/gb/gprs_ns2.c
+++ b/src/gb/gprs_ns2.c
@@ -1423,6 +1423,9 @@
 	OSMO_ASSERT(nse);
 
 	llist_for_each_entry(nsvc, &nse->nsvc, list) {
+		/* A pre-configured endpoint shall not be used for NSE data or signalling traffic
+		 * (with the * exception of Size and Configuration procedures) unless it is
+		 * configured by the SGSN using the auto-configuration procedures */
 		if (nsvc->sns_only)
 			continue;
 
diff --git a/src/gb/gprs_ns2_internal.h b/src/gb/gprs_ns2_internal.h
index 9788652..efca861 100644
--- a/src/gb/gprs_ns2_internal.h
+++ b/src/gb/gprs_ns2_internal.h
@@ -220,6 +220,7 @@
 	void *priv;
 
 	bool nsvci_is_valid;
+	/*! should this NS-VC only be used for SNS-SIZE and SNS-CONFIG? */
 	bool sns_only;
 
 	struct rate_ctr_group *ctrg;
diff --git a/src/gb/gprs_ns2_sns.c b/src/gb/gprs_ns2_sns.c
index 2fbfb54..f05a8e6 100644
--- a/src/gb/gprs_ns2_sns.c
+++ b/src/gb/gprs_ns2_sns.c
@@ -913,6 +913,9 @@
 		gss->sns_nsvc = ns2_ip_bind_connect(bind, gss->nse, remote);
 		if (!gss->sns_nsvc)
 			return;
+		/* A pre-configured endpoint shall not be used for NSE data or signalling traffic
+		 * (with the exception of Size and Configuration procedures) unless it is configured
+		 * by the SGSN using the auto-configuration procedures */
 		gss->sns_nsvc->sns_only = true;
 	}
 

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/23416
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I16009a1b03d8027de2be56b7d5013b755c9550fd
Gerrit-Change-Number: 23416
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/20210319/6063b162/attachment.htm>


More information about the gerrit-log mailing list