diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-10 12:39:05 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-10 20:09:08 +0100 |
commit | ee63d7d15e14ca0b653086043e7a6d1d537a89a1 (patch) | |
tree | b9d15cd910344e91caba6c2b001136ae6e2c31c8 /src/main_stp.c | |
parent | 0452f22a21d71094b3c740485e54e210f94f0465 (diff) |
stp: Allow/Disallow to inject messages on the UDP/M2UA interface
Diffstat (limited to 'src/main_stp.c')
-rw-r--r-- | src/main_stp.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ static int inject_read_cb(struct bsc_fd *fd, unsigned int what) 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"); |