]> git.ipfire.org Git - thirdparty/nftables.git/commit
mnl: extended error support for create command
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 19 Feb 2020 13:35:21 +0000 (14:35 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 19 Feb 2020 16:29:30 +0000 (17:29 +0100)
commit086ec6f30c96e9a920baf22ba700ea1ee0363df7
treea0293c3ce4465410e54fc0d6754bf6f0112e063b
parent3a0e07106f666df82925aa3fb2eb5937245c9819
mnl: extended error support for create command

 # nft create table x
 Error: Could not process rule: File exists
 create table x
              ^

 # nft create chain x y
 Error: Could not process rule: File exists
 create chain x y
                ^

 # nft create set x y { typeof ip saddr\; }
 Error: Could not process rule: File exists
 create set x y { typeof ip saddr; }
              ^

 # nft create counter x y
 Error: Could not process rule: File exists
 create counter x y
                  ^

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/mnl.h
src/mnl.c
src/rule.c