aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-09-30 01:01:03 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-09-30 01:01:03 +0800
commitfdae5c9a7d16456d4a7124d6c1a002d3f3e6b2d4 (patch)
treeb4ab498c35868dba6f12c3d10a1d948e5e6b952b
parent2656e8f4aade6e15b2cb4aad2e364881641e0343 (diff)
vty: Add a telnet interface to the cellmgr
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index bcda76c..b56bb73 100644
--- a/src/main.c
+++ b/src/main.c
@@ -33,6 +33,7 @@
#include <osmocore/protocol/gsm_08_08.h>
#include <osmocom/vty/vty.h>
+#include <osmocom/vty/telnet_interface.h>
#include <sys/stat.h>
#include <sys/types.h>
@@ -808,6 +809,7 @@ static void start_rest(void *start)
int main(int argc, char **argv)
{
+ int rc;
INIT_LLIST_HEAD(&bsc.sccp_connections);
bsc.dpc = 1;
@@ -855,6 +857,10 @@ int main(int argc, char **argv)
return -1;
}
+ rc = telnet_init(NULL, NULL, 4242);
+ if (rc < 0)
+ return rc;
+
bsc.link.the_link = mtp_link_alloc();
bsc.link.the_link->dpc = bsc.dpc;
bsc.link.the_link->opc = bsc.opc;