From 902e92ceedba96d3241fa8ff701c061cd53a197d Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 9 Oct 2014 20:11:16 +0200 Subject: ebtables-compat: use ebtables_command_state in bootstrap code And introduce fake ebt_entry. This gets the code in sync in other existing compat tools. This will likely allow to consolidate common infrastructure. This code is still quite experimental. Signed-off-by: Pablo Neira Ayuso --- iptables/xtables-eb-standalone.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'iptables/xtables-eb-standalone.c') diff --git a/iptables/xtables-eb-standalone.c b/iptables/xtables-eb-standalone.c index 6ec418cb..1c3cbf07 100644 --- a/iptables/xtables-eb-standalone.c +++ b/iptables/xtables-eb-standalone.c @@ -83,5 +83,8 @@ int xtables_eb_main(int argc, char *argv[]) if (ret) ret = nft_commit(&h); + if (!ret) + fprintf(stderr, "%s\n", nft_strerror(errno)); + exit(!ret); } -- cgit v1.2.3