aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-01-11 09:45:17 +0100
committerHarald Welte <laforge@gnumonks.org>2013-01-11 09:45:17 +0100
commitde5253a20f0fffd72c0fe711003609c93a6977d6 (patch)
tree3dcbc59903d1185f9a6dac71e47dbb5fc4143dbe
parenta23c7eee151c1e92dacaadb823b26d426a904564 (diff)
make sure to register NS protocol to the VTY
Without calling gprs_ns_vty_init(), the NS specific VTY commands are not activated.
-rw-r--r--src/gprs_bssgp_pcu.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gprs_bssgp_pcu.cpp b/src/gprs_bssgp_pcu.cpp
index bd28ea0..414e96b 100644
--- a/src/gprs_bssgp_pcu.cpp
+++ b/src/gprs_bssgp_pcu.cpp
@@ -578,6 +578,7 @@ int gprs_bssgp_create(uint32_t sgsn_ip, uint16_t sgsn_port, uint16_t nsei,
LOGP(DBSSGP, LOGL_ERROR, "Failed to create NS instance\n");
return -EINVAL;
}
+ gprs_ns_vty_init(bssgp_nsi);
rc = gprs_ns_nsip_listen(bssgp_nsi);
if (rc < 0) {
LOGP(DBSSGP, LOGL_ERROR, "Failed to create socket\n");