summaryrefslogtreecommitdiffstats
path: root/clientlog.h
diff options
context:
space:
mode:
Diffstat (limited to 'clientlog.h')
-rw-r--r--clientlog.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/clientlog.h b/clientlog.h
index 9ea0a3f..2e4d99c 100644
--- a/clientlog.h
+++ b/clientlog.h
@@ -37,11 +37,17 @@ typedef enum {
CLG_CMDMON,
} CLG_Service;
+typedef enum {
+ CLG_PASS = 0,
+ CLG_DROP,
+ CLG_KOD,
+} CLG_Limit;
+
extern void CLG_Initialise(void);
extern void CLG_Finalise(void);
extern int CLG_GetClientIndex(IPAddr *client);
extern int CLG_LogServiceAccess(CLG_Service service, IPAddr *client, struct timespec *now);
-extern int CLG_LimitServiceRate(CLG_Service service, int index);
+extern CLG_Limit CLG_LimitServiceRate(CLG_Service service, int index);
extern void CLG_UpdateNtpStats(int auth, NTP_Timestamp_Source rx_ts_src,
NTP_Timestamp_Source tx_ts_src);
extern int CLG_GetNtpMinPoll(void);