Change in osmo-pcu[master]: ns2: follow changes to add a unique name to all binds

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
Tue Dec 15 16:02:57 UTC 2020


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


Change subject: ns2: follow changes to add a unique name to all binds
......................................................................

ns2: follow changes to add a unique name to all binds

Change-Id: I3638c7204db576116ba2e20dae27539ce6143bd7
---
M src/gprs_bssgp_pcu.cpp
1 file changed, 3 insertions(+), 1 deletion(-)



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

diff --git a/src/gprs_bssgp_pcu.cpp b/src/gprs_bssgp_pcu.cpp
index 4d24d2e..b29413d 100644
--- a/src/gprs_bssgp_pcu.cpp
+++ b/src/gprs_bssgp_pcu.cpp
@@ -957,6 +957,7 @@
 	bool nsvcs = false;
 	struct gprs_ns2_vc *nsvc;
 	struct gprs_ns2_vc_bind *bind[PCU_IF_NUM_NSVC] = { };
+	char name[5];
 
 	if (!valid)
 		return -1;
@@ -966,7 +967,8 @@
 			continue;
 
 		if (!gprs_ns2_ip_bind_by_sockaddr(bts->nsi, &local[i])) {
-			rc = gprs_ns2_ip_bind(bts->nsi, &local[i], 0, &bind[i]);
+			snprintf(name, sizeof(name), "pcu%d", i);
+			rc = gprs_ns2_ip_bind(bts->nsi, name, &local[i], 0, &bind[i]);
 			if (rc < 0) {
 				LOGP(DBSSGP, LOGL_ERROR, "Failed to bind to %s\n", osmo_sockaddr_to_str(&local[i]));
 				continue;

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

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I3638c7204db576116ba2e20dae27539ce6143bd7
Gerrit-Change-Number: 21729
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/20201215/58f25e8b/attachment.htm>


More information about the gerrit-log mailing list