diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-04-04 21:55:08 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-05-03 21:42:27 +0200 |
commit | 4579bb1ed7464d66343d84846314ec66e6f8cccd (patch) | |
tree | 97837280f1b76a44a440ffbd1422f2618081face /openbsc/include/openbsc/bsc_msg_filter.h | |
parent | 973dbaeebdbdbd8fed417cdfd169644093389d05 (diff) |
filter: Move the access list management around
Diffstat (limited to 'openbsc/include/openbsc/bsc_msg_filter.h')
-rw-r--r-- | openbsc/include/openbsc/bsc_msg_filter.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/bsc_msg_filter.h b/openbsc/include/openbsc/bsc_msg_filter.h index d9b3f6b5c..248a0828b 100644 --- a/openbsc/include/openbsc/bsc_msg_filter.h +++ b/openbsc/include/openbsc/bsc_msg_filter.h @@ -8,6 +8,7 @@ #include <regex.h> /* TODO: remove */ +struct bsc_nat; struct bsc_nat_parsed; struct bsc_connection; struct nat_sccp_connection; @@ -69,3 +70,11 @@ int bsc_nat_filter_dt(struct bsc_connection *bsc, struct msgb *msg, struct nat_sccp_connection *con, struct bsc_nat_parsed *parsed, struct bsc_nat_reject_cause *cause); +/* IMSI allow/deny handling */ +struct bsc_nat_acc_lst *bsc_nat_acc_lst_find(struct bsc_nat *nat, const char *name); +struct bsc_nat_acc_lst *bsc_nat_acc_lst_get(struct bsc_nat *nat, const char *name); +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); + |