From 472f3bd1983431ace2353c96a23bb69860938104 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 4 Mar 2014 15:20:27 +0100 Subject: nat: Introduce command to remove an access-list-name --- openbsc/src/osmo-bsc_nat/bsc_nat_ctrl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat_ctrl.c b/openbsc/src/osmo-bsc_nat/bsc_nat_ctrl.c index 8b675d44d..2836a1956 100644 --- a/openbsc/src/osmo-bsc_nat/bsc_nat_ctrl.c +++ b/openbsc/src/osmo-bsc_nat/bsc_nat_ctrl.c @@ -357,6 +357,11 @@ static int set_net_cfg_cmd(struct ctrl_cmd *cmd, void *data) cmd->reply = talloc_asprintf(cmd, "%s", bsc_cfg->acc_lst_name ? bsc_cfg->acc_lst_name : ""); return CTRL_CMD_REPLY; + } else if (strcmp(bsc_variable, "no-access-list-name") == 0) { + talloc_free(bsc_cfg->acc_lst_name); + bsc_cfg->acc_lst_name = NULL; + cmd->reply = ""; + return CTRL_CMD_REPLY; } cmd->reply = "unknown command"; -- cgit v1.2.3