aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-bsc_nat/bsc_nat.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-04-05 13:45:53 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-04-05 14:06:16 +0200
commit7c00983275c1b830b88db124bc0b15078b9cd45d (patch)
tree53a84fb2ec43f6c882522aef1eda8d187e8a0b7b /openbsc/src/osmo-bsc_nat/bsc_nat.c
parentfa1cba9e606c3364fecabe85967950cc217fd870 (diff)
nat: Inform others if an IMSI is rejected
In case one wants to monitor the access lists one there is now a trap for the IMSI.
Diffstat (limited to 'openbsc/src/osmo-bsc_nat/bsc_nat.c')
-rw-r--r--openbsc/src/osmo-bsc_nat/bsc_nat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat.c b/openbsc/src/osmo-bsc_nat/bsc_nat.c
index 6b061bc20..2f6711a53 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_nat.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_nat.c
@@ -1060,6 +1060,8 @@ static int forward_sccp_to_msc(struct bsc_connection *bsc, struct msgb *msg)
filter = bsc_nat_filter_sccp_cr(bsc, msg, parsed,
&con_type, &imsi, &cause);
if (filter < 0) {
+ if (imsi)
+ bsc_nat_inform_reject(bsc, imsi);
bsc_stat_reject(filter, bsc, 0);
goto exit3;
}
@@ -1091,6 +1093,8 @@ static int forward_sccp_to_msc(struct bsc_connection *bsc, struct msgb *msg)
filter = bsc_nat_filter_dt(bsc, msg,
con, parsed, &cause);
if (filter < 0) {
+ if (imsi)
+ bsc_nat_inform_reject(bsc, imsi);
bsc_stat_reject(filter, bsc, 1);
bsc_send_con_release(bsc, con, &cause);
con = NULL;