nat: Make the imsi checking function public.
We will use this method in the USSD module to check if the IMSI should be handled for USSD queries.
This commit is contained in:
parent
d1effd835f
commit
c1cac1e31a
|
@ -316,6 +316,7 @@ struct bsc_nat_acc_lst *bsc_nat_acc_lst_get(struct bsc_nat *nat, const char *nam
|
|||
void bsc_nat_acc_lst_delete(struct bsc_nat_acc_lst *lst);
|
||||
|
||||
struct bsc_nat_acc_lst_entry *bsc_nat_acc_lst_entry_create(struct bsc_nat_acc_lst *);
|
||||
int bsc_nat_lst_check_allow(struct bsc_nat_acc_lst *lst, const char *imsi);
|
||||
|
||||
int bsc_nat_msc_is_connected(struct bsc_nat *nat);
|
||||
|
||||
|
|
|
@ -288,7 +288,7 @@ int bsc_write_msg(struct write_queue *queue, struct msgb *msg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int lst_check_allow(struct bsc_nat_acc_lst *lst, const char *mi_string)
|
||||
int bsc_nat_lst_check_allow(struct bsc_nat_acc_lst *lst, const char *mi_string)
|
||||
{
|
||||
struct bsc_nat_acc_lst_entry *entry;
|
||||
|
||||
|
@ -335,7 +335,7 @@ static int auth_imsi(struct bsc_connection *bsc, const char *mi_string)
|
|||
|
||||
if (bsc_lst) {
|
||||
/* 1. BSC allow */
|
||||
if (lst_check_allow(bsc_lst, mi_string) == 0)
|
||||
if (bsc_nat_lst_check_allow(bsc_lst, mi_string) == 0)
|
||||
return 1;
|
||||
|
||||
/* 2. BSC deny */
|
||||
|
|
Loading…
Reference in New Issue