diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-03-04 15:20:27 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-03-04 20:39:38 +0100 |
commit | 472f3bd1983431ace2353c96a23bb69860938104 (patch) | |
tree | 46fabf2bbe9722f466f070ae20c5936245cfc914 /openbsc/src/osmo-bsc_nat | |
parent | bc3780a73fbe00bb7a9e42cc94511a369ba4a698 (diff) |
nat: Introduce command to remove an access-list-name
Diffstat (limited to 'openbsc/src/osmo-bsc_nat')
-rw-r--r-- | openbsc/src/osmo-bsc_nat/bsc_nat_ctrl.c | 5 |
1 files changed, 5 insertions, 0 deletions
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"; |