Prepare support for sending unicast DNS answers
[project/mdnsd.git] / dns.h
diff --git a/dns.h b/dns.h
index 7f3cbe1..0f26f60 100644 (file)
--- a/dns.h
+++ b/dns.h
@@ -76,8 +76,8 @@ extern int cfg_no_subnet;
 void dns_send_question(struct interface *iface, const char *question, int type, int multicast);
 void dns_init_answer(void);
 void dns_add_answer(int type, const uint8_t *rdata, uint16_t rdlength, int ttl);
-void dns_send_answer(struct interface *iface, const char *answer);
-void dns_reply_a(struct interface *iface, int ttl);
+void dns_send_answer(struct interface *iface, struct sockaddr *to, const char *answer);
+void dns_reply_a(struct interface *iface, struct sockaddr *to, int ttl);
 const char* dns_type_string(uint16_t type);
 void dns_handle_packet(struct interface *iface, struct sockaddr *s, uint16_t port, uint8_t *buf, int len);