diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-05-15 00:36:54 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-15 20:24:19 +0800 |
commit | f1012a432c6ec3a54ba3af2c33e4ecbc06aab447 (patch) | |
tree | 2f0f61f2dfa92cddc361a2e0acbeb03da057a829 /openbsc/src/nat/bsc_nat_utils.c | |
parent | 1498d2e182ea6644a9965f47a327900d7b43ddbd (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.c | 11 |
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 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) |