aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-02-17 20:32:09 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-02-22 21:05:59 +0100
commitcfe9d718e27b812da4b90c5bda2fea8c9ce4ff7b (patch)
tree1c025dbed694d0332648f2d440597d47373a0227 /include
parent4cee7c09018609332e057359cf8533624d64b918 (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/bsc_data.h15
-rw-r--r--include/ss7_application.h6
2 files changed, 8 insertions, 13 deletions
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