aboutsummaryrefslogtreecommitdiffstats
path: root/src/links.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-02-15 20:01:47 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-02-17 19:34:27 +0100
commit84ec8714b21a766471129282b98a8bcbfef799f0 (patch)
tree685957259921822b00a661bad164e8e5e1e35a3e /src/links.c
parentf7ce2c6417b2cda3b0672d84f1ac9085c6f86f3a (diff)
msc: Move the MSC Connection into a new header file
This is in preparation of splitting the MSC part and the nat logic for the upcoming config rewriting.
Diffstat (limited to 'src/links.c')
-rw-r--r--src/links.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/links.c b/src/links.c
index b74d843..2a72b46 100644
--- a/src/links.c
+++ b/src/links.c
@@ -22,6 +22,7 @@
#include <bsc_data.h>
#include <cellmgr_debug.h>
+#include <msc_connection.h>
#include <mtp_data.h>
#include <mtp_pcap.h>
#include <snmp_mtp.h>
@@ -87,11 +88,13 @@ void mtp_link_restart(struct mtp_link *link)
static void start_rest(void *_set)
{
+ struct msc_connection *msc;
struct mtp_link_set *set = _set;
struct mtp_link *data;
bsc->setup = 1;
- if (msc_init(&bsc->msc_forward, 1) != 0) {
+ msc = msc_connection_num(bsc, 0);
+ if (msc && msc_connection_start(msc) != 0) {
fprintf(stderr, "Failed to init MSC part.\n");
exit(3);
}