summaryrefslogtreecommitdiffstats
path: root/iptables/nft.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-05-03 16:38:20 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-05-05 10:05:44 +0200
commit8798eb8f48434b1a764788c8a0c133a983bc39e6 (patch)
treeee83535b50f4a7450116f87801b00ba42b7424d3 /iptables/nft.h
parentb633ef9ac0cfaf9371374a9826493db114307b81 (diff)
iptables-compat: remove non-batching routines
This is only needed by 3.16, which was released 8 months after nftables was merged upstream. That kernel version supports a reduced featureset. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft.h')
-rw-r--r--iptables/nft.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/iptables/nft.h b/iptables/nft.h
index 310cedec..aaf3cbe0 100644
--- a/iptables/nft.h
+++ b/iptables/nft.h
@@ -37,7 +37,6 @@ struct nft_handle {
struct builtin_table *tables;
struct nftnl_rule_list *rule_cache;
bool restore;
- bool batch_support;
};
extern struct builtin_table xtables_ipv4[TABLES_MAX];
@@ -56,7 +55,6 @@ void nft_fini(struct nft_handle *h);
struct nftnl_table;
struct nftnl_chain_list;
-int nft_table_add(struct nft_handle *h, struct nftnl_table *t, uint16_t flags);
int nft_for_each_table(struct nft_handle *h, int (*func)(struct nft_handle *h, const char *tablename, bool counters), bool counters);
bool nft_table_find(struct nft_handle *h, const char *tablename);
int nft_table_purge_chains(struct nft_handle *h, const char *table, struct nftnl_chain_list *list);
@@ -66,7 +64,6 @@ int nft_table_purge_chains(struct nft_handle *h, const char *table, struct nftnl
*/
struct nftnl_chain;
-int nft_chain_add(struct nft_handle *h, struct nftnl_chain *c, uint16_t flags);
int nft_chain_set(struct nft_handle *h, const char *table, const char *chain, const char *policy, const struct xt_counters *counters);
struct nftnl_chain_list *nft_chain_dump(struct nft_handle *h);
struct nftnl_chain *nft_chain_list_find(struct nftnl_chain_list *list, const char *table, const char *chain);