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 /include/rule.h | |
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 'include/rule.h')
-rw-r--r-- | include/rule.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/rule.h b/include/rule.h index 2a7b7980..30a4d12c 100644 --- a/include/rule.h +++ b/include/rule.h @@ -198,7 +198,8 @@ extern void set_print(const struct set *set); * enum cmd_ops - command operations * * @CMD_INVALID: invalid - * @CMD_ADD: add object + * @CMD_ADD: add object (non-exclusive) + * @CMD_CREATE: create object (exclusive) * @CMD_INSERT: insert object * @CMD_DELETE: delete object * @CMD_LIST: list container @@ -208,6 +209,7 @@ extern void set_print(const struct set *set); enum cmd_ops { CMD_INVALID, CMD_ADD, + CMD_CREATE, CMD_INSERT, CMD_DELETE, CMD_LIST, |