X-Git-Url: http://git.openwrt.org/?p=project%2Fmdnsd.git;a=blobdiff_plain;f=cache.c;fp=cache.c;h=fa32465f953bb18a3577ef48282f70bc18050a12;hp=07d4f20d5e1065f9146b791658582fbfc69e8275;hb=9bbaf3c1f7826a7ac637ac0e2e7c8d5b43bac89d;hpb=9cbbb141068c12ed032736e20f982e2a0fb43edc diff --git a/cache.c b/cache.c index 07d4f20..fa32465 100644 --- a/cache.c +++ b/cache.c @@ -89,7 +89,7 @@ cache_gc_timer(struct uloop_timeout *timeout) continue; } s->refresh += 50; - dns_send_question(s->iface, s->entry, TYPE_PTR, 1); + dns_send_question(s->iface, s->entry, TYPE_PTR, 0); } uloop_timeout_set(timeout, 10000); @@ -128,7 +128,7 @@ cache_scan(void) vlist_for_each_element(&interfaces, iface, node) avl_for_each_element(&services, s, avl) - dns_send_question(iface, s->entry, TYPE_PTR, 1); + dns_send_question(iface, s->entry, TYPE_PTR, 0); } static struct cache_service* @@ -167,7 +167,7 @@ cache_service(struct interface *iface, char *entry, int hlen, int ttl) avl_insert(&services, &s->avl); if (!hlen) - dns_send_question(iface, entry, TYPE_PTR, !iface->multicast); + dns_send_question(iface, entry, TYPE_PTR, iface->multicast); return s; }