aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/roll_history.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-12 14:21:24 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-12 14:21:24 +0000
commitc451d5d7d3cb2247c6bec32a7f639e72ddd469c1 (patch)
tree71f30dbd46de1cb3397717b715de7fec66e12831 /src/libserver/roll_history.h
parent420cd8b263fc9b833c60de855b4bb2fe0f95f2ab (diff)
downloadrspamd-c451d5d7d3cb2247c6bec32a7f639e72ddd469c1.tar.gz
rspamd-c451d5d7d3cb2247c6bec32a7f639e72ddd469c1.zip
Rework rolling history.
- Store inet_addr as string, not structure. - Add history magic for versioning and sanity.
Diffstat (limited to 'src/libserver/roll_history.h')
-rw-r--r--src/libserver/roll_history.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libserver/roll_history.h b/src/libserver/roll_history.h
index d4034202c..2e8e1e5cd 100644
--- a/src/libserver/roll_history.h
+++ b/src/libserver/roll_history.h
@@ -36,6 +36,7 @@
#define HISTORY_MAX_ID 100
#define HISTORY_MAX_SYMBOLS 200
#define HISTORY_MAX_USER 20
+#define HISTORY_MAX_ADDR 32
#define HISTORY_MAX_ROWS 200
struct rspamd_task;
@@ -45,7 +46,7 @@ struct roll_history_row {
gchar message_id[HISTORY_MAX_ID];
gchar symbols[HISTORY_MAX_SYMBOLS];
gchar user[HISTORY_MAX_USER];
- rspamd_inet_addr_t from_addr;
+ gchar from_addr[HISTORY_MAX_ADDR];
gsize len;
guint scan_time;
gint action;