From f1012a432c6ec3a54ba3af2c33e4ecbc06aab447 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 15 May 2010 00:36:54 +0800 Subject: [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 --- openbsc/src/nat/bsc_nat_utils.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'openbsc/src/nat/bsc_nat_utils.c') diff --git a/openbsc/src/nat/bsc_nat_utils.c b/openbsc/src/nat/bsc_nat_utils.c index e16910e71..8e4261b2b 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) -- cgit v1.2.3