commit | ee63d7d15e14ca0b653086043e7a6d1d537a89a1 | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <zecke@selfish.org> | Thu Feb 10 12:39:05 2011 +0100 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Thu Feb 10 20:09:08 2011 +0100 |
tree | b9d15cd910344e91caba6c2b001136ae6e2c31c8 | |
parent | 0452f22a21d71094b3c740485e54e210f94f0465 [diff] [blame] |
stp: Allow/Disallow to inject messages on the UDP/M2UA interface
diff --git a/src/main_stp.c b/src/main_stp.c index 57f509f..6e8752e 100644 --- a/src/main_stp.c +++ b/src/main_stp.c
@@ -206,6 +206,11 @@ return -1; } + if (!bsc->allow_inject) { + LOGP(DINP, LOGL_ERROR, "Injecting messages is not allowed.\n"); + return -1; + } + m2ua = m2ua_from_msg(rc, buf); if (!m2ua) { LOGP(DINP, LOGL_ERROR, "Failed to parse M2UA.\n");