diff options
author | Arushi Singhal <arushisinghal19971997@gmail.com> | 2018-05-27 18:39:01 +0530 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-05-29 00:05:37 +0200 |
commit | b1b828ff23e5d35d13daa3bf67071fb515e5c86f (patch) | |
tree | d519b35e4c5a3a8c0e3153a77ea92a50462463bf | |
parent | 4caa559c44cde7af7794937bd5c7e5f704a483ca (diff) |
xtables: homogenize error message
There is a difference between error messages in iptables and
iptables-compat:
# iptables-compat -D INPUT 4
iptables: No chain/target/match by that name.
# iptables -D INPUT 4
iptables: Index of deletion too big.
Now, will show same error message.
Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | iptables/nft.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft.c b/iptables/nft.c index 603ba306..7fd3c48e 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -2673,7 +2673,7 @@ const char *nft_strerror(int err) { nft_rule_add, E2BIG, "Index of insertion too big" }, { nft_rule_check, ENOENT, "Bad rule (does a matching rule exist in that chain?)" }, { nft_rule_replace, ENOENT, "Index of replacement too big" }, - { nft_rule_delete_num, E2BIG, "Index of deletion too big" }, + { nft_rule_delete_num, ENOENT, "Index of deletion too big" }, /* { TC_READ_COUNTER, E2BIG, "Index of counter too big" }, { TC_ZERO_COUNTER, E2BIG, "Index of counter too big" }, */ { nft_rule_add, ELOOP, "Loop found in table" }, |