#include "interface.h"
static struct uloop_timeout cache_gc;
-struct avl_tree records, entries, hosts;
+struct avl_tree records, entries;
static void
cache_record_free(struct cache_record *r)
void
cache_scan(void)
{
+ struct interface *iface;
struct cache_entry *s;
- avl_for_each_element(&entries, s, avl)
- dns_send_question(cur_iface, s->entry, TYPE_PTR);
+ vlist_for_each_element(&interfaces, iface, node)
+ avl_for_each_element(&entries, s, avl)
+ dns_send_question(iface, s->entry, TYPE_PTR);
}
static struct cache_entry*
void *rdata_ptr, *txt_ptr;
int host_len = 0;
+ static char rdata_buffer[MAX_DATA_LEN + 1];
+
if (!(a->class & CLASS_IN))
return;