diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-08-04 16:27:11 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-08-04 16:27:11 +0200 |
commit | 3fa26448d160bf153ec3f35843dbe3aa728c39fb (patch) | |
tree | 99ea335140022b9cb8588456386483883cd05e7f /openbsc/include/openbsc/gb_proxy.h | |
parent | 3748ada07352b7144766d988853b93f372e7a790 (diff) |
gbproxy: Kill the global gbprox_global_patch_state struct
Move this patching state into the gbproxy_config as well.
Done by Jacob
Diffstat (limited to 'openbsc/include/openbsc/gb_proxy.h')
-rw-r--r-- | openbsc/include/openbsc/gb_proxy.h | 10 |
1 files changed, 9 insertions, 1 deletions
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 <osmocom/gprs/gprs_ns.h> #include <osmocom/vty/command.h> +#include <sys/types.h> +#include <regex.h> + 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); |