path: root/iptables/nft.h
diff options
authorPablo M. Bermudo Garay <>2016-08-21 20:10:25 +0200
committerPablo Neira Ayuso <>2016-08-22 11:50:57 +0200
commit2abd049177fa42993e4b1de588e92282a200ee43 (patch)
tree8005fd7cef18d101ade0f737dd2ffb109c804df6 /iptables/nft.h
parent55f4d72776ab9a07fdc2ee07ccaada33df98c1a0 (diff)
xtables-compat: remove useless functions
The static function nft_rule_list_get was exposed outside nft.c through the nft_rule_list_create function, but this was never used out there. A similar situation occurs with nftnl_rule_list_free and nft_rule_list_destroy. This patch removes nft_rule_list_create and nft_rule_list_destroy for the sake of simplicity. Signed-off-by: Pablo M. Bermudo Garay <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'iptables/nft.h')
1 files changed, 0 insertions, 3 deletions
diff --git a/iptables/nft.h b/iptables/nft.h
index 52f21363..bcabf42b 100644
--- a/iptables/nft.h
+++ b/iptables/nft.h
@@ -92,9 +92,6 @@ int nft_rule_save(struct nft_handle *h, const char *table, bool counters);
int nft_rule_flush(struct nft_handle *h, const char *chain, const char *table);
int nft_rule_zero_counters(struct nft_handle *h, const char *chain, const char *table, int rulenum);
-struct nftnl_rule_list *nft_rule_list_create(struct nft_handle *h);
-void nft_rule_list_destroy(struct nftnl_rule_list *list);
* Operations used in userspace tools