X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2Ftst-rbl.c;h=9cafae14d2bbf275c1453b8a9b3d6ffabd5d73ce;hb=f840e396bc900fe05ad159e1ab06e5df63679ea3;hp=30d6533dc94f1b9d2ce105559bf72a73bee8befe;hpb=54ffb02d50692303ec08614c416c6718f01bf149;p=apps%2Fpfixtools.git diff --git a/postlicyd/tst-rbl.c b/postlicyd/tst-rbl.c index 30d6533..9cafae1 100644 --- a/postlicyd/tst-rbl.c +++ b/postlicyd/tst-rbl.c @@ -38,14 +38,15 @@ __FILE__, __LINE__, __func__, ##__VA_ARGS__) #include "common.h" -#include "rbl.h" +#include "iplist.h" +#include "array.h" int main(int argc, char *argv[]) { if (argc > 1) { rbldb_t *db = rbldb_create(argv[1], false); printf("loaded: %s, %d ips, %d o\n", argv[1], rbldb_stats(db), - rbldb_stats(db) * 4); + rbldb_stats(db) * 1 + 65536 * sizeof(A(uint16_t))); time_t now = time(NULL); for (uint32_t i = 0 ; i < 1000000000 ; ++i) {