summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2014-02-04 16:18:55 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2014-02-04 16:28:33 +0100
commit43bb2819c5b7b783cbaceffd0e6d4b6e502a0fb5 (patch)
treedd4663c3d0fade41d69dd61f64cd35e4620eedee
parent38e5ce647766142a2ae3f47f32ae40e55c43cf3d (diff)
xtables-restore: remove dependency with libip4tc
Add a new operation structure, we don't actually need the libip4tc definition. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--iptables/xtables-restore.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c
index 9a80f1ef..230894cd 100644
--- a/iptables/xtables-restore.c
+++ b/iptables/xtables-restore.c
@@ -161,6 +161,10 @@ static void add_param_to_argv(char *parsestart)
}
}
+static const struct xtc_ops xtc_ops = {
+ .strerror = nft_strerror,
+};
+
int
xtables_restore_main(int argc, char *argv[])
{
@@ -173,7 +177,7 @@ xtables_restore_main(int argc, char *argv[])
FILE *in;
int in_table = 0, testing = 0;
const char *tablename = NULL;
- const struct xtc_ops *ops = &iptc_ops;
+ const struct xtc_ops *ops = &xtc_ops;
struct nft_chain_list *chain_list;
struct nft_chain *chain_obj;