#include <linux/init.h>
#include <linux/ip.h>
#include <linux/ipv6.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/string.h>
#include <linux/ctype.h>
#include <linux/list.h>
#include <linux/random.h>
#include <linux/jhash.h>
#include <linux/bitops.h>
#include <linux/skbuff.h>
#include <linux/inet.h>
#include <linux/slab.h>
#include <net/net_namespace.h>
#include <net/netns/generic.h>
#include <linux/netfilter/x_tables.h>
#include <linux/netfilter/xt_recent.h>
Go to the source code of this file.
|
| MODULE_AUTHOR ("Patrick McHardy <[email protected]>") |
|
| MODULE_AUTHOR ("Jan Engelhardt <[email protected]>") |
|
| MODULE_DESCRIPTION ("Xtables: \"recently-seen\" host matching") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_ALIAS ("ipt_recent") |
|
| MODULE_ALIAS ("ip6t_recent") |
|
| module_param (ip_list_tot, uint, 0400) |
|
| module_param (ip_pkt_list_tot, uint, 0400) |
|
| module_param (ip_list_hash_size, uint, 0400) |
|
| module_param (ip_list_perms, uint, 0400) |
|
| module_param (ip_list_uid, uint, S_IRUGO|S_IWUSR) |
|
| module_param (ip_list_gid, uint, S_IRUGO|S_IWUSR) |
|
| MODULE_PARM_DESC (ip_list_tot,"number of IPs to remember per list") |
|
| MODULE_PARM_DESC (ip_pkt_list_tot,"number of packets per IP address to remember (max. 255)") |
|
| MODULE_PARM_DESC (ip_list_hash_size,"size of hash table used to look up IPs") |
|
| MODULE_PARM_DESC (ip_list_perms,"permissions on /proc/net/xt_recent/* files") |
|
| MODULE_PARM_DESC (ip_list_uid,"default owner of /proc/net/xt_recent/* files") |
|
| MODULE_PARM_DESC (ip_list_gid,"default owning group of /proc/net/xt_recent/* files") |
|
| module_init (recent_mt_init) |
|
| module_exit (recent_mt_exit) |
|
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
MODULE_ALIAS |
( |
"ipt_recent" |
| ) |
|
MODULE_ALIAS |
( |
"ip6t_recent" |
| ) |
|
MODULE_DESCRIPTION |
( |
"Xtables: \"recently-seen\" host matching" |
| ) |
|
module_exit |
( |
recent_mt_exit |
| ) |
|
module_init |
( |
recent_mt_init |
| ) |
|
module_param |
( |
ip_list_tot |
, |
|
|
uint |
, |
|
|
0400 |
|
|
) |
| |
module_param |
( |
ip_pkt_list_tot |
, |
|
|
uint |
, |
|
|
0400 |
|
|
) |
| |
module_param |
( |
ip_list_hash_size |
, |
|
|
uint |
, |
|
|
0400 |
|
|
) |
| |
module_param |
( |
ip_list_perms |
, |
|
|
uint |
, |
|
|
0400 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
ip_list_tot |
, |
|
|
"number of IPs to remember per list" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
ip_pkt_list_tot |
, |
|
|
"number of packets per IP address to remember (max. 255)" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
ip_list_hash_size |
, |
|
|
"size of hash table used to look up IPs" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
ip_list_perms |
, |
|
|
"permissions on /proc/net/xt_recent/* files" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
ip_list_uid |
, |
|
|
"default owner of /proc/net/xt_recent/* files" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
ip_list_gid |
, |
|
|
"default owning group of /proc/net/xt_recent/* files" |
|
|
) |
| |