X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2Frbl.c;h=4e1ac277c0fb2eb5913481eecb73d440e84f51ad;hb=a66e19cd437595328f202cbde8d492d5f7e2205a;hp=d03d06bdb3e4ab49f2a6e4bf6e05525b7f35dc6f;hpb=b6ff37e18e7794cb9f92c175118344be6282d1f0;p=apps%2Fpfixtools.git diff --git a/postlicyd/rbl.c b/postlicyd/rbl.c index d03d06b..4e1ac27 100644 --- a/postlicyd/rbl.c +++ b/postlicyd/rbl.c @@ -195,7 +195,6 @@ uint32_t rbldb_stats(const rbldb_t *rbl) for (int i = 0 ; i < 1 << 16 ; ++i) { ips += array_len(rbl->ips[i]); } - printf("memory overhead of rbldb: %u\n", sizeof(rbldb_t)); return ips; } @@ -273,7 +272,7 @@ static bool rbl_filter_constructor(filter_t *filter) * 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_FILE: case ATK_RBLDNS: { bool lock = false; int weight = 0; rbldb_t *rbl = NULL; @@ -395,6 +394,7 @@ static int rbl_init(void) /* 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;