+static int dumpitem(unsigned long index,void *item) {
+ fprintf( stdout, "[%ld] %p\n", index, item );
+ return 0;
+}
+
+static int dump_ipslot(unsigned long index,void *item) {
+ static char buffer[100];
+ ipslot *ip = (ipslot*) item;
+ const char *p = inet_ntop( (ip->bits <= 32)? AF_INET : AF_INET6,
+ ip->data, buffer, 100 );
+
+ fprintf( stdout, "[%ld] %s/%d\n", index, p, ip->bits );
+ return 0;
+}