From e8aef2a84bc6617b733e92d02fe8a9059e656037 Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Fri, 18 Feb 2011 16:17:58 +0100 Subject: bsc_hack: Use libctrl, listen on port 4249 --- openbsc/src/osmo-nitb/Makefile.am | 4 +++- openbsc/src/osmo-nitb/bsc_hack.c | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'openbsc/src/osmo-nitb') 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)); -- cgit v1.2.3