Change in osmo-pcu[master]: gprs_bssgp: use gprs_ns2_sns_add_bind() to allow the NSE to use the b...

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/.

lynxis lazus gerrit-no-reply at lists.osmocom.org
Mon Feb 15 05:45:11 UTC 2021


lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcu/+/22914 )


Change subject: gprs_bssgp: use gprs_ns2_sns_add_bind() to allow the NSE to use the binds for IP-SNS configuration
......................................................................

gprs_bssgp: use gprs_ns2_sns_add_bind() to allow the NSE to use the binds for IP-SNS configuration

The gprs_ns2 now requires to specify every bind which should be used by the NSE for IP-SNS

Depends: I9ab8092bf286e7d90e92f5702a5404425e959c84 (libosmocore)
Realted: SYS#5354
Change-Id: I35c987224ce098f7ee9f189ce0fce9e68ad3feac
---
M src/gprs_bssgp_pcu.c
1 file changed, 8 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/14/22914/1

diff --git a/src/gprs_bssgp_pcu.c b/src/gprs_bssgp_pcu.c
index 7b28665..264860a 100644
--- a/src/gprs_bssgp_pcu.c
+++ b/src/gprs_bssgp_pcu.c
@@ -1013,6 +1013,14 @@
 				LOGP(DBSSGP, LOGL_ERROR, "Failed to bind to %s\n", osmo_sockaddr_to_str(&local[i]));
 				continue;
 			}
+
+			if (the_pcu->vty.ns_dialect == GPRS_NS2_DIALECT_SNS) {
+				rc = gprs_ns2_sns_add_bind(bts->nse, bind[i]);
+				if (rc < 0) {
+					LOGP(DBSSGP, LOGL_ERROR, "Failed to add bind %s to the NSE for IP-SNS\n", osmo_sockaddr_to_str(&local[i]));
+					continue;
+				}
+			}
 		}
 
 		binds |= 1 << i;

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

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I35c987224ce098f7ee9f189ce0fce9e68ad3feac
Gerrit-Change-Number: 22914
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210215/f6ef2207/attachment.htm>


More information about the gerrit-log mailing list