aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-12-22 13:25:12 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-12-22 13:25:12 +0000
commite5026b003d4ce221af2e3505af499f4083d5ce65 (patch)
tree221eb0ce5d0f91b40a813d450e476e9c2a30556b /src
parent55efc237a33323d311bbc48240b495d2a54b3b03 (diff)
downloadrspamd-e5026b003d4ce221af2e3505af499f4083d5ce65.tar.gz
rspamd-e5026b003d4ce221af2e3505af499f4083d5ce65.zip
Pack fuzzy commands.
Diffstat (limited to 'src')
-rw-r--r--src/fuzzy_storage.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/fuzzy_storage.h b/src/fuzzy_storage.h
index 1d1b05edb..93488914d 100644
--- a/src/fuzzy_storage.h
+++ b/src/fuzzy_storage.h
@@ -21,24 +21,26 @@ struct legacy_fuzzy_cmd {
u_char hash[FUZZY_HASHLEN];
};
-struct rspamd_fuzzy_cmd {
+RSPAMD_PACKED(rspamd_fuzzy_cmd) {
guint8 version;
guint8 cmd;
guint8 shingles_count;
guint8 flag;
gint32 value;
+ guint32 tag;
gchar digest[64];
};
-struct rspamd_fuzzy_shingle_cmd {
+RSPAMD_PACKED(rspamd_fuzzy_shingle_cmd) {
struct rspamd_fuzzy_cmd basic;
struct rspamd_shingle sgl;
};
-struct rspamd_fuzzy_reply {
+RSPAMD_PACKED(rspamd_fuzzy_reply) {
guint32 value;
guint32 flag;
- gdouble prob;
+ guint32 tag;
+ float prob;
};
#endif