From 4b791044cd0984c9a1771e86fa77fce9d309d9e7 Mon Sep 17 00:00:00 2001 From: "Pablo M. Bermudo Garay" Date: Fri, 26 Aug 2016 18:58:43 +0200 Subject: xtables-compat: check if nft ruleset is compatible This patch adds a verification of the compatibility between the nft ruleset and iptables. Nft tables, chains and rules are checked to be compatible with iptables. If something is not compatible, the execution stops and an error message is displayed to the user. This checking is triggered by xtables-compat -L and xtables-compat-save commands. Signed-off-by: Pablo M. Bermudo Garay Signed-off-by: Pablo Neira Ayuso --- iptables/nft.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'iptables/nft.h') diff --git a/iptables/nft.h b/iptables/nft.h index bcabf42b..f5449db4 100644 --- a/iptables/nft.h +++ b/iptables/nft.h @@ -181,4 +181,6 @@ int nft_arp_rule_insert(struct nft_handle *h, const char *chain, void nft_rule_to_arpt_entry(struct nftnl_rule *r, struct arpt_entry *fw); +int nft_is_ruleset_compatible(struct nft_handle *h); + #endif -- cgit v1.2.3