diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-10-27 19:34:11 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-10-27 19:34:11 +0300 |
commit | 15096c5130088a34af3384cac639ca8807a13f8e (patch) | |
tree | a52ee6535ce667f2c0be537228a413291b97ae01 /src/view.h | |
parent | 9c36d3f9efae2ee0b8c4322e9df1af5bef84678f (diff) | |
download | rspamd-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.h | 2 |
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); |