add -4 and -6 options
[project/mdnsd.git] / dns.h
diff --git a/dns.h b/dns.h
index a238db4..5937f26 100644 (file)
--- a/dns.h
+++ b/dns.h
@@ -68,10 +68,11 @@ struct dns_question {
 } __attribute__((packed, aligned(2)));
 
 struct interface;
+extern int cfg_proto;
 
 void dns_send_question(struct interface *iface, const char *question, int type);
 void dns_init_answer(void);
-void dns_add_answer(int type, const uint8_t *rdata, uint16_t rdlength);
+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);
 const char* dns_type_string(uint16_t type);
 void dns_handle_packet(struct interface *iface, uint8_t *buf, int len);