From c451d5d7d3cb2247c6bec32a7f639e72ddd469c1 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 12 Mar 2015 14:21:24 +0000 Subject: Rework rolling history. - Store inet_addr as string, not structure. - Add history magic for versioning and sanity. --- src/libserver/roll_history.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libserver/roll_history.h') 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; -- cgit v1.2.3