Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
lib_SOURCES = str.c buffer.c common.c epoll.c server.c trie.c file.c
tst-trie_SOURCES = tst-trie.c lib.a
lib_SOURCES = str.c buffer.c common.c epoll.c server.c trie.c file.c
tst-trie_SOURCES = tst-trie.c lib.a
# declare a file to load. If lock is given, the klist is locked into the
# RAM. The weight is a number giving the weight of this blaclist file in the
# score of the IP
# declare a file to load. If lock is given, the klist is locked into the
# RAM. The weight is a number giving the weight of this blaclist file in the
# score of the IP
+# - rbldns: (no)?lock:weight:filename
+# this is an alias for file.
# - soft_threshold: score (default: 1)
# minimum score to match the soft_match return value
# - hard_threshold: score (default: 1)
# - soft_threshold: score (default: 1)
# minimum score to match the soft_match return value
# - hard_threshold: score (default: 1)
pfix-srsd_SOURCES = main-srsd.c ../common/lib.a
pfix-srsd_LIBADD = -lsrs2
pfix-srsd_SOURCES = main-srsd.c ../common/lib.a
pfix-srsd_LIBADD = -lsrs2
hook_tokens.h hook_tokens.c: $(FILTERS)
param_tokens.c param_tokens.h: $(FILTERS) config.c
hook_tokens.h hook_tokens.c: $(FILTERS)
param_tokens.c param_tokens.h: $(FILTERS) config.c
* the file pointed by filename MUST be a valid ip list issued from
* the rsync (or equivalent) service of a (r)bl.
*/
* the file pointed by filename MUST be a valid ip list issued from
* the rsync (or equivalent) service of a (r)bl.
*/
+ case ATK_FILE: case ATK_RBLDNS: {
bool lock = false;
int weight = 0;
rbldb_t *rbl = NULL;
bool lock = false;
int weight = 0;
rbldb_t *rbl = NULL;
/* Parameters.
*/
(void)filter_param_register(type, "file");
/* Parameters.
*/
(void)filter_param_register(type, "file");
+ (void)filter_param_register(type, "rbldns");
(void)filter_param_register(type, "hard_threshold");
(void)filter_param_register(type, "soft_threshold");
return 0;
(void)filter_param_register(type, "hard_threshold");
(void)filter_param_register(type, "soft_threshold");
return 0;