aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-02-12 14:58:33 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-03-03 16:19:10 +0100
commitf918920d65db6c0195d199d552944e8ae5f8b09c (patch)
treebb05a83ba4f18b711ee2fea6ea9944329603049c
parent292f1ce533e0e93dda1d05b178261fc807c8c0c8 (diff)
cscn: use iu_tx for msc_ifaces.iu_cs. some #include cosmetics.
-rw-r--r--openbsc/src/osmo-cscn/cscn_main.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/openbsc/src/osmo-cscn/cscn_main.c b/openbsc/src/osmo-cscn/cscn_main.c
index 005c8cf6a..6dc4fb7bf 100644
--- a/openbsc/src/osmo-cscn/cscn_main.c
+++ b/openbsc/src/osmo-cscn/cscn_main.c
@@ -34,6 +34,9 @@
#define _GNU_SOURCE
#include <getopt.h>
+/* build switches from the configure script */
+#include "../../bscconfig.h"
+
#include <openbsc/db.h>
#include <osmocom/core/application.h>
#include <osmocom/core/select.h>
@@ -59,12 +62,11 @@
#include <openbsc/ctrl.h>
#include <openbsc/osmo_bsc_rf.h>
#include <openbsc/smpp.h>
-#include <openbsc/iu.h>
#include <osmocom/sigtran/sccp_sap.h>
#include <osmocom/sigtran/sua.h>
-#include "../../bscconfig.h"
-
+#include <openbsc/msc_ifaces.h>
+#include <openbsc/iu.h>
#include <openbsc/iu_cs.h>
static const char * const osmocscn_copyright =
@@ -328,6 +330,9 @@ int main(int argc, char **argv)
if (!cscn_network)
return -ENOMEM;
+ global_msc_ifaces.network = cscn_network;
+ global_msc_ifaces.iu_cs.tx = iu_tx;
+
vty_init(&cscn_vty_info);
bsc_vty_init(&log_info, cscn_network);
rc = vty_read_config_file(cscn_cmdline_config.config_file, NULL);