From cfe9d718e27b812da4b90c5bda2fea8c9ce4ff7b Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 17 Feb 2011 20:32:09 +0100 Subject: vty: Remove more globals from the bsc data. This is a interim solution until we have the new and all mighty new config file format. This should work for now, makes the init abit harder to understand though. --- include/bsc_data.h | 15 ++------------- include/ss7_application.h | 6 ++++++ 2 files changed, 8 insertions(+), 13 deletions(-) (limited to 'include') diff --git a/include/bsc_data.h b/include/bsc_data.h index 83061e2..12e8e93 100644 --- a/include/bsc_data.h +++ b/include/bsc_data.h @@ -69,22 +69,10 @@ struct bsc_data { /* udp code */ struct mtp_udp_data udp_data; - int dpc; - int opc; - int sccp_opc; - int isup_opc; int src_port; int udp_port; char *udp_ip; int udp_nr_links; - int once; - - /* the network header to use */ - int ni_ni; - int ni_spare; - - /* isup handling */ - int isup_pass; /* MTP Links */ struct llist_head linksets; @@ -115,9 +103,10 @@ void mtp_linkset_up(struct mtp_link_set *); /* connection tracking and action */ /* udp init */ +struct mtp_link_set *link_set_create(struct bsc_data *bsc); int link_global_init(struct mtp_udp_data *data, int src_port); int link_udp_init(struct mtp_udp_link *data, char *dest_ip, int port); -struct mtp_link_set *link_init(struct bsc_data *bsc); +int link_init(struct bsc_data *bsc, struct mtp_link_set *set); int link_shutdown_all(struct mtp_link_set *); int link_reset_all(struct mtp_link_set *); int link_clear_all(struct mtp_link_set *); diff --git a/include/ss7_application.h b/include/ss7_application.h index 51426b5..66ddd87 100644 --- a/include/ss7_application.h +++ b/include/ss7_application.h @@ -64,6 +64,9 @@ struct ss7_application { struct bsc_data *bsc; + /* isup handling */ + int isup_pass; + /* handling for the NAT/State handling */ struct llist_head sccp_connections; struct timer_list reset_timeout; @@ -81,4 +84,7 @@ int ss7_application_setup(struct ss7_application *, int type, int ss7_application_start(struct ss7_application *); +/* config changes */ +void ss7_application_pass_isup(struct ss7_application *, int pass); + #endif -- cgit v1.2.3