X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fmdnsd.git;a=blobdiff_plain;f=cache.c;h=6240e2f2c8ee80a9fe7751853cd3ef61c6022d11;hp=c78a3b7a9b438118b369c68c3102fd62cad0b9ee;hb=6d1e112ec8f6dd6c1f594b028e2d0e0052d9d12f;hpb=577c0b6efed8124ade1a52336cfc546297b2a491 diff --git a/cache.c b/cache.c index c78a3b7..6240e2f 100644 --- a/cache.c +++ b/cache.c @@ -120,7 +120,7 @@ cache_scan(void) vlist_for_each_element(&interfaces, iface, node) avl_for_each_element(&entries, s, avl) - dns_send_question(iface, s->entry, TYPE_PTR); + dns_send_question(iface, s->entry, TYPE_PTR, 1); } static struct cache_entry* @@ -154,7 +154,7 @@ cache_entry(struct interface *iface, char *entry, int hlen, int ttl) avl_insert(&entries, &s->avl); if (!hlen) - dns_send_question(iface, entry, TYPE_PTR); + dns_send_question(iface, entry, TYPE_PTR, !iface->multicast); return s; }