aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-02-10 18:26:07 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-02-10 20:09:09 +0100
commit89fa11af027139a1330717600bc962e69f6d5307 (patch)
treea1e1b035f7d8bf20473a024ce7c92f156a83896b /include
parent43b015a8ea7519ff9f821f5a9e0a3c63234121e1 (diff)
bsc: Remove the global link_set pointer from the bsc
Start removing the static names for the linkset
Diffstat (limited to 'include')
-rw-r--r--include/bsc_data.h4
-rw-r--r--include/mtp_data.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/include/bsc_data.h b/include/bsc_data.h
index a72ea6a..bd599df 100644
--- a/include/bsc_data.h
+++ b/include/bsc_data.h
@@ -123,8 +123,8 @@ struct bsc_data {
int setup;
int pcap_fd;
int udp_reset_timeout;
- struct mtp_link_set *link_set;
struct mtp_link_set *m2ua_set;
+ struct llist_head links;
/* udp code */
struct mtp_udp_data udp_data;
@@ -176,7 +176,7 @@ void update_con_state(struct bsc_msc_forward *fw, int rc, struct sccp_parse_resu
/* udp init */
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);
-int link_init(struct bsc_data *bsc);
+struct mtp_link_set *link_init(struct bsc_data *bsc);
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/mtp_data.h b/include/mtp_data.h
index 1fa9277..e8cb79e 100644
--- a/include/mtp_data.h
+++ b/include/mtp_data.h
@@ -41,6 +41,8 @@ struct rate_ctr_group;
* The state of the mtp_link in terms of layer3 and upwards
*/
struct mtp_link_set {
+ struct llist_head entry;
+
/* routing info.. */
int dpc, opc, sccp_opc, isup_opc;
int ni;
@@ -73,6 +75,7 @@ struct mtp_link_set {
/* custom data */
struct bsc_data *bsc;
struct bsc_msc_forward *fw;
+ struct mtp_link_set *forward;
};
/**