summaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-22 16:07:26 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-22 16:07:26 +0100
commitfd2fb63f903e250bd0088472d1369d101a70a50e (patch)
tree46370d6422adf680b740fc3bc09ccfdb33842775 /src/libserver
parent09a299379df4921d4806469031cf4cc6bcaf7747 (diff)
downloadrspamd-fd2fb63f903e250bd0088472d1369d101a70a50e.tar.gz
rspamd-fd2fb63f903e250bd0088472d1369d101a70a50e.zip
[Rework] Rework fuzzy commands processing
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/fuzzy_wire.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libserver/fuzzy_wire.h b/src/libserver/fuzzy_wire.h
index 1723370e9..af3122e84 100644
--- a/src/libserver/fuzzy_wire.h
+++ b/src/libserver/fuzzy_wire.h
@@ -94,6 +94,18 @@ RSPAMD_PACKED(rspamd_fuzzy_encrypted_reply) {
static const guchar fuzzy_encrypted_magic[4] = {'r', 's', 'f', 'e'};
+enum rspamd_fuzzy_extension_type {
+ RSPAMD_FUZZY_EXT_SOURCE_DOMAIN = 'd',
+ RSPAMD_FUZZY_EXT_SOURCE_IP4 = '4',
+ RSPAMD_FUZZY_EXT_SOURCE_IP6 = '6',
+};
+
+struct rspamd_fuzzy_cmd_extension {
+ enum rspamd_fuzzy_extension_type ext;
+ guint length;
+ guchar payload[];
+};
+
struct rspamd_fuzzy_stat_entry {
const gchar *name;
guint32 fuzzy_cnt;