basic support for the cache flush bit
[project/mdnsd.git] / cache.c
diff --git a/cache.c b/cache.c
index 6240e2f..af6cbba 100644 (file)
--- a/cache.c
+++ b/cache.c
@@ -216,7 +216,7 @@ cache_host_is_known(char *record)
 }
 
 void
-cache_answer(struct interface *iface, uint8_t *base, int blen, char *name, struct dns_answer *a, uint8_t *rdata)
+cache_answer(struct interface *iface, uint8_t *base, int blen, char *name, struct dns_answer *a, uint8_t *rdata, int flush)
 {
        struct dns_srv_data *dsd = (struct dns_srv_data *) rdata;
        struct cache_record *r;
@@ -227,9 +227,6 @@ cache_answer(struct interface *iface, uint8_t *base, int blen, char *name, struc
        int host_len = 0;
        static char *rdata_buffer = (char *) mdns_buf;
 
-       if (!(a->class & CLASS_IN))
-               return;
-
        nlen = strlen(name);
 
        switch (a->type) {