From b6a06c1a215f867f7eee4a3f2f40ec14028fe186 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 31 Aug 2018 12:29:57 +0200 Subject: 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 Signed-off-by: Florian Westphal --- iptables/nft.h | 1 + 1 file changed, 1 insertion(+) (limited to 'iptables/nft.h') 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. -- cgit v1.2.3