aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2021-01-27 21:02:13 +0100
committerlynxis lazus <lynxis@fe80.eu>2021-01-28 21:19:59 +0000
commitcaf73b803c666a63e9948bbf12b4f424cae754bd (patch)
tree8e1e65b65d53f693e050808081ed1bc01092d3b6 /src
parent0018d3e0ec0441dad72ca504814afce2f58bd0e8 (diff)
sgsn: migrate to the new gprs_ns2_vty configuration
Change the whole vty configuration for NS to be more flexible and support more setups. Old configurations are invalid. API change which must be synchronized with libosmocore For further information see: https://osmocom.org/projects/libosmocore/wiki/Network_service_(NS) Depends-on: I8c3f2afecc74b78f7f914f7dce166cbcb63444eb (libosmocore) Change-Id: Ie9306ab4d4738c2c57a69987086e22771b30657e
Diffstat (limited to 'src')
-rw-r--r--src/sgsn/sgsn_main.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/sgsn/sgsn_main.c b/src/sgsn/sgsn_main.c
index 19039f694..f6eac607c 100644
--- a/src/sgsn/sgsn_main.c
+++ b/src/sgsn/sgsn_main.c
@@ -328,11 +328,6 @@ static bool file_exists(const char *path)
int main(int argc, char **argv)
{
int rc;
- struct osmo_sockaddr_str bind_address = {
- .af = AF_INET,
- .ip = "0.0.0.0",
- .port = 23000,
- };
#if BUILD_IU
struct osmo_sccp_instance *sccp;
#endif
@@ -402,7 +397,7 @@ int main(int argc, char **argv)
sgsn_inst_init(sgsn);
- gprs_ns2_vty_init(sgsn_nsi, &bind_address);
+ gprs_ns2_vty_init(sgsn_nsi);
bssgp_vty_init();
gprs_llc_vty_init();
gprs_sndcp_vty_init();
@@ -449,12 +444,6 @@ int main(int argc, char **argv)
exit(2);
}
- rc = gprs_ns2_vty_create();
- if (rc < 0) {
- LOGP(DGPRS, LOGL_FATAL, "Cannot bind/listen on NSIP socket\n");
- exit(2);
- }
-
gprs_ns2_dynamic_create_nse(sgsn_nsi, true);
if (sgsn->cfg.dynamic_lookup) {