aboutsummaryrefslogtreecommitdiffstats
path: root/src/fuzzy_storage.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-12-17 22:55:49 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-12-17 22:55:49 +0000
commit832db6f80dba6d7f529578ed3242358925f5a1f1 (patch)
tree3555205dceef4bdacbd74be823eecb86d7c05c9f /src/fuzzy_storage.h
parente10dd0b3e97b808e18d1f654c228ba6ca6967e40 (diff)
downloadrspamd-832db6f80dba6d7f529578ed3242358925f5a1f1.tar.gz
rspamd-832db6f80dba6d7f529578ed3242358925f5a1f1.zip
Start new fuzzy storage protocol implementation.
Diffstat (limited to 'src/fuzzy_storage.h')
-rw-r--r--src/fuzzy_storage.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/fuzzy_storage.h b/src/fuzzy_storage.h
index dcd0c5d4f..33ecc1959 100644
--- a/src/fuzzy_storage.h
+++ b/src/fuzzy_storage.h
@@ -4,6 +4,9 @@
#include "config.h"
#include "main.h"
#include "fuzzy.h"
+#include "shingles.h"
+
+#define RSPAMD_FUZZY_VERSION 2
/* Commands for fuzzy storage */
#define FUZZY_CHECK 0
@@ -18,4 +21,11 @@ struct legacy_fuzzy_cmd {
u_char hash[FUZZY_HASHLEN];
};
+struct rspamd_fuzzy_cmd {
+ guint8 version;
+ guint8 cmd;
+ guint16 size;
+ struct rspamd_shingle sh;
+};
+
#endif