aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-bsc_nat/bsc_nat.c
diff options
context:
space:
mode:
authorDaniel Willmann <daniel@totalueberwachung.de>2011-07-22 17:55:42 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-09-11 12:52:23 +0200
commit6fc4a98fc5250d009a65d5fa079904400a3ded3d (patch)
tree0ea250b3d72f6336ed77e84ef1d7a9839142b479 /openbsc/src/osmo-bsc_nat/bsc_nat.c
parentf3b31eb34978d35011ff46edaf40c1a151604197 (diff)
libctrl: Change controlif_setup so it returns the ctrl handle
nat: Catch up with controlif_setup API change We now save a control handle reference in the nat osmo-bsc: Catch up with controlif_setup API change We now save a control handle reference in the gsm network
Diffstat (limited to 'openbsc/src/osmo-bsc_nat/bsc_nat.c')
-rw-r--r--openbsc/src/osmo-bsc_nat/bsc_nat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat.c b/openbsc/src/osmo-bsc_nat/bsc_nat.c
index 295535a19..b9d4639df 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_nat.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_nat.c
@@ -39,12 +39,14 @@
#include <openbsc/bsc_msc.h>
#include <openbsc/bsc_nat.h>
#include <openbsc/bsc_nat_sccp.h>
-#include <openbsc/control_cmd.h>
#include <openbsc/ipaccess.h>
#include <openbsc/abis_nm.h>
#include <openbsc/socket.h>
#include <openbsc/vty.h>
+#include <openbsc/control_cmd.h>
+#include <openbsc/control_if.h>
+
#include <osmocom/core/application.h>
#include <osmocom/core/talloc.h>
@@ -1760,7 +1762,7 @@ int main(int argc, char **argv)
exit(1);
}
- controlif_setup(NULL, 4250);
+ nat->ctrl = controlif_setup(NULL, 4250);
ctrl_cmd_install(CTRL_NODE_ROOT, &cmd_fwd_cmd);
nat->msc_con->connection_loss = msc_connection_was_lost;