|
|
#define SCAN_MIN_COUNT 7 | #define SCAN_MIN_COUNT 7 |
#define SCAN_MAX_COUNT (SCAN_MIN_COUNT * PORT_WEIGHT_PRIV) | #define SCAN_MAX_COUNT (SCAN_MIN_COUNT * PORT_WEIGHT_PRIV) |
#define SCAN_WEIGHT_THRESHOLD SCAN_MAX_COUNT | #define SCAN_WEIGHT_THRESHOLD SCAN_MAX_COUNT |
#define SCAN_DELAY_THRESHOLD (CLK_TCK * 3) |
#define SCAN_DELAY_THRESHOLD (CLOCKS_PER_SEC * 3) |
| |
/* | /* |
* Log flood detection thresholds: temporarily stop logging if more than | * Log flood detection thresholds: temporarily stop logging if more than |
* COUNT port scans are detected with no longer than DELAY between them. | * COUNT port scans are detected with no longer than DELAY between them. |
*/ | */ |
#define LOG_COUNT_THRESHOLD 5 | #define LOG_COUNT_THRESHOLD 5 |
#define LOG_DELAY_THRESHOLD (CLK_TCK * 20) |
#define LOG_DELAY_THRESHOLD (CLOCKS_PER_SEC * 20) |
| |
/* | /* |
* Log line length limit, such as to fit into one SMS message. #undef this | * Log line length limit, such as to fit into one SMS message. #undef this |