From 74e0a1b91c87804d25eb16eed47f3f83f962de6c Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 15 Sep 2010 01:11:08 +0800 Subject: 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. --- openbsc/include/openbsc/bsc_nat.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbsc/include') diff --git a/openbsc/include/openbsc/bsc_nat.h b/openbsc/include/openbsc/bsc_nat.h index 0c9af9184..6b2a09940 100644 --- a/openbsc/include/openbsc/bsc_nat.h +++ b/openbsc/include/openbsc/bsc_nat.h @@ -243,6 +243,8 @@ struct bsc_connection *bsc_nat_find_bsc(struct bsc_nat *nat, struct msgb *msg, i */ int bsc_nat_filter_sccp_cr(struct bsc_connection *bsc, struct msgb *msg, struct bsc_nat_parsed *, int *con_type); +int bsc_nat_filter_dt(struct bsc_connection *bsc, struct msgb *msg, + struct sccp_connections *con, struct bsc_nat_parsed *parsed); /** * SCCP patching and handling -- cgit v1.2.3