Change in libosmocore[master]: gprs_ns2_sns: Assume the SGSN has a very large number of max. NSVC

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


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


Change subject: gprs_ns2_sns: Assume the SGSN has a very large number of max. NSVC
......................................................................

gprs_ns2_sns: Assume the SGSN has a very large number of max. NSVC

It is the SGSN's job to ensure sufficient NS-VC capacity.  As the SGSN
doesn't tell the BSS, we should not make assumptions of only 4.

Change-Id: I41f493643cf51d7853959ab9c7bbc0ffae4e1f4b
---
M src/gb/gprs_ns2_sns.c
1 file changed, 3 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/11/23411/1

diff --git a/src/gb/gprs_ns2_sns.c b/src/gb/gprs_ns2_sns.c
index c2c5b5e..49768c1 100644
--- a/src/gb/gprs_ns2_sns.c
+++ b/src/gb/gprs_ns2_sns.c
@@ -811,7 +811,6 @@
 		}
 
 		gss->num_ip4_local = count;
-		gss->num_max_ip4_remote = 4;
 		gss->num_max_nsvcs = OSMO_MAX(gss->num_max_ip4_remote * gss->num_ip4_local, 8);
 		break;
 	case IPv6:
@@ -848,7 +847,6 @@
 			ip6_elems++;
 		}
 		gss->num_ip6_local = count;
-		gss->num_max_ip6_remote = 4;
 		gss->num_max_nsvcs = OSMO_MAX(gss->num_max_ip6_remote * gss->num_ip6_local, 8);
 		break;
 	}
@@ -1559,6 +1557,9 @@
 	fi->priv = gss;
 	gss->nse = nse;
 	gss->role = GPRS_SNS_ROLE_BSS;
+	/* The SGSN doesn't tell the BSS, so we assume there's always sufficient */
+	gss->num_max_ip4_remote = 8192;
+	gss->num_max_ip6_remote = 8192;
 	INIT_LLIST_HEAD(&gss->sns_endpoints);
 	INIT_LLIST_HEAD(&gss->binds);
 

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I41f493643cf51d7853959ab9c7bbc0ffae4e1f4b
Gerrit-Change-Number: 23411
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/5296bbce/attachment.htm>


More information about the gerrit-log mailing list