Blame view

net/netfilter/nf_tables_set_core.c 779 Bytes
e240cd0df   Pablo Neira Ayuso   netfilter: nf_tab...
1
  /* SPDX-License-Identifier: GPL-2.0 */
c5f1931f6   Paul Gortmaker   netfilter: nf_tab...
2
  #include <linux/module.h>
e240cd0df   Pablo Neira Ayuso   netfilter: nf_tab...
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  #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();