diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-09-15 16:37:32 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-09-16 16:58:29 +0200 |
commit | 742baabd185c326cc2125e648e240894362eb31c (patch) | |
tree | f6eaac384aa213ba290a7f05bd244486ea0bc58d /iptables/xtables-restore.c | |
parent | 1ecef0bbc318bab9f8dac4498acacb210b0915fc (diff) |
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 <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables-restore.c')
-rw-r--r-- | iptables/xtables-restore.c | 6 |
1 files changed, 3 insertions, 3 deletions
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, |