aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-04 13:21:52 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-17 11:27:00 +0100
commitfe72c160e2d3c7a32bed13ff7675e0d547635d62 (patch)
tree9eb9ae03f98461449c42aa31bf4f012c978c15ea /include
parent069e635413efd1a1e4e5309c07a03d2df73bf88a (diff)
mtp: Turn the MTPl2 link into a list of links.
Diffstat (limited to 'include')
-rw-r--r--include/bsc_data.h5
-rw-r--r--include/mtp_data.h5
2 files changed, 8 insertions, 2 deletions
diff --git a/include/bsc_data.h b/include/bsc_data.h
index d734177..5a01dce 100644
--- a/include/bsc_data.h
+++ b/include/bsc_data.h
@@ -42,6 +42,8 @@ struct snmp_mtp_session;
* A link to the underlying MTP2 library or such
*/
struct link_data {
+ struct llist_head entry;
+
union {
struct {
struct thread_notifier *notifier;
@@ -149,6 +151,9 @@ unsigned int sls_for_src_ref(struct sccp_source_reference *ref);
/* udp init */
int link_udp_init(struct link_data *data, int src_port, const char *dest_ip, int port);
int 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 *);
/* MGCP */
void mgcp_forward(struct bsc_data *bsc, const uint8_t *data, unsigned int length);
diff --git a/include/mtp_data.h b/include/mtp_data.h
index a6e9368..349bf7a 100644
--- a/include/mtp_data.h
+++ b/include/mtp_data.h
@@ -64,7 +64,7 @@ struct mtp_link_set {
struct timer_list delay_timer;
- struct link_data *link;
+ struct llist_head links;
struct link_data *slc[16];
/* custom data */
@@ -80,6 +80,7 @@ int mtp_link_set_submit_sccp_data(struct mtp_link_set *link, int sls, const uint
int mtp_link_set_submit_isup_data(struct mtp_link_set *link, int sls, const uint8_t *data, unsigned int length);
void mtp_link_set_init_slc(struct mtp_link_set *set);
+void mtp_link_set_add_link(struct mtp_link_set *set, struct link_data *link);
/* one time init function */
@@ -88,7 +89,7 @@ void mtp_link_set_init(void);
/* to be implemented for MSU sending */
void mtp_link_set_submit(struct link_data *link, struct msgb *msg);
void mtp_link_set_forward_sccp(struct mtp_link_set *link, struct msgb *msg, int sls);
-void mtp_link_set_restart(struct mtp_link_set *link);
+void mtp_link_restart(struct link_data *link);
void mtp_link_set_sccp_down(struct mtp_link_set *link);
#endif