From: Felix Fietkau Date: Mon, 9 Jun 2014 19:15:19 +0000 (+0200) Subject: cache: add support for scanning on multiple interfaces X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmdnsd.git;a=commitdiff_plain;h=a2684fb549fa8bf2f3097ea73b158248a4606d42;hp=431db651f04d18d2ee454e49d14806f08283f28c cache: add support for scanning on multiple interfaces Signed-off-by: Felix Fietkau --- diff --git a/cache.c b/cache.c index 123925a..4dcccfb 100644 --- a/cache.c +++ b/cache.c @@ -116,10 +116,12 @@ void cache_cleanup(void) 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*