X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmdnsd.git;a=blobdiff_plain;f=cache.h;fp=cache.h;h=7830b4fd96f1b06c11f150cebe499f4698a07c6a;hp=6c38977b08265d2da74ca95e2d6b9139435e87d3;hb=ae4adf3736f43aea1a288d6693a1439ee04de969;hpb=2ceb6c905c28388645808762b93a9706b634d559;ds=sidebyside diff --git a/cache.h b/cache.h index 6c38977..7830b4f 100644 --- a/cache.h +++ b/cache.h @@ -54,6 +54,9 @@ void cache_cleanup(struct interface *iface); void cache_answer(struct interface *iface, uint8_t *base, int blen, char *name, struct dns_answer *a, uint8_t *rdata, int flush); int cache_host_is_known(char *record); +static inline bool cache_service_is_host(struct cache_service *s) { + return *((char *)s->avl.key) != '_'; +} void cache_dump_records(struct blob_buf *buf, const char *name); void cache_dump_recursive(struct blob_buf *b, const char *name, uint16_t type, struct interface *iface);