blob: 2e60670dfa664d11cc37b454c8a2977452e1d129 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef RSPAMD_FUZZY_STORAGE_H
#define RSPAMD_FUZZY_STORAGE_H
#include "config.h"
#include "main.h"
#include "fuzzy.h"
/* Commands for fuzzy storage */
#define FUZZY_CHECK 0
#define FUZZY_WRITE 1
#define FUZZY_DEL 2
struct fuzzy_cmd {
u_char cmd;
guint32 blocksize;
gint32 value;
gint32 flag;
u_char hash[FUZZY_HASHLEN];
};
struct fuzzy_session {
struct rspamd_worker *worker;
struct fuzzy_cmd cmd;
gint fd;
u_char *pos;
socklen_t salen;
struct sockaddr_storage sa;
};
#endif
|