[PATCH 06/10] bsc_hack: Use libctrl, listen on port 4249

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Daniel Willmann daniel at totalueberwachung.de
Fri May 20 17:06:23 UTC 2011


---
 openbsc/src/osmo-nitb/Makefile.am |    3 ++-
 openbsc/src/osmo-nitb/bsc_hack.c  |    3 +++
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/openbsc/src/osmo-nitb/Makefile.am b/openbsc/src/osmo-nitb/Makefile.am
index f067f43..2ad9f20 100644
--- a/openbsc/src/osmo-nitb/Makefile.am
+++ b/openbsc/src/osmo-nitb/Makefile.am
@@ -11,4 +11,5 @@ osmo_nitb_LDADD = -ldl -ldbi $(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
+		$(top_builddir)/src/libcommon/libcommon.a \
+		$(top_builddir)/src/libctrl/libctrl.a
diff --git a/openbsc/src/osmo-nitb/bsc_hack.c b/openbsc/src/osmo-nitb/bsc_hack.c
index 1fa039b..5ba84cd 100644
--- a/openbsc/src/osmo-nitb/bsc_hack.c
+++ b/openbsc/src/osmo-nitb/bsc_hack.c
@@ -214,6 +214,8 @@ extern int bts_model_rbs2k_init(void);
 extern int bts_model_hslfemto_init(void);
 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 = {
@@ -263,6 +265,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));
 
-- 
1.7.5.rc3





More information about the OpenBSC mailing list