aboutsummaryrefslogtreecommitdiffstats
path: root/src/msc_conn.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-11-16 11:14:34 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-11-16 11:16:37 +0100
commit7694381f52983f95320f8e01f4d8b4cca934dfff (patch)
tree26129a66f8718eefdb6bb882ccc558f72b12baf7 /src/msc_conn.c
parent594ee9a8c444034d75f995e0efbae646ddae2761 (diff)
udt: Add a forward_only to the bsc struct and use it for the msc_conn
Simply forward everything, no need for inspecting things.
Diffstat (limited to 'src/msc_conn.c')
-rw-r--r--src/msc_conn.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/msc_conn.c b/src/msc_conn.c
index f980178..f2a3e1a 100644
--- a/src/msc_conn.c
+++ b/src/msc_conn.c
@@ -201,6 +201,15 @@ static int ipaccess_a_fd_cb(struct bsc_fd *bfd)
} else if (hh->proto == IPAC_PROTO_SCCP) {
struct sccp_parse_result result;
int rc;
+
+ /* we can not forward it right now */
+ if (bsc->forward_only && link->sccp_up) {
+ if (send_or_queue_bsc_msg(link, 13, msg) != 1)
+ msgb_free(msg);
+ return 0;
+ }
+
+
rc = bss_patch_filter_msg(msg, &result);
if (rc == BSS_FILTER_RESET_ACK) {