X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-core%2Fmulticast-lookup.c;h=fa8c85951a5d0ba06289d3ff8c63a3af017ed658;hb=cbb9be300db2c71ee56e28237c9336d37a27e411;hp=641ee4da939a9d8af49a7f3e7efa9e4079230617;hpb=8185ec8431c51946095d3f11e80545e3519f67cf;p=catta diff --git a/avahi-core/multicast-lookup.c b/avahi-core/multicast-lookup.c index 641ee4d..fa8c859 100644 --- a/avahi-core/multicast-lookup.c +++ b/avahi-core/multicast-lookup.c @@ -24,13 +24,15 @@ #endif #include +#include -#include "server.h" +#include "internal.h" #include "browse.h" #include "socket.h" #include "log.h" #include "hashmap.h" #include "multicast-lookup.h" +#include "rr-util.h" struct AvahiMulticastLookup { AvahiMulticastLookupEngine *engine; @@ -83,7 +85,7 @@ AvahiMulticastLookup *avahi_multicast_lookup_new( void *userdata) { AvahiMulticastLookup *l, *t; - struct timeval ctime; + struct timeval tv; assert(e); assert(AVAHI_IF_VALID(interface)); @@ -109,12 +111,13 @@ AvahiMulticastLookup *avahi_multicast_lookup_new( AVAHI_LLIST_PREPEND(AvahiMulticastLookup, lookups, e->lookups, l); - avahi_querier_add_for_all(e->server, interface, protocol, l->key, &ctime); + avahi_querier_add_for_all(e->server, interface, protocol, l->key, &tv); + l->queriers_added = 1; /* add a second */ - avahi_timeval_add(&ctime, 1000000); + avahi_timeval_add(&tv, 1000000); - l->all_for_now_event = avahi_time_event_new(e->server->time_event_queue, &ctime, all_for_now_callback, l); + l->all_for_now_event = avahi_time_event_new(e->server->time_event_queue, &tv, all_for_now_callback, l); return l; }