diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-04-05 19:20:09 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-05-03 22:01:46 +0200 |
commit | 4e8176d0c9c9a98f32cb4541b4f986de0011d4b9 (patch) | |
tree | 566b948be3afb393e8af7caa98268e4ccfb33977 /openbsc/include | |
parent | c09f8a3b7fb94ccef41e33c32bfe2bff1ffe0e44 (diff) |
filter: Remove bsc_connection from the filter API
Remove the last occurence of NAT datastructures in the filtering
module and add the ctx to the filter request structure.
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/bsc_msg_filter.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/openbsc/include/openbsc/bsc_msg_filter.h b/openbsc/include/openbsc/bsc_msg_filter.h index 64890500c..b09cd8aa6 100644 --- a/openbsc/include/openbsc/bsc_msg_filter.h +++ b/openbsc/include/openbsc/bsc_msg_filter.h @@ -10,9 +10,6 @@ struct vty; struct gsm48_hdr; -/* TODO: remove */ -struct bsc_connection; - struct bsc_filter_reject_cause { int lu_reject_cause; int cm_reject_cause; @@ -61,6 +58,15 @@ struct bsc_filter_state { int imsi_checked; }; +struct bsc_filter_request { + void *ctx; + struct rb_root *black_list; + struct llist_head *access_lists; + const char *local_lst_name; + const char *global_lst_name; + int bsc_nr; +}; + int bsc_filter_barr_adapt(void *ctx, struct rb_root *rbtree, const struct osmo_config_list *); int bsc_filter_barr_find(struct rb_root *root, const char *imsi, int *cm, int *lu); @@ -69,11 +75,11 @@ int bsc_filter_barr_find(struct rb_root *root, const char *imsi, int *cm, int *l * Content filtering. */ int bsc_msg_filter_initial(struct gsm48_hdr *hdr, size_t size, - struct bsc_connection *bsc, + struct bsc_filter_request *req, int *con_type, char **imsi, struct bsc_filter_reject_cause *cause); int bsc_msg_filter_data(struct gsm48_hdr *hdr, size_t size, - struct bsc_connection *bsc, + struct bsc_filter_request *req, struct bsc_filter_state *state, struct bsc_filter_reject_cause *cause); |