aboutsummaryrefslogtreecommitdiffstats
path: root/src/view.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-10-27 19:34:11 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-10-27 19:34:11 +0300
commit15096c5130088a34af3384cac639ca8807a13f8e (patch)
treea52ee6535ce667f2c0be537228a413291b97ae01 /src/view.h
parent9c36d3f9efae2ee0b8c4322e9df1af5bef84678f (diff)
downloadrspamd-15096c5130088a34af3384cac639ca8807a13f8e.tar.gz
rspamd-15096c5130088a34af3384cac639ca8807a13f8e.zip
* Add ability to check views by client's ip (that ip from which we have a connection to rspamd)
Diffstat (limited to 'src/view.h')
-rw-r--r--src/view.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/view.h b/src/view.h
index 9114c6393..ea15149bd 100644
--- a/src/view.h
+++ b/src/view.h
@@ -10,6 +10,7 @@ struct rspamd_view {
GHashTable *from_hash;
radix_tree_t *ip_tree;
+ radix_tree_t *client_ip_tree;
GHashTable *symbols_hash;
GList *symbols_re_list;
@@ -22,6 +23,7 @@ struct rspamd_view* init_view (memory_pool_t *pool);
gboolean add_view_from (struct rspamd_view *view, char *line);
gboolean add_view_ip (struct rspamd_view *view, char *line);
+gboolean add_view_client_ip (struct rspamd_view *view, char *line);
gboolean add_view_symbols (struct rspamd_view *view, char *line);
gboolean check_view (GList *views, const char *symbol, struct worker_task *task);