#include <linux/module.h>
#include <linux/ip.h>
#include <linux/in.h>
#include <linux/if_arp.h>
#include <linux/spinlock.h>
#include <net/netfilter/nf_log.h>
#include <linux/ipv6.h>
#include <net/ipv6.h>
#include <linux/in6.h>
#include <linux/netfilter/x_tables.h>
#include <linux/netfilter_bridge/ebtables.h>
#include <linux/netfilter_bridge/ebt_log.h>
#include <linux/netfilter.h>
static DEFINE_SPINLOCK(ebt_log_lock);
static int ebt_log_tg_check(const struct xt_tgchk_param *par)
{ … }
struct tcpudphdr { … };
struct arppayload { … };
static void
print_ports(const struct sk_buff *skb, uint8_t protocol, int offset)
{ … }
static void
ebt_log_packet(struct net *net, u_int8_t pf, unsigned int hooknum,
const struct sk_buff *skb, const struct net_device *in,
const struct net_device *out, const struct nf_loginfo *loginfo,
const char *prefix)
{ … }
static unsigned int
ebt_log_tg(struct sk_buff *skb, const struct xt_action_param *par)
{ … }
static struct xt_target ebt_log_tg_reg __read_mostly = …;
static int __init ebt_log_init(void)
{ … }
static void __exit ebt_log_fini(void)
{ … }
module_init(…) …;
module_exit(ebt_log_fini);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;