diff options
author | Patrick McHardy <kaber@trash.net> | 2014-01-21 12:39:31 +0000 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2014-01-21 12:39:31 +0000 |
commit | 0e9a6ee6aa16d90633acc3cf60836a140f2c5d87 (patch) | |
tree | 3becbe32d7d5b3885b93362d034413c144218252 /src/evaluate.c | |
parent | a085d80754af0be8e650724329187aa69e23630d (diff) |
cmd: add create command for tables and chains
We currently always use NLM_F_EXCL for add, which makes adding existing
chains or tables fail. There's usually no reason why you would care about
this, so change "add" to not use NLM_F_EXCL and add a new "create" command
in case you do care.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/evaluate.c')
-rw-r--r-- | src/evaluate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/evaluate.c b/src/evaluate.c index 2b2427a5..cf30ed92 100644 --- a/src/evaluate.c +++ b/src/evaluate.c @@ -1397,6 +1397,7 @@ static int cmd_evaluate(struct eval_ctx *ctx, struct cmd *cmd) ctx->cmd = cmd; switch (cmd->op) { case CMD_ADD: + case CMD_CREATE: case CMD_INSERT: return cmd_evaluate_add(ctx, cmd); case CMD_DELETE: |