From 742baabd185c326cc2125e648e240894362eb31c Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 15 Sep 2015 16:37:32 +0200 Subject: iptables-compat: use new symbols in libnftnl Adapt this code to use the new symbols in libnftnl. This patch contains quite some renaming to reserve the nft_ prefix for our high level library. Explicitly request libnftnl 1.0.5 at configure stage. Signed-off-by: Pablo Neira Ayuso --- iptables/xtables-restore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'iptables/xtables-restore.c') diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c index 8808ee99..7a7ee066 100644 --- a/iptables/xtables-restore.c +++ b/iptables/xtables-restore.c @@ -177,8 +177,8 @@ xtables_restore_main(int family, const char *progname, int argc, char *argv[]) int in_table = 0, testing = 0; const char *tablename = NULL; const struct xtc_ops *ops = &xtc_ops; - struct nft_chain_list *chain_list; - struct nft_chain *chain_obj; + struct nftnl_chain_list *chain_list; + struct nftnl_chain *chain_obj; line = 0; @@ -334,7 +334,7 @@ xtables_restore_main(int family, const char *progname, int argc, char *argv[]) * on, unvisited chains will be purged out. */ if (chain_obj != NULL) - nft_chain_list_del(chain_obj); + nftnl_chain_list_del(chain_obj); if (strlen(chain) >= XT_EXTENSION_MAXNAMELEN) xtables_error(PARAMETER_PROBLEM, -- cgit v1.2.3