#define pr_fmt(fmt) …
#include <linux/module.h>
#include <linux/skbuff.h>
#include <linux/netfilter.h>
#include <linux/netfilter/x_tables.h>
#include <net/netfilter/nf_nat.h>
static int xt_nat_checkentry_v0(const struct xt_tgchk_param *par)
{ … }
static int xt_nat_checkentry(const struct xt_tgchk_param *par)
{ … }
static void xt_nat_destroy(const struct xt_tgdtor_param *par)
{ … }
static void xt_nat_convert_range(struct nf_nat_range2 *dst,
const struct nf_nat_ipv4_range *src)
{ … }
static unsigned int
xt_snat_target_v0(struct sk_buff *skb, const struct xt_action_param *par)
{ … }
static unsigned int
xt_dnat_target_v0(struct sk_buff *skb, const struct xt_action_param *par)
{ … }
static unsigned int
xt_snat_target_v1(struct sk_buff *skb, const struct xt_action_param *par)
{ … }
static unsigned int
xt_dnat_target_v1(struct sk_buff *skb, const struct xt_action_param *par)
{ … }
static unsigned int
xt_snat_target_v2(struct sk_buff *skb, const struct xt_action_param *par)
{ … }
static unsigned int
xt_dnat_target_v2(struct sk_buff *skb, const struct xt_action_param *par)
{ … }
static struct xt_target xt_nat_target_reg[] __read_mostly = …;
static int __init xt_nat_init(void)
{ … }
static void __exit xt_nat_exit(void)
{ … }
module_init(…) …;
module_exit(xt_nat_exit);
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_ALIAS(…) …;
MODULE_ALIAS(…) …;
MODULE_ALIAS(…) …;
MODULE_ALIAS(…) …;
MODULE_DESCRIPTION(…) …;