mirror of
https://github.com/torvalds/linux
synced 2024-09-19 18:46:35 +00:00
c5f1931f66
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>
30 lines
779 B
C
30 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();
|