diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-12 14:21:24 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-12 14:21:24 +0000 |
commit | c451d5d7d3cb2247c6bec32a7f639e72ddd469c1 (patch) | |
tree | 71f30dbd46de1cb3397717b715de7fec66e12831 /src/libserver/roll_history.h | |
parent | 420cd8b263fc9b833c60de855b4bb2fe0f95f2ab (diff) | |
download | rspamd-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.h | 3 |
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; |