#include <linux/module.h>
#include <linux/netfilter.h>
#include <linux/netfilter_ipv6.h>
#include <linux/netfilter_ipv6/ip6_tables.h>
#include <linux/ipv6.h>
#include <net/ipv6.h>
#include <net/netfilter/nf_nat.h>
struct ip6table_nat_pernet { … };
static unsigned int ip6table_nat_net_id __read_mostly;
static const struct xt_table nf_nat_ipv6_table = …;
static const struct nf_hook_ops nf_nat_ipv6_ops[] = …;
static int ip6t_nat_register_lookups(struct net *net)
{ … }
static void ip6t_nat_unregister_lookups(struct net *net)
{ … }
static int ip6table_nat_table_init(struct net *net)
{ … }
static void __net_exit ip6table_nat_net_pre_exit(struct net *net)
{ … }
static void __net_exit ip6table_nat_net_exit(struct net *net)
{ … }
static struct pernet_operations ip6table_nat_net_ops = …;
static int __init ip6table_nat_init(void)
{ … }
static void __exit ip6table_nat_exit(void)
{ … }
module_init(…) …;
module_exit(ip6table_nat_exit);
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;