projects
/
oweals
/
mdnsd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
431db65
)
cache: add support for scanning on multiple interfaces
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 9 Jun 2014 19:15:19 +0000
(21:15 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 9 Jun 2014 19:15:19 +0000
(21:15 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
cache.c
patch
|
blob
|
history
diff --git
a/cache.c
b/cache.c
index 123925afde4c80831600425004f258066807d483..4dcccfb8b20ff0050ea82840ef3e04830963f900 100644
(file)
--- 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*