Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ipt_ULOG.c File Reference
#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.

Data Structures

struct  ulog_buff_t
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define ULOG_NL_EVENT   111 /* Harald's favorite number */
 
#define ULOG_MAXNLGROUPS   32 /* numer of nlgroups */
 

Functions

 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)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 32 of file ipt_ULOG.c.

#define ULOG_MAXNLGROUPS   32 /* numer of nlgroups */

Definition at line 58 of file ipt_ULOG.c.

#define ULOG_NL_EVENT   111 /* Harald's favorite number */

Definition at line 57 of file ipt_ULOG.c.

Function Documentation

MODULE_ALIAS_NET_PF_PROTO ( PF_NETLINK  ,
NETLINK_NFLOG   
)
MODULE_AUTHOR ( "Harald Welte <[email protected]>"  )
MODULE_DESCRIPTION ( "Xtables: packet logging to netlink using ULOG"  )
module_exit ( ulog_tg_exit  )
module_init ( ulog_tg_init  )
MODULE_LICENSE ( "GPL"  )
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)"   
)
MODULE_PARM_DESC ( nflog  ,
"register as internal netfilter logging module  
)