summaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-nitb
diff options
context:
space:
mode:
authorDaniel Willmann <daniel@totalueberwachung.de>2011-02-18 16:17:58 +0100
committerHarald Welte <laforge@gnumonks.org>2011-07-13 14:07:10 +0200
commite8aef2a84bc6617b733e92d02fe8a9059e656037 (patch)
tree3618ff5289fc533c8df1bd85aa81be8a6716dbe2 /openbsc/src/osmo-nitb
parent2c192639b543809773aa702211fa1c37feec648f (diff)
bsc_hack: Use libctrl, listen on port 4249
Diffstat (limited to 'openbsc/src/osmo-nitb')
-rw-r--r--openbsc/src/osmo-nitb/Makefile.am4
-rw-r--r--openbsc/src/osmo-nitb/bsc_hack.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/openbsc/src/osmo-nitb/Makefile.am b/openbsc/src/osmo-nitb/Makefile.am
index 9cb92cf2c..1b813a271 100644
--- a/openbsc/src/osmo-nitb/Makefile.am
+++ b/openbsc/src/osmo-nitb/Makefile.am
@@ -11,4 +11,6 @@ osmo_nitb_LDADD = -ldl $(LIBCRYPT) $(LIBOSMOGSM_LIBS) $(LIBOSMOVTY_LIBS) \
$(top_builddir)/src/libbsc/libbsc.a \
$(top_builddir)/src/libtrau/libtrau.a \
$(top_builddir)/src/libabis/libabis.a \
- $(top_builddir)/src/libcommon/libcommon.a -ldbi
+ $(top_builddir)/src/libcommon/libcommon.a \
+ $(top_builddir)/src/libctrl/libctrl.a \
+ -ldbi
diff --git a/openbsc/src/osmo-nitb/bsc_hack.c b/openbsc/src/osmo-nitb/bsc_hack.c
index e548a9569..cbc619015 100644
--- a/openbsc/src/osmo-nitb/bsc_hack.c
+++ b/openbsc/src/osmo-nitb/bsc_hack.c
@@ -207,6 +207,8 @@ static void db_sync_timer_cb(void *data)
void talloc_ctx_init(void);
+extern int controlif_setup(struct gsm_network *gsmnet, uint16_t port);
+
extern enum node_type bsc_vty_go_parent(struct vty *vty);
static struct vty_app_info vty_info = {
@@ -251,6 +253,7 @@ int main(int argc, char **argv)
exit(1);
bsc_api_init(bsc_gsmnet, msc_bsc_api());
+ controlif_setup(bsc_gsmnet, 4249);
/* seed the PRNG */
srand(time(NULL));