summaryrefslogtreecommitdiffstats
path: root/src/libserver/fuzzy_wire.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-05-20 13:19:24 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-05-20 13:19:24 +0100
commit32428449bd7a6035cecaaf4a684df997f2a9dab7 (patch)
treea9ec2043f4675f0d01361ef54ad5387a8c1e0445 /src/libserver/fuzzy_wire.h
parent6319622005f9da0cec9e255b8b8e4fe2721ced04 (diff)
downloadrspamd-32428449bd7a6035cecaaf4a684df997f2a9dab7.tar.gz
rspamd-32428449bd7a6035cecaaf4a684df997f2a9dab7.zip
[Feature] Allow to have weak flags in fuzzy storage
Diffstat (limited to 'src/libserver/fuzzy_wire.h')
-rw-r--r--src/libserver/fuzzy_wire.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libserver/fuzzy_wire.h b/src/libserver/fuzzy_wire.h
index 8680e16fb..fd65ffb38 100644
--- a/src/libserver/fuzzy_wire.h
+++ b/src/libserver/fuzzy_wire.h
@@ -13,6 +13,9 @@ extern "C" {
#define RSPAMD_FUZZY_VERSION 4
#define RSPAMD_FUZZY_KEYLEN 8
+#define RSPAMD_FUZZY_FLAG_WEAK (1u << 7u)
+/* Use lower 4 bits for the version */
+#define RSPAMD_FUZZY_VERSION_MASK 0x0fu
/* Commands for fuzzy storage */
#define FUZZY_CHECK 0
#define FUZZY_WRITE 1