#include <linux/module.h>
#include <linux/skbuff.h>
#include <linux/route.h>
#include <linux/netfilter/x_tables.h>
#include <net/net_namespace.h>
#include <net/netns/generic.h>
#include <net/route.h>
#include <net/netfilter/ipv4/nf_dup_ipv4.h>
#include <net/netfilter/ipv6/nf_dup_ipv6.h>
#include <linux/netfilter/xt_TEE.h>
struct xt_tee_priv { … };
static unsigned int tee_net_id __read_mostly;
static const union nf_inet_addr tee_zero_address;
struct tee_net { … };
static unsigned int
tee_tg4(struct sk_buff *skb, const struct xt_action_param *par)
{ … }
#if IS_ENABLED(CONFIG_IP6_NF_IPTABLES)
static unsigned int
tee_tg6(struct sk_buff *skb, const struct xt_action_param *par)
{ … }
#endif
static int tee_netdev_event(struct notifier_block *this, unsigned long event,
void *ptr)
{ … }
static int tee_tg_check(const struct xt_tgchk_param *par)
{ … }
static void tee_tg_destroy(const struct xt_tgdtor_param *par)
{ … }
static struct xt_target tee_tg_reg[] __read_mostly = …;
static int __net_init tee_net_init(struct net *net)
{ … }
static struct pernet_operations tee_net_ops = …;
static struct notifier_block tee_netdev_notifier = …;
static int __init tee_tg_init(void)
{ … }
static void __exit tee_tg_exit(void)
{ … }
module_init(…) …;
module_exit(tee_tg_exit);
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;
MODULE_ALIAS(…) …;