comparison src/syslogconfig.h @ 76:c6c8a2102a3e

add more logging when blocked addresses move to higher scale values
author Carl Byington <carl@five-ten-sg.com>
date Wed, 15 Jul 2020 13:38:43 -0700
parents 60f59936fabb
children
comparison
equal deleted inserted replaced
75:ae5e6bcc5017 76:c6c8a2102a3e
39 } 39 }
40 }; 40 };
41 41
42 struct bucket { 42 struct bucket {
43 int count; 43 int count;
44 bool blocked; // true iff ever count>threshold 44 bool blocked; // true iff ever count>threshold
45 int max_scale; // maximum effective scale
45 }; 46 };
46 47
47 typedef map<int, bucket, ltint> ip_buckets; 48 typedef map<int, bucket, ltint> ip_buckets;
48 49
49 class IPR { 50 class IPR {