X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-core%2Fbrowse-dns-server.c;h=48d23add9214f6838b02ef4901e3aa4ce1960a89;hb=00ea7c8f503fd9d1c1c62db837e8f4fb60443117;hp=52dafc288199e50fbc245f070158e4e211ff1694;hpb=d1dd07145bb3db5c6fd77c55aea762eb79ab3b5c;p=catta diff --git a/avahi-core/browse-dns-server.c b/avahi-core/browse-dns-server.c index 52dafc2..48d23ad 100644 --- a/avahi-core/browse-dns-server.c +++ b/avahi-core/browse-dns-server.c @@ -96,8 +96,8 @@ static void server_info_free(AvahiSDNSServerBrowser *b, AvahiDNSServerInfo *i) { static void host_name_resolver_callback( AvahiSHostNameResolver *r, - AvahiIfIndex interface, - AvahiProtocol protocol, + AVAHI_GCC_UNUSED AvahiIfIndex interface, + AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiResolverEvent event, const char *host_name, const AvahiAddress *a, @@ -128,9 +128,7 @@ static void host_name_resolver_callback( break; } - case AVAHI_RESOLVER_NOT_FOUND: case AVAHI_RESOLVER_FAILURE: - case AVAHI_RESOLVER_TIMEOUT: /* Ignore */ break; } @@ -153,6 +151,8 @@ static void record_browser_callback( assert(rr); assert(b); + /* Filter flags */ + flags &= AVAHI_LOOKUP_RESULT_CACHED | AVAHI_LOOKUP_RESULT_MULTICAST | AVAHI_LOOKUP_RESULT_WIDE_AREA; switch (event) { case AVAHI_BROWSER_NEW: { @@ -215,7 +215,6 @@ static void record_browser_callback( } case AVAHI_BROWSER_FAILURE: - case AVAHI_BROWSER_NOT_FOUND: case AVAHI_BROWSER_ALL_FOR_NOW: case AVAHI_BROWSER_CACHE_EXHAUSTED: