nat: Introduce command to remove an access-list-name

This commit is contained in:
Holger Hans Peter Freyther 2014-03-04 15:20:27 +01:00
parent bc3780a73f
commit 472f3bd198
1 changed files with 5 additions and 0 deletions

View File

@ -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";