From 0e9a6ee6aa16d90633acc3cf60836a140f2c5d87 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Tue, 21 Jan 2014 12:39:31 +0000 Subject: 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 --- include/rule.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/rule.h') 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, -- cgit v1.2.3