#include <linux/module.h>
#include <linux/spinlock.h>
#include <linux/socket.h>
#include <linux/slab.h>
#include <linux/skbuff.h>
#include <linux/kernel.h>
#include <linux/timer.h>
#include <linux/netlink.h>
#include <linux/netdevice.h>
#include <linux/mm.h>
#include <linux/moduleparam.h>
#include <linux/netfilter.h>
#include <linux/netfilter/x_tables.h>
#include <linux/netfilter_ipv4/ipt_ULOG.h>
#include <net/netfilter/nf_log.h>
#include <net/sock.h>
#include <linux/bitops.h>
#include <asm/unaligned.h>
Go to the source code of this file.
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_AUTHOR ("Harald Welte <[email protected]>") |
|
| MODULE_DESCRIPTION ("Xtables: packet logging to netlink using ULOG") |
|
| MODULE_ALIAS_NET_PF_PROTO (PF_NETLINK, NETLINK_NFLOG) |
|
| module_param (nlbufsiz, uint, 0400) |
|
| MODULE_PARM_DESC (nlbufsiz,"netlink buffer size") |
|
| module_param (flushtimeout, uint, 0600) |
|
| MODULE_PARM_DESC (flushtimeout,"buffer flush timeout (hundredths of a second)") |
|
| module_param (nflog, bool, 0400) |
|
| MODULE_PARM_DESC (nflog,"register as internal netfilter logging module") |
|
| module_init (ulog_tg_init) |
|
| module_exit (ulog_tg_exit) |
|
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
#define ULOG_MAXNLGROUPS 32 /* numer of nlgroups */ |
#define ULOG_NL_EVENT 111 /* Harald's favorite number */ |
MODULE_DESCRIPTION |
( |
"Xtables: packet logging to netlink using ULOG" |
| ) |
|
module_exit |
( |
ulog_tg_exit |
| ) |
|
module_init |
( |
ulog_tg_init |
| ) |
|
module_param |
( |
nlbufsiz |
, |
|
|
uint |
, |
|
|
0400 |
|
|
) |
| |
module_param |
( |
flushtimeout |
, |
|
|
uint |
, |
|
|
0600 |
|
|
) |
| |
module_param |
( |
nflog |
, |
|
|
bool |
, |
|
|
0400 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
nlbufsiz |
, |
|
|
"netlink buffer size" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
flushtimeout |
, |
|
|
"buffer flush timeout (hundredths of a second)" |
|
|
) |
| |