mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-03 17:40:04 +00:00
![Paul Gortmaker](/assets/img/avatar_default.png)
This file clearly uses modular infrastructure but does not call out the inclusion of <linux/module.h> explicitly. We add that include explicitly here, so we can tidy up some header usage elsewhere w/o causing build breakage. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
29 lines
779 B
C
29 lines
779 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#include <linux/module.h>
|
|
#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();
|