]> git.ipfire.org Git - thirdparty/nftables.git/commit
cmd: add create command for tables and chains
authorPatrick McHardy <kaber@trash.net>
Tue, 21 Jan 2014 12:39:31 +0000 (12:39 +0000)
committerPatrick McHardy <kaber@trash.net>
Tue, 21 Jan 2014 12:39:31 +0000 (12:39 +0000)
commit0e9a6ee6aa16d90633acc3cf60836a140f2c5d87
tree3becbe32d7d5b3885b93362d034413c144218252
parenta085d80754af0be8e650724329187aa69e23630d
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>
include/netlink.h
include/rule.h
src/evaluate.c
src/mnl.c
src/netlink.c
src/parser.y
src/rule.c
src/scanner.l