X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=cache.c;h=6240e2f2c8ee80a9fe7751853cd3ef61c6022d11;hb=3032203ee12cf5344f89b1ae1ee78229a44f8959;hp=c78a3b7a9b438118b369c68c3102fd62cad0b9ee;hpb=2b6893cdb811c57ff0fc01cdd75f86d3e5567c3f;p=project%2Fmdnsd.git 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; }