aboutsummaryrefslogtreecommitdiffstats
path: root/src/main_stp.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-02-10 15:32:14 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-02-10 20:09:09 +0100
commite86c02e107d9bef11a69ecef85d923ae4f523ef3 (patch)
tree7797afa28ff03963e8f84f254b9b91b311b89ad0 /src/main_stp.c
parentee63d7d15e14ca0b653086043e7a6d1d537a89a1 (diff)
bsc: Move the BSC<->MSC variables to a new struct.
Move the MSC related information out of the bsc_data and update the code to use this BSC configuration. This is greatly cleaning up the code and in theory there might now be two BSC and two MSCs that one application can handle (minus the missing VTY config)
Diffstat (limited to 'src/main_stp.c')
-rw-r--r--src/main_stp.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/main_stp.c b/src/main_stp.c
index 6e8752e..5ddc10e 100644
--- a/src/main_stp.c
+++ b/src/main_stp.c
@@ -305,7 +305,6 @@ int main(int argc, char **argv)
int rc;
struct mtp_link *data;
struct mtp_m2ua_link *lnk;
- INIT_LLIST_HEAD(&bsc.sccp_connections);
bsc.app = APP_STP;
bsc.dpc = 1;
@@ -318,6 +317,9 @@ int main(int argc, char **argv)
bsc.ni_ni = MTP_NI_NATION_NET;
bsc.ni_spare = 0;
bsc.udp_nr_links = 1;
+ bsc.setup = 0;
+ bsc.pcap_fd = -1;
+ bsc.udp_reset_timeout = 180;
mtp_link_set_init();
thread_init();
@@ -338,15 +340,6 @@ int main(int argc, char **argv)
sccp_set_log_area(DSCCP);
m2ua_set_log_area(DM2UA);
- bsc.setup = 0;
- bsc.msc_address = "127.0.0.1";
- bsc.pcap_fd = -1;
- bsc.udp_reset_timeout = 180;
- bsc.ping_time = 20;
- bsc.pong_time = 5;
- bsc.msc_time = 20;
- bsc.forward_only = 1;
-
handle_options(argc, argv);
signal(SIGPIPE, SIG_IGN);
@@ -403,7 +396,7 @@ int main(int argc, char **argv)
}
/* dummy for links */
-int msc_init(struct bsc_data *data, int dummy)
+int msc_init(struct bsc_msc_forward *data, int dummy)
{
return 0;
}