aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat/bsc_nat_utils.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-05-15 00:36:54 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-05-15 00:36:54 +0800
commit3dfcd4636a8b32d66c985f55404847799c30f38d (patch)
treebeb172c5e1ec00e18bb2ee291c0d564832d6da20 /openbsc/src/nat/bsc_nat_utils.c
parent50818d0c20a94476477609d448158779f26b12cf (diff)
[nat] Remove the imsi allow option on the nat level.
For now we have: 1.) bsc imsi deny to deny at the BSC level 2.) bsc imsi allow to allow a SIM at the BSC level 3.) nat imsi deny to deny at the global level
Diffstat (limited to 'openbsc/src/nat/bsc_nat_utils.c')
-rw-r--r--openbsc/src/nat/bsc_nat_utils.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/openbsc/src/nat/bsc_nat_utils.c b/openbsc/src/nat/bsc_nat_utils.c
index bb0d96963..d5537f796 100644
--- a/openbsc/src/nat/bsc_nat_utils.c
+++ b/openbsc/src/nat/bsc_nat_utils.c
@@ -228,16 +228,7 @@ static int auth_imsi(struct bsc_connection *bsc, const char *mi_string)
}
}
- /* 4. NAT allow */
- if (bsc->nat->imsi_allow) {
- if (regexec(&bsc->nat->imsi_allow_re, mi_string, 0, NULL, 0) == 0)
- return 0;
- } else {
- return 0;
- }
-
- /* unmatched */
- return -3;
+ return 0;
}
static int _cr_check_loc_upd(struct bsc_connection *bsc, uint8_t *data, unsigned int length)