summaryrefslogtreecommitdiffstats
path: root/runtime/ratelimit.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-10-15 13:05:42 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-10-15 13:05:42 +0200
commit6ab4666622efeb9944bbf7b6e3581d1372465adb (patch)
treeb324fc5796f46ee7442d9ee553a54dfbb6666c9a /runtime/ratelimit.h
parent912db8bbacb5372f02f96638102aafff70ba269f (diff)
downloadrsyslog-6ab4666622efeb9944bbf7b6e3581d1372465adb.tar.gz
rsyslog-6ab4666622efeb9944bbf7b6e3581d1372465adb.tar.bz2
rsyslog-6ab4666622efeb9944bbf7b6e3581d1372465adb.zip
ratelimit: respect $repeatedmsgreduction setting
Diffstat (limited to 'runtime/ratelimit.h')
-rw-r--r--runtime/ratelimit.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/ratelimit.h b/runtime/ratelimit.h
index 37dad900..5fa884a8 100644
--- a/runtime/ratelimit.h
+++ b/runtime/ratelimit.h
@@ -22,6 +22,14 @@
#define INCLUDED_RATELIMIT_H
struct ratelimit_s {
+ /* support for Linux kernel-type ratelimiting */
+ unsigned short interval;
+ unsigned short burst;
+ unsigned done;
+ unsigned missed;
+ time_t begin;
+ /* support for "last message repeated n times */
+ int bReduceRepeatMsgs; /**< shall we do "last message repeated n times" processing? */
unsigned nsupp; /**< nbr of msgs suppressed */
msg_t *pMsg;
sbool bThreadSafe; /**< do we need to operate in Thread-Safe mode? */