aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat/bsc_nat_utils.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-09-15 01:11:08 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-09-15 18:58:36 +0800
commit74e0a1b91c87804d25eb16eed47f3f83f962de6c (patch)
tree4138d5fdf52745398cf4f07006623b780b3a8a88 /openbsc/src/nat/bsc_nat_utils.c
parent909e61fddcdd97ed1bb8c44951f12dc3590f6521 (diff)
nat: Start inspecting every message coming from the BSC for the IMSI
Return early in case the IMSI was already checked, if not we need to look at the connection and check if the message could contain a imsi we want/need to filter.
Diffstat (limited to 'openbsc/src/nat/bsc_nat_utils.c')
-rw-r--r--openbsc/src/nat/bsc_nat_utils.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_nat_utils.c b/openbsc/src/nat/bsc_nat_utils.c
index e81a1e85b..7387b517a 100644
--- a/openbsc/src/nat/bsc_nat_utils.c
+++ b/openbsc/src/nat/bsc_nat_utils.c
@@ -431,6 +431,15 @@ int bsc_nat_filter_sccp_cr(struct bsc_connection *bsc, struct msgb *msg, struct
}
}
+int bsc_nat_filter_dt(struct bsc_connection *bsc, struct msgb *msg,
+ struct sccp_connections *con, struct bsc_nat_parsed *parsed)
+{
+ if (con->imsi_checked)
+ return 0;
+
+ return 0;
+}
+
void bsc_parse_reg(void *ctx, regex_t *reg, char **imsi, int argc, const char **argv)
{
if (*imsi) {