aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-02-17 14:55:55 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-02-17 19:34:28 +0100
commit8fd28dbbe64cb32e5f296bd2679cebf03b5d14c0 (patch)
treec27ece65526fed5a9459cbd03300d02690ea053e /include
parent41df6c59782c7dfd3c6906959b5abfd5dc1a4a5e (diff)
m2ua: Keep the M2UA ASP state in the mtp_m2ua_link
This change allows to run multiple links over the same SCTP connection or multiple SCTP connections. It does not yet support fail over handling or load balancing but that seems possible now.
Diffstat (limited to 'include')
-rw-r--r--include/sctp_m2ua.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/sctp_m2ua.h b/include/sctp_m2ua.h
index 9f4d5c7..99af46e 100644
--- a/include/sctp_m2ua.h
+++ b/include/sctp_m2ua.h
@@ -44,6 +44,15 @@ struct sctp_m2ua_transport {
struct mtp_m2ua_link {
struct mtp_link *base;
+ /*
+ * The state of the link, who is using it and
+ * what will happen to it. For load-sharing we
+ * will need to turn this into a list.
+ */
+ int asp_active;
+ int established;
+ struct sctp_m2ua_conn *conn;
+
int link_index;
struct llist_head entry;
struct sctp_m2ua_transport *transport;
@@ -56,8 +65,6 @@ struct sctp_m2ua_conn {
struct llist_head entry;
uint8_t asp_ident[4];
int asp_up;
- int asp_active;
- int established;
struct write_queue queue;
struct sctp_m2ua_transport *trans;