#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/netfilter_ipv6/ip6_tables.h>
#include <linux/slab.h>
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
#define FILTER_VALID_HOOKS …
static const struct xt_table packet_filter = …;
static struct nf_hook_ops *filter_ops __read_mostly;
static bool forward = …;
module_param(forward, bool, 0000);
static int ip6table_filter_table_init(struct net *net)
{ … }
static int __net_init ip6table_filter_net_init(struct net *net)
{ … }
static void __net_exit ip6table_filter_net_pre_exit(struct net *net)
{ … }
static void __net_exit ip6table_filter_net_exit(struct net *net)
{ … }
static struct pernet_operations ip6table_filter_net_ops = …;
static int __init ip6table_filter_init(void)
{ … }
static void __exit ip6table_filter_fini(void)
{ … }
module_init(…) …;
module_exit(ip6table_filter_fini);