#include <linux/module.h>
#include <linux/netfilter.h>
#include <linux/netfilter_ipv4.h>
#include <linux/netfilter_ipv4/ip_tables.h>
#include <linux/ip.h>
#include <net/ip.h>
#include <net/netfilter/nf_nat.h>
struct iptable_nat_pernet { … };
static unsigned int iptable_nat_net_id __read_mostly;
static const struct xt_table nf_nat_ipv4_table = …;
static const struct nf_hook_ops nf_nat_ipv4_ops[] = …;
static int ipt_nat_register_lookups(struct net *net)
{ … }
static void ipt_nat_unregister_lookups(struct net *net)
{ … }
static int iptable_nat_table_init(struct net *net)
{ … }
static void __net_exit iptable_nat_net_pre_exit(struct net *net)
{ … }
static void __net_exit iptable_nat_net_exit(struct net *net)
{ … }
static struct pernet_operations iptable_nat_net_ops = …;
static int __init iptable_nat_init(void)
{ … }
static void __exit iptable_nat_exit(void)
{ … }
module_init(…) …;
module_exit(iptable_nat_exit);
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;