From 3fa26448d160bf153ec3f35843dbe3aa728c39fb Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 4 Aug 2014 16:27:11 +0200 Subject: gbproxy: Kill the global gbprox_global_patch_state struct Move this patching state into the gbproxy_config as well. Done by Jacob --- openbsc/include/openbsc/gb_proxy.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'openbsc/include/openbsc') diff --git a/openbsc/include/openbsc/gb_proxy.h b/openbsc/include/openbsc/gb_proxy.h index 7c38274dc..9c256793f 100644 --- a/openbsc/include/openbsc/gb_proxy.h +++ b/openbsc/include/openbsc/gb_proxy.h @@ -7,6 +7,9 @@ #include #include +#include +#include + struct rate_ctr_group; enum gbproxy_patch_mode { @@ -41,6 +44,10 @@ struct gbproxy_config { enum gbproxy_patch_mode patch_mode; int tlli_max_age; int tlli_max_len; + + /* IMSI checking/matching */ + int check_imsi; + regex_t imsi_re_comp; }; struct gbproxy_patch_state { @@ -104,7 +111,8 @@ int gbprox_reset_persistent_nsvcs(struct gprs_ns_inst *nsi); void gbprox_reset(struct gbproxy_config *cfg); -int gbprox_set_patch_filter(const char *filter, const char **err_msg); +int gbprox_set_patch_filter(struct gbproxy_config *cfg, const char *filter, + const char **err_msg); void gbprox_delete_tlli(struct gbproxy_peer *peer, struct gbproxy_tlli_info *tlli_info); -- cgit v1.2.3