-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 8d8540c("netfilter: nft_set_rbtree: add timeout support") Reported-by: Taehee Yoo <ap420073@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
- Loading branch information
Pablo Neira Ayuso
committed
Jul 6, 2018
1 parent
5711b4e
commit e240cd0
Showing
7 changed files
with
50 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
#include <net/netfilter/nf_tables_core.h> | ||
|
||
static int __init nf_tables_set_module_init(void) | ||
{ | ||
nft_register_set(&nft_set_hash_fast_type); | ||
nft_register_set(&nft_set_hash_type); | ||
nft_register_set(&nft_set_rhash_type); | ||
nft_register_set(&nft_set_bitmap_type); | ||
nft_register_set(&nft_set_rbtree_type); | ||
|
||
return 0; | ||
} | ||
|
||
static void __exit nf_tables_set_module_exit(void) | ||
{ | ||
nft_unregister_set(&nft_set_rbtree_type); | ||
nft_unregister_set(&nft_set_bitmap_type); | ||
nft_unregister_set(&nft_set_rhash_type); | ||
nft_unregister_set(&nft_set_hash_type); | ||
nft_unregister_set(&nft_set_hash_fast_type); | ||
} | ||
|
||
module_init(nf_tables_set_module_init); | ||
module_exit(nf_tables_set_module_exit); | ||
|
||
MODULE_LICENSE("GPL"); | ||
MODULE_ALIAS_NFT_SET(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters