]> git.ipfire.org Git - thirdparty/iptables.git/commit
iptables-compat: homogenize error messages
authorAna Rey <anarey@gmail.com>
Thu, 30 Oct 2014 08:31:56 +0000 (09:31 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 30 Oct 2014 17:11:15 +0000 (18:11 +0100)
commit7bc5f6c133bf38c696dc8c14cb479167711437c2
treec7c5e21d03c0ff29aa634c2f468dbed12a8b047e
parent78683093cf4f059531e5f929a4884ffaecb8411c
iptables-compat: homogenize error messages

There are some differences between error messages in iptables and
iptables-compat:

 # iptables -C INPUT -s 192.168.2.102 -j ACCEPT
iptables: Bad rule (does a matching rule exist in that chain?).
 # iptables-compat -C INPUT -s 192.168.2.102 -j ACCEPT
iptables: No chain/target/match by that name.

 # iptables -N new_chain
 # iptables -N new_chain
iptables: Chain already exists.
 # iptables-compat -N new_chain
 # iptables-compat -N new_chain
iptables: File exists.

Now, iptables-compat shows the same error messages than iptables in
those cases.

Signed-off-by: Ana Rey <anarey@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/nft.c