add the ability to announce additional hostnames
[project/mdnsd.git] / dns.h
diff --git a/dns.h b/dns.h
index 91570bd6c703762f5cccb7e08144571a1111d068..39a1a51c3c752624a7b625a52f94236fd401099d 100644 (file)
--- a/dns.h
+++ b/dns.h
@@ -78,7 +78,8 @@ void dns_send_question(struct interface *iface, struct sockaddr *to,
 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, struct sockaddr *to, const char *answer);
-void dns_reply_a(struct interface *iface, struct sockaddr *to, int ttl);
+void dns_reply_a(struct interface *iface, struct sockaddr *to, int ttl, const char *hostname);
+void dns_reply_a_additional(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);