]> asedeno.scripts.mit.edu Git - linux.git/blob - net/netfilter/nf_tables_set_core.c
Merge tag 's390-5.6-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
[linux.git] / net / netfilter / nf_tables_set_core.c
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <linux/module.h>
3 #include <net/netfilter/nf_tables_core.h>
4
5 static int __init nf_tables_set_module_init(void)
6 {
7         nft_register_set(&nft_set_hash_fast_type);
8         nft_register_set(&nft_set_hash_type);
9         nft_register_set(&nft_set_rhash_type);
10         nft_register_set(&nft_set_bitmap_type);
11         nft_register_set(&nft_set_rbtree_type);
12         nft_register_set(&nft_set_pipapo_type);
13
14         return 0;
15 }
16
17 static void __exit nf_tables_set_module_exit(void)
18 {
19         nft_unregister_set(&nft_set_pipapo_type);
20         nft_unregister_set(&nft_set_rbtree_type);
21         nft_unregister_set(&nft_set_bitmap_type);
22         nft_unregister_set(&nft_set_rhash_type);
23         nft_unregister_set(&nft_set_hash_type);
24         nft_unregister_set(&nft_set_hash_fast_type);
25 }
26
27 module_init(nf_tables_set_module_init);
28 module_exit(nf_tables_set_module_exit);
29
30 MODULE_LICENSE("GPL");
31 MODULE_ALIAS_NFT_SET();