summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2014-01-21 12:39:31 +0000
committerPatrick McHardy <kaber@trash.net>2014-01-21 12:39:31 +0000
commit0e9a6ee6aa16d90633acc3cf60836a140f2c5d87 (patch)
tree3becbe32d7d5b3885b93362d034413c144218252 /src/scanner.l
parenta085d80754af0be8e650724329187aa69e23630d (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/scanner.l')
-rw-r--r--src/scanner.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scanner.l b/src/scanner.l
index a0ca7d75..f133f237 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -249,6 +249,7 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr})
"inet" { return INET; }
"add" { return ADD; }
+"create" { return CREATE; }
"insert" { return INSERT; }
"delete" { return DELETE; }
"list" { return LIST; }