From 0452f22a21d71094b3c740485e54e210f94f0465 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 3 Feb 2011 13:35:42 +0100 Subject: 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. --- include/bsc_data.h | 4 ++++ include/mtp_data.h | 1 + 2 files changed, 5 insertions(+) (limited to 'include') 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); -- cgit v1.2.3