diff options
author | Phil Sutter <phil@nwl.cc> | 2019-10-18 00:09:01 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2019-10-18 11:57:49 +0200 |
commit | 55a7558bb2c86e650809610e976e9d5192fe4e7e (patch) | |
tree | 2a2865fbea809a03b6baf307e93941585a9ad956 /iptables/xtables-restore.c | |
parent | 20994ab18d11331ce146b75fde04b93414db9afb (diff) |
xtables-restore: Drop chain_list callback
Since commit 0baa08fed43fa ("xtables: unify user chain add/flush for
restore case") it is not used anymore, so just drop it.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables-restore.c')
-rw-r--r-- | iptables/xtables-restore.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c index eb5eaa29..1c7d5da5 100644 --- a/iptables/xtables-restore.c +++ b/iptables/xtables-restore.c @@ -58,20 +58,7 @@ static void print_usage(const char *name, const char *version) " [ --ipv6 ]\n", name); } -static struct nftnl_chain_list *get_chain_list(struct nft_handle *h, - const char *table) -{ - struct nftnl_chain_list *chain_list; - - chain_list = nft_chain_list_get(h, table, NULL); - if (chain_list == NULL) - xtables_error(OTHER_PROBLEM, "cannot retrieve chain list\n"); - - return chain_list; -} - static const struct nft_xt_restore_cb restore_cb = { - .chain_list = get_chain_list, .commit = nft_commit, .abort = nft_abort, .table_new = nft_table_new, @@ -428,7 +415,6 @@ static int ebt_table_flush(struct nft_handle *h, const char *table) } static const struct nft_xt_restore_cb ebt_restore_cb = { - .chain_list = get_chain_list, .commit = nft_bridge_commit, .table_new = nft_table_new, .table_flush = ebt_table_flush, @@ -474,7 +460,6 @@ int xtables_eb_restore_main(int argc, char *argv[]) } static const struct nft_xt_restore_cb arp_restore_cb = { - .chain_list = get_chain_list, .commit = nft_commit, .table_new = nft_table_new, .table_flush = nft_table_flush, |