mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
nat: Introduce command to remove an access-list-name
This commit is contained in:
@@ -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";
|
||||
|
Reference in New Issue
Block a user