From 151bc5b0d3695e26e204ac9bdd631a5dcdbba0ad Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Mon, 15 Feb 2021 05:53:12 +0100 Subject: [PATCH] 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 Related: SYS#5354 Depends: I9ab8092bf286e7d90e92f5702a5404425e959c84 (libosmocore) Change-Id: I35c987224ce098f7ee9f189ce0fce9e68ad3feac --- src/gprs_bssgp_pcu.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gprs_bssgp_pcu.c b/src/gprs_bssgp_pcu.c index ce36c6b7..84e9ec53 100644 --- a/src/gprs_bssgp_pcu.c +++ b/src/gprs_bssgp_pcu.c @@ -1023,6 +1023,14 @@ static int ns_configure_nse(struct gprs_rlcmac_bts *bts, 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;