diff options
author | Phil Sutter <phil@nwl.cc> | 2018-08-31 12:29:57 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-09-01 10:12:40 +0200 |
commit | b6a06c1a215f867f7eee4a3f2f40ec14028fe186 (patch) | |
tree | a941776217826cb296c2477e403747f8397437a1 /iptables/nft.h | |
parent | 3bb497c61d743ba811e7f501e54cc5071216e1f5 (diff) |
xtables: Align return codes with legacy iptables
Make sure return codes match legacy ones at least for a few selected
commands typically used to check ruleset state.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft.h')
-rw-r--r-- | iptables/nft.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/nft.h b/iptables/nft.h index eb14e908..7419ec21 100644 --- a/iptables/nft.h +++ b/iptables/nft.h @@ -86,6 +86,7 @@ int nft_chain_user_flush(struct nft_handle *h, struct nftnl_chain_list *list, int nft_chain_user_rename(struct nft_handle *h, const char *chain, const char *table, const char *newname); int nft_chain_zero_counters(struct nft_handle *h, const char *chain, const char *table, bool verbose); struct builtin_chain *nft_chain_builtin_find(struct builtin_table *t, const char *chain); +bool nft_chain_exists(struct nft_handle *h, const char *table, const char *chain); /* * Operations with rule-set. |