aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-02-03 13:35:42 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-02-10 20:09:08 +0100
commit0452f22a21d71094b3c740485e54e210f94f0465 (patch)
treec198623876656b33c681a9199baed6d2033e4359 /include
parent6b71fd6192e937f26ffed0e0846e63b54c4824af (diff)
stp: Add code that allows to inject messages on any linkset
This can be useful to test out certain messages without having any of the linksets be fully connected. It is not possible to get the result. In the future this code should reply with an M2UA error message if something went wrong.
Diffstat (limited to 'include')
-rw-r--r--include/bsc_data.h4
-rw-r--r--include/mtp_data.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/include/bsc_data.h b/include/bsc_data.h
index fe6d295..1009d46 100644
--- a/include/bsc_data.h
+++ b/include/bsc_data.h
@@ -134,6 +134,10 @@ struct bsc_data {
uint16_t lac;
int forward_only;
+
+ /* inject */
+ struct bsc_fd inject_fd;
+ struct llist_head inject_list;
};
/* bsc related functions */
diff --git a/include/mtp_data.h b/include/mtp_data.h
index 0e35ab5..9314962 100644
--- a/include/mtp_data.h
+++ b/include/mtp_data.h
@@ -137,6 +137,7 @@ void mtp_link_submit(struct mtp_link *link, struct msgb *msg);
void mtp_link_set_forward_sccp(struct mtp_link_set *link, struct msgb *msg, int sls);
void mtp_link_set_forward_isup(struct mtp_link_set *link, struct msgb *msg, int sls);
void mtp_link_restart(struct mtp_link *link);
+int mtp_link_set_send(struct mtp_link_set *set, struct msgb *msg);
/* link related routines */
void mtp_link_down(struct mtp_link *data);