aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/gb_proxy_vty.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-08-04 16:27:11 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-08-04 16:27:11 +0200
commit3fa26448d160bf153ec3f35843dbe3aa728c39fb (patch)
tree99ea335140022b9cb8588456386483883cd05e7f /openbsc/src/gprs/gb_proxy_vty.c
parent3748ada07352b7144766d988853b93f372e7a790 (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/src/gprs/gb_proxy_vty.c')
-rw-r--r--openbsc/src/gprs/gb_proxy_vty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsc/src/gprs/gb_proxy_vty.c b/openbsc/src/gprs/gb_proxy_vty.c
index 2b126f204..68d5e74d0 100644
--- a/openbsc/src/gprs/gb_proxy_vty.c
+++ b/openbsc/src/gprs/gb_proxy_vty.c
@@ -193,7 +193,7 @@ static int set_core_apn(struct vty *vty, const char *apn, const char *filter)
talloc_free(g_cfg->core_apn);
g_cfg->core_apn = NULL;
g_cfg->core_apn_size = 0;
- gbprox_set_patch_filter(NULL, NULL);
+ gbprox_set_patch_filter(g_cfg, NULL, NULL);
return CMD_SUCCESS;
}
@@ -206,8 +206,8 @@ static int set_core_apn(struct vty *vty, const char *apn, const char *filter)
}
if (!filter) {
- gbprox_set_patch_filter(NULL, NULL);
- } else if (gbprox_set_patch_filter(filter, &err_msg) != 0) {
+ gbprox_set_patch_filter(g_cfg, NULL, NULL);
+ } else if (gbprox_set_patch_filter(g_cfg, filter, &err_msg) != 0) {
vty_out(vty, "Match expression invalid: %s%s",
err_msg, VTY_NEWLINE);
return CMD_WARNING;