root/net/ipv4/netfilter/nf_flow_table_ipv4.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. nf_flow_ipv4_module_init
  2. nf_flow_ipv4_module_exit

   1 // SPDX-License-Identifier: GPL-2.0-only
   2 #include <linux/kernel.h>
   3 #include <linux/init.h>
   4 #include <linux/module.h>
   5 #include <linux/netfilter.h>
   6 #include <net/netfilter/nf_flow_table.h>
   7 #include <net/netfilter/nf_tables.h>
   8 
   9 static struct nf_flowtable_type flowtable_ipv4 = {
  10         .family         = NFPROTO_IPV4,
  11         .init           = nf_flow_table_init,
  12         .free           = nf_flow_table_free,
  13         .hook           = nf_flow_offload_ip_hook,
  14         .owner          = THIS_MODULE,
  15 };
  16 
  17 static int __init nf_flow_ipv4_module_init(void)
  18 {
  19         nft_register_flowtable_type(&flowtable_ipv4);
  20 
  21         return 0;
  22 }
  23 
  24 static void __exit nf_flow_ipv4_module_exit(void)
  25 {
  26         nft_unregister_flowtable_type(&flowtable_ipv4);
  27 }
  28 
  29 module_init(nf_flow_ipv4_module_init);
  30 module_exit(nf_flow_ipv4_module_exit);
  31 
  32 MODULE_LICENSE("GPL");
  33 MODULE_AUTHOR("Pablo Neira Ayuso <pablo@netfilter.org>");
  34 MODULE_ALIAS_NF_FLOWTABLE(AF_INET);

/* [<][>][^][v][top][bottom][index][help] */