diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-09-30 01:01:03 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-09-30 01:01:03 +0800 |
commit | fdae5c9a7d16456d4a7124d6c1a002d3f3e6b2d4 (patch) | |
tree | b4ab498c35868dba6f12c3d10a1d948e5e6b952b /src/main.c | |
parent | 2656e8f4aade6e15b2cb4aad2e364881641e0343 (diff) |
vty: Add a telnet interface to the cellmgr
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |