-service_send_ptr(struct uloop_fd *u, struct service *s)
-{
- unsigned char buffer[MAX_NAME_LEN];
- char *host = service_name(s->service);
- int len = dn_comp(host, buffer, MAX_NAME_LEN, NULL, NULL);
-
- if (len < 1)
- return;
-
- dns_add_answer(TYPE_PTR, buffer, len);
-}
-
-static void
-service_send_ptr_c(struct uloop_fd *u, char *host)
-{
- unsigned char buffer[MAX_NAME_LEN];
- int len = dn_comp(host, buffer, MAX_NAME_LEN, NULL, NULL);
-
- if (len < 1)
- return;
-
- dns_add_answer(TYPE_PTR, buffer, len);
-}
-
-static void
-service_send_a(struct uloop_fd *u)