summaryrefslogtreecommitdiffstats
path: root/include/net/netfilter/nf_tables_core.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso2018-07-06 19:06:43 +0200
committerPablo Neira Ayuso2018-07-06 19:31:53 +0200
commite240cd0df48185a28c153f83a39ba3940e3e9b86 (patch)
tree7e480025afd8ed7f00b22e35f63ff434e853a634 /include/net/netfilter/nf_tables_core.h
parentnetfilter: nf_tproxy: fix possible non-linear access to transport header (diff)
downloadkernel-qcow2-linux-e240cd0df48185a28c153f83a39ba3940e3e9b86.tar.gz
kernel-qcow2-linux-e240cd0df48185a28c153f83a39ba3940e3e9b86.tar.xz
kernel-qcow2-linux-e240cd0df48185a28c153f83a39ba3940e3e9b86.zip
netfilter: nf_tables: place all set backends in one single module
This patch disallows rbtree with single elements, which is causing problems with the recent timeout support. Before this patch, you could opt out individual set representations per module, which is just adding extra complexity. Fixes: 8d8540c4f5e0("netfilter: nft_set_rbtree: add timeout support") Reported-by: Taehee Yoo <ap420073@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netfilter/nf_tables_core.h')
-rw-r--r--include/net/netfilter/nf_tables_core.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_tables_core.h b/include/net/netfilter/nf_tables_core.h
index e0c0c2558ec4..a05134507e7b 100644
--- a/include/net/netfilter/nf_tables_core.h
+++ b/include/net/netfilter/nf_tables_core.h
@@ -65,4 +65,10 @@ extern const struct nft_expr_ops nft_payload_fast_ops;
extern struct static_key_false nft_counters_enabled;
extern struct static_key_false nft_trace_enabled;
+extern struct nft_set_type nft_set_rhash_type;
+extern struct nft_set_type nft_set_hash_type;
+extern struct nft_set_type nft_set_hash_fast_type;
+extern struct nft_set_type nft_set_rbtree_type;
+extern struct nft_set_type nft_set_bitmap_type;
+
#endif /* _NET_NF_TABLES_CORE_H */