mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2026-01-03 13:53:51 +01:00
psd: move defines to user/kernelspace part where possible
Some of these defines have no meaning in userspace, so there is no need to make those available.
This commit is contained in:
committed by
Jan Engelhardt
parent
3736a265d8
commit
d66d07d01d
@@ -40,6 +40,15 @@ MODULE_AUTHOR(" Mohd Nawawi Mohamad Jamili <nawawi@tracenetworkcorporation.com>"
|
||||
MODULE_DESCRIPTION("Xtables: PSD - portscan detection");
|
||||
MODULE_ALIAS("ipt_psd");
|
||||
|
||||
/*
|
||||
* Keep track of up to LIST_SIZE source addresses, using a hash table of
|
||||
* HASH_SIZE entries for faster lookups, but limiting hash collisions to
|
||||
* HASH_MAX source addresses per the same hash value.
|
||||
*/
|
||||
#define LIST_SIZE 0x100
|
||||
#define HASH_LOG 9
|
||||
#define HASH_SIZE (1 << HASH_LOG)
|
||||
#define HASH_MAX 0x10
|
||||
|
||||
/*
|
||||
* Information we keep per each target port
|
||||
|
||||
Reference in New Issue
Block a user